/* ========================================
   @font-face declarations
   ======================================== */

@font-face {
  font-family: 'DIN Next LT Pro';
  src: url('../fonts/DINNextLTPro-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN Next LT Pro';
  src: url('../fonts/DINNextLTPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN Next LT Pro Medium Condensed';
  src: url('../fonts/DINNextLTPro-MediumCond.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN Next LT Pro Light Condensed';
  src: url('../fonts/DINNextLTPro-LightCond.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tiempos Headline';
  src: url('../fonts/tiempos-headline-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Base styles
   ======================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  line-height: 1.2;
}

h1 {
  font-family: var(--font-condensed-medium);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-near-black);
  letter-spacing: 0.02em;
}

h2 {
  font-family: var(--font-condensed-medium);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-near-black);
  letter-spacing: 0.01em;
}

h3 {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-dark-gray);
}

h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark-gray);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

small, .caption {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-medium-gray);
}

a {
  color: var(--color-link);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

/* ========================================
   Wordmark
   ======================================== */

.wordmark {
  display: inline-block;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wordmark-west {
  font-family: var(--font-condensed-medium);
  font-weight: 500;
}

.wordmark-scent {
  font-family: var(--font-condensed-light);
  font-weight: 300;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-deep-aqua);
  color: #FFFFFF;
  border-color: var(--color-deep-aqua);
}

.btn-primary:hover {
  background-color: var(--color-link-hover);
  border-color: var(--color-link-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-deep-aqua);
  border-color: var(--color-deep-aqua);
}

.btn-secondary:hover {
  background-color: var(--color-ice-white);
  color: var(--color-link-hover);
  border-color: var(--color-link-hover);
}

/* ========================================
   Header
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-white);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

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

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

.header-logo img {
  height: 36px;
  width: auto;
}

/* ========================================
   Desktop Navigation
   ======================================== */

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: var(--space-xl);
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-dark-gray);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-deep-aqua);
  border-bottom-color: var(--color-deep-aqua);
}

/* ========================================
   Header Actions (toggle + hamburger)
   ======================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ========================================
   Mobile Navigation
   ======================================== */

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-near-black);
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-near-black);
  position: absolute;
  left: 0;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  bottom: -7px;
}

.nav-toggle.open span {
  background-color: transparent;
}

.nav-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.open span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-pale-aqua);
  box-shadow: 0 4px 8px rgba(30, 39, 40, 0.08);
  z-index: 40;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  padding: var(--space-md) 0;
}

.nav-mobile a {
  display: block;
  padding: var(--space-sm) var(--gutter);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-deep-aqua);
  background-color: var(--color-off-white);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background-color: var(--color-off-white);
  border-top: 1px solid var(--color-pale-aqua);
  padding: var(--space-2xl) 0;
}

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

.footer-company {
  font-family: var(--font-condensed-medium);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-near-black);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.footer-address {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-medium-gray);
  margin-bottom: var(--space-sm);
}

.footer-contact {
  margin-bottom: var(--space-lg);
}

.footer-contact a {
  font-size: 14px;
  color: var(--color-link);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-link-hover);
}

.footer-copyright {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-light-gray);
}

/* ========================================
   Responsive — Tablet (768px)
   ======================================== */

@media (min-width: 768px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }
}

/* ========================================
   Responsive — Desktop (1024px)
   ======================================== */

@media (min-width: 1024px) {
  h1 {
    font-size: 48px;
  }

  .nav-desktop {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ========================================
   Page Banner
   ======================================== */

.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 39, 40, 0.6);
}

.page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.page-banner-content h1 {
  color: #FFFFFF;
  margin: 0;
}

@media (min-width: 768px) {
  .page-banner {
    min-height: 320px;
  }
}

@media (min-width: 1024px) {
  .page-banner {
    min-height: 360px;
  }
}

/* ========================================
   Aqua Bullet List
   ======================================== */

.aqua-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-xl);
}

.aqua-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: var(--space-sm);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark-gray);
}

.aqua-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-image: url('../images/Aqua-Bullet.webp');
  background-size: contain;
  background-repeat: no-repeat;
}

/* ========================================
   Theme Transition
   ======================================== */

body,
.site-header,
.nav-mobile,
.site-footer,
.btn,
.btn-primary,
.btn-secondary,
a {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ========================================
   Theme Toggle
   ======================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  padding: 0;
  color: var(--color-medium-gray);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--color-deep-aqua);
  border-color: var(--color-deep-aqua);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  display: block;
}

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

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ========================================
   Dark Mode — Component Overrides
   ======================================== */

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--color-pale-aqua);
}

[data-theme="dark"] .header-logo img {
  filter: invert(1) brightness(1.8);
}

/* ========================================
   Reduced motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
