/* ============================================
   Visit North Conway — Premium Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

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

:root {
  --primary: #1b3a26;
  --primary-light: #2d5a3d;
  --primary-dark: #0f2318;
  --accent: #c8956c;
  --accent-light: #e8cdb5;
  --accent-dark: #a87550;
  --gold: #d4a055;
  --gold-light: #f0d9b5;
  --cream: #faf6f1;
  --cream-dark: #f0ebe3;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #555555;
  --text-muted: #888888;
  --border: #e5e0d8;
  --border-light: #f0ebe3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-width: 860px;
  --wide-width: 1100px;
  --nav-height: 68px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-dark); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 35, 24, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 149, 108, 0.3);
}

.nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.nav-links a.active {
  background: rgba(200, 149, 108, 0.2);
  color: var(--accent-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-light);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero with Background Image ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 35, 24, 0.3) 0%,
    rgba(15, 35, 24, 0.6) 50%,
    rgba(15, 35, 24, 0.85) 100%
  );
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

.hero .hero-badge {
  display: inline-block;
  background: rgba(200, 149, 108, 0.25);
  border: 1px solid rgba(200, 149, 108, 0.4);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* Hero images per page */
.hero-home::before { background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80'); }
.hero-restaurants::before { background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&q=80'); }
.hero-hikes::before { background-image: url('https://images.unsplash.com/photo-1551632811-561732d1e306?w=1600&q=80'); }
.hero-airbnbs::before { background-image: url('https://images.unsplash.com/photo-1518732714860-b62714ce0c59?w=1600&q=80'); }
.hero-foliage::before { background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1600&q=80'); opacity: 0.5; }
.hero-skiing::before { background-image: url('https://images.unsplash.com/photo-1551524559-8af4e6624178?w=1600&q=80'); }
.hero-family::before { background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=1600&q=80'); }

.hero-small { padding: 70px 24px 55px; }
.hero-small h1 { font-size: 2.4rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--accent-light); }

/* ---------- Content Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.container-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* ---------- Article Meta ---------- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-meta .divider { color: var(--border); }

/* ---------- Intro Text ---------- */
.intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.85;
  max-width: 720px;
}

/* ---------- Numbered List Items ---------- */
.list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px 32px 88px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.list-item .number {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.list-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.list-item .detail {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.list-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}
.list-item ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--text-light);
  font-size: 0.92rem;
}
.list-item ul li { margin-bottom: 6px; }

/* ---------- Featured / #1 Item ---------- */
.list-item.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(200,149,108,0.06) 0%, var(--white) 40%);
  box-shadow: var(--shadow-md);
  padding-top: 44px;
}
.list-item.featured:hover {
  box-shadow: var(--shadow-lg);
}
.list-item.featured .number {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  border-radius: 12px;
}
.featured-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  position: relative;
}
.featured-badge::after {
  content: '★';
  margin-left: 4px;
  font-size: 0.65rem;
}

/* ---------- Booking Links ---------- */
.booking-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-light); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--accent-dark) 0%, #8a5d3a 100%); color: var(--white); }

.save-badge {
  font-size: 0.68rem;
  background: #e63946;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 40px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(200, 149, 108, 0.1);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-banner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.cta-banner .btn {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 32px;
}
.cta-banner .btn:hover {
  background: var(--cream);
  color: var(--primary-dark);
}

/* ---------- Email Capture ---------- */
.email-capture {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.email-capture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
}
.email-capture h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.email-capture p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.email-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--cream);
}
.email-form input[type="email"]:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
  background: var(--white);
}
.email-form button {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.email-form button:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Guide Links Grid (Homepage) ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
}
.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.guide-card .card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.guide-card .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.1));
}
.guide-card .card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.guide-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.guide-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}
.guide-card .read-more {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.guide-card:hover .read-more { gap: 10px; color: var(--primary); }

/* Card images */
.card-restaurants { background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=600&q=80'); }
.card-hikes { background-image: url('https://images.unsplash.com/photo-1551632811-561732d1e306?w=600&q=80'); }
.card-airbnbs { background-image: url('https://images.unsplash.com/photo-1518732714860-b62714ce0c59?w=600&q=80'); }
.card-foliage { background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=600&q=80'); }
.card-skiing { background-image: url('https://images.unsplash.com/photo-1551524559-8af4e6624178?w=600&q=80'); }
.card-secrets { background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=600&q=80'); }

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stat {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1;
  min-width: 250px;
}
.footer-brand .nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  display: inline-block;
  margin-bottom: 10px;
}
.footer-brand .nav-logo span { color: var(--accent); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-links h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-links ul {
  list-style: none;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--wide-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 35, 24, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 0.95rem; }
  .nav-toggle { display: block; }
  .hero { padding: 70px 20px 55px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-small { padding: 55px 20px 40px; }
  .hero-small h1 { font-size: 1.75rem; }
  .list-item { padding-left: 28px; padding-top: 64px; }
  .list-item .number { left: 24px; top: 20px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card .card-image { height: 160px; }
  .email-form { flex-direction: column; }
  .booking-links { flex-direction: column; }
  .btn { text-align: center; width: 100%; }
  .container { padding: 32px 18px 56px; }
  .stats-bar { gap: 24px; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 24px; }
  .cta-banner { padding: 32px 24px; }
  .cta-banner h4 { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-small h1 { font-size: 1.5rem; }
  .list-item { padding: 22px 20px; padding-top: 62px; }
  .list-item .number { left: 20px; top: 16px; width: 38px; height: 38px; font-size: 0.95rem; }
  .list-item h3 { font-size: 1.15rem; }
  .guide-card .card-body { padding: 20px; }
  .stats-bar { gap: 16px; padding: 24px 16px; }
  .stat-number { font-size: 1.4rem; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
