/* ============================================================
   Biloba Design Studio — landing page
   Plain CSS, no build step. Hostable as static files (GoDaddy).
   ============================================================ */

:root {
  /* Brand palette — drawn from the logo's forest-green ink + warm paper */
  --ink:        #2f3a28;   /* primary forest green (exact match to logo stroke) */
  --ink-deep:   #212c1e;   /* deeper green for dark sections   */
  --ink-soft:   #4a5843;   /* muted green for secondary text   */
  --paper:      #f4f1e9;   /* warm off-white background        */
  --paper-2:    #ece7da;   /* slightly deeper paper            */
  --sage:       #8c9a7d;   /* soft sage                         */
  --sage-soft:  #b7c0a8;
  --accent:     #b06a3b;   /* ochre / terracotta — used sparingly, one accent */
  --line:       rgba(46, 58, 42, 0.18);
  --line-soft:  rgba(46, 58, 42, 0.10);
  --paper-line: rgba(244, 241, 233, 0.22);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --shadow-soft: 0 1px 2px rgba(33, 44, 30, .04), 0 12px 40px -12px rgba(33, 44, 30, .16);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.display {
  font-family: var(--font-display);
  font-weight: 340;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--accent) !important;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---------- ginkgo mark ----------
   Two ways it appears:
   - <img class="brand-mark"/.specimen-mark>  : the logo as-is (olive) on paper
   - <span class="leaf">                       : tinted via CSS mask, for dark sections */
.leaf {
  aspect-ratio: 1 / 1;
  background-color: var(--ink);
  -webkit-mask: url("../assets/biloba-logo.svg") no-repeat center / contain;
          mask: url("../assets/biloba-logo.svg") no-repeat center / contain;
}
.brand-mark { width: 34px; height: 34px; object-fit: contain; }

/* ---------- layout container ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 233, 0.82);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand .leaf { width: 26px; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.34em;
  font-size: 25px;
  padding-left: 0.0em; /* balance the letter-spacing */
}
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.46em;
  color: var(--sage);
  text-transform: uppercase;
  padding-left: 0.1em;
}
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav .btn { text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

/* ============================================================
   Hero — the "specimen sheet"
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 8vw, 7rem);
}
/* thin architectural sheet frame with corner ticks */
.hero .sheet-frame {
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  pointer-events: none;
}
.hero .sheet-frame span {
  position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--ink-soft);
}
.hero .sheet-frame .tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero .sheet-frame .tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero .sheet-frame .bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero .sheet-frame .br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 34ch; }
.hero-copy .eyebrow { margin-bottom: 1.6rem; }
.hero-title {
	    width: 450px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: italic;
  color: var(--ink-soft);
}
.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  max-width: 42ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* specimen: leaf inside a ring with drawing annotations */
.specimen {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 1;
}
.specimen-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}
/* drawing annotations */
.annot {
  position: absolute;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}
.annot--fig { top: 6%; left: 4%; }
.annot--species {
  bottom: 4%; left: 50%; transform: translateX(-50%);
  font-style: italic; text-transform: none; letter-spacing: 0.06em;
  font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-soft);
}
.annot--coord { bottom: 8%; right: 4%; }
.annot .tick { color: var(--accent); }

/* ============================================================
   Ethos band — scientist / architect / builder
   ============================================================ */
.ethos {
  background: var(--ink-deep);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.ethos .leaf.bg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  min-width: 320px;
  background-color: rgba(244, 241, 233, 0.05);
  pointer-events: none;
}
.ethos .wrap { position: relative; }
.ethos .section-label { color: var(--sage-soft); margin-bottom: 2.2rem; }
.triad {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  max-width: 16ch;
}
.triad span { color: var(--sage-soft); }
.ethos-lead {
  max-width: 52ch;
  color: rgba(244, 241, 233, 0.78);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
}

/* ============================================================
   Services
   ============================================================ */
.services { padding: clamp(4rem, 9vw, 8rem) 0; }
.services .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.services .head h2 {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  max-width: 18ch;
}
.services .section-label { margin-bottom: 1.1rem; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.svc {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line);
}
.svc .no {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.svc h3 {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}
.svc p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.svc ul { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.svc li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.svc li:first-child { border-top: 0; }
.svc li .price { color: var(--ink); white-space: nowrap; }
.svc .foot {
  margin-top: auto;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.svc .foot .arrow { transition: transform 0.25s ease; }
.svc:hover .foot .arrow { transform: translateX(4px); }

/* continuity quote */
.continuity {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.continuity blockquote {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 320;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.16;
  color: var(--ink);
}
.continuity .attr {
  margin-top: 1.8rem;
  color: var(--ink-soft);
  max-width: 46ch;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: clamp(4rem, 9vw, 8rem) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact .section-label { margin-bottom: 1.4rem; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  margin-bottom: 1.6rem;
}
.contact-lead { color: var(--ink-soft); max-width: 40ch; margin-bottom: 2.4rem; }
.contact-detail { display: grid; gap: 1.3rem; }
.contact-detail .row .k {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 0.3rem;
}
.contact-detail .row .v { color: var(--ink); font-size: 1.02rem; }
.contact-detail .row a:hover { color: var(--accent); }

/* form */
form.enquiry { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(255,255,255,0.4);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 1.2rem; display: grid; }
.field.two > .field { display: grid; gap: 0.45rem; }
.enquiry .actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 0.4rem; flex-wrap: wrap; }
.enquiry .note { font-size: 0.8rem; color: var(--sage); }
.form-status { font-size: 0.9rem; color: var(--ink-soft); min-height: 1.2em; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: rgba(244,241,233,0.7);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
}
.site-footer .top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--paper-line);
}
.site-footer .brand-mark { width: 42px; height: 42px; }
.site-footer .brand-name { color: var(--paper); }
.site-footer .brand-sub { color: var(--sage-soft); }
.footer-links { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; }
.footer-col .k {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage-soft); margin-bottom: 0.9rem;
}
.footer-col a, .footer-col p { display: block; color: rgba(244,241,233,0.72); font-size: 0.92rem; padding: 0.2rem 0; }
.footer-col a:hover { color: var(--paper); }
.site-footer .bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 2rem; flex-wrap: wrap;
  font-size: 0.76rem; letter-spacing: 0.06em;
  color: rgba(244,241,233,0.5);
}

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .specimen { grid-row: 1; width: min(74%, 360px); }
  .svc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* keep only the Enquire button on small screens */
}
@media (max-width: 520px) {
  .field.two { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero .sheet-frame { inset: 0.75rem; }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
