/* ============================================================
   Toilet Seat Company — Homepage Styles
   toiletseat.company
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0a1628;
  --blue: #1a4fa0;
  --blue-mid: #2563c0;
  --blue-light: #3b82e8;
  --sky: #dbeafe;
  --white: #ffffff;
  --off-white: #f8faff;
  --black: #0d0d0d;
  --grey: #64748b;
  --grey-light: #f1f5f9;
  --border: #e2e8f0;
  --gold: #c8a84b;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ──────────────────────────────── */
h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; color: var(--navy); }
h3 { font-family: var(--font-head); font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; color: var(--navy); }
h4 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--navy); }
p { margin-bottom: 1rem; color: #334155; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: #cbd5e1; }
.section-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 10px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; font-family: var(--font-body); cursor: pointer;
  transition: all 0.2s ease; border: 2px solid transparent;
  min-height: 52px; text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b8983e; color: var(--navy); transform: translateY(-2px); }

/* ── NAV ──────────────────────────────────────── */
#site-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 85px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-text { color: var(--white); font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.nav-logo-sub { color: rgba(255,255,255,0.7); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 8px 0; margin-top: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 18px; color: var(--navy) !important; font-size: 0.9rem; }
.nav-dropdown-menu a:hover { background: var(--sky); color: var(--blue) !important; }

/* hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* mobile overlay nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--navy); flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--white); font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }
.mobile-nav-sub { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mobile-nav-sub a { font-size: 1.1rem; }

/* ── HERO ─────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/hero.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.82) 0%, rgba(10,22,40,0.60) 50%, rgba(10,22,40,0.30) 100%);
}
.hero-content {
  position: relative; z-index: 1; max-width: var(--max-w); width: 100%; margin: 0 auto;
  padding: 120px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-text { color: var(--white); }
.hero-tagline { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero-heading { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; color: var(--white); margin-bottom: 20px; }
.hero-heading mark { background: none; color: var(--gold); font-style: italic; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.80); margin-bottom: 36px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.70); font-size: 0.85rem; }
.hero-badge {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px; padding: 28px 32px; backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 16px;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 900; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-stat-div { width: 1px; background: rgba(255,255,255,0.2); margin: 0 8px; }

/* ── STICKY CTA ───────────────────────────────── */
#sticky-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  animation: slideUp 0.5s 1.5s ease both;
}
@keyframes slideUp { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#sticky-cta a {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--white); padding: 14px 24px;
  border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(26,79,160,0.45); transition: all 0.2s;
  min-height: 52px;
}
#sticky-cta a:hover { background: var(--navy); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(26,79,160,0.5); }

