/* Porch Swing Studio
   One system: flat grounds, two typefaces (Zodiak for headings, Switzer for text),
   one button, one panel style, one radius scale, equal left and right edges. */
:root {
  --bg: #FBF8F0;        /* porch cream */
  --surface: #F1EBDD;   /* flat panel on cream */
  --band: #B9BEB0;      /* sage brand band */
  --dark: #23282B;
  --ink: #23282B;
  --muted: #586063;     /* labels and meta only */
  --on-dark: #FBF8F0;
  --muted-on-dark: #B4BCBF;
  --honey: #C99E6E;
  --r-s: 10px;
  --r-m: 16px;
  --pad: clamp(20px, 4.2vw, 60px);
  --max: 1320px;
  --head: 84px;
  --serif: "Zodiak", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
::selection { background: var(--band); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--on-dark); }
.skip { position: absolute; left: var(--pad); top: -80px; z-index: 10; background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); width: 100%; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.7vw, 104px); line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; max-width: 34em; text-wrap: pretty; }
.measure { max-width: 34em; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; border-radius: var(--r-s); background: var(--ink); color: var(--on-dark); font: 500 17px/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s; }
.btn:hover { transform: translateY(-2px); background: #0F1315; }
.btn:active { transform: translateY(1px) scale(.985); }
.on-dark .btn { background: var(--on-dark); color: var(--ink); }
.on-dark .btn:hover { background: #fff; }
.link { display: inline-block; font-weight: 500; text-decoration: none; padding: 12px 0; background: linear-gradient(currentColor, currentColor) left calc(100% - 9px) / 100% 1.5px no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 0% 1.5px; background-position: right calc(100% - 9px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Header ---------- */
.site-head { height: var(--head); display: flex; align-items: center; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: block; flex: none; padding-block: 7px; }
.logo img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); }
.site-nav a:not(.btn) { font-weight: 500; font-size: 16px; text-decoration: none; padding: 12px 2px; background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 0% 1.5px no-repeat; transition: background-size .3s var(--ease); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background-size: 100% 1.5px; }
.site-nav .btn { min-height: 46px; padding: 11px 20px; font-size: 16px; }

/* ---------- Sections: one per screen ---------- */
main > section { padding-block: clamp(80px, 12vh, 136px); display: flex; }
main > section > .wrap { display: flex; flex-direction: column; }
.surface { background: var(--surface); }
.on-dark { background: var(--dark); color: var(--on-dark); }
.band { background: var(--band); }
.head-row { display: grid; grid-template-columns: 7fr 5fr; gap: 32px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 6vh, 64px); }
.head-row > div { display: grid; gap: 14px; justify-items: start; }

/* ---------- Hero ---------- */
main > .hero { height: calc(100svh - var(--head)); min-height: 600px; padding-block: clamp(16px, 4vh, 48px) 0; overflow: hidden; }
.hero .wrap { min-height: 0; }
.hero .wrap { gap: clamp(22px, 4vh, 40px); }
.hero-foot { display: grid; grid-template-columns: 7fr 5fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.hero-foot .actions { justify-content: flex-end; }
.stage { display: block; flex: 1 1 0; min-height: 0; background: var(--band); border-radius: var(--r-m) var(--r-m) 0 0; padding: clamp(14px, 3.2vw, 46px) clamp(14px, 3.2vw, 46px) 0; overflow: hidden; }
.stage .shot { height: 100%; border-radius: var(--r-s) var(--r-s) 0 0; overflow: hidden; background: #FBF8F3; }
.stage img { width: 100%; transition: transform .7s var(--ease); transform-origin: top center; }
a.stage:hover img { transform: scale(1.025); }

[data-enter] > * { animation: enter .8s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Pictures of the work ---------- */
.pair { display: grid; grid-template-columns: 8.4fr 3.6fr; gap: clamp(12px, 1.6vw, 24px); flex: 1; min-height: 0; }
.pair.even { grid-template-columns: 1fr 1fr; }
.pic { display: block; border-radius: var(--r-s); overflow: hidden; height: clamp(260px, 54vh, 620px); background: #FBF8F3; }
.pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
a.pic:hover img { transform: scale(1.025); }

/* ---------- Services: three flat panels ---------- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.panel { background: var(--surface); border-radius: var(--r-m); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.panel .price { font: 400 clamp(30px, 3vw, 42px)/1.05 var(--serif); letter-spacing: -0.025em; margin-bottom: 6px; }
.surface .panel { background: var(--bg); }
.panel .ico { margin-bottom: 8px; }
.panel ul { list-style: none; margin: 10px 0 0; padding: 18px 0 0; font-size: 16px; display: grid; gap: 10px; border-top: 1px solid rgba(35, 40, 43, .12); }
.panel li { position: relative; padding-left: 30px; }
.panel li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #DCE0D1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323282B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Icons ---------- */
.ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: #E2E5D8; color: var(--ink); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: var(--on-dark); }
.ico-lg svg { width: 28px; height: 28px; }
.surface .ico:not(.ico-lg) { background: #DCE0D1; }

/* ---------- Included with every site ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 64px); }
.feature { display: grid; gap: 14px; align-content: start; justify-items: start; }
.feature h3 { font-size: clamp(22px, 1.9vw, 27px); margin-top: 6px; }
.feature p { max-width: 30em; }

/* ---------- Process: three steps on a line ---------- */
.steps { --g: clamp(24px, 3vw, 48px); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); position: relative; }
.steps::before { content: ""; position: absolute; left: 34px; right: calc((100% - 2 * var(--g)) / 3 - 34px); top: 33px; border-top: 2px dashed rgba(35, 40, 43, .25); }
.step { position: relative; display: grid; gap: 14px; align-content: start; justify-items: start; }
.step .ico-lg { box-shadow: 0 0 0 10px var(--bg); margin-bottom: 10px; }
.gets { margin-top: 6px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--surface); border-radius: var(--r-s); padding: 10px 14px; font-weight: 500; font-size: 16px; }
.gets span { font-weight: 400; color: var(--muted); }

/* ---------- Rows: a heading beside its line ---------- */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 6vw, 96px); flex: 1; align-items: stretch; }
.rows { display: grid; gap: clamp(28px, 5vh, 52px); align-content: start; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(20px, 3vw, 44px); align-items: baseline; }
.row h3 { display: flex; align-items: center; gap: 16px; }
.row h3 .ico { width: 44px; height: 44px; border-radius: 12px; }
.row h3 .ico svg { width: 21px; height: 21px; }
.row.has-ico { align-items: center; }
.split .row { grid-template-columns: 1fr; gap: 10px; }
.split .row p { padding-left: 60px; }
.split .rows { gap: clamp(24px, 4vh, 40px); }
.ico.warn { background: #F1DFCB; color: #7A4A1F; }
main > section > .wrap > .rows { align-content: start; }
.pair.even .pic img { object-position: left top; }
.split > div:first-child { display: flex; flex-direction: column; }
.split .rows { align-content: start; }
.split .pic { position: relative; height: auto; min-height: 360px; }
.split .pic img { position: absolute; inset: 0; }

/* ---------- Close: the call to action and the swing ---------- */
main > .close { position: relative; overflow: hidden; min-height: 62svh; }
.close .wrap { justify-content: center; gap: 48px; position: relative; }
.close .intro { display: grid; gap: 20px; max-width: min(620px, calc(100% - 200px)); }
.or-mail { font-size: 17px; color: #3B4245; }
.or-mail .link { color: var(--ink); padding: 8px 0; margin-left: 4px; }
.swing { position: absolute; top: 0; right: var(--pad); width: clamp(120px, 22vw, 300px); cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
.swing svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Footer ---------- */
.site-foot { background: var(--bg); color: var(--ink); padding-block: 28px; border-top: 1px solid rgba(35, 40, 43, .1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-foot .logo img { height: 34px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-left: auto; }
.site-foot nav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 0; color: var(--muted); transition: color .15s; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.site-foot small { font-size: 14px; color: var(--muted); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  :root { --head: 72px; }
  .logo img { height: 38px; }
  main > section { min-height: 0; }
  main > .hero { height: calc(100svh - var(--head)); min-height: 620px; }
  .head-row, .hero-foot, .split { grid-template-columns: 1fr; }
  .hero-foot .actions { justify-content: flex-start; }
  .panels { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { left: 33px; right: auto; top: 34px; bottom: 34px; border-top: 0; border-left: 2px dashed rgba(35, 40, 43, .25); }
  .step { padding-left: 92px; }
  .step .ico-lg { position: absolute; left: 0; top: 0; margin: 0; }
  .panel { min-height: 0; }
  .pair, .pair.even { grid-template-columns: 1fr; }
  .pic { height: auto; max-height: 62vh; }
  .pair .pic.tall { width: min(100%, 320px); max-height: 600px; }
  .split .rows, main > section > .wrap > .rows { align-content: start; }
  .split .pic { min-height: 0; height: 62vh; max-height: 560px; }
  .row { grid-template-columns: 1fr; }
  .row p, .split .row p { padding-left: 0; }
  main > .close { min-height: 0; padding-bottom: clamp(140px, 30vw, 220px); }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .step { padding-left: 84px; }
  .site-nav .btn { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .close .intro { max-width: calc(100% - 140px); }
}
@media (max-width: 380px) {
  .logo img { height: 31px; }
  h1 { font-size: 32px; }

  .site-nav { gap: 12px; }
  .site-nav a:not(.btn) { font-size: 15px; }
}

/* ---------- Close section: button and the email ---------- */
.close .intro .actions { margin-top: 8px; }

/* ---------- Contact page ---------- */
main > .contact-page { padding-block: clamp(32px, 6vh, 72px) clamp(72px, 10vh, 120px); }
.contact-grid { display: grid; grid-template-columns: 7.4fr 4.6fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.form-panel { background: #fff; border-radius: var(--r-m); padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 0 0 1px rgba(35, 40, 43, .08); }
.form { display: grid; gap: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 500; font-size: 16px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field textarea { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid rgba(35, 40, 43, .18); border-radius: var(--r-s); padding: 13px 14px; min-height: 52px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: rgba(35, 40, 43, .4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(35, 40, 43, .12); }
.field [aria-invalid="true"] { border-color: #A3402B; background: #FDF6F3; }
.hint { font-size: 15px; color: var(--muted); }
.field-error { font-size: 15px; font-weight: 500; color: #A3402B; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px; background: var(--bg); border: 1.5px solid rgba(35, 40, 43, .18); font-size: 16px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s; }
.choice:hover span { border-color: rgba(35, 40, 43, .45); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-foot .btn { min-width: 200px; }
.form-foot .btn:disabled { opacity: .7; cursor: progress; transform: none; }
.fine { font-size: 14px; color: var(--muted); }
.form-status { background: #FBEDE7; color: #7E2F1F; border-radius: var(--r-s); padding: 14px 16px; font-weight: 500; font-size: 16px; }
.form-sent { display: grid; gap: 18px; justify-items: start; padding-block: clamp(12px, 4vh, 40px); outline: none; }
.form-sent[hidden] { display: none; }
.form-sent h2 { font-size: clamp(30px, 3.4vw, 46px); }

.next-panel { background: var(--surface); border-radius: var(--r-m); padding: clamp(24px, 3vw, 40px); display: grid; gap: 26px; }
.next-panel h2 { font-size: clamp(26px, 2.4vw, 34px); }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.next-steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.next-steps h3 { font-size: 22px; margin-bottom: 4px; }
.next-steps p { font-size: 16px; }
.next-panel .ico { background: #DCE0D1; }
.prefer { padding-top: 22px; border-top: 1px solid rgba(35, 40, 43, .12); display: grid; gap: 2px; justify-items: start; }
.prefer p { font-size: 16px; color: var(--muted); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  /* Close: the swing hangs above the text instead of beside it */
  main > .close { flex-direction: column; min-height: 0; padding-top: 0; padding-bottom: 72px; }
  .close .swing { position: relative; top: auto; right: auto; align-self: flex-end; width: 150px; margin: 0 var(--pad) 8px 0; }
  .close .intro { max-width: 100%; }
  .site-foot nav { margin-left: 0; width: 100%; }
}

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