/* Lylah's Cleaning — the site is her business card at full size.
   Card front = black with gold foil. Card back = cream with black serif type.
   Sections alternate between those two sides. */

:root {
  --ink: #0e0f12;        /* card front */
  --ink-2: #17181c;
  --gold: #d9be6e;       /* foil */
  --gold-deep: #7a5c14;  /* gold that stays readable on cream */
  --paper: #f1ebdb;      /* card back */
  --paper-rule: #cfc6ad;
  --text-on-ink: #ece5d2;
  --soft-on-ink: #b9b2a0;
  --text-on-paper: #1b1a17;
  --soft-on-paper: #4d4a41;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Gill Sans", "Trebuchet MS", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-ink);
  font: 400 1.0625rem/1.6 var(--sans);
  padding-bottom: 64px; /* room for the phone dock */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 12px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); }

/* letterspaced caps, like the name on the back of her card */
.tracked {
  font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.tracked--ink { color: var(--gold-deep); }

h2 {
  font: 500 clamp(2rem, 5.2vw, 3.5rem)/1.04 var(--serif);
  letter-spacing: -0.012em;
  margin-top: 14px;
}

.flourish { width: 132px; opacity: 0.9; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 26px;
  font: 600 1.0625rem/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--gold); border-radius: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 5px 5px 0 rgba(217, 190, 110, 0.28); }
.btn--line { background: transparent; color: var(--gold); }
.btn:hover { transform: translate(-1px, -1px); }
.btn--gold:hover { box-shadow: 7px 7px 0 rgba(217, 190, 110, 0.28); }
.btn--line:hover { background: rgba(217, 190, 110, 0.1); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 900px);
  display: flex; flex-direction: column;
  padding: 22px var(--pad) 0;
  background:
    radial-gradient(90% 70% at 18% 62%, rgba(217, 190, 110, 0.09), transparent 62%),
    var(--ink);
}
.hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero__toplink {
  font: 600 1.25rem/1 var(--serif); letter-spacing: 0.03em; color: var(--gold);
  text-decoration: none; padding: 12px 0; min-height: 46px; display: inline-flex; align-items: center;
  font-variant-numeric: lining-nums;
}
.hero__toplink:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero__grid {
  flex: 1; display: grid; align-items: center;
  grid-template-columns: 1fr; gap: 8px;
  max-width: 1320px; width: 100%; margin: 0 auto;
  padding-block: 28px 44px;
}
.hero__figure { width: min(62vw, 300px); margin: 0 auto -6px; }
.hero__name { width: min(100%, 560px); }
.hero__tag { font: 600 clamp(1rem, 3.9vw, 1.35rem)/1.3 var(--sans); color: var(--gold); margin-top: 6px; }
.hero .flourish { margin: 18px 0 16px; }
.hero h1 {
  font: 500 clamp(1.9rem, 6.6vw, 3.6rem)/1.04 var(--serif);
  letter-spacing: -0.014em; max-width: 17ch; color: var(--text-on-ink);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__actions .btn { flex: 1 1 200px; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .hero__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); padding-block: 12px 0; align-items: end; }
  /* she stands on the bottom edge of the black and runs off the left side */
  .hero__figure { width: 122%; max-width: none; margin: 0 0 -7% -22%; align-self: end; }
  .hero__copy { align-self: center; padding-bottom: 64px; }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* one move on load: the card settles in. Nothing else on the page animates.
   Movement only, never opacity 0, so the hero can never get stuck invisible. */
@media (prefers-reduced-motion: no-preference) {
  .hero__figure { animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero__copy { animation: settle 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  @keyframes settle { from { opacity: 0.55; translate: 0 18px; } }
}

/* ---------- cream sections ---------- */
.paper { background: var(--paper); color: var(--text-on-paper); padding-block: clamp(64px, 10vw, 128px); }
.paper p { color: var(--soft-on-paper); }

.services__grid { display: grid; gap: 40px; }
.services__intro p:last-child { margin-top: 18px; max-width: 34ch; }

.ledger { border-top: 1.5px solid var(--text-on-paper); }
.ledger li {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 6px 14px; align-items: baseline;
  padding: 20px 0 22px; border-bottom: 1px solid var(--paper-rule);
}
.ledger__n { font: italic 500 1.5rem/1 var(--serif); color: var(--gold-deep); }
.ledger h3 { font: 600 clamp(1.5rem, 4.6vw, 2.05rem)/1.1 var(--serif); color: var(--text-on-paper); letter-spacing: -0.005em; }
.ledger p { margin-top: 4px; }

@media (min-width: 860px) {
  .services__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 110px); }
  .services__intro { position: sticky; top: 40px; align-self: start; }
  .ledger li { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .ledger li > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .ledger p { margin-top: 0; }
}

/* ---------- the phone number ---------- */
.ink { background: var(--ink); color: var(--text-on-ink); }
.price { padding-block: clamp(72px, 11vw, 150px) clamp(64px, 9vw, 120px); overflow: hidden; }
.price__lead { max-width: 22ch; color: var(--text-on-ink); }
.price__lead em { font-style: italic; color: var(--gold); }
.price__phone {
  display: block; width: max-content; max-width: none;
  margin: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px) -0.04em;
  font: 600 clamp(3.1rem, 16.6vw, 15rem)/0.9 var(--serif);
  letter-spacing: -0.03em; color: var(--gold); text-decoration: none;
  font-variant-numeric: lining-nums;
}
.price__phone:hover { text-decoration: underline; text-decoration-thickness: 0.03em; text-underline-offset: 0.08em; }
.price__steps { max-width: 44ch; color: var(--soft-on-ink); font-size: 1.125rem; border-top: 1px solid rgba(217, 190, 110, 0.4); padding-top: 20px; }

