/* ============================================
   Smart Home Automation - Premium Landing Page
   Design: Luxury smart home technology
   Palette: Dark Brown #2A1A0A, Gold #B88A2A, Ivory #F5F1E8
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #2A1A0A;
  background-color: #F5F1E8;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #2A1A0A;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: #4a3a2a;
}

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

/* Section */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: #5a4a3a;
  line-height: 1.8;
}

.section-subtitle {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #B88A2A;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: #B88A2A;
  color: #F5F1E8;
  border-color: #B88A2A;
}

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

.btn-secondary {
  background-color: transparent;
  color: #2A1A0A;
  border-color: #2A1A0A;
}

.btn-secondary:hover {
  background-color: #2A1A0A;
  color: #F5F1E8;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 26, 10, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #2A1A0A;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #B88A2A;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a3a2a;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #B88A2A;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #B88A2A;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: #B88A2A;
  color: #F5F1E8 !important;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600 !important;
  transition: background-color 0.3s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background-color: #a07a22 !important;
  color: #F5F1E8 !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2A1A0A;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F5F1E8 40%, #ede7da 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 138, 42, 0.06) 0%, transparent 70%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #B88A2A;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 8px 16px;
  border: 1px solid rgba(184, 138, 42, 0.25);
  border-radius: 100px;
}

.hero-content h1 {
  font-weight: 700;
}

.hero-content p {
  font-size: 1.0625rem;
  color: #5a4a3a;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(42, 26, 10, 0.15);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
  background-color: #F5F1E8;
}

.why-grid {
  max-width: 900px;
  margin: 0 auto;
}

.why-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 8px 32px rgba(42, 26, 10, 0.06);
}

.why-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.why-card-content {
  padding: 40px 40px 40px 0;
}

.why-card-content p {
  font-size: 1rem;
  color: #4a3a2a;
  line-height: 1.8;
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */
.problems-section {
  background-color: #2A1A0A;
}

.problems-section .section-header h2 {
  color: #F5F1E8;
}

.problems-section .section-header p {
  color: #c4b8a8;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background-color: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s ease;
}

.problem-card:hover {
  background-color: rgba(245, 241, 232, 0.10);
  border-color: rgba(184, 138, 42, 0.3);
  transform: translateY(-4px);
}

.problem-icon {
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background-color: rgba(184, 138, 42, 0.12);
}

.problem-card h3 {
  color: #F5F1E8;
  margin-bottom: 12px;
}

.problem-card p {
  color: #c4b8a8;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   SOLUTIONS SECTION
   ============================================ */
.solutions-section {
  background-color: #F5F1E8;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.solution-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(42, 26, 10, 0.06);
}

.solution-card.reversed {
  direction: rtl;
}

.solution-card.reversed .solution-content {
  direction: ltr;
}

.solution-image {
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.solution-card:hover .solution-image img {
  transform: scale(1.05);
}

.solution-content {
  padding: 40px;
}

.solution-content h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.solution-content p {
  font-size: 0.9375rem;
  color: #5a4a3a;
}

.feature-list {
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: #4a3a2a;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #B88A2A;
}

.solution-note {
  font-style: italic;
  font-size: 0.875rem !important;
  color: #7a6a5a !important;
  border-left: 3px solid #B88A2A;
  padding-left: 16px;
  margin-top: 8px;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.solution-tags span {
  font-size: 0.8125rem;
  padding: 6px 16px;
  border-radius: 100px;
  background-color: rgba(184, 138, 42, 0.1);
  color: #B88A2A;
  font-weight: 500;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section {
  background-color: #F5F1E8;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(42, 26, 10, 0.05);
  transition: all 0.4s ease;
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(42, 26, 10, 0.1);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background-color: rgba(184, 138, 42, 0.1);
}

.advantage-card h3 {
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9375rem;
  color: #5a4a3a;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ============================================
   BENEFIT SECTION
   ============================================ */
.benefit-section {
  background-color: #2A1A0A;
}

.benefit-section .section-header h2 {
  color: #F5F1E8;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
}

.benefit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.benefit-card:hover img {
  transform: scale(1.08);
}

.benefit-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 26, 10, 0.85) 0%, rgba(42, 26, 10, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}

.benefit-overlay h3 {
  color: #F5F1E8;
  margin-bottom: 6px;
}

.benefit-overlay p {
  color: #d4c8b8;
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================
   METHOD SECTION
   ============================================ */
.method-section {
  background-color: #F5F1E8;
}

.method-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.method-left .section-subtitle {
  margin-bottom: 0.5rem;
}

.method-left h2 {
  margin-bottom: 1rem;
}

.method-left > p {
  color: #5a4a3a;
  margin-bottom: 2rem;
}

.method-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.step-number {
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #B88A2A;
  line-height: 1;
}

.method-step h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #2A1A0A;
  margin-bottom: 4px;
}

.method-step p {
  font-size: 0.9375rem;
  color: #5a4a3a;
  margin-bottom: 0;
}

.method-right {
  background-color: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(42, 26, 10, 0.06);
}

.why-choose-list {
  margin: 24px 0;
}

.why-choose-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  font-size: 0.9375rem;
  color: #2A1A0A;
  border-bottom: 1px solid rgba(42, 26, 10, 0.06);
}

.why-choose-list li:last-child {
  border-bottom: none;
}

.why-choose-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #B88A2A;
}

.why-choose-footer {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #2A1A0A;
  border-top: 1px solid rgba(42, 26, 10, 0.08);
  padding-top: 20px;
  margin-top: 20px;
  margin-bottom: 0;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background-color: #2A1A0A;
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  color: #B88A2A;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9375rem;
  color: #c4b8a8;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background-color: #F5F1E8;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(42, 26, 10, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #2A1A0A;
  transition: color 0.3s ease;
  gap: 16px;
}

.faq-question:hover {
  color: #B88A2A;
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: #5a4a3a;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: #2A1A0A;
  text-align: center;
}

.cta-content h2 {
  color: #F5F1E8;
  margin-bottom: 1rem;
}

.cta-content > p {
  color: #d4c8b8;
  font-size: 1.0625rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
  background-color: #B88A2A;
  color: #F5F1E8;
  border-color: #B88A2A;
}

.cta-section .btn-secondary {
  color: #F5F1E8;
  border-color: #F5F1E8;
}

.cta-section .btn-secondary:hover {
  background-color: #F5F1E8;
  color: #2A1A0A;
}

.cta-sub {
  font-size: 0.9375rem;
  color: #a09080 !important;
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #1a0e05;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.06);
}

.footer-brand .logo {
  color: #F5F1E8;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #908070;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #F5F1E8;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #908070;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #B88A2A;
}

.footer-col ul li {
  font-size: 0.875rem;
  color: #908070;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #605040;
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 400px;
  }

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

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

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

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #F5F1E8;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(42, 26, 10, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-toggle {
    display: flex;
  }

  .why-card {
    grid-template-columns: 1fr;
  }

  .why-card-content {
    padding: 24px;
  }

  .why-card img {
    min-height: 220px;
  }

  .solution-card {
    grid-template-columns: 1fr;
  }

  .solution-card.reversed {
    direction: ltr;
  }

  .solution-image {
    min-height: 240px;
  }

  .solution-content {
    padding: 28px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .method-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 400px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .problem-card {
    padding: 28px 20px;
  }

  .advantage-card {
    padding: 28px 20px;
  }
}
