/* Richfield Travels — One-page site */

:root {
  --color-bg: #0a1628;
  --color-surface: #1a2d4a;
  --color-text: #1a1a1a;
  --color-text-light: #f8f6f3;
  --color-text-muted: #4a5568;
  --color-text-muted-light: rgba(255, 255, 255, 0.85);
  --color-accent: #e85d4c;
  --color-accent-hover: #f07a6b;
  --color-accent-gold: #d4a853;
  --color-teal: #0d9488;
  --color-coral: #e85d4c;
  --color-border: rgba(212, 168, 83, 0.35);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 8px;
  --radius-lg: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: #0d2137;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0a1628;
  border-bottom: 1px solid rgba(212, 168, 83, 0.3);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-accent-gold);
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.hamburger:hover {
  color: var(--color-accent-gold);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}

.hamburger-bar::before,
.hamburger-bar::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, top 0.25s ease;
}

.hamburger-bar::before {
  top: -7px;
}

.hamburger-bar::after {
  top: 7px;
}

.header.menu-open .hamburger-bar {
  background: transparent;
}

.header.menu-open .hamburger-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.header.menu-open .hamburger-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile nav — hidden by default, slides down when open */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: #0a1628;
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.mobile-nav[hidden] {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.header.menu-open .mobile-nav {
  max-height: 300px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s, color 0.15s;
  transform: translateY(-8px);
  opacity: 0;
}

.header.menu-open .mobile-nav a {
  transform: translateY(0);
  opacity: 1;
}

.header.menu-open .mobile-nav a:nth-child(1) { transition: transform 0.25s ease 0.05s, opacity 0.25s ease 0.05s, background 0.15s, color 0.15s; }
.header.menu-open .mobile-nav a:nth-child(2) { transition: transform 0.25s ease 0.1s, opacity 0.25s ease 0.1s, background 0.15s, color 0.15s; }
.header.menu-open .mobile-nav a:nth-child(3) { transition: transform 0.25s ease 0.15s, opacity 0.25s ease 0.15s, background 0.15s, color 0.15s; }
.header.menu-open .mobile-nav a:nth-child(4) { transition: transform 0.25s ease 0.2s, opacity 0.25s ease 0.2s, background 0.15s, color 0.15s; }

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent-gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-coral);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: calc(4rem + 60px) var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0d9488 url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920&q=80") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13, 148, 136, 0.88) 0%, rgba(10, 22, 40, 0.75) 50%, rgba(212, 168, 83, 0.25) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  margin: 0 0 var(--space-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  color: var(--color-text-light);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted-light);
  max-width: 480px;
  margin: 0 0 var(--space-lg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  position: relative;
  padding: var(--space-xl) 0;
}

.section .container {
  position: relative;
  z-index: 1;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.section-about {
  background: #1a2d4a;
}

.section-about-bg {
  background-image: url("https://images.unsplash.com/photo-1571896349842-33c89424de2d?w=1920&q=80");
}

.section-about-bg::after {
  background: linear-gradient(120deg, rgba(26, 45, 74, 0.92) 0%, rgba(13, 148, 136, 0.4) 100%);
}

.section-features-bg {
  background-image: url("https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?w=1920&q=80");
}

.section-features-bg::after {
  background: linear-gradient(180deg, rgba(248, 246, 243, 0.94) 0%, rgba(212, 168, 83, 0.15) 100%);
}

.section-steps-bg {
  background-image: url("https://images.unsplash.com/photo-1582719508461-905c673771fd?w=1920&q=80");
}

.section-steps-bg::after {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.92) 0%, rgba(10, 22, 40, 0.88) 100%);
}

.section-cta-bg {
  background-image: url("https://images.unsplash.com/photo-1540202404-a2f29016b523?w=1920&q=80");
}

.section-cta-bg::after {
  background: linear-gradient(135deg, rgba(232, 93, 76, 0.85) 0%, rgba(212, 168, 83, 0.7) 50%, rgba(13, 148, 136, 0.6) 100%);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.section-features .section-title {
  color: #1a2d4a;
}

.section-about .section-title,
.section-about .section-lead {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-about .section-lead {
  color: white;
}

.section-steps .section-title,
.section-steps .steps-cta-text {
  color: var(--color-text-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-cta .section-title,
.section-cta .section-lead {
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0;
}

.section-about .section-lead {
  max-width: 720px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.feature-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  border-color: var(--color-teal);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: #0d9488;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 3 Simple Steps */
.section-steps {
  background: #0d9488;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.step-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-accent-gold);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: #0d9488;
  background: var(--color-text-light);
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

.step-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text-light);
}

.step-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted-light);
  line-height: 1.6;
}

.steps-cta-text {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  font-weight: 500;
}

/* CTA section */
.section-cta {
  text-align: center;
  background: #1a2d4a;
}

.section-cta .section-lead {
  margin: 0 auto var(--space-lg);
  color: white;
}

/* Footer */
.footer {
  padding: var(--space-lg) 0;
  border-top: 2px solid rgba(212, 168, 83, 0.4);
  text-align: center;
  background: linear-gradient(180deg, #0a1628 0%, #061018 100%);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--color-accent-gold);
  margin: 0 0 var(--space-xs);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1a2d4a 0%, #0d2137 100%);
  border: 2px solid rgba(212, 168, 83, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted-light);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--color-accent-gold);
  background: rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text-light);
}

.modal-desc {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted-light);
  font-size: 0.95rem;
}

/* Contact form */
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin: var(--space-sm) 0 var(--space-xs);
  color: var(--color-text-light);
}

.contact-form .required {
  color: var(--color-coral);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-captcha {
  margin: var(--space-md) 0;
}

.form-captcha .g-recaptcha {
  margin-bottom: var(--space-xs);
}

.captcha-note {
  font-size: 0.75rem;
  color: var(--color-text-muted-light);
  margin: 0;
}

.btn-submit {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 1rem;
}

/* reCAPTCHA dark theme fix */
.g-recaptcha iframe {
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header.menu-open .mobile-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 85vh;
  }
}
