/* ==========================================================================
   Take the Lead, Inc. — k9leader.com  |  Modern Refresh
   ========================================================================== */

:root {
  --forest: #14301f;
  --forest-light: #1e4a30;
  --forest-dark: #0d2115;
  --gold: #c9962e;
  --gold-light: #e0b45a;
  --cream: #faf7f1;
  --cream-dark: #f1ead9;
  --charcoal: #2b2b28;
  --gray: #6b6a63;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(20, 48, 31, 0.12);
  --shadow-sm: 0 4px 14px rgba(20, 48, 31, 0.08);
  --radius: 14px;
  --maxw: 1180px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest-dark);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-lead {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 40px;
}

.section-head { text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

section { padding: 90px 0; }
.section-alt { background: var(--cream-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border-color: rgba(255,255,255,0.65);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-forest {
  background: var(--forest);
  color: var(--white);
}
.btn-forest:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(20, 48, 31, 0.96);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
}
.brand .mark {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { display: block; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--gold-light); text-transform: uppercase; }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 30px;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}
.nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--forest-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,33,21,0.94) 20%, rgba(13,33,21,0.75) 55%, rgba(13,33,21,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 60px;
  color: var(--white);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,150,46,0.16);
  border: 1px solid rgba(201,150,46,0.5);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 34px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
}
.hero-stats div strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: var(--gold-light);
}
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--gold);
  color: var(--forest-dark);
}
.announce .container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  flex-wrap: wrap;
}
.announce strong { font-family: 'Poppins', sans-serif; }
.announce .pill {
  background: rgba(20,48,31,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Intro / About snippet ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-media { position: relative; }
.intro-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.intro-media .float-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--forest);
  color: var(--white);
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 220px;
}
.intro-media .float-card strong { color: var(--gold-light); font-family: 'Poppins', sans-serif; display: block; font-size: 1.1rem; }
.intro-media .float-card span { font-size: 0.82rem; color: rgba(255,255,255,0.8); }

.intro-text p { color: var(--gray); margin-bottom: 18px; }
.credential-list { margin-top: 24px; display: grid; gap: 12px; }
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.credential-list li .ico {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Service Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--gold);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.94rem; }

/* ---------- Classes (list) ---------- */
.class-list { display: grid; gap: 22px; }
.class-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.class-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.class-date {
  background: var(--cream-dark);
  border-radius: 10px;
  text-align: center;
  padding: 12px 6px;
  font-family: 'Poppins', sans-serif;
  color: var(--forest);
}
.class-date strong { display: block; font-size: 1.5rem; color: var(--forest-dark); }
.class-date span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.class-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.class-info p { color: var(--gray); font-size: 0.9rem; }
.class-info .loc { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.85rem; color: var(--forest); font-weight: 600; }
.class-tag {
  background: var(--forest);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  justify-self: end;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.class-tag.alt { background: var(--gold); color: var(--forest-dark); }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.testi-card .quote-mark { font-family: 'Poppins', serif; font-size: 2.6rem; color: var(--gold); line-height: 0; display: block; margin-bottom: 10px; }
.testi-card p { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 18px; }
.testi-card .who { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--gold-light); font-size: 0.9rem; }
.testi-card .who span { display: block; color: rgba(255,255,255,0.6); font-weight: 400; font-size: 0.78rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--forest-dark), var(--forest));
  border-radius: 24px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); font-size: 1.9rem; max-width: 460px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin-top: 10px; max-width: 460px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin-bottom: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold); color: var(--forest-dark); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--forest-dark);
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,46,0.18), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin-top: 14px; }
.breadcrumb { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Policy list ---------- */
.policy-list { display: grid; gap: 16px; margin-top: 30px; }
.policy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.policy-list li .ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px;
}
.contact-card .row { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-card .row .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream-dark);
  color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-card .row h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-card .row p, .contact-card .row a { color: var(--gray); font-size: 0.92rem; }

.form-card {
  background: var(--forest);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
}
.form-card h3 { color: var(--white); margin-bottom: 8px; }
.form-card p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 0.92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 30px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- About page specifics ---------- */
.timeline { display: grid; gap: 4px; margin-top: 10px; }
.timeline-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(20,48,31,0.08);
}
.timeline-item .org { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--forest); }
.timeline-item p { color: var(--gray); font-size: 0.92rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-cloud span {
  background: var(--cream-dark);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
}

/* ---------- Utility ---------- */
.mt-lg { margin-top: 50px; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: var(--forest-dark); flex-direction: column; align-items: flex-start;
    padding: 100px 30px 30px; transition: right var(--transition); z-index: 999; }
  .nav-links.open { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.3); }
  .nav-links a { width: 100%; padding: 14px 16px; }
  .nav-links .btn { margin-left: 0; margin-top: 10px; width: 100%; justify-content: center; }
  .nav-toggle { display: block; z-index: 1001; }
  .card-grid { grid-template-columns: 1fr; }
  .class-item { grid-template-columns: 1fr; text-align: left; }
  .class-tag { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  section { padding: 60px 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}
