/* ============================================================
   EPICOACHING.NET — STATIC SITE STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:    #25314f;
  --secondary:  #003851;
  --accent:     #bfd2d9;
  --text:       #324a7f;
  --text-dark:  #25314f;
  --text-light: #555;
  --bg:         #ffffff;
  --bg-alt:     #f1f1f1;
  --white:      #ffffff;

  --font:       'Montserrat', sans-serif;
  --header-h:   100px;
  --nav-h:      55px;
  --max-w:      1200px;
  --section-py: 80px;

  --transition: 0.3s ease;
  --radius:     4px;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

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

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--accent {
  background: var(--accent);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.gap-lg { gap: 64px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

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

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

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

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

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.transparent { background: transparent; }
.site-header.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

/* Force solid header on non-hero pages */
.site-header.solid { background: var(--primary); }

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

.logo img {
  height: 40px;
  width: auto;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--accent); }

/* Dropdown */
.nav-item:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  min-width: 200px;
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow);
  z-index: 200;
}

.dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}

.dropdown a:hover { background: var(--secondary); color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--primary);
  padding: 20px 32px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-nav .mobile-sub a {
  padding: 8px 0 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
  color: var(--accent);
}

/* ============================================================
   PAGE HERO (with background image)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  padding-top: var(--header-h);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,49,79,0.82) 0%, rgba(0,56,81,0.60) 100%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 640px; }

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-articles-1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.home-hero .container { position: relative; z-index: 1; padding-top: var(--header-h); }

.home-hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 24px;
}

.home-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 32px;
}

/* ============================================================
   FOCUS AREAS (homepage)
   ============================================================ */
.focus-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.focus-card {
  padding: 48px 36px;
  border-right: 1px solid rgba(191,210,217,0.3);
  transition: background var(--transition);
}

.focus-card:last-child { border-right: none; }
.focus-card:hover { background: var(--bg-alt); }

.focus-card h3 { margin-bottom: 12px; color: var(--primary); }
.focus-card p { color: var(--text-light); font-size: 0.95rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 24px; }
.card__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card__title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.35; }
.card__date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.card__excerpt { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  padding: 36px 28px;
  border-left: 4px solid var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-3px); }
.service-card h3 { color: var(--primary); margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.92rem; }
.service-card ul { margin-top: 12px; }
.service-card ul li { font-size: 0.88rem; color: var(--text-light); padding: 4px 0; padding-left: 16px; position: relative; }
.service-card ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============================================================
   PILLARS (ONE page)
   ============================================================ */
.pillar {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(191,210,217,0.25);
  border-radius: var(--radius);
}

.pillar h3 {
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pillar p { color: rgba(255,255,255,0.82); font-size: 0.92rem; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(191,210,217,0.2);
  border-bottom: 1px solid rgba(191,210,217,0.2);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(191,210,217,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-item .num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label { font-size: 0.82rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================================
   VALUE CARDS (about page)
   ============================================================ */
.value-card {
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-card img { width: 100%; height: 220px; object-fit: cover; }
.value-card__body { padding: 24px 20px; background: var(--white); }
.value-card__body h3 { color: var(--primary); margin-bottom: 8px; }
.value-card__body p { font-size: 0.9rem; color: var(--text-light); }

/* ============================================================
   TEAM MEMBER
   ============================================================ */
.team-member {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--accent);
}

.team-member:last-child { border-bottom: none; }

.team-member img {
  width: 280px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-member h3 { color: var(--primary); margin-bottom: 4px; }
.team-member .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; display: block; }
.team-member .quote { font-style: italic; color: var(--primary); font-weight: 500; margin-bottom: 16px; border-left: 3px solid var(--accent); padding-left: 16px; }

.team-member ul { margin-top: 12px; }
.team-member ul li { font-size: 0.9rem; color: var(--text-light); padding: 3px 0 3px 16px; position: relative; }
.team-member ul li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }

/* ============================================================
   ASSESSMENT BLOCK
   ============================================================ */
.assessment-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.assessment-block:last-child { border-bottom: none; }
.assessment-block img { width: 200px; border-radius: var(--radius); box-shadow: var(--shadow); }
.assessment-block h3 { color: var(--primary); margin-bottom: 12px; }
.assessment-block p { color: var(--text-light); font-size: 0.95rem; }

/* ============================================================
   CHECK LIST
   ============================================================ */
.check-list { margin: 16px 0; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(191,210,217,0.2);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ============================================================
   WELLBEING TILES
   ============================================================ */
.wellbeing-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.wellbeing-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wellbeing-tile__body {
  position: relative;
  z-index: 1;
  background: linear-gradient(0deg, rgba(37,49,79,0.92) 0%, rgba(37,49,79,0.4) 100%);
  padding: 32px;
  width: 100%;
}

.wellbeing-tile h3 { color: var(--white); margin-bottom: 8px; }
.wellbeing-tile p { color: rgba(255,255,255,0.82); font-size: 0.9rem; }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section { background: var(--bg-alt); padding: var(--section-py) 0; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.contact-method:hover { background: var(--accent); }

.contact-method svg { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo img { height: 36px; margin-bottom: 16px; }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(191,210,217,0.25);
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   PAGE-SPECIFIC: POLICY PAGES
   ============================================================ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-py) 32px;
}

.policy-content h1 { margin-bottom: 32px; }
.policy-content h2 { margin: 32px 0 12px; }
.policy-content h3 { margin: 24px 0 8px; }
.policy-content p { color: var(--text-light); }
.policy-content ul { margin: 12px 0 12px 24px; list-style: disc; }
.policy-content ul li { color: var(--text-light); margin-bottom: 6px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 48px 0 0;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: none;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination__btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination__btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .focus-cards { grid-template-columns: 1fr; }
  .focus-card { border-right: none; border-bottom: 1px solid rgba(191,210,217,0.3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-member { grid-template-columns: 220px 1fr; gap: 32px; }
  .team-member img { width: 220px; height: 260px; }
  .assessment-block { grid-template-columns: 160px 1fr; gap: 28px; }
  .assessment-block img { width: 160px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 56px; }

  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }

  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { grid-template-columns: 1fr; }
  .gap-lg { gap: 32px; }

  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(191,210,217,0.2); padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .team-member { grid-template-columns: 1fr; }
  .team-member img { width: 100%; height: 260px; }

  .assessment-block { grid-template-columns: 1fr; }
  .assessment-block img { width: 100%; max-width: 100%; }

  .page-hero { min-height: 340px; }
  .home-hero { min-height: 80vh; }

  .policy-content { padding: var(--section-py) 20px; }
}
