/* ============================================
   THE BLUE HOUSE — Custom Styles
   ============================================ */

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 64px; }
}

/* --- Section Eyebrow --- */
.section-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d9488;
  font-weight: 500;
  margin-bottom: 16px;
}

/* --- Section Title --- */
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: #1e293b;
  margin-bottom: 24px;
}

.text-teal {
  color: #0d9488;
}

/* --- Section Subtitle --- */
.section-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 480px;
  font-weight: 300;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav-inner { padding: 0 48px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.nav-logo-icon {
  color: #0d9488;
}

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-cta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #0d9488;
  border: 1px solid #0d9488;
  padding: 8px 20px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: #0d9488;
  color: #fafafa;
}

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

.hamburger-line {
  width: 20px;
  height: 1px;
  background: #1e293b;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: #fafafa;
  z-index: 200;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  border-left: 1px solid #e2e8f0;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e293b;
  padding: 4px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.mobile-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #1e293b;
  transition: color 0.2s;
}

.mobile-link:hover {
  color: #0d9488;
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #0d9488;
  border: 1px solid #0d9488;
  padding: 14px 32px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-cta:hover {
  background: #0d9488;
  color: #fafafa;
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: #fafafa;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-text {
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
}

@media (min-width: 768px) {
  .hero-text { padding: 120px 48px 80px; }
}

@media (min-width: 1024px) {
  .hero-text { padding: 120px 64px 80px; }
}

.hero-text-inner {
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d9488;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  color: #1e293b;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-accent {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: #0d9488;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #64748b;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.hero-hours-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 500;
}

.hero-hours-value {
  font-size: 0.875rem;
  color: #475569;
  font-weight: 300;
}

/* Hero image */
.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 50vh;
}

@media (min-width: 1024px) {
  .hero-image-wrap {
    min-height: 100vh;
  }
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(4, 47, 46, 0.15), transparent);
  pointer-events: none;
}

/* Hero decorative line */
.hero-deco-line {
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #e2e8f0;
}

@media (min-width: 768px) {
  .hero-deco-line { left: 48px; right: 48px; }
}

@media (min-width: 1024px) {
  .hero-deco-line { left: 64px; right: calc(90% - 64px); }
}

/* --- About --- */
.about {
  padding: 120px 0;
  background: #fafafa;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: #1e293b;
  line-height: 1;
}

.about-stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 500;
}

/* --- Menu --- */
.menu {
  padding: 120px 0;
  background: #f1f5f9;
}

.menu-header {
  text-align: center;
  margin-bottom: 48px;
}

.menu-header .section-subtitle {
  margin: 0 auto;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: #64748b;
  background: none;
  border: 1px solid #e2e8f0;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-tab:hover {
  color: #0d9488;
  border-color: #0d9488;
}

.menu-tab.active {
  color: #fafafa;
  background: #0d9488;
  border-color: #0d9488;
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

.menu-card {
  background: #fafafa;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.menu-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.04);
}

.menu-card-body {
  padding: 20px;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 8px;
}

.menu-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #1e293b;
}

.menu-card-price {
  font-size: 0.875rem;
  color: #0d9488;
  font-weight: 500;
  white-space: nowrap;
}

.menu-card-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #64748b;
  font-weight: 300;
}

.menu-footer {
  text-align: center;
  margin-top: 48px;
}

.menu-footer-text {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 300;
  font-style: italic;
}

/* --- Space --- */
.space {
  padding: 120px 0;
  background: #fafafa;
}

.space-header {
  text-align: center;
  margin-bottom: 64px;
}

.space-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .space-gallery {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
  }
  .space-gallery-item.large {
    grid-row: 1 / 3;
  }
}

.space-gallery-item {
  overflow: hidden;
  position: relative;
}

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

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

.space-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
  color: #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 300;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s;
}

.space-gallery-item:hover .space-gallery-caption {
  opacity: 1;
}

.space-features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.space-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 300;
}

.space-feature svg {
  color: #0d9488;
  flex-shrink: 0;
}

/* --- Visit --- */
.visit {
  padding: 120px 0;
  background: #f1f5f9;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .visit-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.visit-info { max-width: 480px; }

.visit-address {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 32px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.visit-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visit-detail-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 500;
}

.visit-detail-value {
  font-size: 0.9375rem;
  color: #475569;
  font-weight: 300;
  line-height: 1.6;
}

.visit-detail-value a {
  color: #0d9488;
  transition: color 0.2s;
}

.visit-detail-value a:hover {
  color: #0f766e;
}

.visit-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-container {
  aspect-ratio: 4/3;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* --- Contact --- */
.contact {
  padding: 120px 0;
  background: #fafafa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
  }
}

.contact-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #64748b;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: #475569;
  font-weight: 300;
  transition: color 0.2s;
}

.contact-direct-item:hover {
  color: #0d9488;
}

.contact-direct-item svg {
  color: #0d9488;
  flex-shrink: 0;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 639px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 500;
}

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

.form-submit {
  align-self: flex-start;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.875rem;
  color: #0d9488;
  font-weight: 400;
}

.form-success.show {
  display: flex;
}

/* --- Footer --- */
.footer {
  background: #0f172a;
  color: #f1f5f9;
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.footer-logo-icon {
  color: #2dd4bf;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 300;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
}

.footer-link {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #2dd4bf;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-contact-item:hover {
  color: #2dd4bf;
}

.footer-address {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 300;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid #1e293b;
}

.footer-bottom span {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 300;
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .menu-card:hover .menu-card-img img,
  .space-gallery-item:hover img {
    transform: none;
  }
}
