/* Rāmakat General Contracting — site styles. Mobile-first.
   Look: a tropical jungle at golden hour. Warm cream page, navy + deep teal for structure,
   peach for the key call to action, soft rounded shapes. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../assets/fonts/nunito-latin-ext-900-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../assets/fonts/nunito-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* Palette */
  --teal: #1fb7a8;          /* accent + highlights (decorative: 2.3:1 on cream) */
  --teal-deep: #0b7d73;     /* primary buttons, links (4.6:1 on cream) */
  --teal-deep-hover: #095f57;
  --navy: #0f2a3a;          /* headings, nav bar, dark cards */
  --navy-soft: #1d4252;
  --peach: #f2935c;         /* key call to action */
  --peach-hover: #d9743a;
  --peach-light: #f7b98f;
  --peach-text: #a4501a;    /* text on peach tint */
  --mint: #d6f3ec;
  --peach-tint: #fde4d3;
  --sun: #fdf1c9;
  --teal-tint: #dcf5f1;
  --cream: #fdf5ee;
  --white: #ffffff;
  --ink: #12303f;
  --muted: #4d6571;
  --line: #eadfd5;
  --brick: #b3321c;         /* errors only */

  /* Aliases used by older rules (portal, project pages) */
  --teal-dark: var(--teal-deep);
  --dark: var(--navy);
  --yellow: var(--peach);
  --yellow-light: var(--peach-hover);

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 6px 24px -8px rgba(15, 42, 58, 0.18);
  --max: 1120px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, #fde9dc 0%, #fdf5ee 38%, #e7f6f2 100%);
  background-color: var(--cream);
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));   /* room for the phone nav pill */
}
@media (min-width: 860px) { body { padding-bottom: 0; } }

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

h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Section headings get a small teal-to-peach accent bar */
.section h2::before, .room h2::before, .glance h2::before {
  content: ""; display: inline-block; width: 6px; height: 0.9em; margin-right: 0.5rem;
  border-radius: 3px; vertical-align: -0.08em; background: linear-gradient(180deg, var(--teal), var(--peach));
}
.cta-band h2::before, .visually-hidden::before { display: none; }

a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep-hover); }

[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--peach-light); }

.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.7rem 1.1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.section { padding: 3.5rem 0; }
.section--cream { background: rgba(255, 255, 255, 0.55); }
.section--mint { background: var(--mint); }
.section--peach { background: var(--peach-tint); }
.section--sun { background: var(--sun); }
.section__intro { max-width: 40rem; color: var(--muted); }
.center { text-align: center; }
.center .section__intro { margin-left: auto; margin-right: auto; }

/* Buttons: large, fully rounded */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 56px; padding: 0.8rem 1.75rem;
  font: inherit; font-weight: 800; text-decoration: none; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn--cta { background: var(--peach); color: var(--navy); }
.btn--cta:hover { background: var(--peach-hover); color: var(--navy); }
.btn--teal { background: var(--teal-deep); color: var(--white); }
.btn--teal:hover { background: var(--teal-deep-hover); color: var(--white); }
.btn--outline { background: var(--white); color: var(--teal-deep); box-shadow: 0 2px 10px -4px rgba(15, 42, 58, 0.25); }
.btn--outline:hover { background: var(--teal-tint); color: var(--teal-deep-hover); }
.btn--small { min-height: 48px; padding: 0.55rem 1.2rem; font-size: 0.98rem; white-space: nowrap; }

/* Header: a floating rounded navy bar. On phones the links move to a bottom pill. */
.site-header { position: sticky; top: 0; z-index: 50; padding: 0.6rem 0 0; }
.navbar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--navy); border-radius: 999px; padding: 0.4rem 0.45rem 0.4rem 1.1rem;
  box-shadow: 0 12px 32px -14px rgba(15, 42, 58, 0.6);
}
.wordmark { display: block; margin-right: auto; line-height: 0; border-radius: var(--radius-sm); }
.wordmark img { height: 34px; width: auto; }
@media (min-width: 400px) { .wordmark img { height: 40px; } }
@media (min-width: 860px) { .wordmark img { height: 48px; } }

