/* Cooper Riley Interview Coaching — main stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600&family=Open+Sans:wght@400;600;700&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary: #389227;
  --primary-dark: #2d7520;
  --secondary: #009C90;
  --accent: #C570C7;
  --bg-light: #F5FDF3;
  --surface: #EAF3E8;
  --text: #0D140C;
  --muted: #363D35;
  --border: #D9E1D7;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-light);
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

ul, ol { padding-left: 1.5rem; }

address { font-style: normal; }

blockquote {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad { padding: 5rem 0; }
.section-pad--lg { padding: 7rem 0; }
.section-pad--sm { padding: 3rem 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.nav-links--right { justify-content: flex-end; }

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--primary); }

/* Dropdown */
.nav-item-with-dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 100;
}
.nav-item-with-dropdown:hover .dropdown-menu,
.nav-item-with-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--surface); color: var(--primary); }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition);
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after { content: ''; position: absolute; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px;
  line-height: 1.4;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:#389227;
  border-color: var(--primary-dark);
  color: var(--white);
}

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

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--surface);
  color: var(--primary-dark);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-4px); }

/* Used on some pages instead of .card */
.offer-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.offer-block:hover { transform: translateY(-3px); }

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.icon-box {
  width: 52px;
  height: 52px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================================================
   Hero Sections
   ============================================================ */
.hero-overlay {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56,146,39,0.88), rgba(0,156,144,0.78));
  z-index: 1;
}

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

.hero-content h1 { color: var(--white); }

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero p { opacity: 0.9; max-width: 680px; margin: 1rem auto 0; }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 0.4rem; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,146,39,0.15);
}
.form-control.error { border-color: #c0392b; }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: var(--primary);
  font-weight: 600;
  display: none;
}
.form-success.visible { display: block; }

/* ============================================================
   Process Steps
   ============================================================ */
.process-step {
  border-left: 3px solid var(--primary);
  padding-left: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-number {
  position: absolute;
  left: -1.25rem;
  top: 0;
  background: var(--primary);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary);
}

.testimonial-card blockquote {
  border: none;
  padding: 0;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary:hover { color: var(--primary); }

.faq-item p {
  padding: 0 1.4rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #0f1a0e;
  color: #c8d4c6;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-tagline { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1.25rem; }

.footer-address {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.8;
}
.footer-address a { color: #c8d4c6; text-decoration: none; }
.footer-address a:hover { color: var(--white); }

.footer-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: #c8d4c6;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 720px);
  background: #0f1a0e;
  color: #dde8db;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 9999;
  display: none;
}
#cookie-banner.active { display: block; }

#cookie-banner p { font-size: 0.88rem; margin-bottom: 1rem; color: #dde8db; }
#cookie-banner a { color: #7ecb6e; }

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  min-height: 44px;
  font-family: inherit;
}
.cookie-btn--accept {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.cookie-btn--accept:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.cookie-btn--reject {
  background: transparent;
  color: #dde8db;
  border-color: rgba(255,255,255,0.3);
}
.cookie-btn--reject:hover { border-color: #dde8db; }
.cookie-btn--prefs {
  background: transparent;
  color: #7ecb6e;
  border-color: #7ecb6e;
}
.cookie-btn--prefs:hover { background: rgba(126,203,110,0.1); }

#cookie-prefs-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: none;
}
#cookie-prefs-panel.active { display: block; }

.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
}
.pref-row span { flex: 1; }
.pref-row em { font-style: normal; font-size: 0.78rem; color: rgba(221,232,219,0.65); display: block; }

.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   Utility Sections
   ============================================================ */
.bg-surface { background: var(--surface); }
.bg-white { background: var(--white); }

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  filter: grayscale(100%);
  opacity: 0.55;
}
.logo-strip span { font-size: 1.2rem; font-weight: 700; }

.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
.cta-band p { opacity: 0.9; margin-bottom: 2.25rem; font-size: 1.1rem; }

.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   Legal Pages
   ============================================================ */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}
.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}
.legal-body h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-body ul { margin-bottom: 1rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-toc {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.legal-toc h3 { margin-top: 0; font-size: 1rem; }
.legal-toc ul { list-style: none; padding: 0; }
.legal-toc a { color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }

  .main-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    z-index: 400;
  }

  .section-pad { padding: 3.5rem 0; }
  .section-pad--lg { padding: 5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-overlay { min-height: 60vh; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cookie-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  #cookie-banner,
  .mobile-nav-toggle,
  .btn,
  .cta-band { display: none; }

  body { color: #000; background: #fff; font-size: 11pt; }
  a::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  h2 { page-break-after: avoid; }
}
