/* SafeBlinds.com - Child-Safe Window Treatments */
:root {
  --blue: #0066CC;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.3;
  color: var(--dark);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--blue);
}

.logo span { color: var(--dark); }

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav ul li a:hover { color: var(--blue); text-decoration: none; }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover { background: #0055aa; text-decoration: none !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #e8f4fc 0%, #f0f7ff 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero p {
  font-size: 1.15rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn:hover { background: #0055aa; text-decoration: none; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
section { padding: 3.5rem 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Safety Badges */
.safety-badges {
  background: var(--light);
  padding: 3rem 1.5rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.badge-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.badge-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.badge-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Category Grid */
.categories { padding: 3.5rem 1.5rem; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--dark);
  display: block;
}

.cat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.cat-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e9eff5;
}

.cat-body { padding: 1.25rem; }
.cat-body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.cat-body p { font-size: 0.85rem; color: #666; }

/* Product Grid */
.products-section { background: var(--light); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-img-wrap {
  position: relative;
  background: #f5f5f5;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--dark);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.stars { color: #f59e0b; }

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.amazon-btn {
  display: block;
  width: 100%;
  background: #ff9903;
  color: #111;
  text-align: center;
  padding: 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: auto;
  transition: background 0.2s;
  text-decoration: none;
}

.amazon-btn:hover { background: #e88a02; text-decoration: none; color: #111; }

/* Content Sections */
.content-section { padding: 3.5rem 1.5rem; }
.content-section:nth-child(even) { background: var(--light); }

/* Two Column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
}

.two-col h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.two-col p { color: #555; margin-bottom: 1rem; }

.stat-box {
  background: var(--blue);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.stat-box .number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: Georgia, serif;
}

.stat-box .label { font-size: 0.9rem; opacity: 0.9; }

/* Comparison Table */
.compare-table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th {
  background: var(--blue);
  color: #fff;
  padding: 0.85rem;
  text-align: left;
  font-weight: 600;
}

.compare-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.compare-table tr:nth-child(even) td { background: #f8f9fa; }

.winner-badge {
  background: #fff3cd;
  color: #856404;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Georgia, serif;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer { max-height: 400px; }

.faq-answer-inner { padding-bottom: 1.1rem; color: #555; line-height: 1.7; }

/* Contact Form */
.contact-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Room Cards */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.room-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.room-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.room-card ul { list-style: none; margin-top: 0.75rem; }
.room-card li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: #555;
  padding-left: 1.25rem;
  position: relative;
}

.room-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* Guide Steps */
.steps-list { list-style: none; counter-reset: steps; margin-top: 1.5rem; }

.steps-list li {
  counter-increment: steps;
  padding: 1rem 0 1rem 3.5rem;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 1.25rem;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: -18px;
  top: 0.85rem;
  background: var(--blue);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #aaa; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--light);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb a { color: var(--blue); }

/* Category Hero */
.cat-hero {
  background: linear-gradient(135deg, #e8f4fc, #f0f7ff);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.cat-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.cat-hero p { color: #555; max-width: 600px; margin: 0 auto; }

/* Filters */
.filter-bar {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar label { font-weight: 600; font-size: 0.9rem; }

.filter-bar select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* Misc */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 640px) {
  nav ul { gap: 1rem; }
  .hero { padding: 2.5rem 1rem; }
  section { padding: 2.5rem 0; }
}
