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

:root {
  /* Coastal Sunset Palette */
  --ocean-deep: #1a4b5f;
  --ocean-medium: #2d6a7f;
  --ocean-light: #5c9fb5;
  --sand-warm: #e8d5c4;
  --sand-light: #f5ebe0;
  --sunset-coral: #d4978f;
  --sunset-peach: #f4a896;
  --text-primary: #2a3f47;
  --text-secondary: #5a6d77;
  --white: #ffffff;
  --cream: #faf8f5;

  /* Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 8rem;

  /* Typography Scale */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.5rem;
  --text-xl: 2rem;
  --text-2xl: 2.5rem;
  --text-3xl: 3.5rem;
  --text-4xl: 4.5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;
}

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(92, 159, 181, 0.2);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header and Navigation */
header {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 63, 71, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav {
  padding: var(--spacing-md) 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  color: var(--ocean-deep);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: var(--ocean-medium);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--spacing-xs) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sunset-coral);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
  color: var(--ocean-deep);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 101;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:active {
  transform: scale(0.95);
}

.hamburger-line {
  width: 28px;
  height: 2px;
  background: var(--ocean-deep);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: linear-gradient(135deg, rgba(26, 75, 95, 0.4) 0%, rgba(45, 106, 127, 0.3) 50%, rgba(212, 151, 143, 0.25) 100%), url('/assets/images/hero1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212, 151, 143, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-content {
  max-width: 900px;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h2 {
  font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: clamp(var(--text-md), 2.5vw, var(--text-xl));
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.hero-accent {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(244, 168, 150, 0.8) 0%, rgba(212, 151, 143, 0.6) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.2);
  }
}

/* Section Styles */
section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.about-section,
.gallery-section,
.contact-section {
  scroll-margin-top: 100px;
}

.about-section {
  background: linear-gradient(to bottom, var(--cream) 0%, var(--white) 50%, var(--sand-light) 100%);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.gallery-section {
  background: var(--white);
  position: relative;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ocean-light) 50%, transparent 100%);
  opacity: 0.2;
}

.contact-section {
  background: linear-gradient(135deg, var(--sand-light) 0%, var(--cream) 100%);
  position: relative;
}

section h2 {
  color: var(--ocean-deep);
  font-size: clamp(var(--text-xl), 5vw, var(--text-3xl));
  margin-bottom: var(--spacing-xl);
  text-align: center;
  font-weight: 400;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--sunset-coral), var(--sunset-peach));
  border-radius: var(--radius-full);
}

section > .container > p {
  max-width: 720px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.feature {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 75, 95, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean-light), var(--sunset-coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 75, 95, 0.12);
  border-color: rgba(26, 75, 95, 0.15);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature h3 {
  color: var(--ocean-deep);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-lg);
  font-weight: 400;
}

.feature ul {
  list-style: none;
  padding: 0;
}

.feature li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.feature li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--sunset-coral);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature:hover li::before {
  background: var(--ocean-light);
  transform: scale(1.3);
}

/* Long-term CTA */
.long-term-cta {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-medium) 100%);
  color: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-top: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 75, 95, 0.2);
}

.long-term-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 168, 150, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.long-term-cta h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-xl);
  font-weight: 400;
}

.long-term-cta p {
  font-size: var(--text-md);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 75, 95, 0.08);
  opacity: 1;
  transform: translateY(0);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 75, 95, 0.4) 0%, rgba(212, 151, 143, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Hover effects - desktop only */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 75, 95, 0.2);
  }

  .gallery-item:hover::after {
    opacity: 1;
  }
}

/* Staggered animation on load - desktop only */
@media (min-width: 769px) {
  .gallery-item {
    animation: galleryFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  }

  .gallery-item:nth-child(1) { animation-delay: 0.05s; }
  .gallery-item:nth-child(2) { animation-delay: 0.1s; }
  .gallery-item:nth-child(3) { animation-delay: 0.15s; }
  .gallery-item:nth-child(4) { animation-delay: 0.2s; }
  .gallery-item:nth-child(5) { animation-delay: 0.25s; }
  .gallery-item:nth-child(6) { animation-delay: 0.3s; }
  .gallery-item:nth-child(7) { animation-delay: 0.35s; }
  .gallery-item:nth-child(8) { animation-delay: 0.4s; }
  .gallery-item:nth-child(9) { animation-delay: 0.45s; }
  .gallery-item:nth-child(n+10) { animation-delay: 0.5s; }
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 39, 47, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: lightboxFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: imageZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes imageZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.lightbox-close {
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-size: 2rem;
  line-height: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.lightbox-prev {
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-4px);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(4px);
}

.lightbox-counter {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: var(--text-sm);
  background-color: rgba(26, 75, 95, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Contact Section */
.contact-intro {
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  text-align: center;
}

.contact-intro p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-intro strong {
  color: var(--ocean-deep);
  font-weight: 600;
}

form {
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

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

form label {
  display: block;
  font-weight: 500;
  color: var(--ocean-deep);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

form input,
form textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid rgba(26, 75, 95, 0.15);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 3px rgba(92, 159, 181, 0.1);
}

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

form button {
  background: linear-gradient(135deg, var(--ocean-medium) 0%, var(--ocean-light) 100%);
  color: var(--white);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(45, 106, 127, 0.3);
  font-family: 'DM Sans', sans-serif;
  min-height: 48px;
  width: 100%;
  max-width: 300px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

@media (hover: hover) and (pointer: fine) {
  form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 106, 127, 0.4);
  }
}

form button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(45, 106, 127, 0.35);
}

.contact-detail {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 75, 95, 0.1);
  max-width: 400px;
  margin: 0 auto var(--spacing-xl);
}

.contact-detail h3 {
  color: var(--ocean-deep);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-lg);
  font-weight: 400;
}

