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

:root {
  --primary-color: #00ffff;
  --secondary-color: #ff00ff;
  --accent-color: #ffff00;
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border-color: #333333;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/************************
 Theme variables by mode
*************************/
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #050505;
  --card: #1a1a1a;
  --text: #ffffff;
  --text-2: #cccccc;
  --muted: #888888;
  --border: #333333;
  /* Ensure components that reference legacy vars stay themed */
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --page-gutter: 100px;
  --page-max: 1440px;
  --hero-overlay: 55%;
  --card-veil: rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --card: #ffffff;
  --text: #0a0a0a;
  --text-2: #333333;
  --muted: #666666;
  --border: #e6e6e6;
  /* Ensure components that reference legacy vars stay themed */
  --text-primary: #1f2937; /* softer than pure black */
  --text-secondary: #4a4a4a; /* readable body text on white */
  --page-gutter: 100px;
  --card-veil: rgba(255, 255, 255, 0.5);

  --page-max: 1440px;
  --hero-overlay: 20%;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
  margin: 0 auto;
  padding: 0;
}

/* Make default page content containers match header/footer width */
.page-content .container,
.single-page .container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
  padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bebas Neue Custom", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: color-mix(in oklab, var(--bg) 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 98%, transparent);
  backdrop-filter: blur(15px);
}

.navbar {
  padding: 8px 0 0 0; /* top 8px, bottom 0 */
}

.nav-container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
}
.brand-title {
  margin-left: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 2rem;
  color: var(--text);
  font-family: "Airborne GP", system-ui, sans-serif;
}
@media (max-width: 768px) {
  .brand-title {
    display: none;
  }
}

/* removed brand text styling; logo only */

/* Header social + theme toggle layout */
.nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-self: end;
}
.nav-brand {
  justify-self: center;
  align-self: center;
}
/* social icons removed */
.nav-social {
  display: none;
}
.nav-social .icon {
  display: none;
}
/* Ensure no bullets/left padding on the social icon list */
.nav-social .icon-list {
  display: none;
}
.nav-social .icon-list li {
  display: none;
}
.nav-social a {
  display: none;
}
.nav-social a:hover {
  color: var(--primary-color);
}

/* Toggle slider (sun/moon) */
.theme-toggle {
  --toggle-w: 48px;
  --toggle-h: 26px;
  --thumb: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
  cursor: pointer;
  width: var(--toggle-w);
  height: var(--toggle-h);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  position: relative;
}
.theme-toggle .toggle-track {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 999px;
}
.theme-toggle .toggle-thumb {
  position: absolute;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.theme-toggle .toggle-icon {
  position: absolute;
  font-size: 12px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}
.theme-toggle .toggle-icon.moon {
  left: auto;
  right: 8px;
}
.theme-toggle .toggle-icon.sun {
  left: auto;
  right: 8px;
}
:root[data-theme="light"] .theme-toggle .toggle-thumb {
  left: calc(var(--toggle-w) - var(--thumb) - 3px - 2px - 2px);
}
:root[data-theme="light"] .theme-toggle .toggle-icon.sun {
  right: auto;
  left: 8px;
}
:root[data-theme="light"] .theme-toggle .toggle-icon.moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .toggle-icon.sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .toggle-icon.moon {
  right: 8px;
}
.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Ensure equal spacing between icons and toggle */
.nav-left .theme-toggle {
  margin-left: 48px;
}

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

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.nav-menu {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

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

/* Improve hover contrast in light mode */
:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active {
  color: #005bbb; /* higher-contrast blue on white */
}

/* Gradient underline adapts too */
:root[data-theme="light"] .nav-link::after {
  background: linear-gradient(135deg, #005bbb, #0080ff);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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


/* Global: Light mode readability for titles and content links */
:root[data-theme="light"] .page-title {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  color: var(--text-primary) !important;
}

:root[data-theme="light"] .content-wrapper a,
:root[data-theme="light"] .content-wrapper a:visited {
  color: #005bbb !important; /* match header/footer link blue */
}
:root[data-theme="light"] .content-wrapper a:hover {
  border-bottom-color: #005bbb !important;
}

/* Global: Dark mode visited links match normal link color */
:root[data-theme="dark"] .content-wrapper a,
:root[data-theme="dark"] .content-wrapper a:visited {
  color: var(--primary-color) !important;
}
:root[data-theme="dark"] .content-wrapper a:hover {
  border-bottom-color: var(--primary-color) !important;
}

/* Footer/nav: keep visited same color as normal */
.footer-nav a:visited { color: inherit; }
.nav-link:visited { color: inherit; }


.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  min-height: 71.25vh; /* ~75% of previous 95vh; keep parallax plane visible */
  display: flex;
  align-items: center;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 255, 0.1) 0%,
    transparent 70%
  );
  position: relative;
}

/* Parallax tuning: ensure smoothness and isolate stacking */
.hero {
  perspective: 1px;
  overflow: hidden;
}

/* Use only one background (no repeated hero image element) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      color-mix(in oklab, var(--bg) var(--hero-overlay), transparent),
      color-mix(in oklab, var(--bg) var(--hero-overlay), transparent)
    ),
    url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax */
  pointer-events: none;
  opacity: 1;
  z-index: -1;
}

