/* ============================================================
   TRAVEL EXPENSES+ — Stylesheet
   Brand: Geek in a Cape (geekinacape.com)

   Structure:
   1. Variables & Reset (brand)
   2. Body & Nav (brand)
   3. Footer (brand)
   4. Shared utilities (brand)
   5. Travel Expenses+ page-specific extensions
   ============================================================ */

/* ── GOOGLE FONTS ───────────────────────────────────────────── */
/* Loaded via <link> in each HTML <head> */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy:        #1B3A5C;
  --navy-dark:   #122840;
  --navy-light:  #2a5080;
  --green:       #2E7D32;
  --green-light: #4CAF50;
  --green-pale:  #e8f5e9;
  --cream:       #FAFAF7;
  --white:       #FFFFFF;
  --text-dark:   #1a1a2e;
  --text-mid:    #444455;
  --text-light:  #777788;
  --border:      #e0e0ec;
  --shadow:      0 4px 20px rgba(0,0,0,0.07);
  --radius:      4px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BODY ───────────────────────────────────────────────────── */
body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }

.nav-links { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 6px 10px; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); background: rgba(27,58,92,0.07); }

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--navy); padding: 8px;
}

/* ── ANNOUNCEMENT BAR ───────────────────────────────────────── */
.announcement-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 101; /* sits above fixed nav */
}
.announcement-bar a { color: var(--green-light); text-decoration: underline; }

/* ── HERO (index.html) ──────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: white;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(46,125,50,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(76,175,80,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(76,175,80,0.15);
  color: var(--green-light);
  border: 1px solid rgba(76,175,80,0.4);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05; color: white;
  margin-bottom: 20px; letter-spacing: -0.02em;
}

.hero h1 .plus { color: var(--green-light); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px; margin: 0 auto 36px;
  line-height: 1.8;
}

/* ── SUB-PAGE HERO ──────────────────────────────────────────── */
.subpage-hero {
  background: var(--navy);
  padding: 120px 2rem 60px;
  position: relative; overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(46,125,50,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.subpage-hero .hero-inner {
  max-width: 860px; margin: 0 auto;
  position: relative; z-index: 1;
}
.subpage-hero .hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-light);
  border: 1px solid rgba(76,175,80,0.4); border-radius: 3px;
  padding: 0.3rem 0.8rem; margin-bottom: 1.25rem;
}
.subpage-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; color: white; margin-bottom: 0.75rem;
}
.subpage-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.72);
  max-width: 580px; line-height: 1.8;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: white;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s;
  cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
  display: flex; gap: 32px;
  justify-content: center; flex-wrap: wrap;
}

.testimonial {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 32px; max-width: 440px;
  box-shadow: var(--shadow);
}

.testimonial .stars {
  color: var(--green);
  font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px;
}

.testimonial p {
  font-style: italic; color: var(--text-mid);
  font-size: 0.95rem; line-height: 1.75; margin-bottom: 12px;
}

.testimonial-author {
  font-weight: 700; font-size: 0.875rem; color: var(--navy);
}

/* ── FEATURES ───────────────────────────────────────────────── */
.features {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 24px;
}

.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-child { border-bottom: none; }
.feature-block--reverse { direction: rtl; }
.feature-block--reverse > * { direction: ltr; }

.feature-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; color: var(--border);
  line-height: 1; display: block; margin-bottom: 8px;
}

.feature-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; color: var(--navy);
  margin-bottom: 16px; line-height: 1.2;
}

.feature-text p,
.feature-text li {
  color: var(--text-mid);
  font-size: 0.975rem; line-height: 1.8; margin-bottom: 10px;
}

.feature-text ul { list-style: none; padding: 0; }

.feature-text li::before {
  content: "→ ";
  color: var(--green); font-weight: 700;
}

.feature-image img {
  width: 100%; border-radius: 8px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}

/* ── CTA SECTION ────────────────────────────────────────────── */
.cta-section {
  background: var(--navy); color: white;
  text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(46,125,50,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; margin-bottom: 12px; position: relative; z-index: 1;
}
.cta-section p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px; font-size: 1rem; position: relative; z-index: 1;
}

