/* =========================================================
   Mountain Strong Dog Training — shared styles
   Brand palette (from Canva "Mountain Strong Palette").
   NOTE: hex values below were sampled from a screenshot and
   may be off slightly. Copy the exact hex codes from Canva
   (click each swatch) and paste them here — every page updates.
   ========================================================= */
:root {
  --off-white: #FAF8F4;      /* Warm Off-White (estimate) */
  --mountain-blue: #0000F5;  /* Mountain Blue (sampled from screenshot) */
  --navy: #2936AC;           /* #2936ac (exact, from Canva label) */
  --charcoal: #737473;       /* Charcoal (estimate) */
  --stone: #ADAEAF;          /* Light Stone (estimate) */

  /* Derived for readability (not in Canva palette):
     Charcoal is a bit light for long paragraphs, so body text
     uses a darker shade. Change to var(--charcoal) if you prefer. */
  --text: #2F2F33;
  --white: #FFFFFF;
  --navy-dark: #1A2378;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(41, 54, 172, 0.10);
  --max: 1120px;
  --font-head: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--mountain-blue); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--mountain-blue);
  margin-bottom: .5rem;
  display: block;
}
.section--navy .eyebrow { color: #C9CEF5; }
.lead { font-size: 1.2rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #E6E6EA;
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand span {
  font-family: var(--font-head); font-weight: 800; color: var(--navy);
  font-size: 1.05rem; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase;
}
.brand span small { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--mountain-blue); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 700; font-size: .98rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--mountain-blue); background: #EEF0FF; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); color: var(--navy);
  border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 1rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-family: var(--font-body);
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--mountain-blue);
  background: var(--mountain-blue); color: var(--white); font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--off-white); color: var(--navy); border-color: var(--off-white); }
