/* ============================================
   DODD MOUNTAIN VFD — Styles
   Palette: Charcoal (#1C1C1E) + Coral (#E07A5F)
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================ */

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

:root {
  --charcoal: #1C1C1E;
  --charcoal-light: #2C2C2E;
  --charcoal-mid: #3A3A3C;
  --coral: #E07A5F;
  --coral-dark: #C4694F;
  --coral-light: #F2CCB0;
  --coral-bg: #FDF3EF;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --cream: #F7F5F3;
  --gray-50: #F9F9F9;
  --gray-100: #F3F3F3;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ---- Section Eyebrow ---- */
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

/* ---- Section Heading ---- */
.section-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  border: 1.5px solid var(--coral);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--gray-300);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--charcoal);
  color: var(--charcoal);
  transform: translateY(-1px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
  transition: box-shadow var(--transition-base);
}

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

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav__brand-accent {
  color: var(--coral);
  font-weight: 600;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav__link:hover {
  color: var(--charcoal);
  background: var(--gray-50);
}

.nav__link--cta {
  background: var(--coral);
  color: var(--white) !important;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--coral-dark);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav__toggle-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(28,28,30,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: var(--nav-height);
  right: 0;
  list-style: none;
  background: var(--white);
  padding: 24px;
  border-left: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  min-width: 220px;
}

.mobile-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-menu__link {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--charcoal);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--coral);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: calc(100vh - var(--nav-height));
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
  max-width: 600px;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__subheadline {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 40px;
  max-width: 460px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__emergency {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  max-width: 320px;
}

.hero__emergency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero__emergency-link {
  color: var(--charcoal);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-300);
  transition: all var(--transition-fast);
}

.hero__emergency-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.hero__image {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(28,28,30,0.15), transparent);
  pointer-events: none;
}

.hero__line {
  height: 1px;
  background: var(--gray-200);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.divider__mark {
  font-size: 8px;
  color: var(--coral);
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section-heading {
  margin-bottom: 28px;
}

.about__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  font-weight: 300;
}

.about__image-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about__stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 32px;
  background: var(--cream);
  border-radius: var(--radius-md);
}

.about__stat {
  flex: 1;
  text-align: center;
}

.about__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 6px;
}

.about__stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.about__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--cream);
}

.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.services__header .section-heading {
  margin-bottom: 16px;
}

.services__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-500);
  font-weight: 300;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--coral-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--coral-bg);
  color: var(--coral);
  margin-bottom: 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-500);
  font-weight: 300;
}

/* ============================================
   COMMUNITY
   ============================================ */
.community {
  padding: 120px 0;
  background: var(--charcoal);
  overflow: hidden;
}

.community__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.community__text .section-heading {
  color: var(--white);
}

.community__body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

.community__image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ============================================
   JOIN
   ============================================ */
.join {
  padding: 120px 0;
  background: var(--white);
}

.join__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.join__content .section-heading {
  margin-bottom: 20px;
}

.join__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  font-weight: 300;
  margin-bottom: 32px;
}

.join__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.join__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 400;
  line-height: 1.5;
}

.join__list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--coral);
  margin-top: 2px;
}

.join__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.join__image {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section-heading {
  margin-bottom: 16px;
}

.contact__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-500);
  font-weight: 300;
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--coral);
  flex-shrink: 0;
}

.contact__detail-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact__detail-value {
  display: block;
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.5;
}

.contact__phone:hover {
  color: var(--coral);
}

.contact__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--coral);
  border-bottom: 1px solid var(--coral-light);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.contact__map-link:hover {
  color: var(--coral-dark);
  border-color: var(--coral-dark);
}

/* Form */
.contact__form-col {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form__input::placeholder {
  color: var(--gray-400);
}

.form__input:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(224,122,95,0.1);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #F0F9F0;
  border: 1px solid #C6F6C6;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #276749;
  margin-top: 16px;
}

.form__success.visible {
  display: flex;
}

.form__success svg {
  flex-shrink: 0;
  color: #48BB78;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  padding: 72px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--coral);
}

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

.footer__phone {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition-fast);
}

.footer__phone:hover {
  color: var(--coral);
}

.footer__address {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

.footer__emergency-note {
  font-size: 12px !important;
}

.footer__emergency-note strong {
  color: rgba(255,255,255,0.6);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__content {
    padding: 48px 40px;
  }

  .about__grid,
  .community__inner,
  .join__inner,
  .contact__grid {
    gap: 48px;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
  }

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

  .hero__content {
    padding: 40px 24px;
    order: 2;
    max-width: 100%;
  }

  .hero__image {
    order: 1;
    min-height: 45vh;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about__grid,
  .community__inner,
  .join__inner,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image-col {
    order: -1;
  }

  .about__stat-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .about__stat-divider {
    display: none;
  }

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

  .join__image {
    height: 400px;
  }

  .contact__form-col {
    padding: 32px 24px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 32px 20px;
  }

  .hero__headline {
    font-size: 28px;
  }

  .section-heading {
    font-size: 26px;
  }

  .service-card {
    padding: 28px 24px;
  }
}