/* ── CONTENT PAGES ──────────────────────────────────────────── */
.content-wrap {
  max-width: 820px; margin: 0 auto;
  padding: 64px 24px 80px;
}

.content-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--navy);
  margin: 48px 0 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.content-wrap h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin: 28px 0 8px;
}

.content-wrap p {
  color: var(--text-mid); line-height: 1.85; margin-bottom: 16px;
}

.content-wrap a { color: var(--green); font-weight: 600; text-decoration: none; }
.content-wrap a:hover { text-decoration: underline; }

.content-wrap ul, .content-wrap ol {
  padding-left: 24px; margin-bottom: 16px;
}

.content-wrap li {
  color: var(--text-mid); line-height: 1.8; margin-bottom: 6px;
}

.content-wrap strong { color: var(--text-dark); }

.content-wrap code {
  background: var(--green-pale); color: var(--navy);
  padding: 2px 6px; border-radius: 3px; font-size: 0.875rem;
}

/* Video thumbnails */
.video-thumb {
  width: 100%; border-radius: 8px;
  margin: 16px 0 24px; box-shadow: var(--shadow);
  border: 1px solid var(--border); display: block;
}

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--navy);
  margin-bottom: 16px; border: none; padding: 0;
}

.contact-info p { color: var(--text-mid); line-height: 1.85; margin-bottom: 12px; }
.contact-info a { color: var(--green); font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  background: white; padding: 36px;
  border-radius: 8px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block; font-weight: 600;
  font-size: 0.875rem; color: var(--navy); margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem; color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s; outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); }

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

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { margin-top: 8px; }

.faq-item {
  background: white; border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 10px; overflow: hidden;
}

.faq-question {
  width: 100%; text-align: left;
  padding: 18px 20px; background: none; border: none;
  cursor: pointer; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.975rem; font-weight: 700;
  color: var(--navy);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--cream); }
.faq-question .arrow { transition: transform 0.3s; font-style: normal; }
.faq-question.open .arrow { transform: rotate(180deg); }

.faq-answer {
  display: none; padding: 0 20px 18px;
  color: var(--text-mid); font-size: 0.9rem; line-height: 1.8;
}
.faq-answer a { color: var(--green); font-weight: 600; text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer.open { display: block; }

/* ── NOTE / INSTRUCTIONS BOX ────────────────────────────────── */
.note-box,
.instructions {
  background: white; border: 1px solid var(--border);
  border-left: 4px solid var(--green); border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem; margin-bottom: 2.5rem;
}
.note-box h2,
.instructions h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem;
}
.note-box p,
.instructions p {
  font-size: 0.95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 0.5rem;
}
.note-box p:last-child,
.instructions p:last-child { margin-bottom: 0; }
.note-box a,
.instructions a { color: var(--green); font-weight: 600; text-decoration: none; }
.note-box a:hover,
.instructions a:hover { text-decoration: underline; }

/* ── LEGAL PAGES ────────────────────────────────────────────── */
.legal-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 64px 24px 80px;
}

.legal-wrap .effective-date {
  color: var(--text-light); font-size: 0.875rem; margin-bottom: 40px;
}

.legal-wrap > p:first-of-type { margin-top: 0; }

.legal-wrap h6 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy); margin: 36px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}

.legal-wrap p, .legal-wrap li {
  color: var(--text-mid); font-size: 0.9rem;
  line-height: 1.85; margin-bottom: 12px;
}

.legal-wrap ul, .legal-wrap ol {
  padding-left: 20px; margin-bottom: 16px;
}

.legal-wrap a { color: var(--green); font-weight: 600; text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }
.legal-wrap strong { color: var(--text-dark); }
.legal-wrap code {
  background: var(--green-pale); color: var(--navy);
  padding: 2px 6px; border-radius: 3px; font-size: 0.85rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--navy-dark); padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

footer p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; }
footer a:hover { color: rgba(255,255,255,0.85); }

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 32px; opacity: 0.7; }

.footer-links { display: flex; gap: 1.25rem; align-items: center; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
}

@media (max-width: 768px) {
  .feature-block,
  .feature-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr; gap: 32px; padding: 40px 0;
  }
  .feature-number { font-size: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 24px 70px; }
  .testimonials { padding: 40px 24px; }
}

@media (max-width: 640px) {
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
