/* ===== Tokens ===== */
:root {
  --navy: #0F2350;
  --navy-deep: #081231;
  --gold: #D9A441;
  --gold-soft: #F0D8A0;
  --green: #1E4D2B;
  --green-deep: #123219;
  --cream: #F5F7EC;
  --cream-deep: #EAF0DE;
  --charcoal: #1A1A1A;
  --line: rgba(15, 35, 80, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;

  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(30,77,43,0.05), transparent),
    radial-gradient(1000px 500px at 100% 10%, rgba(217,164,65,0.06), transparent),
    var(--cream);
  line-height: 1.55;
}

/* alternate section tint to reinforce the land/agro palette */
.about, .why, .faq, .contact { background: var(--cream); }
.mv, .values, .services--page { background: var(--cream-deep); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 0.75em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(217, 164, 65, 0.35); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ===== Photo placeholder frames ===== */
.photo-frame {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(30,77,43,0.08), rgba(217,164,65,0.12)),
    repeating-linear-gradient(45deg, rgba(30,77,43,0.05) 0 2px, transparent 2px 18px);
  border: 1.5px dashed rgba(30,77,43,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.photo-frame::before {
  content: "🖼  " attr(data-label);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.55;
  max-width: 220px;
  padding: 0 16px;
}
.photo-frame--wide { min-height: 340px; }

/* ===== Watermarked media component ===== */
/* Drop a real <img> or <video> inside .gf-media__content (replacing the
   placeholder text) and the Greenfield Fortress logo watermark stays put
   automatically — no extra step needed per photo/video. */
.gf-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-deep);
}
.gf-media__content {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(30,77,43,0.10), rgba(217,164,65,0.14)),
    repeating-linear-gradient(45deg, rgba(30,77,43,0.05) 0 2px, transparent 2px 18px);
  border: 1.5px dashed rgba(30,77,43,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gf-media__content::before {
  content: "🖼  " attr(data-label);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.55;
  max-width: 220px;
  padding: 0 16px;
}
.gf-media__content img,
.gf-media__content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--navy-deep);
}
.gf-media__content--illustrated {
  border: none;
  background: none;
}
.gf-media__content--illustrated::before { content: none; }
.gf-media__content--illustrated svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gf-media__watermark-wrap {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(8,18,49,0.55);
  backdrop-filter: blur(1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gf-media__watermark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: 0.98;
  pointer-events: none;
}
.gf-media--tall { min-height: 340px; }

/* ===== Flipping carousel (PWAN-style) ===== */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  box-shadow: 0 20px 50px rgba(15,35,80,0.18);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}
.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.carousel__slide .gf-media { position: absolute; inset: 0; border-radius: 0; min-height: 100%; }
.carousel__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  background: rgba(8,18,49,0.72);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.carousel__dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}
.carousel__dot.is-active { background: var(--gold); }

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(8,18,49,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(2px);
}
.carousel__arrow:hover { background: rgba(8,18,49,0.8); transform: translateY(-50%) scale(1.06); }
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

.carousel__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.25);
  z-index: 5;
}
.carousel__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
}
.carousel__progress-bar.is-animating { transition: width linear; }

@media (max-width: 640px) {
  .carousel__arrow { width: 34px; height: 34px; }
}

