/* SERVICES.CSS - Services Pages Styles
   Source Grid Agricultural Platform */

/* ========================================
   PAGE HERO SECTION
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--olive-green) 0%, var(--olive-green-hover) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.content-section:nth-child(even) {
  background-color: var(--grey-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--olive-green);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--olive-green);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.content-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--olive-green), var(--olive-green-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.content-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon i {
  font-size: 2rem;
  color: var(--white);
}

.content-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--olive-green);
  margin-bottom: 1rem;
  text-align: center;
}

.content-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}

/* Text Content Blocks */
.text-content {
  max-width: 900px;
  margin: 0 auto;
}

.text-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--olive-green);
  margin-bottom: 1rem;
}

.text-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.text-content ul,
.text-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.text-content li {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* Highlight Boxes */
.highlight-box {
  background-color: var(--olive-green-light);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.highlight-box h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--olive-green);
  margin-bottom: 1rem;
}

.highlight-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--olive-green) 0%, var(--olive-green-hover) 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 20px;
  margin: 4rem 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-btn {
  background-color: var(--white);
  color: var(--olive-green);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.cta-btn:hover {
  background-color: var(--grey-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background-color: var(--olive-green);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer .titlepage {
  margin-bottom: 2rem;
}

.footer .titlepage h2 {
  font-size: 2.5rem;
  color: var(--white);
}

.contact-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.contact-container {
  background-color: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-tabs {
  margin-bottom: 2rem;
}

.tab-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  background-color: var(--grey);
  color: var(--white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  background-color: var(--olive-green-hover);
}

.tab-btn.active {
  background-color: var(--olive-green);
  box-shadow: 0 4px 12px rgba(99, 107, 47, 0.3);
}

.tab-content {
  text-align: center;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-description h3 {
  font-size: 1.8rem;
  color: var(--olive-green);
  margin-bottom: 0.8rem;
}

.tab-description p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.main_form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.contactus,
.contactus1 {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  color: var(--black);
  background-color: var(--white);
  transition: var(--transition);
}

.contactus1 {
  border-radius: 20px;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contactus:focus,
.contactus1:focus {
  outline: none;
  border-color: var(--olive-green);
  box-shadow: 0 0 0 3px var(--olive-green-light);
}

.send_btn {
  background-color: var(--grey);
  color: var(--white);
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.send_btn:hover {
  background-color: var(--olive-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 107, 47, 0.4);
}

.send_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer-info {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.border_right {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.location_icon {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.location_icon li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.location_icon li i {
  color: var(--white);
  font-size: 1.2rem;
}

.social_icon {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.social_icon li a {
  width: 45px;
  height: 45px;
  background-color: var(--white);
  color: var(--olive-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social_icon li a:hover {
  background-color: var(--olive-green-hover);
  color: var(--white);
  transform: translateY(-3px);
}

.link {
  list-style: none;
  padding: 0;
}

.link li {
  margin-bottom: 0.8rem;
}

.link li a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.link li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.privacy-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sub_btn {
  background-color: var(--white);
  color: var(--olive-green);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.sub_btn:hover {
  background-color: var(--olive-green-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.copyright p {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .border_right {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 4rem 0;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .contact-container {
    padding: 1.5rem;
  }

  .tab-selector {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  /* Fix 1 — Section intro: centre inline-block h2 and paragraph */
  .section-intro {
    text-align: center;
  }

  /* Fix 2 — Card content: centre h4 and p inside each card */
  .cert-box,
  .guideline,
  .partner-box,
  .producer,
  .service {
    text-align: center;
  }

  /* Closing statement — reduce font slightly on mobile */
  .closing-text {
    font-size: 1rem;
    padding: 0 0.25rem;
  }
}

@media (max-width: 576px) {
  .logo_section img {
    max-width: 140px;
  }

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 180px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Section Intro — Quote Style with Underline Accent heading */
.section-intro {
  padding: 0.5rem 2rem 0.5rem 2rem;
  background: transparent;
  position: relative;
  margin-bottom: 2.5rem;
}

/* Underline Accent on the heading */
.section-intro h2 {
  color: var(--olive-green);
  font-size: 2rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--olive-green);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.section-intro p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Closing Statement — editorial accent line above centred brand text */
.closing-text {
  position: relative;
  margin: 3rem auto 0;
  padding: 0;
  max-width: 820px;
  text-align: center;
  color: var(--olive-green);
  line-height: 1.9;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;
}

.closing-text::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--olive-green);
  opacity: 0.45;
  margin: 0 auto 1.5rem;
}


/* Specific Grid Variations for Links Pages */
.certification-details,
.guidelines-grid,
.partner-grid,
.producers-grid,
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.cert-box,
.guideline,
.partner-box,
.producer,
.service {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--grey-light);
}

.cert-box:hover,
.guideline:hover,
.partner-box:hover,
.producer:hover,
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(99, 107, 47, 0.15);
}

.cert-box h4,
.guideline h4,
.partner-box h4,
.producer h4,
.service h4 {
  color: var(--olive-green);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cert-box p,
.guideline p,
.partner-box p,
.producer p,
.service p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

/* Responsive adjustments for grid variations */
@media (max-width: 991px) {
  .certification-details,
  .guidelines-grid,
  .partner-grid,
  .producers-grid,
  .services-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .certification-details,
  .guidelines-grid,
  .partner-grid,
  .producers-grid,
  .services-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Fix: compact card padding on mobile */
  .cert-box,
  .guideline,
  .partner-box,
  .producer,
  .service {
    padding: 1.5rem;
  }

  /* Section intro and closing text — mobile sizing */
  .section-intro {
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .section-intro h2 {
    font-size: 1.4rem;
  }

  .closing-text {
    padding: 0.5rem 1.25rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Fix: further reduce on very small phones */
  .cert-box,
  .guideline,
  .partner-box,
  .producer,
  .service {
    padding: 1.2rem;
    border-radius: 10px;
  }

  .cert-box h4,
  .guideline h4,
  .partner-box h4,
  .producer h4,
  .service h4 {
    font-size: 1.25rem;
  }

  /* Section intro and closing text — very small phones */
  .section-intro {
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }

  .section-intro h2 {
    font-size: 1.2rem;
  }

  .closing-text {
    padding: 0.4rem 1rem;
    margin-top: 1rem;
  }
}

/* ========================================================================
   EDITORIAL THEME ALIGNMENT
   Aligns the five service pages with the site-wide olive editorial design.
   Loaded after theme.css, so the --tg-* tokens are available here.
   ======================================================================== */

/* Display-serif headings */
.page-hero h1,
.section-header h2,
.section-intro h2,
.cta-section h2 {
  font-family: var(--tg-font-display, "Aboreto", Georgia, serif);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.section-intro h2 {
  border-bottom-color: var(--tg-accent, #636b2f);
}

/* Cards: theme radius, hairline border, subtle lift */
.content-card,
.cert-box,
.guideline,
.partner-box,
.producer,
.service {
  border-radius: var(--tg-radius, 16px);
  border: 1px solid var(--tg-gray-300, #e3e5db);
  box-shadow: var(--tg-shadow-sm, 0 1px 3px rgba(31, 36, 18, 0.1));
}

.content-card:hover,
.cert-box:hover,
.guideline:hover,
.partner-box:hover,
.producer:hover,
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--tg-shadow-md, 0 10px 24px rgba(31, 36, 18, 0.09));
  border-color: transparent;
}

.cert-box h4,
.guideline h4,
.partner-box h4,
.producer h4,
.service h4 {
  font-weight: 600;
}

/* Scroll-reveal works on these pages via the global reveal.js + theme.css.
   Service pages add data-reveal on their section wrappers. */
