/* ===================================================
   The Wallpaper Company — style.css
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --blue-dark:   #0a1628;
  --blue-mid:    #1a3a6e;
  --blue-bright: #1e6bbd;
  --blue-light:  #d6e9ff;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --text-dark:   #111827;
  --text-mid:    #374151;
  --text-light:  #6b7280;
  --accent:      #e8a020;
  --accent-dark: #c57a00;
  --border:      #e2e8f0;
  --card-shadow: 0 4px 24px rgba(10,22,40,0.10);
  --radius:      12px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Source Sans 3', 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::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-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--blue-dark); line-height: 1.25; }
h3 { font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--blue-dark); line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; color: var(--blue-mid); }
p  { font-size: 1rem; color: var(--text-mid); margin-bottom: 1rem; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--blue-dark); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { max-width: 640px; margin: 16px auto 0; }
.divider { width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin: 16px auto 0; }
.divider--left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 6px;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em;
  transition: all 0.2s ease; min-height: 52px;
  text-transform: uppercase;
}
.btn--primary { background: var(--accent); color: var(--blue-dark); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.35); }
.btn--outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--outline:hover { background: var(--white); color: var(--blue-dark); }
.btn--blue { background: var(--blue-bright); color: var(--white); }
.btn--blue:hover { background: var(--blue-mid); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(10,22,40,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1200px; margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.88); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: var(--blue-dark) !important; padding: 8px 20px; border-radius: 5px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--accent-dark); color: var(--blue-dark) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay nav */
#mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--blue-dark); flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  padding-top: 80px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a { color: var(--white); font-size: 1.3rem; font-weight: 600; font-family: var(--font-head); }
#mobile-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
#hero {
  min-height: 100svh;
  background: url('best-wallpaper-supplier-company.jpg') center/cover no-repeat;
  position: relative; display: flex; align-items: center;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.82) 0%, rgba(10,22,40,0.55) 55%, rgba(10,22,40,0.15) 100%);
}
#hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white));
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 640px; padding: 120px 24px 160px;
  margin-left: max(24px, calc((100vw - 1200px)/2 + 24px));
}
.hero-eyebrow {
  display: inline-block; background: var(--accent); color: var(--blue-dark);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 3px; margin-bottom: 20px;
}
.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.4rem); color: var(--white);
  line-height: 1.15; margin-bottom: 20px; font-weight: 800;
}
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 600;
}
.hero-trust-item svg { color: var(--accent); }

/* ---------- Sticky SHOP NOW ---------- */
#sticky-cta {
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  background: var(--accent); color: var(--blue-dark);
  padding: 14px 24px; border-radius: 50px;
  font-weight: 800; font-size: 0.88rem; letter-spacing: 0.06em;
  box-shadow: 0 4px 24px rgba(232,160,32,0.45);
  transition: all 0.2s; text-transform: uppercase;
  min-height: 52px; display: flex; align-items: center; gap: 8px;
}
#sticky-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(232,160,32,0.55); }

/* ---------- Country Hub ---------- */
#countries { scroll-margin-top: 80px; }
.country-search-wrap {
  max-width: 520px; margin: 0 auto 40px; position: relative;
}
.country-search {
  width: 100%; padding: 14px 20px 14px 50px; border-radius: 50px;
  border: 2px solid var(--border); font-size: 1rem; font-family: var(--font-body);
  background: var(--white); color: var(--text-dark);
  transition: border-color 0.2s; outline: none;
}
.country-search:focus { border-color: var(--blue-bright); }
.country-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-light);
}
.countries-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.country-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; background: var(--white);
  transition: all 0.25s ease; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.country-card:hover {
  border-color: var(--blue-bright); transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}
.country-flag {
  width: 64px; height: 44px; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.country-flag svg { width: 100%; height: 100%; }
.country-card h3 { font-size: 1.1rem; margin: 0; }
.country-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }
.country-card .btn { font-size: 0.8rem; padding: 9px 20px; min-height: 44px; }
.country-card.hidden { display: none; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.benefit-card {
  padding: 32px 24px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--card-shadow);
  border-top: 4px solid var(--blue-bright);
}
.benefit-icon {
  width: 52px; height: 52px; background: var(--blue-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--blue-bright);
}
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.benefit-card p  { font-size: 0.92rem; margin: 0; }

/* ---------- Social proof / 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(--card-shadow); border-left: 4px solid var(--accent);
}
.review-stars { color: var(--accent); display: flex; gap: 3px; margin-bottom: 14px; }
.review-text { font-style: italic; color: var(--text-mid); margin-bottom: 16px; font-size: 0.97rem; }
.review-author { font-weight: 700; font-size: 0.9rem; color: var(--blue-dark); }
.review-country { font-size: 0.82rem; color: var(--text-light); }

/* ---------- Product specs ---------- */
.specs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.spec-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.spec-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--blue-bright); }
.spec-item h4 { margin-bottom: 5px; }
.spec-item p { font-size: 0.9rem; margin: 0; }

