/* Codiak Landscaping
   Light, garden-estate feel: limestone pages, evergreen type, sage accents.
   Section heads are centred so the page reads top to bottom in one clear line. */
:root {
  --limestone: #F3F0E8;
  --paper: #FBFAF6;
  --white: #FFFFFF;
  --evergreen: #1B3022;
  --sage: #4A6B53;
  --sage-tint: #E4E8DF;
  --ink: #1E1E1C;
  --ink-soft: #585B54;
  --line: rgba(27, 48, 34, .14);
  --straw: #CDAE72;
  --on-dark: #EEEBE2;
  --on-dark-soft: rgba(238, 235, 226, .7);
  --line-dark: rgba(238, 235, 226, .16);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --head-h: 72px;
  --section: clamp(88px, 11vw, 150px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); overflow-x: clip; }
html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--limestone); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (max-width: 699px) { body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--white); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--evergreen); color: var(--white); border-radius: 999px; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; color: var(--evergreen); text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--sage); }
h2 { font-size: clamp(40px, 5.4vw, 72px); }
h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.kicker { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 22px); color: var(--sage); }
.section { padding: var(--section) 0; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); }
.section__head h2 { margin-top: 10px; }
.section__lede { margin: 20px auto 0; max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-soft); }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--evergreen); color: var(--white);
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--sage); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--wide { width: 100%; }
.link { font-weight: 600; color: var(--evergreen); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease), color .3s; }
.link:hover { color: var(--sage); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- header ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); --hc: var(--on-dark); transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease); }
.head.is-solid { --hc: var(--evergreen); background: rgba(243, 240, 232, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.head.is-hidden { transform: translateY(-100%); }
.head__bar { display: flex; align-items: center; gap: 24px; height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.logo { display: inline-flex; flex-direction: column; line-height: 1; margin-right: auto; color: var(--evergreen); }
.head .logo, .head .head__phone, .head .menu-btn, .head .nav { color: var(--hc); transition: color .4s var(--ease); }
.logo__img { display: block; width: auto; height: 46px; }
.head .logo { position: relative; }
.head .logo__img--dark { position: absolute; inset: 0 auto auto 0; opacity: 0; transition: opacity .4s var(--ease); }
.head .logo__img--light { transition: opacity .4s var(--ease); }
.head.is-solid .logo__img--dark, .head.is-open .logo__img--dark { opacity: 1; }
.head.is-solid .logo__img--light, .head.is-open .logo__img--light { opacity: 0; }
.foot .logo__img { height: 60px; }
@media (max-width: 559px) { .logo__img { height: 38px; } }
.head:not(.is-solid) .btn--sm { background: var(--on-dark); color: var(--evergreen); }
.head.is-open { --hc: var(--evergreen); }
.logo__mark { font-family: var(--serif); font-size: 29px; }
.logo__sub { margin-top: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--sage); }
.nav { display: none; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav a { opacity: .85; transition: opacity .3s; }
.nav a:hover { opacity: 1; }
.head__actions { display: flex; align-items: center; gap: 8px; }
.head__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; font-size: 14.5px; font-weight: 600; color: var(--evergreen); font-variant-numeric: tabular-nums; }
.head__phone svg { width: 18px; height: 18px; }
.head__phone span, .head .long { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--evergreen); cursor: pointer; }
.menu-btn span { display: grid; }
.menu-btn i { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn i + i { margin-top: 6px; }
.head.is-open .menu-btn i:first-child { transform: translateY(3.75px) rotate(45deg); }
.head.is-open .menu-btn i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: center; padding: var(--head-h) var(--gutter) 40px; background: var(--limestone); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu ol { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li a { display: block; padding: 10px 0; font-family: var(--serif); font-size: clamp(36px, 10vw, 52px); line-height: 1.1; color: var(--evergreen); }
.menu__foot { margin-top: 32px; text-align: center; }
@media (min-width: 560px) { .head .long { display: inline; } }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-btn, .menu { display: none; }
  .head__phone span { display: inline; }
  .head__phone { padding: 0 8px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--evergreen); color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 62%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(16,26,19,.66) 0%, rgba(16,26,19,0) 30%),
  linear-gradient(0deg, rgba(16,26,19,.88) 0%, rgba(16,26,19,.42) 40%, rgba(16,26,19,0) 68%); }
.hero__inner { position: relative; z-index: 1; padding-top: calc(var(--head-h) + 40px); padding-bottom: clamp(40px, 7vh, 80px); }
.hero .kicker { color: var(--straw); }
.hero h1 { margin-top: 12px; font-size: clamp(54px, 9vw, 140px); line-height: .93; letter-spacing: -.02em; max-width: 11ch; color: var(--on-dark); }
.hero h1 em { color: var(--straw); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(24px, 3.5vw, 40px); }
.hero__lede { max-width: 40ch; font-size: clamp(16px, 1.3vw, 18.5px); color: rgba(238,235,226,.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 699px) {
  .hero__media img { object-position: 50% 70%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(16,26,19,.6) 0%, rgba(16,26,19,.5) 40%, rgba(16,26,19,.9) 100%); }
}
.btn--straw { background: var(--straw); color: var(--evergreen); }
.btn--straw:hover { background: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(238,235,226,.5); }
.btn--ghost:hover { background: rgba(238,235,226,.12); }

/* ---------- dark sections ---------- */
.dark { position: relative; background: var(--evergreen); color: var(--on-dark); }
.dark h2, .dark h3 { color: var(--on-dark); }
.dark h2 em { color: var(--straw); }
.dark .kicker { color: var(--straw); }
.dark .section__lede, .dark .ba__note, .dark .steps-photos p { color: var(--on-dark-soft); }
.dark .steps-photos b { color: var(--on-dark); }
.dark .ba, .dark .sp__img { background: rgba(238,235,226,.06); }
.dark .contact-list { border-color: var(--line-dark); }
.dark .contact-list li { border-color: var(--line-dark); }
.dark .contact-list span { color: var(--on-dark-soft); }
.dark .contact-list a { color: var(--on-dark); }
.dark .contact-list a:hover { color: var(--straw); }
.dark .form { box-shadow: none; color: var(--ink); }
.curve { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(32px, 5vw, 80px); color: var(--evergreen); }
.curve--down { top: calc(100% - 1px); bottom: auto; transform: scale(-1, -1); }
.project { background: var(--evergreen); }
.reveal-clip { will-change: clip-path; }

/* ---------- services ---------- */
.cards { display: grid; gap: clamp(20px, 2.4vw, 32px); }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sage-tint); }
.card__img picture, .card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img img { transition: transform 1.2s var(--ease); }
@media (hover: hover) { .card:hover .card__img img { transform: scale(1.04); } }
.card__img--winter { display: grid; place-items: center; background: linear-gradient(160deg, #E9EDEE 0%, #CDD6D8 100%); }
.card__img--winter p { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 7vw, 96px); color: #5E7178; }
.card__body { padding: clamp(22px, 2.6vw, 34px); }
.card__body p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- before / after + steps ---------- */
.ba { --x: 50%; position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sage-tint); user-select: none; touch-action: pan-y; isolation: isolate; }
@media (min-width: 900px) { .ba { aspect-ratio: 16 / 10; } }
.ba__before, .ba__after { position: absolute; inset: 0; }
.ba picture, .ba img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ba__after { clip-path: inset(0 0 0 var(--x)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: clamp(27px, var(--x), calc(100% - 27px)); width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--evergreen); box-shadow: 0 6px 24px rgba(0,0,0,.25); pointer-events: none; }
.ba__knob svg { width: 24px; height: 24px; }
.ba__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--evergreen); font-size: 12.5px; font-weight: 600; pointer-events: none; }
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }
.ba input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.ba input:focus-visible ~ .ba__knob { outline: 2px solid var(--sage); outline-offset: 4px; }
.ba__note { max-width: 1100px; margin: 16px auto 0; text-align: center; font-size: 14px; color: var(--ink-soft); }

