/* =========================================
   The Eye Massager Company - style.css
   ========================================= */

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

:root {
  --navy: #0a1628;
  --blue: #1a3a6e;
  --mid-blue: #2563b0;
  --sky: #3b82f6;
  --light-blue: #dbeafe;
  --white: #ffffff;
  --off-white: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0ea5e9;
  --gold: #f59e0b;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10,22,40,0.12);
  --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; font-size: 18px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; color: var(--navy); }
h3 { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.3; color: var(--navy); }
h4 { font-size: 1rem; font-weight: 600; color: var(--navy); }
p { font-size: 1rem; color: var(--text); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.3s ease;
  min-height: 52px; text-decoration: none;
}
.btn-primary {
  background: var(--mid-blue); color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,176,0.35);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,176,0.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---- NAVIGATION ---- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 900;
  color: var(--white); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--sky); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.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-shop-btn {
  background: var(--sky); color: var(--white) !important;
  padding: 0.5rem 1.25rem; border-radius: 50px; font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-shop-btn:hover { background: var(--mid-blue) !important; }

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

/* Mobile nav overlay */
#mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--navy); flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  color: var(--white); font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 700; transition: color 0.2s;
}
#mobile-nav a:hover { color: var(--sky); }
.mobile-nav-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--white); cursor: pointer; font-size: 2rem;
}

/* ---- HERO ---- */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('hero.jpg');
  background-size: cover; background-position: center 20%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.65) 50%, rgba(10,22,40,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.4);
  border-radius: 50px; padding: 0.4rem 1rem;
  color: var(--sky); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem; backdrop-filter: blur(8px);
}
.hero-text h2 {
  font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white);
  font-weight: 900; line-height: 1.1; margin-bottom: 1rem;
}
.hero-text p {
  color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
}
.hero-stat { color: var(--white); }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--sky); }
.hero-stat span { font-size: 0.85rem; opacity: 0.7; }

/* Gradient bleed from hero */
#hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white));
  z-index: 3;
}

/* ---- STICKY CTA ---- */
#sticky-cta {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  background: var(--mid-blue); color: var(--white);
  padding: 0.85rem 1.75rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(37,99,176,0.5);
  transition: all 0.3s; min-height: 52px; display: flex; align-items: center;
  opacity: 0; transform: translateY(20px);
}
#sticky-cta.visible { opacity: 1; transform: translateY(0); }
#sticky-cta:hover { background: var(--navy); transform: translateY(-2px); }

/* ---- SECTIONS COMMON ---- */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid-blue); margin-bottom: 0.75rem;
}
.section-heading { margin-bottom: 1rem; }
.section-subtext { color: var(--muted); max-width: 600px; font-size: 1rem; margin-bottom: 3rem; }

/* ---- COUNTRIES / SHOP BY COUNTRY ---- */
#countries { background: var(--off-white); }
.country-search-wrap {
  position: relative; max-width: 480px; margin-bottom: 2.5rem;
}
.country-search-wrap svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
#country-search {
  width: 100%; padding: 0.85rem 1rem 0.85rem 3rem;
  border: 2px solid var(--border); border-radius: 50px;
  font-size: 1rem; font-family: var(--font-body);
  transition: border-color 0.2s; background: var(--white);
  min-height: 52px;
}
#country-search:focus { outline: none; border-color: var(--sky); }

.country-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.country-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s; cursor: pointer; display: block;
  box-shadow: var(--shadow);
}
.country-card:hover {
  border-color: var(--sky); transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.country-flag { font-size: 3rem; margin-bottom: 0.75rem; line-height: 1; }
.country-card h3 {
  font-size: 1.1rem; color: var(--navy); margin-bottom: 0.25rem;
}
.country-card p { font-size: 0.85rem; color: var(--muted); }
.country-card .shop-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 1rem; color: var(--sky); font-size: 0.9rem; font-weight: 600;
}

/* ---- BENEFITS ---- */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}
.benefit-card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-icon {
  width: 56px; height: 56px; background: var(--light-blue);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.benefit-icon svg { width: 28px; height: 28px; color: var(--mid-blue); }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.benefit-card p { font-size: 0.9rem; color: var(--muted); }

/* ---- REVIEWS ---- */
#reviews { background: var(--navy); }
#reviews .section-label { color: var(--sky); }
#reviews h2 { color: var(--white); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.review-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.75rem;
  transition: background 0.3s;
}
.review-card:hover { background: rgba(255,255,255,0.1); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 0.75rem; }
.review-text { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.reviewer { display: flex; align-items: center; gap: 0.75rem; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mid-blue); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 0.9rem;
}
.reviewer-info strong { color: var(--white); font-size: 0.9rem; display: block; }
.reviewer-info span { color: var(--sky); font-size: 0.8rem; }

