/* ─── DoorBird Store — Shared Stylesheet ───────────────────────────────────── */

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  color: #111827;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Design Tokens ───────────────────────────────────────────── */
:root {
  --blue:      #004F9F;
  --blue-dk:   #003773;
  --blue-lt:   #e8f0fb;
  --gold:      #c8922a;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-500:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ─── Utility ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s; border: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,79,159,.35); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-lt); }

.tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.tag-blue { background: var(--blue-lt); color: var(--blue); }
.tag-gold { background: #fef3e2; color: var(--gold); }
.tag-green { background: #dcfce7; color: #15803d; }

.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 42px); font-weight: 800;
  line-height: 1.2; color: var(--gray-900);
}
.section-sub { font-size: 17px; color: var(--gray-500); margin-top: 12px; max-width: 580px; }

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--blue);
}
.logo-icon {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--gray-700); transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 8px 18px; border-radius: 6px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-dk) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--gray-700); display: block; }

/* ─── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0; border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-500);
}
.breadcrumb-inner a { color: var(--blue); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner span.sep::before { content: '/'; margin: 0 4px; }

/* ─── Page Hero (collection/product) ─────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #001f4d 0%, #004F9F 60%, #0066cc 100%);
  color: #fff; padding: 60px 0;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.8); max-width: 600px; }
.page-hero-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.page-hero-meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500;
}

/* ─── Trust Bar ───────────────────────────────────────────────── */
.trust-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 32px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.trust-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ─── Section ─────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-header { margin-bottom: 48px; }

/* ─── Product Grid ────────────────────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.product-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: all .25s; display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.product-image {
  height: 220px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-image img { object-fit: contain; max-height: 180px; width: auto; }
.product-image-placeholder {
  width: 110px; height: 150px;
  background: linear-gradient(145deg, #d1d5db, #9ca3af);
  border-radius: 12px; position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.product-image-placeholder::before {
  content: ''; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #6b7280, #4b5563);
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.2);
}
.product-badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.sold-out-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
}
.sold-out-label {
  background: var(--gray-700); color: #fff;
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 700;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.product-name { font-size: 15px; font-weight: 700; line-height: 1.4; }
.product-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; flex: 1; }
.product-price { font-size: 20px; font-weight: 800; color: var(--blue); }
.product-price span { font-size: 13px; font-weight: 400; color: var(--gray-500); }
.product-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn-buy {
  flex: 1; padding: 11px; background: var(--blue); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  text-align: center; transition: all .2s; display: block;
}
.btn-buy:hover { background: var(--blue-dk); }
.btn-buy.sold-out { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }

/* ─── Collection Cards ────────────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.category-card {
  background: var(--gray-50); border-radius: 16px;
  border: 1px solid var(--gray-200); padding: 32px 28px;
  transition: all .25s; cursor: pointer;
  display: flex; flex-direction: column; gap: 14px;
}
.category-card:hover { background: var(--blue-lt); border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.category-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.category-icon svg { width: 26px; height: 26px; fill: #fff; }
.category-card h3 { font-size: 18px; font-weight: 700; }
.category-card p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }
.category-count { font-size: 13px; font-weight: 600; color: var(--blue); }
.category-link { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: auto; }

/* ─── Feature Grid ────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.feature-item { display: flex; gap: 16px; }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; background: var(--blue-lt); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.feature-text h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-text p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ─── Specs Table ─────────────────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--gray-200); }
.specs-table td { padding: 12px 16px; font-size: 14px; }
.specs-table td:first-child { font-weight: 600; color: var(--gray-700); width: 200px; background: var(--gray-50); }
.specs-table td:last-child { color: var(--gray-900); }

/* ─── FAQ Accordion ───────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 600; color: var(--gray-900);
}
.faq-question:hover { color: var(--blue); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 20px; font-size: 15px; color: var(--gray-700); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ─── Blog Cards ──────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card {
  background: #fff; border-radius: 16px; border: 1px solid var(--gray-200);
  overflow: hidden; transition: all .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-image { height: 200px; background: var(--gray-100); }
.blog-body { padding: 24px; }
.blog-meta { display: flex; gap: 12px; margin-bottom: 12px; }
.blog-tag { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.blog-date { font-size: 12px; color: var(--gray-500); }
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-excerpt { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.blog-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* ─── CTA Section ─────────────────────────────────────────────── */
.cta-section { background: var(--gray-50); padding: 80px 0; text-align: center; border-top: 1px solid var(--gray-200); }
.cta-section h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: var(--gray-500); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── Why Section ─────────────────────────────────────────────── */
.why-section { background: linear-gradient(135deg, #001f4d 0%, #004F9F 100%); color: #fff; padding: 80px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-content h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 20px; }
.why-content p { font-size: 16px; color: rgba(255,255,255,.8); line-height: 1.8; margin-bottom: 16px; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.why-stat { border-left: 3px solid rgba(255,255,255,.2); padding-left: 16px; }
.why-stat-num { font-size: 32px; font-weight: 800; color: #93c5fd; }
.why-stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-list-item { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 20px; }
.why-list-icon { width: 36px; height: 36px; flex-shrink: 0; background: rgba(147,197,253,.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.why-list-icon svg { width: 18px; height: 18px; fill: #93c5fd; }
.why-list-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.why-list-text p { font-size: 13px; color: rgba(255,255,255,.7); }

/* ─── Integrations Grid ───────────────────────────────────────── */
.integrations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.integration-badge {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 16px 12px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  transition: all .2s;
}
.integration-badge:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer { background: #0a1628; color: rgba(255,255,255,.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.06); margin-top: 16px; padding-top: 16px; line-height: 1.6; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 20px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