.contact-detail a {
  color: var(--ocean-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
  margin: var(--spacing-xs) 0;
}

.contact-detail a:hover {
  color: var(--ocean-deep);
  text-decoration: underline;
}

/* Map Container */
.map-container {
  margin-top: var(--spacing-2xl);
  text-align: center;
}

.map-container h3 {
  color: var(--ocean-deep);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-xl);
  font-weight: 400;
}

.map-container p {
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.map-container iframe {
  width: 100%;
  max-width: 900px;
  height: 500px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(26, 75, 95, 0.15);
  border: 1px solid rgba(26, 75, 95, 0.1);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-medium) 100%);
  padding: var(--spacing-xl) 0;
  margin-top: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

footer p {
  margin: var(--spacing-xs) 0;
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
}

footer p:first-child {
  font-weight: 500;
  color: var(--white);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Safe area insets for mobile devices with notches */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom));
  }
}

/* Scroll-based fade-in utility */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
  }

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

@media (max-width: 768px) {
  :root {
    --spacing-lg: 2.5rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  nav {
    padding: var(--spacing-sm) 0;
  }

  nav .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    gap: 0;
  }

  .site-title {
    font-size: var(--text-md);
    text-align: left;
  }

  /* Show hamburger menu on mobile */
  .hamburger {
    display: flex;
  }

  /* Hide menu by default on mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    max-width: 80vw;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--spacing-xl) + var(--spacing-md)) var(--spacing-lg) var(--spacing-xl);
    box-shadow: -4px 0 20px rgba(26, 75, 95, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(26, 75, 95, 0.08);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    padding: var(--spacing-md) 0;
    width: 100%;
    justify-content: flex-start;
    min-height: 56px;
  }

  .nav-menu a::after {
    bottom: 0;
    left: 0;
    height: 2px;
  }

  /* Menu overlay */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 75, 95, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }

  body.menu-open::before {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    background-attachment: scroll;
    min-height: 70vh;
    padding: var(--spacing-lg) 0;
  }

  .hero::after {
    height: 80px;
  }

  .hero-content {
    padding: var(--spacing-md);
  }

  section {
    padding: var(--spacing-xl) 0;
  }

  section h2 {
    font-size: clamp(var(--text-lg), 8vw, var(--text-2xl));
    margin-bottom: var(--spacing-lg);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
  }

  .feature {
    padding: var(--spacing-md);
  }

  /* Mobile gallery - 2 columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }

  .gallery-item {
    height: 180px;
    border-radius: var(--radius-sm);
  }

  /* Mobile touch - add active state */
  .gallery-item:active {
    transform: scale(0.98);
  }

  .lightbox-image {
    max-width: 95%;
    max-height: 85%;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: var(--text-sm);
    padding: var(--spacing-xs);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-prev {
    left: var(--spacing-xs);
  }

  .lightbox-next {
    right: var(--spacing-xs);
  }

  .lightbox-close {
    font-size: var(--text-xl);
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    width: 44px;
    height: 44px;
  }

  .lightbox-counter {
    bottom: var(--spacing-sm);
    font-size: var(--text-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .map-container iframe {
    height: 300px;
    border-radius: var(--radius-md);
  }

  form {
    padding: 0;
  }

  form input,
  form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .long-term-cta {
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-radius: var(--radius-lg);
  }

  .contact-detail {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  nav .container {
    padding: 0 var(--spacing-md);
  }

  .hero {
    min-height: 65vh;
  }

  .hero::after {
    height: 60px;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  section h2 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-md);
  }

  /* Single column gallery on very small screens */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .gallery-item {
    height: 240px;
    max-height: 60vh;
  }

  .features-grid {
    gap: var(--spacing-sm);
  }

  .feature {
    padding: var(--spacing-md);
  }

  .long-term-cta {
    padding: var(--spacing-md);
  }

  .map-container iframe {
    height: 250px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