.navbar nav { display: contents; }
.site-nav {
  list-style: none; margin: 0; display: flex; gap: 0.15rem; padding: 0.3rem;
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(0.75rem + env(safe-area-inset-bottom)); width: min(94vw, 440px);
  background: var(--navy); border-radius: 999px; box-shadow: 0 14px 34px -10px rgba(15, 42, 58, 0.65);
}
.site-nav li { flex: 1; }
.site-nav a {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.4rem 0.2rem;
  font-size: 0.86rem; font-weight: 800; text-decoration: none; color: var(--cream); border-radius: 999px; text-align: center;
}
.site-nav a:hover { background: var(--navy-soft); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--teal); color: var(--navy); }
@media (min-width: 860px) {
  .navbar nav { display: block; margin: 0 auto; }
  .site-nav {
    position: static; transform: none; width: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; gap: 0.25rem;
  }
  .site-nav li { flex: none; }
  .site-nav a { font-size: 1rem; padding: 0.5rem 1rem; }
}

/* Hero: flat layered jungle art with a cream fade so the headline stays readable */
.hero { position: relative; overflow: hidden; padding: 2.5rem 0 4rem; margin: 0.75rem 1rem 0; border-radius: 40px; background: linear-gradient(180deg, #fde9dc, #fdf5ee); }
.hero__art { position: absolute; inset: 0; pointer-events: none; }
.hero__art svg { position: absolute; right: -12%; bottom: 0; width: min(1200px, 150%); height: auto; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 245, 238, 0.92) 0%, rgba(253, 245, 238, 0.6) 55%, rgba(253, 245, 238, 0) 100%);
}
.hero__grid { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; }
.hero h1 { max-width: 14em; }
.hero__text > p { font-size: 1.2rem; max-width: 34rem; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__photo { margin: 0; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px;
  box-shadow: 0 18px 40px -16px rgba(15, 42, 58, 0.55); border: 6px solid var(--white);
}
@media (min-width: 860px) {
  .hero { padding: 4rem 0 6rem; }
  .hero::before { background: linear-gradient(90deg, rgba(253, 245, 238, 0.95) 0%, rgba(253, 245, 238, 0.78) 45%, rgba(253, 245, 238, 0) 78%); }
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .hero__photo { transform: rotate(1.5deg); }
}

.page-hero { background: linear-gradient(120deg, var(--peach-tint), var(--mint)); padding: 2.75rem 0 2.5rem; border-radius: 36px; margin: 0.75rem 1rem 0; }
.page-hero p { color: var(--muted); max-width: 40rem; margin: 0; font-size: 1.15rem; }
.page-hero .crumb a { color: var(--teal-deep); }

/* Trust bar: credential pills */
.trust-bar { position: relative; z-index: 3; margin-top: -2.2rem; }
.trust-bar ul {
  list-style: none; margin: 0 auto; padding: 0 1rem; max-width: var(--max);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
}
.trust-bar li {
  display: flex; align-items: center; gap: 0.45rem; background: var(--white); color: var(--navy);
  font-weight: 800; border-radius: 999px; padding: 0.55rem 1.1rem 0.55rem 0.6rem; box-shadow: var(--shadow); font-size: 1rem;
}
.trust-bar li:last-child { background: var(--peach-tint); color: var(--peach-text); padding-left: 1.1rem; }
.trust-bar svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); flex: none; }

/* Grids + cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 0; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__body .card__link { margin-top: auto; font-weight: 800; }

/* Service tiles: tinted, rounded, with a duotone icon */
.tile { border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tile--mint { background: var(--mint); }
.tile--sun { background: var(--sun); }
.tile--peach { background: var(--peach-tint); }
.tile p { color: var(--ink); }
.tile .card__link { margin-top: auto; font-weight: 800; color: var(--navy); }
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--teal-deep); margin-bottom: 1rem; flex: none;
}
.icon-circle svg { width: 28px; height: 28px; }
.icon-circle--sun { background: var(--sun); color: var(--peach-text); }
.icon-circle--peach { background: var(--peach-tint); color: var(--peach-text); }
.icon-circle--mint { background: var(--mint); color: var(--teal-deep); }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.pill { display: inline-block; background: var(--white); color: var(--navy); font-weight: 800; font-size: 0.88rem; border-radius: 999px; padding: 0.2rem 0.8rem; }

