/* ============================================
   Midbar Investment - Main Stylesheet
   Dark theme matching brand carousel content
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #ffffff;
  --color-primary-light: #e0e0e0;
  --color-accent: #c9a84c;        /* warm gold from carousel */
  --color-accent-hover: #d4b85e;
  --color-dark: #0a0a0a;
  --color-surface: #1e1e1e;       /* card/section backgrounds */
  --color-surface-light: #252525; /* slightly lighter surface */
  --color-text: #e0e0e0;
  --color-text-light: #999999;
  --color-text-muted: #666666;
  --color-bg: #0e0e0e;           /* main dark background */
  --color-bg-alt: #181818;
  --color-bg-dark: #060606;
  --color-border: #333333;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;

  /* Subtle grid background (matches carousel) */
  --grid-bg: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  position: relative;
  border-top: 1px solid var(--color-border);
}

.section--alt {
  background: var(--color-surface);
}

/* Add grid texture to alternating sections */
.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grid-bg);
  pointer-events: none;
}

.section--dark {
  background: var(--color-dark);
  color: #ffffff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

/* Gold top border accent on dark CTA sections */
.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

/* Gold accent line (like the carousel horizontal rule) */
.section-rule {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 2rem;
}

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

.text-accent {
  color: var(--color-accent);
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #0a0a0a;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--dark:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header--scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo img {
  height: 46px;
  width: auto;
}

.logo:hover {
  color: var(--color-accent);
}

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

.nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #ffffff;
}

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

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero--bg {
  background: url('../images/Photo-4.jpg') center/cover no-repeat;
}

.hero.hero--bg::before {
  background: rgba(0, 0, 0, 0.7);
}

.hero--bg .hero-content {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 1px 6px rgba(0, 0, 0, 0.8);
}

.hero--bg::after {
  display: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grid-bg);
}

/* Gold accent line at top of hero (like carousel) */
.hero::after {
  content: '';
  position: absolute;
  top: calc(var(--header-height) + 3rem);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--color-accent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 4rem 2rem 2rem;
}

.hero h1 {
  color: #ffffff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 900;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Hero (smaller variant for subpages) --- */
.hero--small {
  min-height: 40vh;
}

.hero--small h1 {
  font-size: 2.75rem;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grid-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--color-text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(201, 168, 76, 0.3);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--color-surface-light);
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* --- Property Details --- */
.property-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.detail-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.detail-item .icon svg {
  flex-shrink: 0;
}

.detail-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.detail-item .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* --- Available Space Feature --- */
.space-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.space-feature-text h2 {
  margin-bottom: 1rem;
}

.space-feature-text p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.space-highlights {
  list-style: none;
  margin-bottom: 2rem;
}

.space-highlights li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
}

.space-highlights li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--color-surface-light);
  border: 2px solid var(--color-border);
  object-fit: cover;
}

.team-member h3 {
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(201, 168, 76, 0.3);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-surface-light);
}

.blog-card-body {
  padding: 1.75rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.blog-card-body h3 a {
  color: #ffffff;
}

.blog-card-body h3 a:hover {
  color: var(--color-accent);
}

.blog-card-body p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Blog article page */
.article-content {
  max-width: 750px;
  margin: 0 auto;
}

.article-meta {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.article-content h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
  text-transform: none;
}

.article-content h3 {
  margin-top: 2rem;
  text-transform: none;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-surface);
  font-style: italic;
  color: var(--color-text-light);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--color-surface);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-item .icon {
  font-size: 1.3rem;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.contact-info-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Space Hero Image --- */
.space-hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.space-hero-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* --- Photo Gallery --- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.gallery-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0a0a0a;
}

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

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(201, 168, 76, 0.3);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2001;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--color-accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease;
  z-index: 2001;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201, 168, 76, 0.3);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
  max-width: 600px;
}

/* --- Blog Card as Link --- */
a.blog-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.blog-card:hover {
  color: inherit;
}

a.blog-card .blog-card-body h3 {
  color: #ffffff;
  transition: color 0.3s ease;
}

a.blog-card:hover .blog-card-body h3 {
  color: var(--color-accent);
}

/* Blog card image as <img> */
img.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Article hero image */
.article-hero-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

/* Team avatar as <img> */
img.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--color-border);
  object-fit: cover;
  object-position: center top;
}

/* --- Newsletter Form --- */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
  min-width: 0;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

/* Footer newsletter variant */
.newsletter-form--footer {
  flex-direction: column;
  max-width: none;
}

.newsletter-form--footer .btn {
  width: 100%;
  text-align: center;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .space-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery-item img {
    height: 180px;
  }

  .space-hero-img {
    height: 300px;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero--small h1 {
    font-size: 2rem;
  }

  .hero {
    min-height: 70vh;
  }

  .section {
    padding: 3.5rem 0;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--color-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .card-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
