/* ==========================================================================
   Escapist to the Country — Static Pages Stylesheet
   ========================================================================== */

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

:root {
  --navy: #1C244B;
  --navy-dark: #1F3C50;
  --blue: #467FF7;
  --text: #324A6D;
  --text-light: #6B7FA0;
  --light-bg: #F9FAFD;
  --white: #FFFFFF;
  --border: #C8D5DC;
  --cream: #FDFCFA;
  --warm-gray: #F3F1EE;
  --font-sans: 'Poppins', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-width: 1140px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-dark); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
p { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 213, 220, 0.4);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(28, 36, 75, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 44px; width: auto; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--navy);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.8rem !important;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--navy-dark);
  border-radius: 100px;
  color: var(--navy-dark) !important;
  letter-spacing: 0.06em;
}
.nav-cta:hover {
  background: var(--navy-dark);
  color: var(--white) !important;
}
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,36,75,0.4) 0%, rgba(28,36,75,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-logo {
  width: 80px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
}
.btn-dark {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}
.btn-dark:hover {
  background: transparent;
  color: var(--navy-dark);
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--light-bg); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 300;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200, 213, 220, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28, 36, 75, 0.08);
}
.card-img {
  aspect-ratio: 16 / 10;
  background: var(--warm-gray);
  background-size: cover;
  background-position: center;
}
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-body p { font-size: 0.9rem; font-weight: 300; color: var(--text-light); margin-bottom: 1rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---------- Feature Blocks ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: -1; }
.feature-text h3 { margin-bottom: 1rem; }
.feature-text p { font-weight: 300; }
.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--warm-gray);
  background-size: cover;
  background-position: center;
}

/* ---------- Stats ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
}
.stat-item p { font-size: 0.85rem; color: var(--text-light); font-weight: 400; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
}
.newsletter-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.newsletter-section p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-weight: 300; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 0.85rem 2rem;
  background: var(--white);
  color: var(--navy-dark);
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--blue); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 48px; margin-bottom: 1rem; }
.footer-brand p { font-weight: 300; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-weight: 300; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.8rem; font-weight: 300; }
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--white); }

/* ---------- About Page ---------- */
.page-hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  background: var(--light-bg);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { max-width: 580px; margin: 0 auto; font-size: 1.1rem; font-weight: 300; }

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.prose p {
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.85;
}
.prose h2 { margin: 3rem 0 1.25rem; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.contact-item p { font-weight: 300; font-size: 0.95rem; }
.contact-item strong { font-weight: 600; color: var(--navy); display: block; margin-bottom: 0.15rem; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 1.25rem;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--blue); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Resources Grid ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.resource-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(200,213,220,0.5);
  border-radius: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28,36,75,0.06);
}
.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--blue);
}
.resource-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.resource-card p { font-size: 0.9rem; font-weight: 300; color: var(--text-light); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .hamburger { display: flex; }
  .hero { min-height: 80vh; padding-top: 6rem; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse .feature-text { order: 0; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
