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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color: #3a3a3a;
}

h1, h2, h3, h4, h5, h6 { font-family: "Lora", Georgia, serif; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  --navy:        #121F3B;
  --navy-mid:    #1A2D5A;
  --river:       #2E88BE;
  --river-light: #7DC3E0;
  --park:        #3D8A5C;
  --park-light:  #8DC4A4;
  --cream:       #FDFBF7;
  --white:       #FFFFFF;
  --text-body:   #3A3A3A;
  --text-muted:  #6B7280;
  --text-on-dark:#E8EDF5;

  --panel-bg:    rgba(18, 31, 59, 0.55);
  --panel-border:rgba(255, 255, 255, 0.1);

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 120px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ============================================================
   2. Fixed map background
   ============================================================ */
.map-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('assets/lancaster-map.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ============================================================
   3. Utility classes
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: "Inter", sans-serif;
  line-height: 1;
}

.btn-primary {
  background: var(--river);
  color: var(--white);
  border-color: var(--river);
}

.btn-primary:hover {
  background: #2475a8;
  border-color: #2475a8;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: var(--river);
  border-color: var(--river);
}

.badge {
  display: inline-block;
  background: var(--river);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   4. Glass panel — shared by section-container & hero-inner
   ============================================================ */
.section-container {
  background: var(--panel-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  padding: var(--space-3xl) var(--space-2xl);
  margin: 0 auto;
  width: 100%;
}

/* Section title & subtitle — all on dark panels */
.section-title {
  font-family: "Lora", Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--river);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-on-dark);
  opacity: 0.8;
}

/* ============================================================
   4a. site-header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2xl);
  transition: background 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(18, 31, 59, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.logo {
  height: 52px;
  width: auto;
}

.logo-text {
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.nav-desktop {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-desktop a {
  color: var(--text-on-dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--river);
  transition: width 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--white);
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============================================================
   5. Mobile nav overlay
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 31, 59, 0.97);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--white);
  font-family: "Lora", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--river-light);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px 24px 80px;
}

.hero-inner {
  background: var(--panel-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  padding: var(--space-3xl) var(--space-2xl);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-inner--centered {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--river-light);
}

.hero-title {
  font-family: "Lora", Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-on-dark);
  line-height: 1.65;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   7. Photo frame
   ============================================================ */
.photo-frame {
  position: relative;
  display: inline-block;
  padding: 0 0 10px 0;
}

.photo-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: 0;
  background: var(--river);
  border-radius: var(--radius-sm);
  z-index: 0;
}

.photo-frame-clip {
  position: relative;
  z-index: 1;
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 0 100%);
  border: 2px solid var(--river-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.photo-frame-clip img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* ============================================================
   8. Services
   ============================================================ */
.services {
  padding: 80px 24px;
}

.services .section-container {
  max-width: 1040px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}

.service-icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-on-dark);
  opacity: 0.75;
  line-height: 1.65;
  margin-bottom: var(--space-md);
  font-size: 15px;
}

.service-list {
  list-style: none;
  text-align: left;
}

.service-list li {
  padding: 6px 0;
  color: var(--text-on-dark);
  font-size: 15px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "✓";
  color: var(--river-light);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   9. Pricing
   ============================================================ */
.pricing {
  padding: 80px 24px;
}

.pricing .section-container {
  max-width: 1040px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: stretch;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card-popular {
  border-color: var(--river);
  background: rgba(46, 136, 190, 0.15);
  transform: scale(1.03);
}

.pricing-card h3 {
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.price-display {
  margin: var(--space-md) 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.price-amount {
  font-family: "Lora", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}

.price-period {
  color: var(--text-on-dark);
  opacity: 0.65;
  font-size: 15px;
}

.pricing-card > p {
  color: var(--text-on-dark);
  opacity: 0.75;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  min-height: 44px;
  font-size: 15px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
  flex: 1;
}

.pricing-list li {
  padding: 8px 0;
  color: var(--text-on-dark);
  font-size: 15px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-list li::before {
  content: "✓";
  color: var(--river-light);
  font-weight: 700;
  flex-shrink: 0;
}

.popular-badge-wrap {
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

/* ============================================================
   10. About
   ============================================================ */
.about {
  padding: 80px 24px;
}

.about .section-container {
  max-width: 920px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: center;
}

.about-text {
  max-width: 520px;
}

.about-title {
  color: var(--white);
  text-align: left;
}

.about-title::after {
  margin: var(--space-md) 0 0;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-on-dark);
  opacity: 0.85;
  margin-top: var(--space-lg);
}

.about-photo {
  flex-shrink: 0;
}

/* ============================================================
   11. Contact
   ============================================================ */
.contact {
  padding: 80px 24px;
}

.contact .section-container {
  max-width: 580px;
}

.contact-form-wrap {
  position: relative;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 16px;
  font-family: "Inter", sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--river-light);
  background: rgba(255, 255, 255, 0.09);
}

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

.form-error {
  color: #f87171;
  font-size: 14px;
  text-align: center;
  margin-bottom: var(--space-md);
}

.contact-success {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.contact-success-icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
  color: var(--river-light);
  display: block;
}

.contact-success h3 {
  font-family: "Lora", Georgia, serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-success p {
  color: var(--text-on-dark);
  opacity: 0.8;
}

/* ============================================================
   12. Footer
   ============================================================ */
.footer {
  background: rgba(18, 31, 59, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: var(--space-xl) var(--space-2xl);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: var(--space-lg);
}

.footer-logo-img {
  height: 80px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--river-light);
}

.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* ============================================================
   13. Scroll fade-in animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================================
   14. Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 0 var(--space-md);
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 72px 16px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero-photo {
    order: -1;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 17px;
    margin: 0 auto;
    max-width: 100%;
  }

  .services,
  .pricing,
  .about,
  .contact {
    padding: 48px 16px;
  }

  .section-container {
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-md);
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

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

  .about-title::after {
    margin: var(--space-md) auto 0;
  }

  .about-photo {
    display: flex;
    justify-content: center;
  }

  .pricing-card-popular {
    transform: none;
  }

  .photo-frame-clip img {
    max-width: 300px;
  }

  .section-title {
    font-size: 28px;
  }

  .footer {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }
}

/* ============================================================
   15. Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 34px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 15px;
  }
}