/* Why Rāmakat */
.why { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 540px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why__item { background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.why__item h3 { margin-bottom: 0.3rem; }
.why__item p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Process */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; background: var(--white); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); text-align: left;
}
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--peach); color: var(--navy);
  font-weight: 900; margin-bottom: 0.7rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Reviews placeholder */
.reviews-placeholder {
  border: 2px dashed var(--teal); border-radius: var(--radius); padding: 2rem 1.25rem;
  background: var(--sun); text-align: center; max-width: 40rem; margin: 1.5rem auto 0;
}
.reviews-placeholder p { margin: 0; color: var(--navy); }

/* FAQ */
.faq { max-width: 46rem; margin: 1.5rem auto 0; }
.faq details { background: var(--white); border-radius: 20px; margin-bottom: 0.7rem; padding: 0 1.25rem; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 2.25rem 1rem 0; position: relative;
  font-weight: 800; color: var(--navy); min-height: 56px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--peach-tint); color: var(--peach-text); }
.faq details p { color: var(--muted); padding-bottom: 0.5rem; }

/* Services page */
.service { display: grid; gap: 1.5rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.service ul { padding-left: 1.2rem; color: var(--muted); }
@media (min-width: 860px) {
  .service { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .service:nth-child(even) .service__media { order: 2; }
}

/* Projects */
.project { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.tag {
  display: inline-block; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy); background: var(--mint); border-radius: 999px; padding: 0.25rem 0.8rem; margin-bottom: 0.6rem;
}
.ba { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 700px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba figure, .gallery figure { margin: 0; position: relative; }
.ba img, .gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); box-shadow: var(--shadow); }
.ba .label {
  position: absolute; top: 0.75rem; left: 0.75rem; border-radius: 999px; padding: 0.2rem 0.8rem;
  font-weight: 800; font-size: 0.85rem; background: var(--white); color: var(--navy); box-shadow: var(--shadow);
}
.ba .label--after { background: var(--peach-light); }
figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; }
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.img-contain { object-fit: contain !important; background: var(--white) !important; }

/* About */
.team { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.person__role { color: var(--peach-text); font-weight: 800; margin: -0.4rem 0 0.6rem; }
.person p:last-child { color: var(--muted); margin: 0; }
.feature { display: grid; gap: 1.5rem; align-items: center; }
.feature img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.facts { list-style: none; padding: 0; margin: 1rem 0 0; }
.facts li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.facts li strong { color: var(--teal-deep); }

/* Estimate: a big friendly card on a mint-to-peach gradient */
.estimate-wrap { padding: 0 0 3.5rem; }
.estimate {
  width: calc(100% - 2rem); display: grid; gap: 2rem; padding: 1.5rem; border-radius: 32px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--peach-tint) 100%); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .estimate { grid-template-columns: 1fr 1.3fr; gap: 3rem; padding: 2.5rem; } }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.45rem 0; }
.contact-list svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--white); color: var(--teal-deep); flex: none; }
.contact-list li > a, .contact-list li > span { padding-top: 0.3rem; }
.form {
  background: var(--white); border: 0; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 800; color: var(--ink); }
.field .req { color: var(--brick); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--cream);
  border: 2px solid #7a929e; border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; min-height: 52px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-deep); outline: 3px solid var(--teal-tint); outline-offset: 0; background: var(--white); }
.form__note { font-size: 0.92rem; color: var(--muted); }
.hidden-field { display: none; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--cream); text-align: center; border-radius: 36px; margin: 0 1rem 2rem; }
.cta-band h2 { color: var(--white); }
.cta-band .hero__actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); padding: 3rem 0 1.5rem; font-size: 1rem; border-radius: 36px 36px 0 0; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.25rem 0; }
.site-footer .license { color: var(--peach-light); font-weight: 800; }
.footer-logo { width: 180px; height: auto; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(253, 245, 238, 0.18); margin-top: 2rem; padding-top: 1rem; font-size: 0.9rem; }

[hidden] { display: none !important; }

