/* ============================================================
   Blue Ridge Mattress Co. — Shared Site Styles
   Design: minimal, clean, all ages, mobile-first
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #52B788;
  --green-pale:   #D8F3DC;
  --green-bg:     #F2FAF5;
  --white:        #FFFFFF;
  --gray-100:     #F9FAFB;
  --gray-200:     #F3F4F6;
  --gray-300:     #E5E7EB;
  --gray-500:     #6B7280;
  --gray-700:     #374151;
  --text:         #111827;
  --border:       #E5E7EB;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --font-head:    'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-w:        1100px;
  --nav-h:        68px;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1.05rem; color: var(--gray-700); }

/* ── Containers ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section-sm { padding: 48px 0; }

/* ── Payment bar ────────────────────────────────────────────── */
.payment-bar {
  background: var(--green-dark);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s, border-color 0.15s;
}
.payment-badge:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
}
.payment-badge svg { flex-shrink: 0; }
.payment-badge .badge-label { white-space: nowrap; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--green-light); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--green-dark); background: var(--green-bg); }
.nav-links a.active { color: var(--green-dark); background: var(--green-bg); font-weight: 600; }
.nav-cta {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--green-mid) !important; }
.nav-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text);
  padding: 6px;
  border-radius: 6px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border: 2px solid var(--green-dark);
}
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-outline:hover { background: var(--green-bg); }
.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border: 2px solid var(--white);
}
.btn-white:hover { background: var(--green-pale); }
.btn-green-light {
  background: var(--green-light);
  color: var(--white);
  border: 2px solid var(--green-light);
}
.btn-green-light:hover { background: var(--green-mid); border-color: var(--green-mid); }
.btn-lg { font-size: 1.15rem; padding: 18px 36px; border-radius: 12px; }
.btn-sm { font-size: 0.9rem; padding: 10px 20px; }
.btn-full { width: 100%; }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: 2px solid #25D366;
}
.btn-whatsapp:hover { background: #1ebe5c; border-color: #1ebe5c; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 80px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .footer-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 4px; }
.footer-brand a { font-size: 0.92rem; color: var(--green-pale); text-decoration: underline; text-underline-offset: 3px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer-col p { font-size: 0.92rem; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.footer-col p strong { color: var(--white); font-weight: 600; }
.footer-note { font-size: 0.82rem !important; color: rgba(255,255,255,0.5) !important; margin-top: 8px !important; line-height: 1.5 !important; }
.footer-col .btn { margin-top: 12px; font-size: 0.9rem; padding: 12px 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
label .req { color: #dc2626; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
textarea { resize: vertical; min-height: 100px; }

/* Checkbox group */
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green-dark);
  flex-shrink: 0;
}

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-green { background: #DCFCE7; color: #166534; }
.badge-blue  { background: #DBEAFE; color: #1D4ED8; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-gray  { background: var(--gray-200); color: var(--gray-500); }

/* ── Section headings ───────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-light);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; color: var(--gray-500); max-width: 560px; }

/* ── Divider ────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── Toast / success message ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--green-dark);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Overlay modal ──────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: var(--gray-200); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1.05rem; width: 100%; border-radius: 8px; }
  .nav-toggle { display: block; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .payment-bar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .btn-lg { font-size: 1.05rem; padding: 15px 24px; }
}

/* ── Nav phone link ──────────────────────────────────────────── */
.nav-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--green-pale);
  background: var(--green-bg);
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-phone-link:hover { background: var(--green-pale); border-color: var(--green-light); }
@media (max-width: 768px) { .nav-phone-link { display: none; } }

/* ── Floating WhatsApp button ────────────────────────────────── */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  border-radius: 999px;
  padding: 14px 22px 14px 16px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.18);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.float-whatsapp:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55), 0 3px 10px rgba(0,0,0,0.2);
  color: #fff !important;
}
.float-whatsapp .wa-float-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
@media (max-width: 480px) {
  .float-whatsapp .wa-float-label { display: none; }
  .float-whatsapp { padding: 16px; border-radius: 50%; width: 58px; height: 58px; justify-content: center; }
}

/* ── Inventory contact CTA bar ───────────────────────────────── */
.inv-contact-bar {
  background: var(--green-bg);
  border-bottom: 1px solid var(--green-pale);
  padding: 14px 0;
}
.inv-contact-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inv-contact-bar p {
  font-size: 0.95rem;
  color: var(--green-dark);
  font-weight: 500;
  margin: 0;
}
.inv-contact-bar strong { color: var(--green-dark); }
.inv-contact-bar .bar-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 600px) {
  .inv-contact-bar .container { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Google Translate — Header Button (always visible) ──── */
.btn-translate-header {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  background: #F59E0B;
  color: #1a1000;
  border: 2px solid #D97706;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.btn-translate-header:hover { background: #FBBF24; border-color: #F59E0B; }
@media (max-width: 768px) {
  .btn-translate-header { margin-left: auto; }
}
/* Hide the Google Translate top banner but keep widget functional */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
/* Keep widget off-screen but accessible for programmatic use */
#google_translate_element { position: absolute !important; left: -9999px !important; top: -9999px !important; }
.goog-te-gadget { font-size: 0 !important; }

/* Sidebar email link — explicit styling for clear clickability */
.sidebar-email-link {
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, text-decoration 0.15s;
}
.sidebar-email-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sidebar-email-link:active {
  color: var(--green-light);
}

/* ── Page header (shared across all pages) ─────────────────── */
.page-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 56px 0 48px;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
}

/* ── Contact page layout ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  padding: 64px 0 80px;
  align-items: start;
}

/* ── Contact form card ───────────────────────────────────────── */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h2 {
  margin-bottom: 28px;
}

/* Budget checkboxes */
.budget-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.budget-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}
.budget-option.checked {
  border-color: var(--green-mid);
  background: var(--green-bg);
  color: var(--green-dark);
}
.budget-option input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--green-dark);
  flex-shrink: 0;
}

/* ── Contact sidebar ─────────────────────────────────────────── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}
.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.info-row:last-child { margin-bottom: 0; }
.info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.info-text { font-size: 0.92rem; color: var(--gray-700); line-height: 1.5; }
.info-text strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}

/* Copy email button (used on contact page sidebar + footer) */
.btn-copy-email {
  background: none;
  border: 1.5px solid var(--green-mid);
  border-radius: 6px;
  cursor: pointer;
  padding: 3px 7px;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--green-dark);
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
}
.btn-copy-email:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-copy-email:active { transform: scale(0.95); }

/* WhatsApp card */
.whatsapp-card {
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.whatsapp-card .wa-icon { font-size: 3rem; margin-bottom: 12px; }
.whatsapp-card h3 { margin-bottom: 8px; color: var(--green-dark); }
.whatsapp-card p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 20px; }

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 8px 0; color: var(--gray-700); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--text); }

/* Contact page responsive */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 64px; }
  .contact-sidebar { order: -1; }
}
@media (max-width: 600px) {
  .contact-form-card { padding: 24px; padding-bottom: 0; }
  .budget-group { gap: 12px; }
  .budget-option { padding: 10px 16px; }
  /* Sticky submit button on mobile */
  .cf-submit-btn {
    position: sticky;
    bottom: 0;
    top: auto;
    margin-top: 28px;
    z-index: 10;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    font-size: 1.1rem;
    padding: 18px 24px;
  }
}

/* Google Translate — banner hidden by CSS in body styles above */
/* Contact page styles end here. See .contact-layout, .page-header etc. above. */
