/* CSS Design System and Styles for Static Location Pages */

@font-face {
  font-family: 'Quatrix';
  src: url('/fonts/quatrix.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azur';
  src: url('/fonts/azur-normalrounded.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azur';
  src: url('/fonts/azur-mediumrounded.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azur';
  src: url('/fonts/azur-boldrounded.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --champagne: #E3CEA7;
  --champagne-light: #EFE4CC;
  --charcoal: #292927;
  --charcoal-light: #3A3A37;
  --cream: #FAF7F0;
  --background: #FAFAF9;
  --foreground: #292927;
  --neutral-700: #404040;
  --neutral-300: #D4D4D4;
  --amber-600: #D97706;
  --border: rgba(41, 41, 39, 0.1);
  --border-light: rgba(227, 206, 167, 0.2);
  --radius: 0px; /* Modern square shadcn style */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--charcoal);
  color: var(--foreground);
  font-family: 'Azur', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Quatrix', Georgia, serif;
  font-weight: normal;
  line-height: 1.15;
}

.text-champagne { color: var(--champagne); }
.text-charcoal { color: var(--charcoal); }
.text-cream { color: var(--cream); }
.text-amber { color: var(--amber-600); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 7rem 0;
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--charcoal);
  border-bottom: 1px solid rgba(227, 206, 167, 0.1); /* bottom border champagne @ 10% */
  height: 80px; /* 80px mobile */
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  header {
    height: 96px; /* 96px desktop */
  }
}

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

.logo-container {
  width: 160px;
  height: 40px;
  position: relative;
}

.logo-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left;
}

.nav-links-center {
  display: none;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.nav-cta-right {
  display: none;
  align-items: center;
}

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

.nav-link {
  color: rgba(250, 250, 249, 0.7); /* #FAFAF9 at 70% */
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
  color: #FAFAF9;
  opacity: 1;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
  display: block;
  background: transparent;
  border: none;
  color: #FAFAF9;
  font-size: 1.75rem;
  cursor: pointer;
  outline: none;
  padding: 0.5rem;
}

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

.mobile-nav-menu {
  position: absolute;
  top: 80px; /* 80px mobile */
  left: 0;
  right: 0;
  background-color: var(--charcoal);
  border-top: 1px solid rgba(227, 206, 167, 0.1); /* top border champagne @ 10% */
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-nav-menu.open {
  max-height: 450px;
}

.mobile-nav-content {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  color: rgba(250, 250, 249, 0.7);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-nav-link:hover {
  color: #FAFAF9;
}

.mobile-cta-wrapper {
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quatrix', Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 1.5rem;
  height: 48px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--radius);
  box-sizing: border-box;
}

.btn-xl {
  padding: 0 2.5rem;
  font-size: 1rem;
  height: 56px;
}

.btn-champagne {
  background-color: var(--champagne);
  color: #000000;
  border: 1px solid rgba(227, 206, 167, 0.3); /* border champagne @ 30% */
}

.btn-champagne:hover {
  background-color: var(--champagne-light);
  border-color: rgba(227, 206, 167, 0.6); /* border champagne @ 60% */
  opacity: 0.95;
}

/* Secondary outline button style - dark charcoal text/border by default (active/clickable on light backgrounds) */
.btn-outline {
  background-color: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn-outline:hover {
  background-color: rgba(41, 41, 39, 0.08);
  border-color: var(--charcoal);
  color: var(--charcoal);
}

/* Hero Section */
.hero-section {
  background-color: var(--charcoal);
  color: var(--cream);
  padding-top: 80px; /* offset header via padding, eliminating background gaps */
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 96px; /* offset header via padding, eliminating background gaps */
    min-height: 100vh;
  }
}

/* Contextual override for outline buttons in the dark hero section */
.hero-section .btn-outline {
  color: var(--champagne);
  border-color: var(--champagne);
}

.hero-section .btn-outline:hover {
  background-color: rgba(227, 206, 167, 0.15);
  border-color: var(--champagne-light);
  color: var(--champagne-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 96px);
  }
}

.hero-content {
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-content {
    padding: 6rem 3rem 6rem 0;
  }
}

.hero-kicker {
  display: inline-block;
  background-color: rgba(227, 206, 167, 0.1);
  border: 1px solid var(--border-light);
  color: var(--champagne);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.hero-title {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subhead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-social-proof {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .hero-image-wrapper {
    aspect-ratio: 1.5;
    max-height: 400px;
  }
}

@media (min-width: 992px) {
  .hero-image-wrapper {
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
  }
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Intro Section */
.intro-section {
  background-color: var(--cream);
  text-align: center;
}

.intro-text {
  font-size: 1.125rem;
  color: var(--neutral-700);
  max-w: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.intro-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-direction: column;
}

@media (min-width: 576px) {
  .intro-actions {
    flex-direction: row;
  }
}

/* Packages Section */
.packages-section {
  background-color: #FFFFFF;
}

.section-kicker {
  color: var(--amber-600);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-card {
  border: 1px solid var(--border);
  background-color: #FFFFFF;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.package-card.recommended {
  border-color: var(--champagne);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .package-card.recommended {
    transform: scale(1.05);
    z-index: 10;
  }
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--champagne);
  color: #000000;
  padding: 0.25rem 1rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.package-header {
  margin-bottom: 2rem;
}

.package-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.package-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.package-price {
  font-size: 2rem;
  font-family: 'Quatrix', Georgia, serif;
}

.package-duration {
  color: var(--neutral-700);
  font-size: 0.875rem;
}

.package-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.package-features li {
  font-size: 0.875rem;
  color: var(--neutral-700);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.package-features li::before {
  content: "✓";
  color: var(--champagne);
  font-weight: bold;
  flex-shrink: 0;
}

.package-card .btn {
  width: 100%;
}

/* Specific buttons contrast enhancements for non-highlighted cards */
.package-card:not(.recommended) .btn-outline {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.package-card:not(.recommended) .btn-outline:hover {
  background-color: rgba(41, 41, 39, 0.05);
}

/* Why Choose Section */
.why-choose-section {
  background-color: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.why-heading {
  font-size: 2rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .why-heading {
    font-size: 2.5rem;
  }
}

.why-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.why-body {
  font-size: 1.05rem;
  color: var(--neutral-700);
  line-height: 1.8;
}

.why-cta {
  margin-top: 2rem;
}

/* Gallery Section */
.gallery-section {
  background-color: #FFFFFF;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

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

.gallery-item {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

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

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

/* FAQ Section */
.faq-section {
  background-color: var(--cream);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

details {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

summary {
  list-style: none;
  font-family: 'Quatrix', Georgia, serif;
  font-size: 1.125rem;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--neutral-700);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--neutral-700);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Service Area Section */
.service-area-section {
  background-color: #FFFFFF;
  text-align: center;
}

.service-area-box {
  background-color: var(--cream);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-statement {
  font-size: 1.125rem;
  color: var(--charcoal);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.adjacent-cities-title {
  font-family: 'Quatrix', Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neutral-700);
  margin-bottom: 1rem;
}

.adjacent-cities-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.city-link {
  color: var(--charcoal);
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.city-link:hover {
  color: var(--amber-600);
}

/* Final CTA */
.final-cta-section {
  background-color: var(--charcoal);
  color: var(--cream);
  text-align: center;
}

.final-cta-section .section-title {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.final-cta-body {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-w: 600px;
  margin: 0 auto 2.5rem;
}

/* Footer */
footer {
  background-color: var(--charcoal);
  border-top: 1px solid var(--border-light);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 0;
  font-size: 0.75rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--champagne);
}

/* Lead Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--neutral-700);
  line-height: 1;
}

.modal-close:hover {
  color: #000000;
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--neutral-700);
  margin-bottom: 2rem;
}

/* Lead Form Styling */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neutral-700);
  font-weight: 500;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  height: 3.5rem;
  padding: 0 1rem;
  border: 1px solid #A6A6A6;
  border-radius: var(--radius);
  background-color: #FFFFFF;
  color: var(--charcoal);
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}

textarea {
  height: auto;
  min-height: 7rem;
  padding: 1rem;
  resize: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.3);
}

.error-text {
  color: #DC2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-submit-btn {
  height: 3.5rem;
  width: 100%;
  font-family: 'Quatrix', Georgia, serif;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.lead-form-status {
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.lead-form-status.success {
  background-color: rgba(227, 206, 167, 0.1);
  border: 1px solid var(--champagne);
  color: var(--charcoal);
}

.lead-form-status.error {
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}