/* ---------- area + owner ---------- */
.area__grid { display: grid; gap: 48px; }
.area__big { font-size: clamp(2.6rem, 9vw, 6rem); line-height: 0.95; letter-spacing: -0.02em; max-width: 9ch; }
.area__towns { margin-top: 26px; font: 500 clamp(1.25rem, 3.4vw, 1.6rem)/1.5 var(--serif); color: var(--text-on-paper) !important; max-width: 30ch; }
.area__towns i { font-style: normal; color: var(--gold-deep); padding-inline: 0.15em; }

/* the back of her card, set the way it is printed */
.owner {
  background: #f8f4e8; border: 1px solid var(--paper-rule);
  box-shadow: 14px 14px 0 var(--ink);
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
  text-align: center; align-self: start;
}
.owner__name { font: 600 clamp(1.8rem, 5vw, 2.4rem)/1.1 var(--serif); letter-spacing: 0.08em; color: var(--text-on-paper) !important; }
.owner__role { margin-top: 8px; }
.owner .flourish { margin: 18px auto; filter: brightness(0.45) sepia(0.4); }
.owner__line { font: 600 clamp(1.35rem, 4vw, 1.7rem)/1.2 var(--serif); letter-spacing: 0.04em; color: var(--text-on-paper) !important; }

@media (min-width: 860px) {
  .area__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
  .owner { transform: rotate(1.4deg); }
}

/* ---------- quote form ---------- */
.quote { padding-block: clamp(64px, 10vw, 128px); border-top: 1px solid rgba(217, 190, 110, 0.25); }
.quote__grid { display: grid; gap: 40px; }
.quote__intro p { color: var(--soft-on-ink); margin-top: 18px; max-width: 38ch; }
.quote__intro .tracked { color: var(--gold); margin-top: 0; }
.quote__or a { color: var(--gold); text-underline-offset: 4px; display: inline-block; padding: 11px 0; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font: 600 0.9375rem/1.3 var(--sans); letter-spacing: 0.04em; color: var(--text-on-ink); }
.field label span { font-weight: 400; color: var(--soft-on-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 13px 14px;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--text-on-paper);
  background: var(--paper); border: 1.5px solid var(--paper); border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.form__actions .btn { flex: 1 1 200px; }
.form__error { color: #ffd9a8; font-weight: 600; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ffb45e; box-shadow: inset 0 -4px 0 #ffb45e; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
/* bot trap: off-screen, never focusable, hidden from screen readers */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sent { border: 1.5px solid var(--gold); padding: clamp(24px, 4vw, 40px); }
.sent h3 { font: 500 clamp(1.8rem, 5vw, 2.6rem)/1.08 var(--serif); margin: 12px 0 14px; color: var(--text-on-ink); }
.sent p { color: var(--soft-on-ink); margin-top: 10px; }
.sent p b { color: var(--text-on-ink); }
.sent a:not(.btn) { color: var(--gold); text-underline-offset: 4px; display: inline-block; padding: 11px 0; }
.sent .form__actions { margin-top: 22px; }
.sent--failed { border-color: #ffb45e; }
.sent--failed .tracked { color: #ffb45e; }

@media (min-width: 860px) {
  .quote__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 110px); }
}

/* ---------- footer ---------- */
.foot { padding: clamp(48px, 7vw, 80px) 0 28px; border-top: 1px solid rgba(217, 190, 110, 0.25); }
.foot__grid { display: grid; gap: 32px; align-items: center; }
.foot__grid img { width: min(100%, 420px); }
.foot__info { font: 500 1.25rem/1.5 var(--serif); font-variant-numeric: lining-nums; }
.foot__info a { color: var(--gold); text-decoration: none; display: inline-block; padding: 8px 0; overflow-wrap: anywhere; }
.foot__info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { margin-top: 40px; padding-inline: var(--pad); max-width: 1240px; margin-inline: auto; font-size: 0.875rem; color: var(--soft-on-ink); }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 1fr auto; } .foot__info { text-align: right; } }

/* ---------- phone dock ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 1.5px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a {
  min-height: 60px; display: flex; align-items: center; justify-content: center;
  font: 600 1.125rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--gold);
}
.dock a + a { background: var(--ink); color: var(--gold); }
@media (min-width: 860px) { .dock { display: none; } }

/* A computer usually has no texting app, so the Text buttons only show on touch screens.
   Calling and the form still work everywhere. */
@media (hover: hover) and (pointer: fine) { .btn--touch { display: none; } }

/* keep the little header label on one line on small phones */
@media (max-width: 420px) { .hero__top .tracked { letter-spacing: 0.12em; font-size: 0.75rem; } }