.hero-container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.hero--centered .hero-content {
  text-align: center;
  margin-inline: auto;
}
/* Raise hero content closer to the top on large screens */
.hero.hero--centered {
  align-items: flex-start;
  padding-top: 100px;
  padding-bottom: 100px;
}
/* Pull the hero content block up further, reducing gap below */
.hero--centered .hero-content {
  margin-bottom: 0;
}
.hero--centered .channels {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

/* Channel labels (MKBHD-style chips) */
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}
.channel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
}
.channel-label .fa-brands,
.channel-label .fa-solid {
  font-size: 0.95rem;
}
.channel-label:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Hero title typography using local fonts */
@font-face {
  font-family: "Airborne GP";
  src: url("/fonts/airborne-gp.bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.hero-title-sub--large {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

@font-face {
  font-family: "Bebas Neue Custom";
  src: url("/fonts/bebas-neue.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.hero-title-main {
  display: block;
  font-size: clamp(2.75rem, 6vw, 6rem);
  font-weight: 700;
  font-family: "Airborne GP", system-ui, sans-serif;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: none;
}
.hero-title-sub {
  display: block;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--text-2);
  font-weight: 400;
  font-family: "Bebas Neue Custom", sans-serif;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}
.hero-title-sub.hero-title-sub--large {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.hero-blurb {
  margin-top: 0;
  margin-bottom: 3rem;
  color: var(--text-2);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-properties {
  margin-top: 0;
}
@media (min-width: 1024px) {
  .hero-properties {
    margin-top: 0;
  }
}

/* Remove old hero-description/actions/image styles no longer used */
/* Hero Properties grid */
.hero-properties {
  margin-top: 0; /* spacing handled by .hero-blurb */
}
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 37.5%); /* desktop 2x2 at 75% width */
  justify-content: center;
  gap: 2rem; /* wider gap on large screens */
}
.property-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
}

/* Ensure property card borders remain visible against dark hero */
:root[data-theme="dark"] .property-card { border-color: #ffffff; }

.property-image {
  position: relative;
}
.property-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.property-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

/* Recent Partner Work grid */
.recent-work { margin: 2rem 0; }
.recent-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .recent-work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .recent-work-grid { grid-template-columns: repeat(3, 1fr); }
}
.recent-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
}
.recent-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.recent-meta {
  padding: 0.75rem 1rem 1rem;
}
.recent-title {
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
}
.recent-blurb {
  color: var(--text-secondary);
  margin: 0;
}
.property-overlay-inner {
  display: grid;
  grid-auto-rows: max-content;
  gap: 0.4rem;
  align-content: center;
  justify-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px; /* rounded rectangle band (not pill) */
  background: color-mix(in oklab, var(--card-veil) 100%, transparent);
  backdrop-filter: blur(4px);
}

.property-overlay-inner .property-title {
  margin-top: 0;
}
.property-overlay-inner .property-cta.btn {
  width: auto;
  padding-inline: 1.1rem;
}
@media (min-width: 1200px) {
  .property-overlay {
    padding: 1rem;
  }
  .property-overlay-inner {
    padding: 1rem 1.25rem;
    gap: 0.5rem;
  }
}

.property-title {
  font-size: 2.2rem;
  margin: 0;
}
.property-blurb {
  margin: 0.25rem 0 0.5rem;
  color: var(--text-2);
}
.property-cta {
  color: var(--primary-color);
  font-weight: 600;
}
.property-cta.btn {
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  width: auto;
  align-self: center;
  text-align: center;
  padding: 0.5rem 1rem; /* reduced height */
  border-radius: 9999px; /* pill shape */
  line-height: 1; /* tighter vertical rhythm */
}

