/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Kiona – brand secondary typeface (served from public/fonts for reliable loading) */
@font-face {
  font-family: "Kiona";
  src: url("/fonts/Kiona-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kiona";
  src: url("/fonts/Kiona-Itallic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

:root {
  /* DWELLX Brand Colors */
  --primary-black: #000000;
  --primary-red: #E31C20;
  --primary-white: #FFFFFF;
  --soft-white: #fefefe;
  --cream-white: #faf9f7;
  --text-gray: #333333;
  --light-gray: #e5e5e5;
  --hover-red: #c7181b;
  --accent-orange: #FF9D00;
  --accent-peach: #EFB68F;
  --white: #FFFFFF;
  --text-dark: #1a1a1a;
  /* Typography */
  --font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: "Kiona", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-gray);
  background-color: var(--soft-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
.site-header {
  background: var(--soft-white);
  box-shadow: 0 1px 3px rgba(26,26,26,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 72px;
  width: auto;
}

.brand-logo--icon {
  display: none;
}

@media (max-width: 768px) {
  .brand-logo--horizontal {
    display: none;
  }

  .brand-logo--icon {
    display: block;
    height: 36px;
    width: 36px;
    vertical-align: middle;
  }
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
}

.nav-actions {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Typography – Montserrat for headings per brand guide */
h1, h2, h3, h4, h5, h6,
.hero-title, .feature h3, .audience-section h2,
.transparency-message h2, .cta-final h2,
.navbar-link, .cta-button, .btn {
  font-family: var(--font-primary);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 20px;
  min-height: 70vh;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
}

.highlight {
  color: var(--primary-red);
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.cta-button.primary {
  background: var(--primary-red);
  color: white;
}

.cta-button.primary:hover {
  background: var(--hover-red);
  transform: translateY(-1px);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-black);
  border: 2px solid var(--primary-black);
}

.cta-button.secondary:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--primary-black);
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary-black);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
}

/* About Us Section – subtle peach warmth */
.about-section {
  background: rgba(239, 182, 143, 0.08);
  padding: 4rem 0;
}

.about-heading {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent-orange);
  display: inline-block;
}

.about-lead,
.about-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin: 0 0 1.25rem 0;
  max-width: 720px;
}

.about-body:last-child {
  margin-bottom: 0;
}

/* Transparency Message */
.transparency-message {
  background: var(--soft-white);
  padding: 5rem 0;
}

.transparency-message h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-black);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-orange);
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  background: rgba(239, 182, 143, 0.12);
  box-shadow: 0 4px 20px rgba(255, 157, 0, 0.08);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

.feature p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Authentication Forms */
.auth-form {
  max-width: 400px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--soft-white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(26,26,26,0.1);
}

.auth-form__header {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-black);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form__field {
  margin-bottom: 1.5rem;
}

.auth-form__label {
  display: block;
  font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.auth-form__input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.auth-form__input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.auth-form__actions {
  margin-top: 2rem;
}

.auth-form__submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-form__submit:hover {
  background: var(--hover-red);
}

.auth-form__links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-form__links a {
  color: var(--primary-red);
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-form__links a:hover {
  text-decoration: underline;
}

.auth-form__google-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.auth-form__google-btn:hover {
  background: #f8f9fa;
  border-color: #c1c7cd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form__google-btn:before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3csvg width='18' height='18' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M17.64 9.205c0-.639-.057-1.252-.164-1.841H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z' fill='%234285F4'/%3e%3cpath d='M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z' fill='%2334A853'/%3e%3cpath d='M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332Z' fill='%23FBBC05'/%3e%3cpath d='M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58Z' fill='%23EA4335'/%3e%3c/g%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Dual Audience Section */
.dual-audience {
  padding: 5rem 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.audience-section {
  padding: 2rem;
  border-radius: 12px;
  transition: background 0.25s ease;
}

.audience-section:hover {
  background: rgba(239, 182, 143, 0.06);
}

.audience-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-orange);
  display: inline-block;
}

.audience-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0 0 1.25rem 0;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.benefit-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-gray);
  position: relative;
  padding-left: 2rem;
}

.benefit-list li::before {
  content: '✓';
  color: var(--accent-orange);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Final CTA – accent gradient for warmth */
.cta-final {
  background: linear-gradient(180deg, var(--primary-black) 0%, #1a0f0f 50%, var(--primary-black) 100%);
  background-color: var(--primary-black);
  color: white;
  text-align: center;
  padding: 5rem 0;
  position: relative;
}

.cta-final::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-peach));
  opacity: 0.9;
}

