/* ===== Reset & base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2f6b3c;
  --primary-dark: #1e4725;
  --primary-darker: #0d230f;
  --primary-light: #eaf3ec;
  --primary-border: rgba(47, 107, 60, 0.6);

  --accent: #e8792c;
  --accent-dark: #984b18;
  --accent-border: rgba(232, 121, 44, 0.6);

  --sand: #f3ecdd;
  --sand-light: #f8f4ea;

  --white: #ffffff;
  --text: #16241a;
  --text-soft: rgba(22, 36, 26, 0.78);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-logo: "Archivo Black", system-ui, sans-serif;

  --brand-cream: #f0dcb4;
  --brand-orange: #d9863f;

  --header-height: 104px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 64px;
  }
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 10px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
}

.section--sand {
  background: var(--sand-light);
}

.section--dark {
  background: var(--primary-darker);
  color: var(--white);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.section--dark .section-title {
  color: var(--white);
}

.section-text {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section--dark .section-text {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  padding: 14px 28px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary-border);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent-border);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent-border);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #d2e6d6;
  z-index: 100;
  backdrop-filter: blur(6px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  height: 88px;
  width: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-border);
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-orange);
  white-space: nowrap;
}

.brand-name strong {
  font-weight: 400;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary-dark);
  line-height: 1;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--primary-border);
  background: transparent;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--primary-light);
  padding: 20px 24px 28px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-weight: 700;
  color: var(--text);
  padding: 4px 0;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 35, 15, 0.92) 0%,
    rgba(13, 35, 15, 0.72) 45%,
    rgba(30, 71, 37, 0.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: calc(var(--header-height) + 40px) 0 160px;
}

@media (max-width: 640px) {
  .hero-content {
    padding: calc(var(--header-height) + 24px) 0 100px;
  }
}

.hero-badge {
  display: table;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin-bottom: 22px;
}

.brand-name--hero {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.4rem, 3.8vw, 2.1rem);
  letter-spacing: 0.2em;
  color: var(--brand-orange);
}

.brand-name--hero strong {
  font-size: clamp(3.8rem, 10vw, 6.5rem);
  color: var(--brand-cream);
}

.hero h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-media {
  position: relative;
}

.about-media img {
  border-radius: 20px;
  box-shadow: 0 20px 40px -20px rgba(13, 35, 15, 0.35);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.3);
  display: none;
}

@media (min-width: 768px) {
  .about-badge {
    display: block;
  }
}

.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.about-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 72px;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--primary-light);
  border-radius: 18px;
  padding: 32px;
}

.card h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.values-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 40px;
}

.values-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: var(--white);
  border: 1px solid var(--primary-light);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 10px 24px -16px rgba(13, 35, 15, 0.3);
}

.value-card h4 {
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== Services ===== */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.service-card {
  flex: 1 1 100%;
  background: var(--sand-light);
  border: 1px solid var(--primary-light);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .service-card {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .service-card {
    flex: 1 1 calc(33.333% - 16px);
  }
}

.service-card:hover {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 16px 32px -20px rgba(13, 35, 15, 0.35);
}

.service-media {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.service-card:nth-last-child(-n + 2) .service-media {
  height: 260px;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-body {
  padding: 24px 28px 28px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -42px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px -8px rgba(13, 35, 15, 0.4);
}

.service-icon span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.service-card h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== Showcase CTA ===== */
.showcase-cta {
  border-radius: 20px;
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--primary-light);
  background: var(--sand-light);
}

.showcase-cta--dark {
  background: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.15);
}

.showcase-cta-text {
  max-width: 520px;
}

.showcase-cta h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin: 8px 0 12px;
}

.showcase-cta--dark h3 {
  color: var(--white);
}

.showcase-cta p {
  color: var(--text-soft);
  line-height: 1.6;
}

.showcase-cta--dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--primary-light);
  padding: 0;
  background: none;
  display: block;
  width: 100%;
  cursor: pointer;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  box-shadow: 0 18px 36px -18px rgba(13, 35, 15, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 35, 15, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover .gallery-item-zoom,
.gallery-item:focus-visible .gallery-item-zoom {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-zoom svg {
  width: 18px;
  height: 18px;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 35, 15, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 720px;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--accent);
  border-color: var(--accent-border);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: -50px;
    right: 0;
  }
}

/* ===== Market ===== */
.market-grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 1024px) {
  .market-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.segments-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .segments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.segment-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.segment-chip:hover {
  background: var(--accent);
  border-color: var(--accent-border);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-index {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(47, 107, 60, 0.1);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.contact-item strong {
  display: block;
  color: var(--primary-dark);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text-soft);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px -30px rgba(13, 35, 15, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card h3 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-card p {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-darker);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 84px;
  width: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li,
.site-footer > .container > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.footer-list a {
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1fb659;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
