/* ==========================================================================
   Vaultsbreezyrank — Highland Mist Design System
   Aesthetic: Dark Glassmorphism | Card Style: Glass Overlay
   ========================================================================== */

:root {
  --color-forest: #304936;
  --color-forest-dark: #152219;
  --color-ground: #0e1511;
  --color-moss: #687653;
  --color-heather: #776477;
  --color-heather-light: #9c8a9c;
  --color-beige: #e8ddcb;
  --color-beige-muted: #c2b7a3;
  --color-copper: #a8663f;
  --color-copper-glow: #c97e52;

  --glass-surface: rgba(30, 44, 34, 0.65);
  --glass-border: rgba(232, 221, 203, 0.14);
  --glass-highlight: rgba(168, 102, 63, 0.35);

  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-height: 64px;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  font-size: 16px;
  background-color: var(--color-ground);
  color: var(--color-beige);
  font-family: var(--font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 15% 20%, rgba(104, 118, 83, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(119, 100, 119, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(48, 73, 54, 0.3) 0%, transparent 60%),
    var(--color-ground);
  background-attachment: fixed;
  color: var(--color-beige);
  overflow-x: hidden;
}

/* Typography & Wrapping Rules */
h1, h2, h3, h4, h5, h6, nav, .brand-text {
  overflow-wrap: anywhere;
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin-bottom: var(--space-24); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.25; margin-bottom: var(--space-24); }
h3 { font-size: 1.35rem; line-height: 1.3; margin-bottom: var(--space-16); }
p { margin-bottom: var(--space-16); color: var(--color-beige-muted); }
p:last-child { margin-bottom: 0; }
a { color: var(--color-beige); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-copper-glow); }

:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 3px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  min-width: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background: rgba(14, 21, 17, 0.9);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 100;
  transition: height 0.2s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-width: 0;
  gap: var(--space-12);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-beige);
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.brand-text {
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  min-width: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-24);
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-beige-muted);
  padding: var(--space-4) 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  border-bottom: 2px solid var(--color-copper);
}

/* Right-side actions (CTA + mobile hamburger) */
.header-container > div:last-child,
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-shrink: 0;
}

.header-cta {
  background: var(--color-copper);
  color: #ffffff !important;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.header-cta:hover {
  background: var(--color-copper-glow);
}

.mobile-toggle {
  display: none;
  background: rgba(30, 44, 34, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--color-beige);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background: rgba(48, 73, 54, 0.8);
  border-color: var(--color-copper);
  color: #ffffff;
}

.mobile-toggle svg {
  display: block;
}

.mobile-toggle line {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: rgba(14, 21, 17, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-24) var(--space-16);
  z-index: 99;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-nav-panel.is-visible {
  display: flex;
}

.mobile-nav-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.mobile-nav-panel a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-beige);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: rgba(48, 73, 54, 0.45);
  border-color: var(--glass-border);
  color: #ffffff;
}

.mobile-nav-panel li:last-child a {
  margin-top: var(--space-8);
  background: var(--color-copper);
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  border-color: transparent;
}

.mobile-nav-panel li:last-child a:hover {
  background: var(--color-copper-glow);
}

/* Hero Section */
.hero-section {
  padding: var(--space-64) 0;
  position: relative;
}

.hero-card {
  background: linear-gradient(135deg, rgba(48, 73, 54, 0.45) 0%, rgba(21, 34, 25, 0.85) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-copper), transparent);
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(119, 100, 119, 0.35);
  border: 1px solid rgba(119, 100, 119, 0.5);
  color: #ffffff;
  padding: var(--space-4) var(--space-16);
  border-radius: 20px;
  margin-bottom: var(--space-16);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-beige);
  max-width: 680px;
  margin-bottom: var(--space-24);
}

/* Glass Overlay Card Style (Uniform Across All Pages) */
.glass-overlay-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #152219;
  border: 1px solid var(--glass-border);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

.glass-overlay-card:hover {
  border-color: var(--glass-highlight);
}

