/* Infinity Solutions of OK — site styles. Tokens from docs/HANDOFF.md §3. */
:root {
  /* Brand palette (brand/index.html) */
  /* "Light & green" (picked 2026-11-13) */
  --ink: #1F2421;          /* charcoal: body text */
  --green: #2F5D3A;        /* forest green: logo, buttons, green bands (about, footer) */
  --green-hover: #264D30;
  --pale: #EEF3EF;         /* pale green: hero */
  --pale-2: #E1EBE4;       /* hero photo slot */
  --sage: #CFE0D3;         /* eyebrows on green */
  --ink-2: #2A4C33;        /* raised surface on green */
  --ink-line: rgba(255, 255, 255, 0.28); /* borders on green */
  --ink-line-2: #6E8B75;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --accent: #2F5D3A;       /* buttons */
  --accent-hover: #264D30;
  --accent-text: #2F5D3A;
  --muted: #4E5650;
  --muted-on-dark: #D2DDD5;
  --faint-on-dark: #A9BFB0;
  --border: #E1DDD3;
  --ph-bg: #EFECE5;
  --ph-line: #C9C3B6;
  --ph-text: #6B6457;
  --input-line: #B8B2A6;
  --input-bg: #FCFBF8;

  --r-sm: 8px;
  --r-lg: 12px;
  --max: 1200px;
  --gutter: 24px;
  --head-font: "Archivo", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head-font); font-weight: 800; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.dark :focus-visible { outline-color: #FFFFFF; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dark { background: var(--green); color: var(--paper); }
.dark a:not(.btn) { color: #E4E7EC; }
.section { padding-top: 88px; padding-bottom: 88px; }
.stack { display: flex; flex-direction: column; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: #FFFFFF; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip:focus { left: 8px; }

/* Placeholder text that still needs a real answer from the family */
.tbd {
  background: rgba(47, 93, 58, 0.12);
  border-bottom: 1px dashed var(--green);
  padding: 0 3px;
  border-radius: 3px;
}
.dark .tbd { background: rgba(255, 255, 255, 0.16); border-bottom-color: var(--sage); }

/* Preview banner (delete before launch) */
.preview-bar {
  background: #E8EFEA; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 0;
}
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-ghost { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: rgba(47, 93, 58, 0.07); color: var(--green); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; display: block; width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--head-font); font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.brand-sub { font-size: 12px; letter-spacing: 3px; color: var(--green); }
.main-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero { background: var(--pale); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-text); }
.dark .eyebrow { color: var(--sage); }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; }
.hero .lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.photo-slot {
  border-radius: var(--r-lg); border: 2px dashed var(--ph-line); background: var(--ph-bg); color: var(--ph-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px; font-weight: 600; font-size: 14px;
}
.dark .photo-slot { border-color: var(--ink-line-2); background: var(--ink-2); color: var(--faint-on-dark); }
.photo-slot small { font-weight: 400; font-size: 14px; }
.hero .photo-slot { border-color: #A9BFB0; background: var(--pale-2); color: #4E6655; }
.hero-photo { flex: 1 1 420px; min-width: 0; height: 420px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--border); }
.trust ul {
  list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; font-weight: 600; font-size: 15px;
}
.trust li { display: flex; align-items: center; gap: 10px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

/* ---------- Section heads ---------- */
.section-head { gap: 12px; max-width: 680px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.section-body { gap: 40px; }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; gap: 12px; }
.card h3 { font-size: 22px; }
.card p { line-height: 1.6; color: var(--muted); }

/* ---------- Gallery ---------- */
.band { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.head-row > p { color: var(--muted); max-width: 420px; line-height: 1.6; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .photo-slot { height: 240px; border-radius: 10px; }
.gallery figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Reviews ---------- */
.review { margin: 0; background: var(--white); border: 2px dashed var(--ph-line); border-radius: var(--r-lg); padding: 28px; gap: 16px; }
.review .stars { color: var(--ph-line); font-size: 18px; letter-spacing: 3px; }
.review p { line-height: 1.6; color: var(--muted); font-style: italic; }
.review footer { font-weight: 600; font-size: 14px; }
.text-link { align-self: flex-start; font-weight: 600; }

/* ---------- About ---------- */
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-photo { flex: 1 1 420px; min-width: 0; height: 380px; }
.about-copy { flex: 1 1 480px; min-width: 0; gap: 20px; }
.about-copy h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.about-copy > p { font-size: 17px; line-height: 1.7; color: var(--muted-on-dark); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.people li { border: 1px solid var(--ink-line); border-radius: 10px; padding: 14px; }
.people strong { display: block; font-weight: 600; }
.people span { font-size: 14px; color: var(--muted-on-dark); }

/* ---------- Quote ---------- */
.quote .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.quote-side { flex: 1 1 340px; min-width: 0; gap: 20px; }
.quote-side h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.quote-side > p { line-height: 1.6; color: var(--muted); }
.contact-card { gap: 14px; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); }
.contact-card .phone { font-weight: 600; font-size: 18px; text-decoration: none; }
.contact-card a { text-decoration: none; word-break: break-word; }
.contact-card address { font-style: normal; color: var(--muted); line-height: 1.5; }
.contact-card .hours { color: var(--muted); font-size: 14px; }

.quote-form {
  flex: 2 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field.full { grid-column: 1 / -1; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input:not([type="file"]), .field select, .field textarea {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--input-line); border-radius: var(--r-sm); background: var(--input-bg); font-weight: 400; font-size: 16px;
}
.field textarea { padding: 12px; resize: vertical; }
.field input[type="file"] { min-height: 44px; font-weight: 400; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.quote-form .btn { grid-column: 1 / -1; width: 100%; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { color: var(--muted-on-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.foot-name { font-family: var(--head-font); font-weight: 800; color: var(--paper); font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* ---------- Thank-you page ---------- */
.thanks { min-height: 70vh; display: flex; align-items: center; }
.thanks .wrap { width: 100%; max-width: 720px; min-width: 0; gap: 20px; }
.thanks h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.thanks p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.thanks .big-phone { font-family: var(--head-font); font-weight: 800; font-size: clamp(28px, 6vw, 40px); text-decoration: none; }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 10px; letter-spacing: 2.5px; }
  .head-call .num { display: none; }
  .hero { background: var(--pale); }
.hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .hero .lede { font-size: 17px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-photo { height: 260px; }
  .about-photo { height: 260px; }
  .quote-form { padding: 20px; }

  body { padding-bottom: 76px; } /* room for the call bar */
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--border);
  }
  .call-bar .btn { min-height: 52px; padding: 0 12px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
