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

/* Brand Design System Variables */
:root {
  --bg-primary: #0A0A0C;
  --bg-secondary: #121216;
  --bg-tertiary: #191920;
  --accent-gold: #D4AF37;
  --accent-gold-hover: #E5C158;
  --accent-champagne: #C5A880;
  --accent-red: #B71C1C;
  --accent-red-hover: #D32F2F;
  --text-primary: #F5F5F7;
  --text-secondary: #9E9EAF;
  --border-color: rgba(197, 168, 128, 0.15);
  --border-focus: rgba(212, 175, 55, 0.5);
  
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  
  --container-max-width: 1200px;
  --header-height: 80px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessibility: Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 10px 20px;
  font-weight: bold;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
  border-radius: 4px;
}

.skip-link:focus {
  top: 20px;
  outline: 2px solid var(--text-primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-gold);
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Focus Styling */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

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

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

.bg-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-red);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  height: 70px;
  background-color: rgba(10, 10, 12, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-svg {
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  position: relative;
  transition: var(--transition-fast);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  left: 0;
  transition: var(--transition-fast);
}

.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { top: 8px; }

.nav-toggle.active .nav-toggle-icon {
  background-color: transparent;
}
.nav-toggle.active .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.active .nav-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
  text-decoration: none;
}

.header-cta .btn {
  padding: 12px 18px;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Hero Landing Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 12, 0.4), rgba(10, 10, 12, 0.85)),
              radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 12, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hero-badges {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hero-badges li {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.72);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Compact Page Banner (Informational pages) */
.page-banner {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0 40px;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
}

/* Content Layout (Article / Prosed pages) */
.article-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}

.article-layout p {
  margin-bottom: 1.8rem;
}

.article-layout ul, .article-layout ol {
  margin-bottom: 2rem;
  padding-left: 24px;
  color: var(--text-secondary);
}

.article-layout li {
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

/* Glassmorphism Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-card {
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 35px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.08);
}

.feature-card h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Custom Table Design (Comparison) */
.table-wrapper {
  overflow-x: auto;
  margin: 40px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

th, td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: rgba(212, 175, 55, 0.05);
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--accent-gold);
}

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

tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Form Styles */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.sugar-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Footer */
.site-footer {
  background-color: #050507;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  grid-column: span 2;
}

.footer-brand-logo {
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 1.5px;
  background-color: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.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-disclaimer {
  font-size: 0.75rem;
  color: #666677;
  line-height: 1.5;
  margin-top: 15px;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    gap: 30px;
    z-index: 999;
    transition: var(--transition-smooth);
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  
  .nav-link {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 10px 0;
    white-space: normal;
  }
  
  .header-cta {
    width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .page-banner h1 {
    font-size: 2rem;
  }
  
  .form-container {
    padding: 24px;
  }
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .feature-card:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: none !important;
  }
}