.glass-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.glass-card-overlay {
  position: relative;
  z-index: 2;
  margin: var(--space-16);
  padding: var(--space-24);
  background: var(--glass-surface);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-beige);
  background: rgba(104, 118, 83, 0.4);
  border: 1px solid rgba(104, 118, 83, 0.6);
  padding: var(--space-4) var(--space-8);
  border-radius: 4px;
}

.card-title {
  font-size: 1.3rem;
  margin: 0;
  color: #ffffff;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--color-beige);
  margin: 0;
}

.card-action {
  align-self: flex-start;
  color: var(--color-copper-glow);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.card-action:hover {
  color: #ffffff;
}

/* Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-40);
}

/* Content Page Layout */
.content-section {
  padding: var(--space-64) 0;
}

.article-panel {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-40);
}

.article-panel h2 {
  color: #ffffff;
  border-left: 3px solid var(--color-copper);
  padding-left: var(--space-16);
  margin-top: var(--space-40);
}

.article-panel h2:first-of-type {
  margin-top: 0;
}

.article-panel ul {
  padding-left: var(--space-24);
  margin-bottom: var(--space-24);
  color: var(--color-beige-muted);
}

.article-panel li {
  margin-bottom: var(--space-8);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
  margin: var(--space-24) 0;
  padding: var(--space-16);
  background: rgba(14, 21, 17, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-beige-muted);
  margin-bottom: var(--space-4);
}

.spec-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

/* Table Design for Cookie & Specs */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-24) 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

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

th {
  background: rgba(48, 73, 54, 0.4);
  color: #ffffff;
  font-weight: 600;
}

tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Contact Page Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-40);
}

.contact-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-40);
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: var(--space-24);
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  color: var(--color-beige);
  margin-bottom: var(--space-8);
  font-weight: 500;
}

.form-input {
  background: rgba(14, 21, 17, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: var(--space-16);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-copper);
}

.form-input.is-invalid {
  border-color: #d9534f;
  background-color: rgba(217, 83, 79, 0.08);
}

.error-text {
  color: #ff8b88;
  font-size: 0.8rem;
  margin-top: var(--space-4);
  display: none;
}

.form-input.is-invalid + .error-text {
  display: block;
}

.form-submit-btn {
  background: var(--color-copper);
  color: #ffffff;
  border: none;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.form-submit-btn:hover {
  background: var(--color-copper-glow);
}

.static-map-box {
  background: rgba(21, 34, 25, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.static-map-visual {
  height: 220px;
  background: linear-gradient(135deg, #1d2c20 0%, #111a14 100%);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer (Identical on every page) */
.site-footer {
  margin-top: auto;
  background: #0b110e;
  border-top: 1px solid var(--glass-border);
  padding: var(--space-64) 0 var(--space-40) 0;
  color: var(--color-beige-muted);
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-col h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: var(--space-16);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-8);
}

.footer-col a {
  color: var(--color-beige-muted);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  font-size: 0.82rem;
}

/* Cookie Banner (Fixed Bottom) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(14, 21, 17, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-24);
  z-index: 9999;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.cookie-text {
  flex: 1 1 300px;
  font-size: 0.88rem;
  color: var(--color-beige);
  margin: 0;
}

.cookie-text a {
  color: var(--color-copper-glow);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.btn-cookie {
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-cookie-accept {
  background: var(--color-copper);
  color: #ffffff;
}

.btn-cookie-accept:hover {
  background: var(--color-copper-glow);
}

.btn-cookie-reject {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--color-beige);
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-cookie-pref {
  background: transparent;
  border-color: transparent;
  color: var(--color-beige-muted);
  text-decoration: underline;
}

.btn-cookie-pref:hover {
  color: #ffffff;
}

/* Responsiveness down to 320px */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .site-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .header-cta {
    padding: 6px var(--space-12);
    font-size: 0.82rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .hero-card {
    padding: var(--space-24);
  }

  .article-panel {
    padding: var(--space-24);
  }
}

@media (max-width: 540px) {
  /* Hide text-heavy header button on small screens so the header maintains clean proportions */
  .header-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-16);
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-cookie {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 var(--space-12);
  }

  .brand-wrapper {
    gap: 6px;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
  }

  .mobile-toggle svg {
    width: 20px;
    height: 20px;
  }
}