.steps-photos { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 900px) { .steps-photos { grid-template-columns: repeat(4, 1fr); } }
.sp__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sage-tint); }
.sp__img picture, .sp__img img { width: 100%; height: 100%; object-fit: cover; }
.steps-photos p { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.steps-photos b { color: var(--evergreen); font-weight: 600; }

/* ---------- gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { margin: 0; }
.tile button { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--sage-tint); cursor: zoom-in; aspect-ratio: 1 / 1; }
.tile picture, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile img { transition: transform 1.2s var(--ease); }
@media (hover: hover) { .tile button:hover img { transform: scale(1.04); } }
.tile figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.work__more { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 28, 22, .96); color: var(--white); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 64px 16px 8px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 16px var(--gutter) 24px; }
.lightbox__cap { margin-right: auto; font-size: 14px; color: rgba(255,255,255,.75); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); cursor: pointer; transition: background-color .3s; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 20px; height: 20px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }

/* ---------- how it works ---------- */
.process { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); } }
.steps li { padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); background: var(--white); text-align: center; }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-tint); font-family: var(--serif); font-size: 22px; color: var(--evergreen); }
.steps h3 { margin-top: 16px; }
.steps p { margin: 10px auto 0; max-width: 30ch; color: var(--ink-soft); }
.area { margin-top: clamp(36px, 4vw, 56px); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); color: var(--sage); }

