/* ======================================= */
/* 📚 TYPOGRAPHY (Tech/Clean: Montserrat & Roboto) */
/* ======================================= */
h1, h2, h3, header nav a { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700;
}

/* === Heading sizes (desktop defaults) === */
h1 {
  font-size: 3rem;      /* ~48px */
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2.2rem;    /* ~35px */
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.6rem;    /* ~26px */
  line-height: 1.4;
  margin-bottom: 0.5em;
}

/* === Responsive scaling === */
@media (max-width: 900px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.4rem; }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
}

body { 
    font-family: 'Roboto', sans-serif; 
    font-weight: 400;
}


/* ======================================= */
/* 🎨 THEME VARIABLES - LIGHT MODE DEFAULTS */
/* ======================================= */
:root {
    /* Base Colors */
    --background-color: #ffffff;
    --text-color: #2c3e50;
    --accent-color: #007bff;
    --button-text-color: #ffffff;
    /* Header/Footer/Backgrounds */
    --header-bg: #ecf0f1;
    --header-bg-secondary: #f7f7f7;
    --section-bg: #f8f8f8;
    
    /* Global Shadow for depth */
    --box-shadow-light: 0 4px 8px rgba(0,0,0,0.08);
    --box-shadow-dark: 0 4px 8px rgba(0,0,0,0.3);
}

/* ======================================= */
/* 🌙 DARK MODE OVERRIDES (GENERIC NIGHT) */
/* ======================================= */
html.dark-mode { 
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --accent-color: #3498db;
    --button-text-color: #2c3e50;
    --header-bg: #34495e;
    --header-bg-secondary: #475a70;
    --section-bg: #34495e;
}


/* ======================================= */
/* 🌎 GLOBAL APPLICATION & BASE LAYOUT (CRITICAL FIXES HERE) */
/* ======================================= */

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* CRITICAL: Centers block-level sections horizontally */
    display: flex;
    flex-direction: column;
    align-items: center; 
    min-width: 100%;
}

/* Global Header/Nav - CENTERED */
header {
    background-color: var(--header-bg);
    color: var(--text-color);
    padding: 10px 5%; 
    box-shadow: var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%; /* Must span full width */
}


/* All Sections need a max width and centered margins to stop spanning entire screen */
section {
    width: 100%;
    max-width: 1200px; /* Limits the max width of the content */
    margin: 0 auto; /* Centers the section content */
    padding: 60px 5%; /* Padding ensures text doesn't hit edge of screen */
    box-sizing: border-box;
}


/* Call to Action Buttons (cta-btn) & Theme Toggle Buttons */
.cta-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: var(--button-text-color) !important;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}


/* Footer */
footer {
    background-color: var(--header-bg);
    color: var(--text-color);
    text-align: center;
    padding: 15px 5%;
    border-top: 1px solid var(--text-color);
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 5%;
}


/* Featured Product Section (Golden Ratio) */
.featured-product {
  background: linear-gradient(to bottom, #FFF5E1 0%, #ffffff 100%);
  padding: 80px 5%;
}


/* ======================================= */
/* PRODUCT LAYOUT STYLES & BRAND SIGNATURE (FINAL) */
/* ======================================= */

/* --- Custom Styles for Brand Signature (Used on Coming Soon Cards) --- */
.brand-line-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.attribution-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 10px;
    letter-spacing: 0.2em;
    color: #555;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: #ccc;
    width: 15px;
}


/* --- Golden Ratio Split for Featured Product (Desktop Only) --- */
.product-hero {
  display: grid;
  /* GOLDEN RATIO: 1:1.618 split (38.2% image / 61.8% info) */
  grid-template-columns: 0.8fr 1.3fr; 
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  /* ADD THIS LINE: Centers the entire content block within the grid area */
  justify-content: center; 
}

.product-image-container {
  text-align: center;
  padding: 0 10px; 
}


/* --- Mobile Layout Correction (Must be inside @media (max-width: 768px)) --- */
@media (max-width: 768px) {
  
  /* Mobile: Switch to single column and reduce image size */
  .product-hero {
    grid-template-columns: 1fr; /* Stacks image and text vertically */
    gap: 40px;
  }
  
  .product-hero .product-image-container img {
    max-width: 70%; /* Reduce image size on mobile for breathing room */
    width: 70%;
    margin: 0 auto; 
  }
  
}