/* ===== Top bar ===== */
.topbar { background: var(--navy-deep); color: var(--gold-soft); font-size: 0.8rem; }
.topbar__inner { display: flex; align-items: center; gap: 10px; padding: 8px 24px; flex-wrap: wrap; }
.topbar__divider { opacity: 0.5; }
.topbar__whatsapp { margin-left: auto; color: #fff; font-weight: 700; }

/* ===== Header ===== */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 48px; height: 48px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.brand__text small { color: var(--green); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: 0.9rem; }
.nav a { color: var(--charcoal); opacity: 0.8; }
.nav a:hover, .nav a.is-active { opacity: 1; color: var(--green); }
.nav__cta { flex-shrink: 0; padding: 0.6em 1.3em; }

/* ===== Hero (home) ===== */
.hero { position: relative; padding: 72px 0 0; background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); color: var(--navy); }
.hero__lead { font-size: 1.1rem; max-width: 560px; color: #3a3a3a; }
.hero__actions { display: flex; gap: 16px; margin: 32px 0 40px; flex-wrap: wrap; }
.hero__visual { padding: 0 0 48px; }

.horizon { width: 100%; line-height: 0; }
.horizon svg { width: 100%; height: 90px; display: block; }
.horizon__city { fill: var(--navy); }
.horizon__farm { fill: var(--gold); }

/* ===== Page hero (services / contact) ===== */
.page-hero { padding: 64px 0 40px; background: var(--navy); color: #fff; }
.page-hero h1 { color: #fff; max-width: 720px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-hero .eyebrow { color: var(--gold-soft); }

/* ===== About ===== */
.about { padding: 90px 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about__copy p { color: #444; }

/* ===== Project gallery ===== */
.gallery { padding: 0 0 90px; }
.carousel--gallery { aspect-ratio: 4 / 5; max-width: 420px; margin: 0 auto; }

/* ===== Mission / Vision ===== */
.mv { padding: 0 0 90px; }
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.mv__card--gold { background: linear-gradient(160deg, var(--gold-soft), #fff); border-color: transparent; }
.mv__text { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin: 0; line-height: 1.4; }

/* ===== Core Values ===== */
.values { padding: 0 0 90px; }
.values h2 { font-size: 2.2rem; letter-spacing: 0.04em; }
.values__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.value { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.value__letter {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--navy);
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value strong { color: var(--navy); display: block; margin-bottom: 4px; }
.value p { margin: 0; color: #555; font-size: 0.92rem; }

/* ===== Services ===== */
.services { padding: 90px 0; }
.services--page { padding-top: 70px; }
.service-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 70px; }
.service-block:last-child { margin-bottom: 0; }
.service-block--reverse .service-block__copy { order: 2; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { padding-left: 26px; position: relative; color: #333; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.check-list strong { color: var(--navy); }

/* ===== Why choose us ===== */
.why { background: var(--navy); color: #fff; padding: 70px 0; }
.why .eyebrow { color: var(--gold-soft); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.why__item h4 { color: var(--gold); margin-bottom: 6px; }
.why__item p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.92rem; }

/* ===== CTA ===== */
.cta { background: var(--green-deep); color: #fff; padding: 80px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 480px; margin: 0 auto 32px; color: rgba(255,255,255,0.85); }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FAQ / Accordion ===== */
.faq { padding: 20px 0 90px; }
.accordion { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.accordion__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.accordion__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  margin-left: 12px;
  flex-shrink: 0;
}
.accordion__item[open] summary::after { content: "–"; }
.accordion__item p { margin: 14px 0 0; color: #444; }

/* ===== Contact page ===== */
.contact { padding: 60px 0 90px; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.contact__form button { margin-top: 8px; align-self: flex-start; }
.hidden-field { display: none; }

.contact__info { display: flex; flex-direction: column; gap: 28px; }
.contact__block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact__block p { color: #444; }
.contact__link { display: block; font-weight: 700; color: var(--green); padding: 6px 0; }

/* ===== Offices (shared) ===== */
.offices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.offices__grid--stack { grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
.office { background: var(--cream); border-radius: 10px; padding: 18px; border-top: 4px solid var(--gold); }
.office h4 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.office p { margin: 0; color: #555; font-size: 0.9rem; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 40px 0; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: var(--gold-soft); }
.site-footer__contact a { text-decoration: underline; }
.site-footer__copy { font-size: 0.8rem; margin: 0; }

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25); z-index: 60;
}
.floating-whatsapp svg { width: 28px; height: 28px; color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .about__grid,
  .mv__grid,
  .values__grid,
  .service-block,
  .why__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .service-block--reverse .service-block__copy { order: 0; }
  .offices__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