/* ---- SPECS ---- */
.specs-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.specs-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.spec-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.spec-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; background: var(--off-white); border-radius: 8px;
  border-left: 3px solid var(--sky);
}
.spec-label { font-size: 0.9rem; color: var(--muted); }
.spec-value { font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* ---- FIFI ---- */
#fifi { background: linear-gradient(135deg, var(--light-blue) 0%, #fff 60%); }
.fifi-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.fifi-avatar {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--mid-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.fifi-text h2 { margin-bottom: 1rem; }
.fifi-text p { color: var(--muted); margin-bottom: 1rem; }

/* ---- FAQ ---- */
#faq { background: var(--off-white); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--navy); transition: color 0.2s;
  min-height: 52px;
}
.faq-q:hover { color: var(--mid-blue); }
.faq-q svg { flex-shrink: 0; transition: transform 0.3s; color: var(--sky); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.5rem 1.25rem; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---- BUYING GUIDE ---- */
#buying-guide { background: var(--white); }
.guide-content { max-width: 860px; margin: 0 auto; }
.guide-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.guide-content h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.guide-content h4 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.guide-content p { color: var(--muted); margin-bottom: 1rem; }
.guide-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.guide-content ul li { color: var(--muted); margin-bottom: 0.4rem; }

/* ---- COMPANY DETAILS ---- */
#company { background: var(--navy); color: var(--white); }
#company .section-label { color: var(--sky); }
#company h2 { color: var(--white); }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.company-block {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.5rem;
}
.company-block h4 { color: var(--sky); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.company-block p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.trust-badge {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px; padding: 0.6rem 1.25rem;
  color: rgba(255,255,255,0.85); font-size: 0.85rem;
}
.trust-badge svg { color: var(--sky); flex-shrink: 0; }

/* ---- CONTACT ---- */
#contact { background: var(--off-white); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.contact-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact-icon {
  width: 52px; height: 52px; background: var(--light-blue); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.contact-icon svg { width: 24px; height: 24px; color: var(--mid-blue); }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.9rem; color: var(--muted); }

/* ---- FINAL CTA ---- */
#final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center; padding: 6rem 2rem;
}
#final-cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
#final-cta p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 2rem; }
#final-cta .cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
footer {
  background: #060e1c; color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 0.9rem; }
footer a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.2s; display: block; margin-bottom: 0.5rem; }
footer a:hover { color: var(--sky); }
.footer-brand h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--white); margin-bottom: 0.75rem;
}
.footer-brand h3 span { color: var(--sky); }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 1rem;
}

/* ---- BLOG ARCHIVE ---- */
.blog-header {
  background: var(--navy); padding: 8rem 2rem 4rem; text-align: center;
}
.blog-header h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); }
.blog-header p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; }
.blog-search-bar { margin: 2rem auto 0; max-width: 480px; position: relative; }
.blog-search-bar svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
#blog-search {
  width: 100%; padding: 0.85rem 1rem 0.85rem 3rem;
  border: 2px solid var(--border); border-radius: 50px;
  font-size: 1rem; font-family: var(--font-body);
  min-height: 52px; transition: border-color 0.2s;
}
#blog-search:focus { outline: none; border-color: var(--sky); }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 3rem auto; padding: 0 2rem;
}
.blog-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-body { padding: 1.5rem; }
.blog-card-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.blog-card-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); line-height: 1.4; margin-bottom: 0.5rem; }
.blog-card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ---- BLOG POST ---- */
.post-header {
  background: var(--navy); padding: 8rem 2rem 4rem;
}
.post-meta { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 1rem; }
.post-header h2 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.8rem); max-width: 800px; }
.post-body {
  max-width: 760px; margin: 3rem auto; padding: 0 2rem;
  font-size: 1rem; line-height: 1.8; color: var(--text);
}
.post-body h2 { margin: 2rem 0 1rem; }
.post-body h3 { margin: 1.5rem 0 0.75rem; }
.post-body p { margin-bottom: 1rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-body li { margin-bottom: 0.4rem; list-style: disc; }
.post-body strong { color: var(--navy); }

/* ---- LEGAL PAGES ---- */
.legal-header {
  background: var(--navy); padding: 8rem 2rem 3rem;
}
.legal-header h2 { color: var(--white); }
.legal-body {
  max-width: 760px; margin: 3rem auto 5rem; padding: 0 2rem;
}
.legal-body h2 { margin: 2rem 0 1rem; font-size: 1.4rem; }
.legal-body h3 { margin: 1.5rem 0 0.75rem; }
.legal-body p { color: var(--muted); margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ul li { color: var(--muted); margin-bottom: 0.4rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; }
  .specs-layout { grid-template-columns: 1fr; }
  .fifi-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .fifi-avatar { width: 140px; height: 140px; font-size: 4rem; }
}
