/* House & Home Co. Styles */
:root {
  --primary: #E7D8C5;
  --secondary: #8B5E3C;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #2B2B2B;
  --muted: #6B4F3A;
  --accent: #87A878;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --transition: all 0.3s ease;
}

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

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--text);
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: clamp(2.5rem, 4vw, 4.5rem) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
}

.text-link {
  color: var(--secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--secondary);
  padding-bottom: 0.2rem;
  transition: var(--transition);
}

.text-link:hover {
  color: #744c2f;
  border-color: #744c2f;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.btn.primary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn.primary:hover {
  background: #744c2f;
  border-color: #744c2f;
}

.btn.ghost {
  background: var(--surface);
  color: var(--secondary);
  border-color: var(--primary);
}

.btn.ghost:hover {
  border-color: var(--secondary);
  color: #744c2f;
}

.btn.text {
  background: transparent;
  border: none;
  color: var(--secondary);
  box-shadow: none;
  padding-left: 0;
}

.btn.text:hover {
  color: #744c2f;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--secondary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  border-color: var(--secondary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu a {
  padding: 0.25rem 0;
  font-weight: 600;
}

.mobile-menu.open {
  max-height: 420px;
  padding-bottom: 1.25rem;
}

.screen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 15;
}

.screen-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(231, 216, 197, 0.4), rgba(135, 168, 120, 0.25));
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  border-radius: 0;
}

.hero-content {
  padding: clamp(3rem, 6vw, 6rem) 0;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #fff;
  max-width: 560px;
}

.hero .lead {
  color: #f5efe5;
  margin: 1rem 0 1.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero .btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.page-hero {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 0.5rem 0;
}

.category-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card img {
  aspect-ratio: 4/3;
}

.category-info {
  padding: 1.2rem;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.1);
}

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

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.product-card img {
  aspect-ratio: 4/3;
}

.product-info {
  padding: 1.2rem;
}

.price {
  font-weight: 800;
  color: var(--secondary);
  margin: 0.4rem 0 0.6rem;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.highlight-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.blog-card img {
  aspect-ratio: 4/3;
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(139, 94, 60, 0.9);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 1;
}

.blog-info {
  padding: 1.2rem;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
}

.blog-card.hovered {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
}

.final-cta {
  padding: clamp(2.5rem, 4vw, 4rem) 0 4.5rem;
}

.final-cta-card {
  background: linear-gradient(135deg, rgba(231, 216, 197, 0.9), rgba(135, 168, 120, 0.35));
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  text-align: center;
  box-shadow: var(--shadow);
}

.final-cta-card h2 {
  margin-bottom: 0.6rem;
}

.why-us {
  background: linear-gradient(180deg, rgba(231, 216, 197, 0.25), transparent);
}

.filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid var(--primary);
  background: var(--surface);
  color: var(--muted);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: 0 12px 24px rgba(139, 94, 60, 0.22);
}

.filter-btn:hover {
  border-color: var(--secondary);
}

.product-card.hidden {
  display: none;
}

.product-hero {
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

.product-layout {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}

.gallery {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.main-image img {
  aspect-ratio: 4/3;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.thumbnail {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.thumbnail img {
  border-radius: 12px;
  aspect-ratio: 4/3;
}

.thumbnail.active {
  border-color: var(--secondary);
}

.product-details .description {
  margin: 0.6rem 0 1rem;
}

.quantity {
  margin: 1rem 0;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.qty-btn {
  border: none;
  background: transparent;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--secondary);
}

.qty-controls input {
  width: 64px;
  text-align: center;
  border: none;
  font-size: 1rem;
  padding: 0.65rem 0.3rem;
  outline: none;
}

.tabs {
  display: inline-flex;
  gap: 0.6rem;
  margin: 1.2rem 0 0.5rem;
}

.tab-button {
  border: 1px solid var(--primary);
  background: var(--surface);
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}

.tab-button.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.tab-content {
  display: none;
  padding: 1rem 0;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input, textarea {
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 12px 28px rgba(139, 94, 60, 0.16);
}

.form-success {
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.form-success.error {
  color: #c45f4d;
}

.about-grid .split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.text-block {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-block img {
  border-radius: var(--radius);
}

.image-row .image-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.site-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.footer-column a {
  display: block;
  margin: 0.4rem 0;
  color: var(--muted);
}

.footer-column h4,
.footer-brand h3 {
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .logo {
    font-size: 1rem;
  }

  .btn.primary,
  .btn.ghost {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  }

  .header-cta {
    gap: 0.4rem;
  }

  .site-header {
    padding: 0 0.2rem;
  }

  .hero-content {
    padding: 2.2rem 0;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .header-inner {
    padding: 1.2rem 0;
  }
}

@media (min-width: 1280px) {
  .container {
    width: min(1280px, calc(100% - 3rem));
  }

  .hero {
    min-height: 80vh;
  }
}
