/* ==========================================================================
   VerdeFood - Design System & Stylesheet
   Exact Layout Replication matching user reference
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette matching user reference */
  --bg-cream: #F4F3EC;
  --bg-green-primary: #237837;
  --bg-green-hover: #1e672f;
  
  /* Diferenciais 3-Card Colors */
  --card-green-forest: #267C3B;
  --card-green-leaf: #4FA83D;
  --card-green-teal: #036F5E;

  /* Footer Dark Theme */
  --bg-footer: #15261E;
  --text-footer-muted: #9BB0A5;

  /* Neutral Typography */
  --text-dark: #2F2E2D;
  --text-dark-subtle: #4D4C49;
  --text-muted: #6C6B67;
  --text-white: #FFFFFF;
  --text-green-light: #E5F3E8;
  --text-green-subtle: #CEE7D3;

  /* Borders */
  --border-green-line: rgba(255, 255, 255, 0.28);
  --border-light: rgba(47, 46, 45, 0.12);

  /* Fonts */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container-max: 1220px;
  --header-height: 88px;
  --radius-pill: 9999px;
  --radius-card: 26px;
  --radius-diff: 44px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-cream);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(244, 243, 236, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  height: 78px;
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--bg-green-primary);
}

/* Header Contato Button (Black Pill Button) */
.btn-header-contato {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-dark);
  color: #FFFFFF;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-header-contato:hover {
  background-color: var(--bg-green-primary);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ==========================================================================
   Badges (Pill Tags)
   ========================================================================== */
.badge-dark {
  display: inline-block;
  background-color: var(--text-dark);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0.35rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-translucent-light {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0.35rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 5rem;
  background-color: var(--bg-cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

.hero-text {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-text p + p {
  margin-top: 1rem;
}

/* Hero Button: Green Pill Button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-green-primary);
  color: #FFFFFF;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-hero:hover {
  background-color: var(--bg-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 120, 55, 0.25);
}

.hero-image-wrap {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.hero-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 25%;
}

/* ==========================================================================
   Serviços Section (Rich Green Full Width with Row Dividers)
   ========================================================================== */
.services-section {
  background-color: var(--bg-green-primary);
  color: #FFFFFF;
  padding: 5.5rem 0 6.5rem;
}

.services-header {
  margin-bottom: 3.5rem;
}

.services-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.services-subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-green-light);
  max-width: 860px;
}

/* Horizontal List for Services */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-green-line);
}

.service-row {
  display: grid;
  grid-template-columns: 110px 290px 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-green-line);
  transition: background-color 0.25s ease, padding 0.25s ease;
}

.service-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.service-row-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.service-row-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.service-row-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-green-light);
}

/* ==========================================================================
   Sobre Section
   ========================================================================== */
.about-section {
  padding: 6.5rem 0;
  background-color: var(--bg-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.about-image-wrap {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.about-image-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark-subtle);
}

/* ==========================================================================
   Diferenciais Section (3 Arch / Rounded Pill Cards)
   ========================================================================== */
.differentials-section {
  padding: 3rem 0 6.5rem;
  background-color: var(--bg-cream);
}

.differentials-header {
  margin-bottom: 3.5rem;
}

.differentials-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Arched Rounded Pill Cards */
.diff-pill-card {
  border-radius: var(--radius-diff);
  padding: 4.25rem 2.25rem 4.5rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 480px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.diff-pill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.diff-card-1 {
  background-color: var(--card-green-forest);
}

.diff-card-2 {
  background-color: var(--card-green-leaf);
}

.diff-card-3 {
  background-color: var(--card-green-teal);
}

.diff-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 2rem;
}

.diff-card-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #FFFFFF;
  opacity: 0.95;
}

/* ==========================================================================
   Contato Section (Large Green Container Card)
   ========================================================================== */
.contact-section {
  padding: 2rem 0 6rem;
  background-color: var(--bg-cream);
}

.contact-card-wrapper {
  background-color: var(--bg-green-primary);
  border-radius: 32px;
  padding: 4.5rem 4rem;
  box-shadow: 0 16px 40px rgba(35, 120, 55, 0.18);
  color: #FFFFFF;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.contact-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-green-light);
  margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-green-light);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: #FFFFFF;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background-color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* Phone input with country prefix container */
.phone-input-group {
  display: flex;
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0.75rem;
  background-color: #F0EFE9;
  border-right: 1px solid #E0DFD8;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  user-select: none;
}

.phone-input-group .form-control {
  border-radius: 0;
  box-shadow: none;
}

/* Outlined Pill Submit Button */
.btn-submit-outlined {
  width: 100%;
  background-color: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-pill);
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.25s ease;
}

.btn-submit-outlined:hover {
  background-color: #FFFFFF;
  color: var(--bg-green-primary);
  border-color: #FFFFFF;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

/* ==========================================================================
   Footer (Dark Theme #15261E)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-footer);
  color: #FFFFFF;
  padding: 5rem 0 3rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Prominent Footer Logo */
.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-footer-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-footer-muted);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-legal-link {
  font-size: 0.9rem;
  color: var(--text-footer-muted);
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #FFFFFF;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-footer-muted);
}

/* ==========================================================================
   Mobile Responsive Navigation Overlay
   ========================================================================== */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--bg-cream);
  z-index: 1999;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.mobile-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

.mobile-close-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.mobile-drawer-link:hover {
  color: var(--bg-green-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .service-row {
    grid-template-columns: 80px 240px 1fr;
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image-wrap {
    order: -1;
    max-width: 100%;
  }

  .hero-image-wrap img {
    height: 380px;
  }

  .about-image-wrap img {
    height: 360px;
  }

  .differentials-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .diff-pill-card {
    min-height: auto;
    padding: 3.5rem 2rem;
  }

  .contact-card-wrapper {
    padding: 3rem 2rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2rem 0;
  }

  .service-row-number {
    font-size: 2.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}