.nav-links .btn { padding: 10px 18px; color: var(--white); }
.nav-links .btn:hover { color: var(--white); background: var(--navy); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; background: var(--white); position: relative; overflow: hidden; }
.hero::after { /* subtle mountain line at the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--navy), var(--mountain-blue));
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .accent { color: var(--mountain-blue); }
.hero-logo { max-width: 420px; margin-left: auto; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--charcoal); font-weight: 700; font-size: .95rem; }
.trust-row li::before { content: "✓ "; color: var(--mountain-blue); }

/* Page banner for inner pages */
.page-banner { background: var(--white); padding: 56px 0 48px; border-bottom: 6px solid var(--navy); }
.page-banner p { color: var(--charcoal); font-size: 1.15rem; max-width: 62ch; margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid #E4E5EA; border-top: 5px solid var(--mountain-blue);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card p { color: var(--text); }
.card .price { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; margin: auto 0 1rem; padding-top: .5rem; }
.card ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.card ul li { margin-bottom: .3em; }
.card .btn { align-self: flex-start; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: #EEF0FF; color: var(--mountain-blue);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--mountain-blue); color: #fff; font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center; font-size: 1.2rem;
}

/* Split image/text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photo-placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #EEF0FF, #EEF0FF 12px, #E3E6FB 12px, #E3E6FB 24px);
  border: 2px dashed var(--stone); display: grid; place-items: center; text-align: center;
  color: var(--charcoal); font-weight: 700; padding: 20px;
}

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mountain-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { max-width: 56ch; margin: 0 auto 1.6em; font-size: 1.15rem; color: #E6E8FA; }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid #E4E5EA; border-left: 5px solid var(--mountain-blue);
  border-radius: 10px; padding: 18px 22px; margin-bottom: 14px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.08rem; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--mountain-blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 700; color: var(--navy); font-size: .95rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--stone); border-radius: 10px;
  font: inherit; color: var(--text); background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid #C9CEF5; border-color: var(--mountain-blue); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: .88rem; color: var(--charcoal); margin-top: 4px; }
.hp-field { position: absolute; left: -5000px; } /* spam honeypot */

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 12px 0; border-bottom: 1px solid #E4E5EA; }
.info-list strong { color: var(--navy); display: block; }

/* Social */
.social { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: var(--white); transition: background .15s ease;
}
.social a:hover { background: var(--mountain-blue); color: var(--white); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social--dark a { background: #EEF0FF; color: var(--navy); }
.social--dark a:hover { background: var(--mountain-blue); color: var(--white); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #D7DAF3; padding: 56px 0 24px; font-size: .97rem; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; color: #AEB3DE; }
.footer-wordmark { font-family: var(--font-head); font-weight: 800; color: #fff; letter-spacing: .22em; font-size: 1.3rem; line-height: 1.2; margin-bottom: 10px; }
.footer-wordmark span { display: block; font-size: .8rem; letter-spacing: .2em; color: #C9CEF5; }

.todo { background: #FFF6D6; border: 1px dashed #C9A400; padding: 2px 6px; border-radius: 4px; font-size: .92em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo { margin: 0 auto; max-width: 300px; order: -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid #E6E6EA; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { text-align: center; margin-top: 6px; }
}
@media (max-width: 600px) {
  .grid-3, .footer-grid, .form .row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .brand span small { display: none; }
}

/* ---------- Videos, social cards, guides ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #E3E6FB; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.social-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--off-white); border: 1px solid #E4E5EA; text-decoration: none; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.social-card:hover { border-color: var(--mountain-blue); transform: translateY(-2px); color: var(--text); }
.social-card svg { width: 28px; height: 28px; fill: var(--mountain-blue); flex: none; }
.social-card span { font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.social-card strong { display: block; color: var(--navy); font-size: 1rem; }
.guide-cover { aspect-ratio: 4 / 3; border-radius: 10px; background: #EEF0FF; display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.guide-cover img { width: 70%; height: auto; }
.guide-cover img[src$=".jpg"], .guide-cover img[src$=".webp"] { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .social-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .social-cards { grid-template-columns: 1fr; } }
.todo { color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.area-card { border-top-color: var(--navy); }
.area-card p { margin: 0; }
.video-item { margin: 0; }
.video-item figcaption { padding-top: 14px; }
.video-item figcaption h3 { margin-bottom: .3em; }
.video-item figcaption p { margin: 0; color: var(--text); }

/* Full logo in header */
.nav { min-height: 92px; }
.brand img { width: auto; height: 76px; object-fit: contain; }
.about-photo { width: 100%; max-width: 480px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }
@media (max-width: 760px) {
  .nav { min-height: 76px; }
  .brand img { height: 60px; }
  .nav-links { top: 76px; }
}

/* About page photo gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: auto; transition: transform .25s ease; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding-top: 10px; font-size: .98rem; }
.gallery-item figcaption strong { color: var(--navy); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.gallery-label { grid-column: 1 / -1; margin: 12px 0 -8px; font-size: 1.15rem; }
.gallery-label:first-child { margin-top: 0; }

/* Header: trimmed logo + brand name */
.brand { gap: 12px; }
.brand img { height: 56px; width: auto; }
.nav { min-height: 80px; }
.brand-name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1.05; font-size: 1.3rem; letter-spacing: .03em; display: block; }
.brand-name .bn-mountain { color: var(--navy); }
.brand-name .bn-strong { color: var(--mountain-blue); }
.brand-name small { display: block; color: var(--navy); font-size: .68rem; letter-spacing: .2em; margin-top: 3px; }
@media (max-width: 760px) {
  .nav { min-height: 70px; }
  .brand img { height: 44px; }
  .brand-name { font-size: 1.05rem; }
  .brand-name small { display: block; font-size: .6rem; }
  .nav-links { top: 70px; }
}
/* override older .brand span rules */
.brand .brand-name span { font-size: inherit; letter-spacing: inherit; line-height: inherit; text-transform: inherit; }
.brand .brand-name .bn-mountain { color: var(--navy); }
.brand .brand-name .bn-strong { color: var(--mountain-blue); }
.brand .brand-name small { display: block; color: var(--navy); font-size: .68rem; letter-spacing: .2em; margin-top: 3px; }
@media (max-width: 760px) { .brand .brand-name small { font-size: .6rem; } }
@media (max-width: 360px) { .brand-name { font-size: .92rem; } .brand img { height: 38px; } }

/* Guide cards with real covers */
.guide-cover--img { display: block; aspect-ratio: 1 / 1; background: #fff; border: 1px solid #E4E5EA; }
.guide-cover--img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.guide-cover--img:hover img { transform: scale(1.03); }
.guide-badge { align-self: flex-start; background: #EEF0FF; color: var(--navy); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.guide-title { color: inherit; text-decoration: none; }
.guide-title:hover { color: var(--mountain-blue); text-decoration: underline; }
.guide-card .btn { margin-top: auto; }
.guide-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-thumbs a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform .2s ease; }
.guide-thumbs a:hover { transform: translateY(-3px); }
.photo-figure { margin: 0 auto; max-width: 480px; }
.photo-figure figcaption { padding-top: 10px; text-align: center; color: var(--text); font-size: .98rem; font-style: italic; }
.photo-figure .about-photo { max-height: 560px; object-fit: cover; object-position: center top; }
.gallery-label a { color: inherit; }

/* Services pricing */
.pkg-price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); margin: 0 0 .1em; line-height: 1.1; }
.pkg-price span { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--text); }
.pkg-meta { font-size: .95rem; color: var(--text); font-weight: 700; margin-bottom: .8em; }
.pkg-option { background: #EEF0FF; border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.pkg-note { font-size: .9rem; color: var(--text); font-style: italic; }
.card--featured { border: 2px solid var(--mountain-blue); border-top-width: 5px; position: relative; }
.pkg-flag { position: absolute; top: -14px; right: 20px; background: var(--mountain-blue); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.card .btn { margin-top: auto; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 28px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #E4E5EA; }
.price-table th { background: var(--navy); color: #fff; font-family: var(--font-head); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-table th:last-child { color: #fff; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: .92rem; margin-top: 12px; text-align: center; }
.travel-tiers { display: grid; gap: 12px; margin-top: 18px; }
.tier { display: grid; grid-template-columns: 80px 1fr; column-gap: 16px; align-items: center; background: #fff; border: 1px solid #E4E5EA; border-left: 5px solid var(--mountain-blue); border-radius: 12px; padding: 14px 18px; }
.tier--muted { border-left-color: var(--stone); }
.tier-price { grid-row: span 2; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--navy); }
.tier strong { color: var(--navy); }
.tier span:last-child { font-size: .93rem; }
@media (max-width: 600px) { .price-table th, .price-table td { padding: 12px; font-size: .95rem; } }

/* Policy page */
.policy h2 { font-size: 1.45rem; margin-top: 1.6em; }
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy li { margin-bottom: .5em; }
.policy-contact { margin-top: 2em; padding: 16px 20px; background: #EEF0FF; border-radius: 10px; }
.footer-legal { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.faq .faq-a ul { margin: 12px 0 0; padding-left: 1.2em; }
.faq .faq-a li { margin-bottom: .5em; }
