@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
  --primary: #b37b48;
  --primary-hover: #94623a;
  --primary-light: #fdf5eb;
  
  --secondary: #1a1a1a;
  --secondary-hover: #000000;
  --secondary-light: #4a4a4a;
  
  --accent-cream: #fdf5eb;
  --accent-dark-brown: #3e2f20;
  
  --bg-white: #ffffff;
  --bg-cream: #fbf7f2;
  --bg-dark: #1a1a1a;
  
  --text-dark: #1a1a1a;
  --text-medium: #444444;
  --text-light: #777777;
  --text-white: #ffffff;
  
  --font-primary: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-secondary: 'Inter', Helvetica, Arial, sans-serif;
  
  --container-max-width: 1140px;
  --grid-gap: 30px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-medium);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
  font-family: var(--font-primary);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -1px;
}

h2 {
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h3 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

p {
  font-family: var(--font-secondary);
  font-size: 16px;
  color: var(--text-medium);
}

p.large {
  font-size: 18px;
  color: #333333;
}

p.small {
  font-size: 14px;
  color: var(--text-light);
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a623a;
  margin-bottom: 12px;
  display: block;
}

.score-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-dark-brown);
  font-family: var(--font-primary);
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.bg-white-section {
  background-color: var(--bg-white);
}

.bg-cream-section {
  background-color: var(--bg-cream);
}

.bg-dark-section {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.bg-dark-section h1,
.bg-dark-section h2,
.bg-dark-section h3,
.bg-dark-section p {
  color: var(--text-white);
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

/* Navigation Styles */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
}

/* Button Styles */
.btn {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  padding: 14px 32px;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(179, 123, 72, 0.4);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-dark {
  background: var(--secondary);
  color: var(--text-white);
  padding: 14px 32px;
  border: none;
  transition: 0.3s;
}

.btn-dark:hover {
  background: #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 14px 32px;
  transition: 0.3s;
}

.btn-outline-dark:hover {
  background: var(--secondary);
  color: var(--text-white);
}

/* Card Styles */
.card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.card-title {
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Custom Rows Style (Adapting pricing_rows) */
.custom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
  transition: background 0.2s, padding 0.2s;
}

.custom-row:hover {
  background: var(--accent-cream);
  padding-left: 16px;
  padding-right: 16px;
}

/* Link Styles */
.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.text-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Image Stacking Interaction */
.image-stack-container {
  position: relative;
  height: 420px;
  width: 100%;
}

.stacked-image {
  position: absolute;
  border-radius: 8px;
  border: 4px solid var(--bg-white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, z-index 0.4s ease;
  object-fit: cover;
}

.stacked-image-1 {
  width: 60%;
  height: 280px;
  left: 0;
  top: 0;
  transform: rotate(-4deg);
  z-index: 3;
}

.stacked-image-2 {
  width: 55%;
  height: 250px;
  right: 0;
  bottom: 0;
  transform: rotate(3deg);
  z-index: 2;
}

.stacked-image:hover {
  transform: scale(1.04) rotate(0deg);
  z-index: 10;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input {
  background: var(--bg-white);
  border: 1px solid #e0e0e0;
  padding: 14px 16px;
  width: 100%;
  font-size: 14px;
  font-family: var(--font-secondary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 123, 72, 0.15);
}

.form-input.error {
  border-color: #d32f2f;
  background: #fff6f6;
}

/* Stats Section Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  text-align: center;
}

/* Hero Section Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  text-align: center;
}

/* Small 2-Column Info Grid */
.small-grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: var(--text-white);
  padding: 80px 0 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  padding-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-info p {
  color: #cccccc;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Copyright banner */
.footer-bottom {
  background-color: var(--accent-dark-brown);
  color: #cccccc;
  font-size: 13px;
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p {
	    color: #a1a1a1;
}

/* Responsive Mobile Menu Trigger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin-bottom: 6px;
  transition: 0.3s;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* Breakpoints Configuration */

/* Tablet & Smaller Devices (768px - 1199px) */
@media (max-width: 1199px) {
  h1 {
    font-size: 48px;
  }
  
  h2 {
    font-size: 36px;
  }
  
  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .image-stack-container {
    height: 380px;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  h1 {
    font-size: 36px; /* Scaled to 36px as per instruction */
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .grid-2-col,
  .grid-3-col,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }
  
  .small-grid-2-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .nav-menu {
    display: none; /* Hide standard nav list on mobile */
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  /* Mobile Drawer */
  .nav-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    z-index: 1000;
  }
  
  .nav-menu.mobile-active li {
    width: 100%;
    text-align: center;
  }
  
  .nav-menu.mobile-active .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .image-stack-container {
    height: 320px;
  }

  .stacked-image-1 {
    width: 50%;
    height: 220px;
  }

  .stacked-image-2 {
    width: 48%;
    height: 200px;
  }
}
