/* Ashford Supply Co: shared styles for every page.
   Brand colours and fonts live in :root. Change them here and the whole site follows. */

:root {
  --navy: #0F2D4A;
  --brass: #C9A227;
  --brass-dark: #B08B12;   /* brass for icons on white (passes contrast) */
  --offwhite: #F7F5EF;
  --white: #FFFFFF;
  --ink-muted: #46566A;    /* body text on light backgrounds */
  --on-navy: #C9D3DE;      /* body text on navy */
  --line: #E2DED2;
  --input-border: #B7BFC8;
  --whatsapp: #25D366;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1200px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-muted); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Links and buttons */
.link { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-bottom-color: var(--brass); }
.btn {
  display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  padding: 15px 26px; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,45,74,.18); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-brass { background: var(--brass); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-sm { padding: 11px 20px; font-size: 16px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); border-bottom: 1px solid rgba(201,162,39,.35); }
.site-header .container { min-height: 80px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; color: var(--white); display: flex; gap: 12px; align-items: center; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .04em; }
.brand-sub { margin-top: 5px; font-size: 10px; font-weight: 600; letter-spacing: .42em; color: var(--on-navy); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-weight: 500; font-size: 16px; }
.site-nav .link { color: #E6ECF2; }

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero .container { padding-top: 72px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.12; text-wrap: balance; }
.hero p { font-size: 20px; line-height: 1.6; color: var(--on-navy); margin-top: 24px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-top: 36px; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(4,16,30,.45); }

/* Values row */
.values { border-bottom: 1px solid var(--line); }
.values .container { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.value { border-top: 2px solid var(--brass); padding-top: 20px; }
.value h2 { font-size: 22px; }
.value p { margin-top: 8px; color: var(--ink-muted); }

/* Generic section */
.section .container { padding-top: 96px; padding-bottom: 96px; }
.section-white { background: var(--white); border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 56px; align-items: start; }
.section h2.title { font-size: clamp(30px, 4vw, 38px); line-height: 1.2; }
.lead { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--ink-muted); max-width: 52ch; }
.lead + .lead { margin-top: 16px; }

/* Company facts box */
.facts { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; font-size: 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 4px 0 0; color: var(--ink-muted); }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; font-size: 17px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list a { font-weight: 600; }

/* Form */
.quote-form { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.quote-form .optional { font-weight: 400; color: var(--ink-muted); }
.quote-form input, .quote-form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--navy);
  padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--white); width: 100%;
}
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form input:focus, .quote-form textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.quote-form .btn { width: 100%; }
.form-note { font-size: 14px; color: #55626F; }
.form-note a { font-weight: 600; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Simple centred page (thanks, 404) */
.notice { min-height: calc(100vh - 180px); display: flex; align-items: center; }
.notice .container { padding-top: 96px; padding-bottom: 96px; max-width: 720px; }
.notice h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; }
.notice .lead { max-width: none; }
.notice .hero-actions { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--navy); color: #B4C1CF; font-size: 14px; }
.site-footer .container { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-legal { display: flex; gap: 12px; align-items: center; }
.footer-legal img { width: 28px; height: 28px; border-radius: 6px; }
.footer-tagline { letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--brass); }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 999px;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(15,45,74,.25); transition: transform .2s; z-index: 50;
}
.wa-float:hover { transform: scale(1.05); }

@media (max-width: 640px) {
  .hero .container { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .section .container { padding-top: 64px; padding-bottom: 64px; }
  .quote-form { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .hero-actions .btn { width: 100%; }
  .site-nav .link { display: none; }
}

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