/* Fotergeia — component styles for the native block markup.
   Tokens come from theme.json; this file only styles the composed sections. */

:root{
  --ftg-ink:#1A1A1A; --ftg-muted:#5C5C5C; --ftg-soft:#6B6B6B;
  --ftg-accent:#356E12; --ftg-lime:#6FCB2F; --ftg-lime-light:#9AF853;
  --ftg-deep:#1F3D14; --ftg-deepest:#12240A;
  --ftg-surface:#F4F7EE; --ftg-tint:#E7F2DC;
  --ftg-line:#E7EDE4; --ftg-line-strong:#D8E0D2;
  --ftg-cta:linear-gradient(135deg,#9AF853,#6FCB2F);
  --ftg-shadow-card:0 24px 60px rgba(26,26,26,.10);
  --ftg-shadow-cta:0 8px 24px rgba(111,203,47,.35);
  --ftg-r-card:20px; --ftg-r-chip:14px; --ftg-r-pill:999px;
}

body{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }

/* ---------- Section rhythm ---------- */
.ftg-section{ padding-block:clamp(56px,7vw,96px); }
.ftg-section.has-surface-background-color,
.ftg-tint-ground{ background:var(--ftg-surface); }
.ftg-dark-ground{ background:linear-gradient(180deg,#1F3D14,#12240A); color:#fff; }
.ftg-dark-ground :where(h1,h2,h3,h4,p,li){ color:#fff; }
.ftg-dark-ground .ftg-lead{ color:rgba(255,255,255,.72); }
.ftg-lead{ color:var(--ftg-muted); font-size:19px; line-height:1.6; max-width:62ch; }
.ftg-eyebrow{ font-family:Manrope,sans-serif; font-weight:700; font-size:12.5px;
  text-transform:uppercase; letter-spacing:.08em; color:var(--ftg-accent); margin-bottom:10px; }
.ftg-dark-ground .ftg-eyebrow{ color:var(--ftg-lime-light); }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-fotergeia-primary .wp-block-button__link{
  background:var(--ftg-cta); color:var(--ftg-deepest);
  box-shadow:var(--ftg-shadow-cta); border:0; transition:transform .2s ease;
}
.wp-block-button.is-style-fotergeia-primary .wp-block-button__link:hover{ transform:translateY(-2px); }
.wp-block-button.is-style-fotergeia-ghost .wp-block-button__link{
  background:#fff; color:var(--ftg-deep); border:1px solid var(--ftg-line-strong); box-shadow:none;
}
.wp-block-button.is-style-fotergeia-ghost .wp-block-button__link:hover{ background:var(--ftg-surface); }
.ftg-dark-ground .wp-block-button.is-style-fotergeia-ghost .wp-block-button__link{
  background:transparent; color:#fff; border-color:rgba(255,255,255,.28);
}

/* ---------- Cards ---------- */
.ftg-card{
  background:#fff; border:1px solid var(--ftg-line); border-radius:var(--ftg-r-card);
  padding:28px; transition:box-shadow .25s ease, transform .25s ease; height:100%;
}
.ftg-card:hover{ box-shadow:var(--ftg-shadow-card); transform:translateY(-3px); }
.ftg-card h3{ font-size:20px; margin:0 0 8px; }
.ftg-card p{ color:var(--ftg-muted); font-size:15.5px; margin:0; }
.ftg-card--dark{ background:var(--ftg-deep); border-color:rgba(255,255,255,.10); color:#fff; }
.ftg-card--dark p{ color:rgba(255,255,255,.7); }
.ftg-card figure,.ftg-card img{ border-radius:var(--ftg-r-chip); overflow:hidden; }

/* ---------- Hero ---------- */
.ftg-hero{ position:relative; background:linear-gradient(180deg,#1F3D14,#12240A); color:#fff; overflow:hidden; }
.ftg-hero :where(h1,h2,p){ color:#fff; }
.ftg-hero h1{ letter-spacing:-.02em; }
.ftg-hero .ftg-lead{ color:rgba(255,255,255,.78); }
.ftg-hero__media img{ border-radius:var(--ftg-r-card); box-shadow:0 30px 80px rgba(0,0,0,.35); }
.ftg-hero__stats{ display:flex; flex-wrap:wrap; gap:32px; margin-top:36px; }
.ftg-hero__stat b{ display:block; font-family:Manrope,sans-serif; font-weight:800;
  font-size:32px; color:var(--ftg-lime-light); line-height:1; }
.ftg-hero__stat span{ font-size:13.5px; color:rgba(255,255,255,.65); }

/* ---------- Stats strip ---------- */
.ftg-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.ftg-stats > div{ text-align:center; }
.ftg-stats b{ display:block; font-family:Manrope,sans-serif; font-weight:800; font-size:40px;
  color:var(--ftg-accent); line-height:1; }
.ftg-stats span{ font-size:14px; color:var(--ftg-muted); }

/* ---------- ROI calculator ---------- */
.ftg-roi{ background:var(--ftg-deep); border-radius:var(--ftg-r-card); padding:clamp(24px,4vw,44px); color:#fff; }
.ftg-roi__grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.ftg-roi label{ display:block; font-family:Manrope,sans-serif; font-weight:700; font-size:14px;
  color:rgba(255,255,255,.75); margin-bottom:10px; }
.ftg-roi output{ font-family:Manrope,sans-serif; font-weight:800; color:var(--ftg-lime-light); }
.ftg-roi input[type=range]{ width:100%; -webkit-appearance:none; appearance:none; height:6px;
  border-radius:999px; background:rgba(255,255,255,.18); outline:none; margin-bottom:26px; }
.ftg-roi input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:22px; height:22px;
  border-radius:50%; background:var(--ftg-cta); box-shadow:var(--ftg-shadow-cta); cursor:pointer; }
.ftg-roi input[type=range]::-moz-range-thumb{ width:22px; height:22px; border:0; border-radius:50%;
  background:#9AF853; box-shadow:var(--ftg-shadow-cta); cursor:pointer; }
.ftg-roi input[type=range]:focus-visible{ outline:2px solid var(--ftg-lime-light); outline-offset:4px; }
.ftg-roi__out{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.ftg-roi__out div{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:var(--ftg-r-chip); padding:18px; }
.ftg-roi__out b{ display:block; font-family:Manrope,sans-serif; font-weight:800; font-size:28px;
  color:var(--ftg-lime-light); line-height:1.1; }
.ftg-roi__out span{ font-size:13px; color:rgba(255,255,255,.6); }
.ftg-roi__note{ font-size:12.5px; color:rgba(255,255,255,.5); margin-top:18px; }

/* ---------- Process timeline ---------- */
.ftg-steps__bars{ display:grid; grid-auto-flow:column; gap:8px; margin-bottom:32px; }
.ftg-steps__bar{ background:none; border:0; padding:0; cursor:pointer; text-align:left; }
.ftg-steps__bar i{ display:block; height:4px; border-radius:999px; background:rgba(255,255,255,.14);
  transition:background .3s ease; }
.ftg-steps__bar[aria-selected=true] i{ background:linear-gradient(90deg,#9AF853,#6FCB2F); }
.ftg-steps__bar b{ display:block; font-family:Manrope,sans-serif; font-weight:800; font-size:13px;
  color:rgba(255,255,255,.58); margin-top:12px; transition:color .3s ease; }
.ftg-steps__bar[aria-selected=true] b{ color:var(--ftg-lime-light); }
.ftg-steps__bar span{ display:block; font-size:13.5px; color:rgba(255,255,255,.62); margin-top:2px; }
.ftg-steps__bar[aria-selected=true] span{ color:#fff; }
.ftg-steps__panel h3{ font-size:30px; margin:0 0 12px; }
.ftg-steps__panel p{ color:rgba(255,255,255,.75); max-width:65ch; }

/* ---------- Project gallery + filter ---------- */
.ftg-filter{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:32px; }
.ftg-filter button{ font-family:Manrope,sans-serif; font-weight:700; font-size:14px;
  padding:10px 20px; border-radius:var(--ftg-r-pill); border:1px solid var(--ftg-line-strong);
  background:#fff; color:var(--ftg-deep); cursor:pointer; transition:background .2s, color .2s; }
.ftg-filter button[aria-pressed=true]{ background:var(--ftg-deep); color:var(--ftg-lime-light); border-color:var(--ftg-deep); }
.ftg-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ftg-grid > [hidden]{ display:none !important; }
.ftg-project figure{ margin:0; border-radius:var(--ftg-r-card); overflow:hidden; }
.ftg-project img{ width:100%; height:260px; object-fit:cover; display:block; }
.ftg-project h3{ font-size:18px; margin:14px 0 4px; }
.ftg-project p{ font-size:14.5px; color:var(--ftg-muted); margin:0; }

/* ---------- Testimonials ---------- */
.ftg-testi{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; padding-bottom:8px; }
.ftg-testi::-webkit-scrollbar{ display:none; }
.ftg-testi > figure{ flex:0 0 min(420px,86vw); scroll-snap-align:start; margin:0;
  background:#fff; border:1px solid var(--ftg-line); border-radius:var(--ftg-r-card); padding:28px; }
.ftg-testi blockquote{ margin:0 0 16px; font-size:16.5px; line-height:1.6; color:var(--ftg-ink); }
.ftg-testi figcaption{ font-family:Manrope,sans-serif; font-weight:700; font-size:14px; color:var(--ftg-deep); }
.ftg-testi figcaption span{ display:block; font-family:Inter,sans-serif; font-weight:400;
  font-size:13px; color:var(--ftg-soft); }
.ftg-testi-nav{ display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }
.ftg-testi-nav button{ width:44px; height:44px; border-radius:50%; border:1px solid var(--ftg-line-strong);
  background:#fff; cursor:pointer; color:var(--ftg-deep); }
.ftg-testi-nav button:hover{ background:var(--ftg-surface); }

/* ---------- FAQ ---------- */
.ftg-faq details{ border-bottom:1px solid var(--ftg-line); padding:22px 0; }
.ftg-faq summary{ font-family:Manrope,sans-serif; font-weight:700; font-size:17.5px;
  cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:20px;
  align-items:flex-start; color:var(--ftg-ink); }
.ftg-faq summary::-webkit-details-marker{ display:none; }
.ftg-faq summary::after{ content:'+'; font-size:24px; line-height:1; color:var(--ftg-accent); flex-shrink:0; }
.ftg-faq details[open] summary::after{ content:'\2212'; }
.ftg-faq details p{ margin:14px 0 0; color:var(--ftg-muted); max-width:70ch; }

/* ---------- Prose (articles) ---------- */
.ftg-prose{ max-width:700px; margin-inline:auto; }
.ftg-prose p,.ftg-prose li{ font-size:17px; line-height:1.75; color:#2E2E2E; }
.ftg-prose h2{ margin-top:2em; }
.ftg-prose h3{ margin-top:1.6em; }
.ftg-prose img{ border-radius:var(--ftg-r-card); }
.ftg-prose blockquote{ background:var(--ftg-surface); border-radius:var(--ftg-r-chip);
  padding:22px 26px; border-left:3px solid var(--ftg-lime); }

/* ---------- Check lists ---------- */
.wp-block-list.is-style-fotergeia-checks{ list-style:none; padding-left:0; }
.wp-block-list.is-style-fotergeia-checks li{ position:relative; padding-left:32px; margin-bottom:12px; }
.wp-block-list.is-style-fotergeia-checks li::before{
  content:''; position:absolute; left:0; top:.45em; width:18px; height:18px; border-radius:50%;
  background:var(--ftg-tint);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23356E12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size:12px; background-position:center; background-repeat:no-repeat;
}
.ftg-dark-ground .wp-block-list.is-style-fotergeia-checks li::before{ background-color:rgba(154,248,83,.16); }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form{ display:grid; gap:16px; }
.wpcf7 .ftg-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.wpcf7 label{ font-family:Manrope,sans-serif; font-weight:700; font-size:14px;
  color:var(--ftg-deep); display:block; }
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],
.wpcf7 select,.wpcf7 textarea{
  width:100%; margin-top:7px; padding:13px 15px; font-family:Inter,sans-serif; font-size:15px;
  color:var(--ftg-ink); background:#fff; border:1px solid var(--ftg-line-strong);
  border-radius:var(--ftg-r-chip); transition:border-color .2s, box-shadow .2s;
}
.wpcf7 textarea{ resize:vertical; min-height:130px; }
.wpcf7 :where(input,select,textarea):focus{
  outline:none; border-color:var(--ftg-lime); box-shadow:0 0 0 3px rgba(111,203,47,.18);
}
.wpcf7 ::placeholder{ color:#9A9A9A; }
.wpcf7 .wpcf7-list-item{ margin:0; }
.wpcf7 .ftg-consent{ font-size:13.5px; color:var(--ftg-muted); line-height:1.5; }
.wpcf7 .ftg-consent a{ color:var(--ftg-accent); text-decoration:underline; }
.wpcf7 input[type=submit]{
  font-family:Manrope,sans-serif; font-weight:800; font-size:15px; color:var(--ftg-deepest);
  background:var(--ftg-cta); border:0; border-radius:var(--ftg-r-pill); padding:15px 32px;
  cursor:pointer; box-shadow:var(--ftg-shadow-cta); transition:transform .2s;
}
.wpcf7 input[type=submit]:hover{ transform:translateY(-2px); }
.wpcf7 .wpcf7-not-valid-tip{ color:#B3261E; font-size:13px; margin-top:6px; }
.wpcf7 .wpcf7-response-output{ border-radius:var(--ftg-r-chip); border-width:1px; padding:14px 18px;
  font-size:14.5px; margin:8px 0 0; }
.ftg-dark-ground .wpcf7 label{ color:rgba(255,255,255,.85); }
.ftg-dark-ground .wpcf7 .ftg-consent{ color:rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .ftg-roi__grid{ grid-template-columns:1fr; gap:28px; }
  .ftg-grid{ grid-template-columns:repeat(2,1fr); }
  .ftg-stats{ grid-template-columns:repeat(2,1fr); row-gap:32px; }
  .ftg-steps__bars{ grid-auto-flow:row; grid-template-columns:repeat(2,1fr); }
  .wpcf7 .ftg-form-row{ grid-template-columns:1fr; }
}
@media (max-width:600px){
  .ftg-grid{ grid-template-columns:1fr; }
  .ftg-roi__out{ grid-template-columns:1fr; }
  .ftg-hero__stats{ gap:22px; }
  .ftg-project img{ height:220px; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .ftg-card:hover,.wp-block-button__link:hover,.wpcf7 input[type=submit]:hover{ transform:none; }
}