.property-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}
@media (max-width: 1200px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 (tablet/desktop) */
  }
}
@media (max-width: 640px) {
  .properties-grid {
    grid-template-columns: 1fr; /* 1x4 vertical */
  }
}
@media (max-width: 1200px) {
  .properties-grid {
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .properties-grid {
    gap: 1.25rem;
  }
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Recent Videos */
.recent-videos {
  padding: 4rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.video-thumb {
  background: #222;
  aspect-ratio: 16 / 9;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: var(--text-2);
}
.video-channel {
  font-weight: 600;
}
.video-title {
  color: var(--muted);
}

/* Merch CTA */
.merch-cta {
  padding: 4rem 0;
}
.merch-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.merch-card h2 {
  margin-bottom: 0.5rem;
}
.merch-card p {
  margin-bottom: 1rem;
  color: var(--text-2);
}

.features {
  padding: 6rem 0;
  background: var(--bg-2);
}

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

.feature-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
}

.feature-icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0);
}

/* Portfolio Preview */
.portfolio-preview {
  padding: 6rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.portfolio-item {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

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

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: var(--bg-2);
  text-align: center;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background: color-mix(in oklab, var(--bg) 98%, transparent);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
  margin: 0 auto;
  padding: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 0;
}
.social-icon {
  width: 24px;
  height: 24px;
  color: var(--text-2);
  transition: color 0.3s ease;
  display: block;
}
.social-links a:hover .social-icon {
  color: var(--primary-color);
}

/* Footer centered icon rows */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.icon-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.icon-list .icon {
  width: 24px;
  height: 24px;
  color: var(--text-2);
  display: block;
}
.footer-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.support-icons .icon {
  width: 24px;
  height: 24px;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 0;
  color: var(--text);
}

/* Minimal two-line footer styles */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: inherit;
  text-decoration: none;
}
.footer-nav a:visited,
.footer-nav a:hover,
.footer-nav a:active,
.footer-nav a:focus {
  text-decoration: none;
}
.footer-nav .sep {
  margin: 0 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Mobile Navigation */
.nav-menu.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  gap: 1rem;
}

/* Ensure mobile menu text is readable in both themes */
.nav-menu.mobile-open .nav-link { color: var(--text); }
:root[data-theme="light"] .nav-menu.mobile-open { background: #ffffff; }
:root[data-theme="light"] .nav-menu.mobile-open .nav-link { color: #0a0a0a; }

/* Make the hamburger visible on light backgrounds and in active state */
:root[data-theme="light"] .hamburger { background: #0a0a0a; }
.nav-toggle { border-radius: 8px; }


/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title-main {
    font-size: 3rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  /* Reduce top spacing on mobile so content remains high without crowding */
  .hero.hero--centered {
    padding-top: 64px;
  }

  .container {
    padding: 0 1rem;
  }

  .features-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Responsive tweaks: gutters, hero image framing, card overflow, footer dots --- */
/* Reduce page gutter on tablet and mobile so content takes priority over margins */
@media (max-width: 1024px) {
  :root[data-theme="dark"],
  :root[data-theme="light"] {
    --page-gutter: 48px;
  }
}
@media (max-width: 768px) {
  :root[data-theme="dark"],
  :root[data-theme="light"] {
    --page-gutter: 16px;
  }
}

/* Reframe hero background to show jet nose on smaller screens */
@media (max-width: 1200px) {
  .hero::before { background-position: 35% 50%; }
}
@media (max-width: 768px) {
  .hero::before {
    background-position: 25% 50%;
    background-attachment: scroll; /* iOS Safari smoother than fixed */
  }
}

/* Property card readability on narrow screens */
@media (max-width: 640px) {
  /* Give cards more vertical room and ensure image crops nicely */
  .property-image { aspect-ratio: 4 / 3; }
  .property-image img { height: 100%; }

  /* Tighten internals and clamp blurb to prevent overflow */
  .property-overlay-inner {
    padding: 0.7rem 0.85rem;
    gap: 0.35rem;
  }
  .property-title { font-size: 2rem; }
  .property-blurb {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* show up to 3 lines, then ellipsis */
    overflow: hidden;
  }
}

/* Footer: when links wrap on phones, hide separator dots and use spacing instead */
@media (max-width: 480px) {
  .footer-nav { gap: 0.75rem; }
  .footer-nav .sep { display: none; }
}

/* Add standard line-clamp for broader compatibility */
@media (max-width: 640px) {
  .property-blurb { line-clamp: 3; text-overflow: ellipsis; }
}


/* Contact Form Styles */
.contact-form {
  width: 100%;
  max-width: 760px;
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-label {
  font-weight: 600;
  color: var(--text-2);
}
.form-control {
  width: 100%;
  appearance: none;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2);
  background: color-mix(in oklab, var(--bg-2) 85%, var(--primary-color) 15%);
}
textarea.form-control {
  resize: vertical;
  min-height: 140px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
/* Hide honeypot from real users but keep it in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}
.alert-success {
  border-left-color: #22c55e; /* green accent */
}