/* Client portal */
.portal { max-width: 46rem; }
.portal fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.portal legend { font-weight: 800; font-size: 1.15rem; color: var(--teal-dark); margin-bottom: 0.75rem; padding: 0; }
.portal-note { background: var(--teal-tint); border-radius: var(--radius-sm); padding: 0.75rem 1rem; color: var(--teal-deep); }
@media (min-width: 560px) { .form__row--3 { grid-template-columns: 2fr 0.7fr 1fr; } }
.field__label { font-weight: 800; color: var(--ink); }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1rem;
  border: 2px solid #b9c3c2; border-radius: 999px; cursor: pointer; font-weight: 700;
}
.choice:has(input:checked) { border-color: var(--teal-dark); background: var(--teal-tint); }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--teal-dark); margin: 0; }
.photo-list { list-style: none; padding: 0; margin: 0.25rem 0 0.5rem; display: grid; gap: 0.5rem; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) { .photo-list { grid-template-columns: repeat(5, 1fr); } }
.photo-list:empty { display: none; }
.photo-list li { position: relative; }
.photo-list img, .photo-noprev {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; overflow: hidden; word-break: break-all; padding: 0.25rem;
}
.photo-list img { padding: 0; }
.photo-remove {
  position: absolute; top: 0.25rem; right: 0.25rem; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(12, 42, 18, 0.8); color: var(--white); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
#photo-add { align-self: flex-start; cursor: pointer; }
.field:has(#p-photos:focus-visible) #photo-add { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.portal-status { min-height: 1.6em; font-weight: 700; color: var(--teal-dark); }
.portal-status.is-error { color: var(--brick); }

/* Before / after labels, shared */
.recent .label, .compare .label {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; border-radius: 999px; padding: 0.2rem 0.75rem;
  font-weight: 800; font-size: 0.85rem; background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.recent .label--after, .compare .label--after { background: var(--yellow); }
.recent { margin-bottom: 1.5rem; }
.recent figure { margin: 0; position: relative; }
.recent img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.feature--portrait img { aspect-ratio: 3 / 4; max-height: 34rem; }

/* Projects: featured card */
.featured { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.featured__body { padding: 1.5rem; }
.featured__body h3 { font-size: 1.5rem; }
.featured__body h3 a { text-decoration: none; }
.featured__body h3 a:hover { text-decoration: underline; }
@media (min-width: 860px) {
  .featured { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .featured__img img { height: 100%; aspect-ratio: auto; min-height: 22rem; }
  .featured__body { padding: 2rem; }
}
.more-title { margin-top: 1rem; }

/* Project gallery page */
.crumb { margin: 0 0 0.75rem; font-weight: 700; }
.chips { padding: 1.5rem 0 0.5rem; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px;
  border: 2px solid var(--teal-dark); font-weight: 800; text-decoration: none; color: var(--teal-dark);
}
.chips a:hover { background: var(--teal-tint); }
.room { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.room:last-child { border-bottom: 0; }
.room > p { max-width: 40rem; color: var(--muted); }

/* Before / after comparison. Without JS the two photos simply stack (or sit side by side). */
.compare { margin: 1.25rem 0 0; }
.compare--portrait { max-width: 30rem; margin-left: auto; margin-right: auto; }
.compare__stage { display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .compare:not(.compare--portrait) .compare__stage { grid-template-columns: 1fr 1fr; } .compare--portrait .compare__stage { grid-template-columns: 1fr 1fr; max-width: none; } }
.compare__half { position: relative; }
.compare__half img { width: 100%; height: auto; border-radius: var(--radius); background: var(--cream); }
.compare__half--before { order: -1; }
.compare__range, .compare__handle { display: none; }

.js .compare__stage {
  display: block; position: relative; aspect-ratio: var(--ratio); --pos: 50%;
  border-radius: var(--radius); overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.js .compare--portrait { max-width: 26rem; }
.js .compare__half { position: absolute; inset: 0; }
.js .compare__half img { height: 100%; object-fit: cover; border-radius: 0; -webkit-user-drag: none; }
.js .compare__half--after .label { left: auto; right: 0.75rem; }
.js .compare__half--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.js .compare__range {
  display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none;
}
.js .compare__handle {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; z-index: 3;
  background: var(--white); box-shadow: 0 0 0 1px rgba(12, 42, 18, 0.25); pointer-events: none;
}
.js .compare__handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; line-height: 1;
  background: var(--yellow); color: var(--dark); box-shadow: 0 2px 8px rgba(12, 42, 18, 0.35);
}
.js .compare__range:focus-visible ~ .compare__handle::after { outline: 3px solid var(--teal-dark); outline-offset: 3px; }

/* Project pages: property details + highlights, before/after notes, feature blocks */
.glance { display: grid; gap: 1rem; padding: 2rem 0 0.5rem; }
@media (min-width: 860px) { .glance { grid-template-columns: 1fr 1.4fr; } }
.glance__card { background: var(--teal-tint); border-radius: var(--radius); padding: 1.5rem; }
.glance__card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.glance__card ul { margin: 0; padding-left: 1.2rem; }
.glance__card li { padding: 0.15rem 0; }
.compare__notes { display: grid; gap: 0.75rem; margin-top: 0.9rem; }
@media (min-width: 700px) { .compare__notes { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.compare--portrait .compare__notes { grid-template-columns: 1fr; }
.compare__note { color: var(--muted); font-size: 0.98rem; }
.compare__note-label { display: block; font-weight: 800; color: var(--ink); margin-bottom: 0.1rem; }
.compare__note-label--after { color: var(--teal-dark); }
.room .feature { align-items: center; }
.feature__photo { margin: 0; position: relative; }
.feature__photo .label {
  position: absolute; top: 0.75rem; left: 0.75rem; border-radius: 999px; padding: 0.2rem 0.75rem;
  font-weight: 800; font-size: 0.85rem; background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.feature__photo .label--after { background: var(--yellow); }
.room .feature p { margin: 0; font-size: 1.1rem; }
.cards { margin-top: 1.25rem; }
.cards .card h3 a { text-decoration: none; }
.cards .card h3 a:hover { text-decoration: underline; }
.card .tag { align-self: flex-start; }

/* About */
.person { padding: 0; overflow: hidden; }
.person > h3, .person > p { padding-left: 1.5rem; padding-right: 1.5rem; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--teal-tint); margin-bottom: 1.1rem; }
.person__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto !important; border-radius: 0 !important; }
.person__photo--initials { display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 900; color: var(--teal-dark); }
.person > p:last-child { padding-bottom: 1.5rem; }
.facts-list { padding-left: 1.2rem; }
.facts-list li { padding: 0.2rem 0; }
.equipment { max-width: 40rem; }
.gallery--n2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery--n3 { grid-template-columns: repeat(3, 1fr); } }

/* Links on tinted backgrounds use navy (deep teal is 4.3:1 there, under AA) */
.estimate a:not(.btn), .page-hero a:not(.btn), .tile a:not(.btn), .section--mint a:not(.btn),
.section--peach a:not(.btn), .section--sun a:not(.btn) { color: var(--navy); }

/* Before / after side by side (for photos with different shapes) */
.pair { display: grid; gap: 1rem; margin-top: 1rem; align-items: start; }
@media (min-width: 700px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair figure { margin: 0; position: relative; }
.pair img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--cream); }
.pair .label {
  position: absolute; top: 0.75rem; left: 0.75rem; border-radius: 999px; padding: 0.2rem 0.8rem;
  font-weight: 800; font-size: 0.85rem; background: var(--white); color: var(--navy); box-shadow: var(--shadow);
}
.pair .label--after { background: var(--peach-light); }

/* project filters */
.filters { display: none; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.js .filters { display: flex; }
.chip {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 2px solid var(--teal-deep); background: #fff; color: var(--teal-deep);
}
.chip:hover { background: var(--mint, #e6f6f3); }
.chip.is-active { background: var(--teal-deep); color: #fff; }
.chip:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.filter-status { min-height: 1.5rem; margin: 0 0 0.5rem; color: var(--navy); }
[hidden] { display: none !important; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }

/* narrow-phone fixes */
.hero, .hero__art { overflow: clip; }
.estimate > *, .contact-list li, .contact-list a { min-width: 0; }
.contact-list a { overflow-wrap: anywhere; }
.site-footer li a, .footer-bottom a { display: inline-block; padding: 0.15rem 0; }
.site-footer li { padding: 0.15rem 0; }
.hero h1, .page-hero h1 { text-wrap: balance; }
