/*
 * Starbucks Nutrition Calculator - Modern Styling (Vanilla CSS)
 * Premium theme with Light/Dark mode support, glassmorphism, and responsive grids.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f9f9f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f2f0eb;
  --text-primary: #1e3932;
  --text-secondary: #4d5754;
  --text-muted: #828a87;
  --primary: #00704a;
  --primary-hover: #005a3b;
  --primary-light: #e6f3ef;
  --accent: #d4e9e2;
  --accent-dark: #1e3932;
  --border-color: rgba(30, 57, 50, 0.1);
  --border-focus: #00704a;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  
  /* Nutrition Facts colors */
  --nutrition-bg: #ffffff;
  --nutrition-text: #000000;
  --nutrition-border: #000000;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Standard Metrics */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
.dark-theme {
  --bg-primary: #0b1311;
  --bg-secondary: #121e1b;
  --bg-tertiary: #192a26;
  --text-primary: #f2f0eb;
  --text-secondary: #c2c9c7;
  --text-muted: #798783;
  --primary: #00b376;
  --primary-hover: #00e094;
  --primary-light: #162f29;
  --accent: #1e3932;
  --accent-dark: #d4e9e2;
  --border-color: rgba(212, 233, 226, 0.1);
  --border-focus: #00b376;
  --card-bg: rgba(18, 30, 27, 0.75);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  /* Nutrition Facts colors */
  --nutrition-bg: #1c1c1c;
  --nutrition-text: #ffffff;
  --nutrition-border: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: var(--transition-smooth);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Header & Navigation */
header {
  background-color: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  text-decoration: none !important;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

nav a:hover, nav a.active {
  color: var(--primary);
  text-decoration: none;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

.dark-theme .theme-toggle .sun-icon {
  display: block;
}

.dark-theme .theme-toggle .moon-icon {
  display: none;
}

/* Mobile Menu Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
}

.burger-menu span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  overflow: hidden;
  padding: 100px 0 80px 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 112, 74, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-svg-art {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Calculator Grid Section */
.calc-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

/* glassmorphism Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
}

/* Search and Select controls */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.select-custom {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3932' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: var(--transition-smooth);
}

.dark-theme .select-custom {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f0eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.select-custom:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Category Filter Tabs */
.tabs-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.tabs-container::-webkit-scrollbar {
  height: 4px;
}

.tabs-container::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.tab-btn {
  padding: 10px 18px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.tab-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Search results drop box */
.search-results {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
  position: absolute;
  width: 100%;
  z-index: 10;
  box-shadow: var(--card-shadow);
  display: none;
}

.search-results.active {
  display: block;
}

.search-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  align-items: center;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.search-item .item-cat {
  font-size: 0.75rem;
  background-color: rgba(0, 112, 74, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* Customizer Options */
.customizer-options {
  border-top: 1px dashed var(--border-color);
  margin-top: 24px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.customizer-options.full-width {
  grid-template-columns: 1fr;
}

.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  background-color: var(--bg-secondary);
}

.custom-checkbox-wrapper input {
  display: none;
}

.custom-checkbox-wrapper input:checked + .custom-checkbox {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox-wrapper input:checked + .custom-checkbox::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Quantity Control */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.qty-val {
  font-weight: 700;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--text-primary);
}

/* Action button area */
.action-area {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

.action-area button {
  flex: 1;
}

/* Nutrition Facts Label (US Standard Stylized) */
.nutrition-label {
  background-color: var(--nutrition-bg);
  color: var(--nutrition-text);
  border: 8px solid var(--nutrition-border);
  padding: 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nutrition-header {
  border-bottom: 10px solid var(--nutrition-border);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.nutrition-header h3 {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--nutrition-text);
  line-height: 1;
}

.nutrition-header p {
  font-size: 0.9rem;
  margin-top: 4px;
}

.serving-info {
  border-bottom: 6px solid var(--nutrition-border);
  padding: 4px 0;
  font-size: 0.95rem;
}

.serving-info .row {
  display: flex;
  justify-content: space-between;
}

.serving-info .large {
  font-size: 1.1rem;
  font-weight: 700;
}

.calories-section {
  border-bottom: 5px solid var(--nutrition-border);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.calories-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.calories-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.daily-value-text {
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 0;
  border-bottom: 1px solid var(--nutrition-border);
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
}

.nutrition-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--nutrition-border);
  font-size: 0.9rem;
}

.nutrition-table tr.sub-nutrient td {
  padding-left: 20px;
}

.nutrition-table tr.double-border td {
  border-bottom: 4px solid var(--nutrition-border);
}

.nutrition-table tr.thick-border td {
  border-bottom: 8px solid var(--nutrition-border);
}

.nutrition-table td.dv {
  text-align: right;
  font-weight: 700;
}

.nutrition-table strong {
  font-weight: 700;
}

.nutrition-footer-note {
  font-size: 0.7rem;
  padding-top: 8px;
  line-height: 1.3;
}

/* Caffeine Badge inside nutrition panel */
.caffeine-display {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

.dark-theme .caffeine-display {
  background-color: #1a3c31;
}

/* Daily Order Tracker (Daily Meal Log) */
.order-tracker {
  margin-top: 40px;
}

.order-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.empty-log-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-log-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.log-item:hover {
  transform: translateX(4px);
}

.log-item-details {
  flex: 1;
}

.log-item-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.log-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.log-item-calories {
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 16px;
  font-size: 1rem;
}

.log-item-remove {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.log-item-remove:hover {
  background-color: rgba(255, 77, 77, 0.1);
}

.log-summary-card {
  margin-top: 24px;
  background-color: var(--primary-light);
  border: 1px solid rgba(0, 112, 74, 0.2);
  border-radius: var(--border-radius-md);
  padding: 20px;
}

.log-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.log-summary-stat {
  text-align: center;
}

.log-summary-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.log-summary-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
}

/* Custom progress bars for daily totals */
.progress-bar-wrapper {
  margin-top: 12px;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.progress-bar-track {
  height: 8px;
  background-color: rgba(0, 112, 74, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  width: 0%;
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.progress-bar-fill.exceeded {
  background-color: #ff9900;
}

.progress-bar-fill.danger {
  background-color: #ff4d4d;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--card-shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

/* Info Section (For SEO & Search Content) */
.info-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  margin-top: 40px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  margin-top: 32px;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.rich-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.rich-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rich-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.rich-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.rich-table tr:last-child td {
  border-bottom: none;
}

.rich-table tr:hover {
  background-color: rgba(0, 112, 74, 0.02);
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-secondary);
  border-top: 1px solid transparent;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 20px 24px;
  border-top-color: var(--border-color);
}

/* Footer styling */
footer {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  transition: var(--transition-smooth);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.8fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

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

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Contact page styling & elements */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 0.9rem;
}

.form-input-text {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input-text:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* Mobile Sidebar/Drawer (Navigation) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transition: right 0.3s ease-out;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

/* Success notification toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .hero-image-container {
    order: -1;
  }
  
  .calc-container {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .customizer-options {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .log-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .logo-link {
    font-size: 1.1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}