/* ── SHOP BY COUNTRY ─────────────────────────── */
#shop { background: var(--white); }
.country-search-wrap { max-width: 520px; margin: 0 auto 48px; position: relative; }
.country-search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey); pointer-events: none; }
#country-search { width: 100%; padding: 14px 16px 14px 46px; border: 2px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
#country-search:focus { border-color: var(--blue); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.country-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 20px; border: 2px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: all 0.25s; background: var(--white);
  min-height: 52px;
}
.country-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); color: inherit; }
.country-flag { width: 56px; height: 40px; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.country-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.country-link { font-size: 0.8rem; color: var(--blue); }
.country-card.hidden { display: none; }

/* Flag SVGs inline */
.flag-au { background: linear-gradient(180deg, #00008B 0%, #00008B 100%); }
.flag-ca { background: #FF0000; }
.flag-ie { background: linear-gradient(90deg, #169B62 33%, #fff 33%, #fff 66%, #FF883E 66%); }
.flag-nz { background: #00247D; }
.flag-sg { background: linear-gradient(180deg, #EF3340 50%, #fff 50%); }
.flag-uk { background: #012169; }
.flag-us { background: #B22234; }

/* ── BENEFITS ─────────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.benefit-card {
  padding: 32px 28px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); border-top: 4px solid var(--blue);
  transition: transform 0.2s;
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-icon { width: 48px; height: 48px; margin-bottom: 18px; color: var(--blue); }
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit-card p { font-size: 0.92rem; margin: 0; }

/* ── REVIEWS ──────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-card {
  padding: 28px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--gold);
}
.review-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 0.95rem; color: #475569; margin-bottom: 16px; font-style: italic; }
.review-author { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.review-location { font-size: 0.8rem; color: var(--grey); }

/* ── PRODUCT SPECS ────────────────────────────── */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.specs-list { list-style: none; }
.specs-list li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.specs-list li:last-child { border-bottom: none; }
.spec-check { color: var(--blue); flex-shrink: 0; margin-top: 3px; }

/* ── FIFI ─────────────────────────────────────── */
#fifi { position: relative; overflow: hidden; }
.fifi-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fifi-art {
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; background: var(--sky); border-radius: 50%;
  width: 260px; height: 260px; margin: 0 auto;
  position: relative; animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fifi-zz { position: absolute; top: 20px; right: -10px; font-size: 1.8rem; animation: zzz 2s ease-in-out infinite; }
@keyframes zzz { 0%,100% { opacity: 0; transform: translateY(0) scale(0.8); } 50% { opacity: 1; transform: translateY(-10px) scale(1); } }

/* ── FAQ ──────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--navy); line-height: 1.4;
}
.faq-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 20px; font-size: 0.95rem; color: #475569; }
.faq-item.open .faq-answer { display: block; }

/* ── BUYING GUIDE ─────────────────────────────── */
#buying-guide { background: var(--off-white); }
#buying-guide h2 { color: var(--navy); }
#buying-guide h3 { color: var(--blue); margin: 32px 0 12px; font-size: 1.3rem; }
#buying-guide h4 { color: var(--navy); margin: 20px 0 8px; }
.guide-content { max-width: 860px; margin: 0 auto; }
.guide-content p { font-size: 0.97rem; }

/* ── COMPANY ──────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--sky); color: var(--navy); padding: 10px 16px;
  border-radius: 8px; font-size: 0.85rem; font-weight: 600;
}
.company-details p { font-size: 0.92rem; }
.company-details strong { color: var(--navy); }

/* ── CONTACT ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { width: 44px; height: 44px; background: var(--sky); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); margin-bottom: 4px; }
.contact-val { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

/* ── FINAL CTA ────────────────────────────────── */
#final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center; padding: 100px 24px;
}
#final-cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
#final-cta p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 40px; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--black); color: #94a3b8; font-size: 0.88rem;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 60px 0 40px; }
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: #94a3b8; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; }
.footer-bottom p { font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #94a3b8; font-size: 0.8rem; }
.footer-legal a:hover { color: var(--white); }

/* ── BLOG GRID (used on blog page) ───────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--white); transition: all 0.25s; display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 0.78rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.blog-card-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 12px; }
.blog-card-excerpt { font-size: 0.88rem; color: #64748b; flex: 1; margin-bottom: 16px; }
.blog-card-link { font-size: 0.85rem; font-weight: 600; color: var(--blue); }

/* ── POST PAGE ────────────────────────────────── */
.post-header { background: var(--navy); color: var(--white); padding: 100px 24px 60px; text-align: center; }
.post-header h1 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 900; color: var(--white); max-width: 800px; margin: 0 auto 16px; }
.post-header .post-date { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.post-body { max-width: 800px; margin: 60px auto; padding: 0 24px; }
.post-body h2 { margin: 40px 0 16px; }
.post-body h3 { margin: 30px 0 12px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px 24px; }
.post-body li { margin-bottom: 8px; font-size: 0.97rem; }
.post-body img { max-width: 100%; border-radius: 8px; margin: 20px 0; }
.post-nav { max-width: 800px; margin: 0 auto 80px; padding: 0 24px; display: flex; justify-content: space-between; gap: 20px; }

/* ── LEGAL PAGES ──────────────────────────────── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 60px 24px 100px; }
.legal-page h2 { margin: 36px 0 14px; }
.legal-page h3 { margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: 0.95rem; color: #475569; }
.legal-page ul { margin: 0 0 16px 24px; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-badge { display: none; }
  .specs-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .fifi-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  #sticky-cta { bottom: 16px; right: 16px; }
}
