/* Aguilar's Carpet Sales: site styles. Charcoal and amber. No framework, no build step. */

:root {
  --charcoal: #1b1e22;
  --deep: #0f1215;
  --amber: #e9a23b;
  --amber-hi: #f4b552;
  --paper: #f4f1ec;
  --muted: rgba(244, 241, 236, .72);
  --line: rgba(255, 255, 255, .09);
  --radius: 12px;
  --wrap: 1160px;
  --header-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (min-width: 900px) { :root { --header-h: 70px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: #17191c; padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 18px; border-radius: 11px;
  font-weight: 750; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #17191c; box-shadow: 0 6px 20px rgba(233, 162, 59, .28); }
.btn-primary:hover { background: var(--amber-hi); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: var(--paper); border: 1px solid rgba(255, 255, 255, .26); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(15, 18, 21, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 18px; margin-right: auto; white-space: nowrap; }
.brand-a { color: var(--amber); }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; font-size: 15px; color: var(--muted);
}
.nav a:hover { color: var(--paper); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--paper); }

.hdr-call { min-height: 40px; padding: 8px 14px; font-size: 15px; box-shadow: none; }
.hdr-call-long { display: none; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-content: center; gap: 5px;
  border: 1px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--paper); border-radius: 2px; }
.menu ul {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.menu li a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; }
.menu li a:hover, .menu li a[aria-current="page"] { background: rgba(255, 255, 255, .06); }

@media (min-width: 900px) {
  .brand { font-size: 20px; }
  .nav { display: block; }
  .menu { display: none; }
  .hdr-call-long { display: inline; }
  .hdr-call-short { display: none; }
}

/* ---------- page sections ---------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -.02em; }

/* ---------- placeholders (sections still being migrated; no text on purpose) ---------- */
.ph-group { max-width: 760px; }
.ph { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; }
.ph-h { height: 28px; width: 54%; margin-bottom: 22px; }
.ph-l { height: 13px; margin-bottom: 11px; }
.ph-l.w92 { width: 92%; }
.ph-l.w66 { width: 66%; }
.ph-grid { display: grid; gap: 12px; }
.ph-box { height: 120px; border-radius: 14px; }
.ph-media { aspect-ratio: 16 / 9; border-radius: 14px; }
@media (min-width: 700px) {
  .ph-grid { grid-template-columns: repeat(3, 1fr); }
  .ph-group:has(.ph-grid), .ph-group:has(.ph-media) { max-width: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 40px; }
.ftr { display: grid; gap: 28px; }
.ftr p { margin: 0 0 8px; }
.ftr a { text-decoration: none; color: var(--muted); }
.ftr a:hover { color: var(--paper); }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 6px; }
.ftr-brand { font-weight: 800; font-size: 18px; }
.ftr-head { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.ftr-label { color: var(--muted); font-size: 14px; }
.ftr-lic { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ftr .ftr-lic a { color: var(--paper); }
.ftr-areas { columns: 2; color: var(--muted); }
.ftr-copy { margin-top: 32px; font-size: 13px; color: rgba(244, 241, 236, .5); }
@media (min-width: 800px) { .ftr { grid-template-columns: 1.3fr 1fr .8fr; } }

/* ---------- section headings and text ---------- */
.sec-head { margin: 0 0 28px; max-width: 680px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.sec-head h2, .block h2 { margin: 0; font-size: clamp(26px, 5vw, 38px); line-height: 1.12; letter-spacing: -.015em; }
.lede { margin: 12px 0 0; font-size: 17px; color: var(--muted); max-width: 60ch; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 14px; color: var(--muted); font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.more { display: inline-block; margin-top: 22px; color: var(--amber); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- service cards ---------- */
.cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; padding: 20px; border-radius: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  transition: border-color .15s, background-color .15s;
}
a.card:hover { border-color: rgba(233, 162, 59, .5); background: rgba(255, 255, 255, .055); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-num { display: block; margin-bottom: 12px; color: var(--amber); font-weight: 800; font-size: 13px; letter-spacing: .1em; }

/* ---------- photos ---------- */
picture img { width: 100%; height: 100%; object-fit: cover; }
.shot { margin: 0; }
.shot picture { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: var(--charcoal); }
.shot figcaption, .pair figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.pairs { display: grid; gap: 26px; }
@media (min-width: 900px) { .pairs { grid-template-columns: repeat(2, 1fr); } }
.pairs.three { }
@media (min-width: 1100px) { .pairs.three { grid-template-columns: repeat(3, 1fr); } }
.pair { margin: 0; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair-side { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--charcoal); }
.pair-side picture { display: block; height: 100%; }
.tag {
  position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px;
  background: rgba(12, 14, 16, .78); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.tag-after { background: var(--amber); color: #17191c; }

/* ---------- media + text blocks (services page) ---------- */
.block { display: grid; gap: 22px; align-items: start; }
.block + .block { margin-top: 56px; }
@media (min-width: 900px) {
  .block.has-media { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .block.has-media.flip > :first-child { order: 2; }
}
.block .gallery { grid-template-columns: repeat(2, 1fr); }

/* ---------- visit ---------- */
.visit { display: grid; gap: 24px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.visit-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.visit-card p { margin: 0 0 6px; }
.visit-card a { color: var(--paper); }
.visit-card .muted { color: var(--muted); font-size: 14px; }

/* ---------- service areas list ---------- */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.area-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); font-weight: 650; }

/* ---------- form ---------- */
.hello { display: grid; gap: 16px; max-width: 760px; }
@media (min-width: 700px) { .hello { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .18); font: inherit; font-size: 16px;   /* 16px stops iOS zooming in */
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { color: #111; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.has-error input, .has-error select, .has-error textarea { border-color: #ff8a7a; }
.field-error { margin: 6px 0 0; color: #ffb3a8; font-size: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; max-width: 760px; }
.notice p { margin: 0; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice a { color: inherit; }
.notice-ok { background: rgba(120, 200, 140, .12); border: 1px solid rgba(120, 200, 140, .4); }
.notice-err { background: rgba(255, 120, 100, .1); border: 1px solid rgba(255, 138, 122, .45); }
.notice-dev { background: rgba(233, 162, 59, .08); border: 1px dashed rgba(233, 162, 59, .5); font-size: 14px; color: var(--muted); }

/* FAQ (homepage). Native details/summary, no script. */
.faq { border-top: 1px solid var(--line); margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--amber); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }
.area-sub { margin: 40px 0 14px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.ftr a.btn-primary, .ftr a.btn-primary:hover { color: #17191c; }