.cta-final h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-final p {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.cta-final .cta-button.primary:hover {
  box-shadow: 0 4px 24px rgba(255, 157, 0, 0.4);
}

/* Footer */
/* Emergency Accommodation page */
.emergency-accommodation-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.emergency-accommodation-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.emergency-accommodation-header h1 {
  font-size: 2.5rem;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

.emergency-accommodation-lead {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.emergency-options {
  padding: 2rem 0;
  border-top: 1px solid var(--light-gray);
}

.emergency-options h2 {
  font-size: 1.5rem;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

.emergency-options-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.emergency-options-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-gray);
  line-height: 1.6;
}

.emergency-options-list li:last-child {
  border-bottom: none;
}

.emergency-options-list strong {
  color: var(--primary-black);
}

.emergency-contact {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.emergency-contact a {
  color: var(--primary-red);
  text-decoration: none;
}

.emergency-contact a:hover {
  text-decoration: underline;
}

.section-note {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.emergency-options.emergency-cta {
  text-align: center;
  padding: 3rem 0;
}

.emergency-options.emergency-cta p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.emergency-accommodation-page .site-footer {
  margin-top: auto;
}

/* About section on home: link to full About page */
.about-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
}

.about-link:hover {
  text-decoration: underline;
}

/* Static pages: About, Contact, Privacy, Terms */
.static-page__main {
  min-height: 60vh;
}

.static-page__hero {
  background: linear-gradient(135deg, var(--cream-white) 0%, var(--soft-white) 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.static-page__hero--short {
  padding: 2rem 0 1.5rem;
}

.static-page__title {
  font-family: var(--font-primary);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 0.5rem;
}

.static-page__tagline {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin: 0;
  max-width: 42ch;
}

.static-page__meta {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
  opacity: 0.8;
}

.static-page__section {
  padding: 2.5rem 0;
}

.static-page__section--alt {
  background: var(--cream-white);
}

.container--narrow {
  max-width: 680px;
}

.static-page__section h2 {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0 0 1rem;
}

.static-page__section p {
  margin: 0 0 1rem;
  color: var(--text-gray);
}

.static-page__lead {
  font-size: 1.1rem;
  line-height: 1.65;
}

.static-page__values {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.static-page__values li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-gray);
}

.static-page__values li:last-child {
  border-bottom: none;
}

.static-page__cta {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
}

.static-page__cta:hover {
  text-decoration: underline;
}

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

/* About page video */
.about-video-wrapper {
  max-width: 720px;
  margin: 0 auto 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-video {
  width: 100%;
  display: block;
  background: var(--primary-black);
}

.about-video-caption {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
  opacity: 0.85;
}

.about-video-caption code {
  font-size: 0.85em;
  background: var(--light-gray);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Contact page */
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-details li {
  padding: 0.35rem 0;
  color: var(--text-gray);
}

.contact-details a {
  color: var(--primary-red);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Legal pages (Privacy, Terms) */
.legal-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content a {
  color: var(--primary-red);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.site-footer {
  background: var(--primary-black);
  color: white;
  padding: 3rem 0;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand p {
  opacity: 0.7;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-peach);
}

/* Flash Messages */
.flash {
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  border-radius: 8px;
  font-weight: 500;
  max-width: 600px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.flash__close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.flash__close:hover {
  opacity: 1;
}

.flash--notice {
  background: #d1edff;
  color: #0c4a6e;
  border: 1px solid #7dd3fc;
}

.flash--alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.flash--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Primary Navbar – dark theme for DWELLX logo (red/white on black) */
.primary-navbar {
  background: var(--primary-black);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  gap: 2rem;
}

/* Centered logo layout: [ left 1fr ] [ logo auto ] [ right 1fr ] – equal sides, logo always centered */
.navbar-container--centered-logo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.navbar-links--left {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.navbar-right {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.navbar-right .navbar-actions {
  margin-left: 0;
}

/* Home dropdown – left-side menu with About Us, How It Works */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown--split {
  display: inline-flex;
  align-items: center;
}

.navbar-dropdown__link {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.navbar-dropdown__link:hover {
  color: var(--primary-red);
}

.navbar-dropdown__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  margin-left: 0.15rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: color 0.2s;
}

.navbar-dropdown__chevron:hover {
  color: var(--primary-red);
}

.navbar-dropdown__icon {
  transition: transform 0.2s;
}

.navbar-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--primary-black);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  z-index: 1000;
}

.navbar-dropdown__menu.hamburger-menu--open {
  display: block;
}

.navbar-dropdown__item {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
  border-radius: 6px;
}

.navbar-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-red);
}

.navbar-brand--center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-links--right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-link:hover {
  color: var(--primary-red);
}

.navbar-link--mobile-hidden {
  display: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.auth-link {
  font-size: 15px;
  color: var(--accent-orange);
}

.auth-link:hover {
  color: #ffb033;
}

.primary-navbar .cta-button.small {
  background: var(--accent-peach);
  color: var(--primary-black);
}

.primary-navbar .cta-button.small:hover {
  background: #f5c9a8;
}

.cta-button.small {
  padding: 0.5rem 1.25rem;
  font-size: 14px;
}

/* Hamburger Menu */
.hamburger-wrapper {
  position: relative;
  display: none;
}

.hamburger-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.hamburger-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--primary-black);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger-menu--open {
  display: block;
}

.hamburger-menu__item {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border-radius: 6px;
}

.hamburger-menu__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-red);
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.user-menu__trigger:hover {
  border-color: var(--primary-red);
  background: rgba(255, 255, 255, 0.12);
}

.user-menu__name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__icon {
  flex-shrink: 0;
}

.user-menu__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 0.5rem;
  z-index: 1000;
}

.user-menu__dropdown--open {
  display: block;
}

.user-menu__item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border-radius: 6px;
}

.user-menu__item:hover {
  background: var(--cream-white);
  color: var(--primary-red);
}

/* Responsive Design – Mobile-first enhancements */
@media (max-width: 768px) {
  /* Safe area for notched phones */
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .navbar-container {
    position: relative;
    padding: 0.75rem 16px;
  }

  .navbar-links,
  .navbar-links--left,
  .navbar-links--right {
    display: none;
  }

  .navbar-container--centered-logo {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "hamburger logo account";
    gap: 1rem;
    align-items: center;
    min-height: 52px;
  }

  .navbar-container--centered-logo .navbar-links--left,
  .navbar-container--centered-logo .navbar-links--right {
    display: none;
  }

  .navbar-container--centered-logo .navbar-right {
    display: contents;
  }

  .navbar-container--centered-logo .navbar-brand--center {
    position: static;
    transform: none;
    grid-area: logo;
    justify-self: center;
    align-self: center;
  }

  .navbar-container--centered-logo .navbar-brand--center .brand-link {
    display: flex;
    align-items: center;
  }

  .navbar-container--centered-logo .navbar-actions {
    display: contents;
  }

  .navbar-container--centered-logo .hamburger-wrapper {
    grid-area: hamburger;
    justify-self: start;
  }

  .navbar-container--centered-logo .user-menu,
  .navbar-container--centered-logo .auth-buttons {
    grid-area: account;
    justify-self: end;
  }

  .navbar-actions {
    gap: 1rem;
  }

  .navbar-actions .auth-buttons {
    gap: 0.75rem;
  }

  .hamburger-wrapper {
    display: block;
  }

  .hamburger-toggle {
    display: flex;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
  }

  .auth-link {
    display: none;
  }

  .cta-button.small {
    padding: 0.5rem 1.25rem;
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hamburger-menu {
    left: 0;
    right: auto;
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .hamburger-menu__item {
    padding: 14px 18px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero – compact, scroll-friendly */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem 16px 3rem;
    min-height: auto;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-logo-container {
    padding: 2rem;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .cta-button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 14px 24px;
    min-height: 48px;
  }

  /* Features */
  .transparency-message {
    padding: 3rem 0;
  }

  .about-heading {
    font-size: 1.5rem;
  }

  .about-lead,
  .about-body {
    font-size: 1rem;
  }

  .transparency-message h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .features-grid {
    gap: 1.5rem;
  }

  .feature {
    padding: 1.5rem 1rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature h3 {
    font-size: 1.25rem;
  }

  .feature p {
    font-size: 0.95rem;
  }

  /* Audience sections */
  .dual-audience {
    padding: 3rem 0;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .audience-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .benefit-list li {
    padding: 0.875rem 0;
    padding-left: 1.75rem;
    font-size: 0.95rem;
  }

  .audience-section .cta-button {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: block;
    text-align: center;
    padding: 14px 20px;
    min-height: 48px;
  }

  .nav-actions {
    display: none;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .site-footer {
    padding: 2.5rem 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links a {
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Final CTA */
  .cta-final {
    padding: 3rem 16px;
  }

  .cta-final h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .cta-final p {
    font-size: 1rem;
  }

  .final-actions .cta-button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
    padding: 16px 24px;
    min-height: 52px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-link--mobile-hidden {
    display: flex;
  }
}