/* ---------- Fifi Section ---------- */
#fifi {
  background: transparent;
  color: inherit;
  overflow: visible;
  position: relative;
}
#fifi::before { display: none; }
.fifi-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.fifi-text h2 { color: var(--white); }
.fifi-text p  { color: rgba(255,255,255,0.85); }
.fifi-visual {
  display: flex; align-items: center; justify-content: center;
}
.fifi-bubble {
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 3px solid rgba(232,160,32,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 30px;
}
.fifi-bubble svg { color: var(--accent); }
.fifi-bubble p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: none; font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 600; color: var(--blue-dark);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-bright); }
.faq-question svg { flex-shrink: 0; transition: transform 0.3s; color: var(--blue-bright); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding-bottom: 20px; }
.faq-answer p { margin: 0; font-size: 0.97rem; }
.faq-item.open .faq-answer { display: block; }

/* ---------- Buying Guide ---------- */
#buying-guide { background: var(--off-white); }
.buying-guide-body { max-width: 860px; margin: 0 auto; }
.buying-guide-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.buying-guide-body h3 { margin-top: 1.8rem; margin-bottom: 0.8rem; font-size: 1.2rem; }
.buying-guide-body h4 { margin-top: 1.4rem; margin-bottom: 0.5rem; }
.buying-guide-body p  { line-height: 1.85; }
.buying-guide-body ul { margin: 0.8rem 0 1rem 1.5rem; }
.buying-guide-body li { margin-bottom: 0.4rem; font-size: 0.97rem; color: var(--text-mid); }

/* ---------- Company Details ---------- */
.details-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.detail-card {
  padding: 24px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
}
.detail-card h4 { color: var(--accent); margin-bottom: 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.detail-card p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.95rem; }
.detail-card a { color: var(--blue-light); }
.trust-badges {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 40px; justify-content: center;
}
.trust-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px; padding: 10px 20px; font-size: 0.88rem; color: rgba(255,255,255,0.85);
}
.trust-badge svg { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-items {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
}
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.contact-item svg { color: var(--blue-bright); flex-shrink: 0; }
.contact-item h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-item p { margin: 0; font-size: 0.95rem; }
.contact-item a { color: var(--blue-bright); }

/* ---------- Final CTA ---------- */
#final-cta {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-dark) 100%);
  text-align: center; padding: 96px 24px;
}
#final-cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; }
#final-cta p  { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 36px; font-size: 1.1rem; }
#final-cta .btn--primary { font-size: 1.05rem; padding: 18px 44px; }

/* ---------- Blog Archive ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--card-shadow); transform: translateY(-4px); }
.blog-card-body { padding: 24px; }
.blog-card-date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; display: block; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a { color: var(--blue-dark); }
.blog-card h3 a:hover { color: var(--blue-bright); }
.blog-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.blog-search-wrap { max-width: 500px; margin: 0 auto 40px; }
.blog-search {
  width: 100%; padding: 12px 20px; border-radius: 50px;
  border: 2px solid var(--border); font-size: 0.97rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s;
}
.blog-search:focus { border-color: var(--blue-bright); }
.blog-pagination { text-align: center; margin-top: 48px; }

/* ---------- Post pages ---------- */
.post-hero {
  background: var(--blue-dark); padding: 120px 24px 60px;
  text-align: center;
}
.post-hero h1 { font-family: var(--font-head); color: var(--white); font-size: clamp(1.5rem, 4vw, 2.6rem); max-width: 860px; margin: 0 auto; }
.post-hero .post-meta { color: rgba(255,255,255,0.6); margin-top: 16px; font-size: 0.9rem; }
.post-body {
  max-width: 820px; margin: 0 auto; padding: 60px 24px 80px;
}
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--font-head); color: var(--blue-dark); margin-top: 2rem; margin-bottom: 0.8rem;
}
.post-body h1 { font-size: 1.6rem; }
.post-body h2 { font-size: 1.35rem; }
.post-body h3 { font-size: 1.15rem; }
.post-body p  { margin-bottom: 1.1rem; line-height: 1.85; }
.post-body ul, .post-body ol { margin: 0.8rem 0 1.2rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body img { border-radius: 8px; margin: 1.5rem 0; }
.post-body a  { color: var(--blue-bright); text-decoration: underline; }
.breadcrumb { font-size: 0.88rem; color: var(--text-light); margin-bottom: 8px; }
.breadcrumb a { color: var(--blue-bright); }

/* ---------- Footer ---------- */
footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Legal Pages ---------- */
.legal-hero {
  background: var(--blue-dark); padding: 120px 24px 60px; text-align: center;
}
.legal-hero h1 { font-family: var(--font-head); color: var(--white); font-size: 2rem; }
.legal-body {
  max-width: 820px; margin: 0 auto; padding: 60px 24px 80px;
}
.legal-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-body h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; }
.legal-body p  { line-height: 1.85; }
.legal-body ul { margin: 0.8rem 0 1rem 1.5rem; }
.legal-body li { margin-bottom: 0.4rem; font-size: 0.97rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fifi-inner { grid-template-columns: 1fr; text-align: center; }
  .fifi-visual { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .fifi-bubble { width: 240px; height: 240px; }
  .contact-items { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
  .countries-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }
