/* Corp Sure Agrotech - Final Master Stylesheet
   Version: 4.0
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary-green: #2a6e3b;
  --primary-dark: #1e4a2f;
  --light-green: #52b788;
  --bg-color: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --white: #ffffff;
  --border-color: #e0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ========== NAVBAR & LOGO (Unified Version) ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 16px 32px !important; /* Unified padding */
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.4rem !important; /* Unified font size */
  text-decoration: none;
}

.logo img {
  height: 48px !important; /* Unified logo height */
  width: auto;
  object-fit: contain;
  border-radius: 50%;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav a {
  color: var(--text-dark);
  margin-left: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: var(--light-green);
}

/* ========== HERO SECTION ========== */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/farm.webp') top/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 1200px;
  width: 90%;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap; /* Forces single line on desktop */
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 30px;
}

/* ========== SUBPAGE BANNERS ========== */
.page-banner {
  min-height: 250px;
  height: 35vh;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)), url('images/farm.webp') center 30%/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  padding: 0 20px;
  width: 100%;
}

.page-banner-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.page-banner-content p {
  margin: 0;
  font-size: clamp(0.8rem, 3vw, 1rem);
  opacity: 0.9;
}

/* ========== BUTTONS ========== */
.btn {
  background: var(--primary-green);
  padding: 14px 32px;
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 10px;
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn:hover {
  background: var(--light-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary-green);
  background: transparent;
  padding: 12px 30px;
  color: var(--primary-green);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 10px;
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--white);
}

.hero-content .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-content .btn-outline:hover {
  background: var(--white);
  color: var(--text-dark);
}

/* ========== GRID & CARDS ========== */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  width: 100%;
  max-width: 320px;
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--light-green);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: contain; /* Shows full product bag */
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2.2rem;
  color: var(--primary-green);
  margin-top: 0;
  margin-bottom: 40px;
  position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--primary-green);
    margin: 16px auto 0;
    border-radius: 4px;
}

/* ========== FORM STYLES & ALIGNMENT ========== */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-green);
}

#contactForm label {
    display: block;
    text-align: left !important; /* Forces left alignment */
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form-container h2:after, 
.contact-info h2:after {
    margin: 10px 0 0 !important; /* Removes 'auto' to align left with the text */
    display: block;
}

.submit-container {
    text-align: center; /* Centers the submit button */
    width: 100%;
    margin-top: 20px;
}

/* ========== CTA BANNER (Resized & Aligned) ========== */
.cta-banner {
    background: linear-gradient(135deg, #1e4a2f 0%, #2a6e3b 100%) !important;
    color: white !important;
    text-align: center;
    
    /* These two lines fix the size issue */
    max-width: 1100px; /* Matches your grid width */
    margin: 40px auto !important; /* Centers it and adds space above/below */
    
    padding: 50px 30px !important; /* Reduced vertical padding */
    border-radius: 24px !important; /* Matches your card corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-banner h3 {
    color: white !important;
    font-size: 1.8rem !important; /* Slightly smaller for a cleaner look */
    margin-bottom: 12px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 600px;
    margin: 0 auto 25px !important;
    font-size: 1rem;
}

/* Button inside the green box */
.btn-cta {
    background: white !important;
    color: #1e4a2f !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .cta-banner {
        width: 95%; /* Ensures a small margin on mobile screens */
        padding: 40px 20px !important;
    }
}

/* ========== FOOTER ========== */
.footer {
  background: #1a1a1a;
  color: #f1f1f1;
  padding: 60px 20px 20px;
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #333;
  padding-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: #52b788;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col p {
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-col a {
  color: #bbb;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #52b788;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #52b788 !important;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #ffffff !important;
}

/* --- Social Media Icons --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #333;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #52b788;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.trust-signals {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.trust-badge {
  background: #333;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
}

/* ========== UNIVERSAL MOBILE RESPONSIVE FIXES ========== */
@media (max-width: 768px) {
    
    .navbar {
        flex-direction: column !important;
        padding: 15px 10px !important;
    }
    
    .logo {
        margin-bottom: 12px;
        font-size: 1.2rem !important;
    }
    
    .navbar nav {
        gap: 15px !important;
        width: 100%;
        justify-content: center;
    }

    .navbar nav a {
        margin-left: 0 !important;
        font-size: 0.85rem !important;
    }

    .hero-content h1 {
        white-space: normal !important; /* Allows title to wrap on mobile */
        font-size: 2.2rem;
    }

    .hero-content div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-banner {
        height: 25vh !important;
    }
    
    .page-banner-content h1 {
        font-size: 1.8rem !important;
    }

    .footer-grid {
        flex-direction: column !important;
        text-align: center;
    }

    .footer-col {
        width: 100% !important;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- Professional Superscript Style --- */
sup {
    font-size: 0.6em;
    vertical-align: super;
    font-weight: 700;
    margin-left: 2px;
}

/* --- Social Media Master Fix --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333; /* Default background */
    
    /* CRITICAL: This centers the icon perfectly */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon i {
    color: white !important;
    font-size: 18px;
    line-height: 0; /* Prevents line-height from pushing the icon down */
}

/* --- Brand Colors (Default State) --- */
.social-icon.facebook { background: #1877F2; }
.social-icon.instagram { background: #E4405F; } /* Classic Insta Pink */
.social-icon.linkedin { background: #0A66C2; }
.social-icon.x-twitter { background: #000000; }

/* --- Hover Effect: Make them shine --- */
.social-icon:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Instagram-specific gradient hover (Optional but looks great) */
.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}