/* ---------- quote ---------- */
.quote__grid { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 1000px) { .quote__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; } }
.quote__intro h2 { margin-top: 10px; }
.quote__intro .section__lede { margin-left: 0; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: 14px; color: var(--ink-soft); }
.contact-list a { font-weight: 600; color: var(--evergreen); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--sage); }

.form { display: grid; gap: 20px; padding: clamp(22px, 3.4vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 24px 60px -30px rgba(27,48,34,.25); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field > label, .form legend { font-size: 14px; font-weight: 600; color: var(--evergreen); }
.field small { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 16px; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: var(--white); box-shadow: 0 0 0 3px rgba(74,107,83,.15); }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 10px; }
.checks { display: grid; gap: 8px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 15px; cursor: pointer; transition: border-color .3s, background-color .3s; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid rgba(27,48,34,.35); border-radius: 5px; background: var(--white); transition: background-color .3s, border-color .3s; }
.check i::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .3s var(--ease); }
.check:has(input:checked) { border-color: var(--sage); background: var(--sage-tint); }
.check input:checked + i { background: var(--evergreen); border-color: var(--evergreen); }
.check input:checked + i::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--sage); outline-offset: 2px; }
.form__status { padding: 14px 16px; border-radius: 10px; background: var(--sage-tint); font-size: 14.5px; color: var(--evergreen); }
.form__status[hidden] { display: none; }

/* ---------- footer ---------- */
.foot { background: #141B16; color: rgba(255,255,255,.8); padding: clamp(56px, 7vw, 88px) 0 28px; }
.foot .logo { color: var(--white); }
.foot .logo__sub { color: #A9B8A6; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1fr auto; align-items: end; } }
.foot__about { margin-top: 14px; font-size: 15px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
@media (min-width: 800px) { .foot__links { text-align: right; } }
.foot__links a { color: var(--white); overflow-wrap: anywhere; }
.foot__links a:hover { color: #C9D5C4; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.foot__bottom a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.35); }
.foot__bottom a:hover { border-color: var(--white); }

/* ---------- mobile quick contact ---------- */
.mobile-bar { position: fixed; inset: auto 0 0; z-index: 48; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: rgba(20,27,22,.96); box-shadow: 0 -1px 0 rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mobile-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--on-dark); }
.mobile-bar a:first-child { border: 1px solid rgba(238,235,226,.38); }
.mobile-bar a:last-child { background: var(--straw); color: var(--evergreen); }
@media (min-width: 700px) { .mobile-bar { display: none; } }

/* ---------- motion (only when GSAP runs) ---------- */
.motion .hero [data-rv] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
