/* Thomsons Mattresses — minimal, fast, responsive */

:root {
  --bg: #0d0d0f;
  --surface: #17171a;
  --text: #f2f0eb;
  --muted: #b9b5ac;
  --gold: #d9b45b;
  --gold-strong: #e7c878;
  --whatsapp: #1fa855;
  --header-h: 3.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 15, 0.96);
  border-bottom: 1px solid rgba(217, 180, 91, 0.35);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-strong);
}

.brand-tagline {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-strong);
  background: transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--gold);
  color: #131313;
}

.btn-gold {
  background: var(--gold);
  color: #131313;
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-strong);
}

.btn-header {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

/* Visible focus for keyboard users */
a:focus-visible,
.btn:focus-visible,
.fab:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible,
.fab:focus-visible {
  border-radius: 999px;
}

/* ---------- Brochure ---------- */

.brochure {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page {
  margin: 0;                 /* no gaps between pages */
  font-size: 0;              /* remove inline-image whitespace */
  background: var(--surface);
}

.page img {
  display: block;
  width: 100%;
  height: auto;              /* keep proportions, never crop */
}

/* Missing-image fallback: hide broken image, show a clean note */
.missing-note {
  display: none;
}

.page.missing img {
  display: none;
}

.page.missing .missing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1200 / 1697; /* keeps the brochure layout intact */
  padding: 2rem;
  font-size: 1rem;
  color: var(--muted);
  border: 1px dashed rgba(217, 180, 91, 0.4);
}

.page.missing .missing-note code {
  color: var(--gold-strong);
  font-size: 0.95em;
  margin: 0 0.3em;
}

/* ---------- Contact section ---------- */

.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  text-align: center;
  border-top: 1px solid rgba(217, 180, 91, 0.35);
}

.contact-title {
  margin: 0;
  font-size: 1.7rem;
  color: var(--gold-strong);
  letter-spacing: 0.04em;
}

.contact-tagline {
  margin: 0.25rem 0 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details {
  font-style: normal;
}

.contact-details p {
  margin: 0.4rem 0;
}

.contact-details a {
  color: var(--gold-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details a:hover {
  color: var(--gold);
}

.contact-address {
  margin-top: 1.25rem !important;
  color: var(--muted);
}

.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.25rem 1rem 5.5rem; /* bottom padding clears floating buttons */
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* ---------- Floating contact buttons ---------- */

.floating-buttons {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.fab-whatsapp {
  background: var(--whatsapp);
}

.fab-call {
  background: var(--gold);
  color: #131313;
}

.fab:hover {
  filter: brightness(1.1);
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .btn-header {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .fab {
    width: 2.75rem;
    height: 2.75rem;
  }

  .fab svg {
    width: 22px;
    height: 22px;
  }

  .contact-actions .btn {
    flex: 1 1 45%;
  }
}
