/*
Theme Name: Species K9 Boarding & Daycare
Theme URI: https://speciesk9.com
Author: Species K9
Description: Custom theme for Species K9 Boarding & Doggy Day Care — structured enrichment, indoor kenneling, and free pets & love. All page text and images are editable under Appearance → Customize.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: speciesk9-care
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --sk9-primary: #0273bc;
  --sk9-primary-dark: #045a91;
  --sk9-primary-deep: #0b2740;
  --sk9-accent: #209ed9;
  --sk9-accent-light: #2aa7e4;
  --sk9-sky: #eaf5fc;
  --sk9-sky-soft: #f4fafe;
  --sk9-ink: #17293b;
  --sk9-body: #4b5563;
  --sk9-muted: #6b7684;
  --sk9-line: #dfe9f2;
  --sk9-white: #ffffff;
  --sk9-grad: linear-gradient(135deg, #2aa7e4 0%, #0369b4 100%);
  --sk9-grad-soft: linear-gradient(180deg, #f4fafe 0%, #ffffff 100%);
  --sk9-radius: 20px;
  --sk9-radius-sm: 12px;
  --sk9-shadow: 0 10px 30px -12px rgba(4, 90, 145, .22);
  --sk9-shadow-lg: 0 24px 50px -20px rgba(4, 90, 145, .35);
  --sk9-container: 1180px;
  --sk9-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sk9-font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sk9-body);
  background: var(--sk9-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sk9-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sk9-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sk9-font);
  color: var(--sk9-ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  position: fixed !important; top: 8px; left: 8px; z-index: 9999;
  background: var(--sk9-primary); color: #fff; padding: .8em 1.2em;
  border-radius: 8px; font-weight: 500;
}
:focus-visible { outline: 3px solid var(--sk9-accent); outline-offset: 2px; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sk9-font); font-weight: 600; font-size: 1rem;
  padding: .95em 2em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-align: center; line-height: 1.3; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.btn-primary {
  background: var(--sk9-grad); color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(3, 105, 180, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(3, 105, 180, .6); }
.btn-outline { background: transparent; color: var(--sk9-primary) !important; border-color: var(--sk9-primary); }
.btn-outline:hover { background: var(--sk9-primary); color: #fff !important; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--sk9-primary) !important; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff !important; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-topbar {
  background: var(--sk9-primary-deep); color: #cfe6f7;
  font-size: .85rem; padding: 7px 0;
}
.site-topbar .sk9-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-topbar a { color: #fff; font-weight: 500; }
.site-topbar a:hover { color: var(--sk9-accent-light); }
.topbar-item { display: inline-flex; align-items: center; gap: .5em; }
.topbar-item svg { width: 14px; height: 14px; fill: var(--sk9-accent-light); flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -16px rgba(4, 90, 145, .3); border-color: var(--sk9-line); }
.site-header .sk9-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding img.custom-logo, .site-branding img.sk9-logo { width: 58px; height: 58px; object-fit: contain; }
.site-title-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-title-text .site-title { font-weight: 700; font-size: 1.18rem; color: var(--sk9-ink); letter-spacing: -.01em; }
.site-title-text .site-tagline { font-size: .74rem; color: var(--sk9-primary); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }
.site-branding a { display: flex; align-items: center; gap: 14px; }
.site-branding a:hover .site-title { color: var(--sk9-primary); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .55em 1em; border-radius: 999px;
  color: var(--sk9-ink); font-weight: 500; font-size: .98rem;
}
.main-nav a:hover { color: var(--sk9-primary); background: var(--sk9-sky); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--sk9-primary); background: var(--sk9-sky); }
.header-cta { flex: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  border-radius: 10px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--sk9-ink); border-radius: 3px; margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--sk9-line);
    box-shadow: 0 30px 40px -20px rgba(4, 90, 145, .25);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-open .main-nav { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { padding: .8em 1em; border-radius: 12px; font-size: 1.05rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--sk9-primary-deep);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5, 34, 58, .92) 0%, rgba(5, 51, 88, .72) 45%, rgba(8, 66, 110, .35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(90px, 13vw, 170px) 0; max-width: 640px; }
.hero.hero-tall .hero-inner { padding: clamp(110px, 16vw, 210px) 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #9fd7f7; margin-bottom: 1.2em;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--sk9-accent-light); border-radius: 2px; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: #6cc4f0; }
.hero-sub { font-size: 1.1rem; color: #d9ecf9; max-width: 560px; margin-bottom: 2em; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 1.6em; font-size: .88rem; color: #a8cbe3; display: flex; align-items: center; gap: .6em; }
.hero-note svg { width: 16px; height: 16px; fill: #6cc4f0; flex: none; }

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--sk9-primary-deep); overflow: hidden; }
.page-hero .hero-inner { padding: clamp(70px, 9vw, 120px) 0; max-width: 720px; }
.page-hero h1 { color: #fff; }
.breadcrumb { font-size: .85rem; color: #9fd7f7; margin-bottom: 1em; font-weight: 500; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #6cc4f0; }
.breadcrumb .sep { margin: 0 .5em; opacity: .5; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-sky { background: var(--sk9-sky-soft); }
.section-grad { background: var(--sk9-grad-soft); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-kicker {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sk9-accent);
  background: var(--sk9-sky); padding: .45em 1.2em; border-radius: 999px; margin-bottom: 1.1em;
}
.section-head h2 { margin-bottom: .45em; }
.section-head p { color: var(--sk9-muted); }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--sk9-line); border-radius: var(--sk9-radius);
  overflow: hidden; box-shadow: var(--sk9-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sk9-shadow-lg); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin-bottom: 0; }
.card-body p { color: var(--sk9-body); font-size: .98rem; }
.card-link { margin-top: auto; padding-top: 10px; font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.card-link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* Feature tiles (icon + text) */
.feature {
  background: #fff; border: 1px solid var(--sk9-line); border-radius: var(--sk9-radius);
  padding: 30px 28px; box-shadow: 0 6px 20px -12px rgba(4, 90, 145, .15);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sk9-shadow); border-color: #bfe0f5; }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px; background: var(--sk9-sky);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-icon svg { width: 28px; height: 28px; fill: var(--sk9-primary); }
.feature h3 { font-size: 1.12rem; margin-bottom: .4em; }
.feature p { font-size: .95rem; color: var(--sk9-body); }

/* Stat / trust bar */
.trust-bar { background: #fff; border-radius: var(--sk9-radius); box-shadow: var(--sk9-shadow); border: 1px solid var(--sk9-line); padding: 10px; margin-top: -66px; position: relative; z-index: 5; }
.trust-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid var(--sk9-line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 34px; height: 34px; fill: var(--sk9-primary); flex: none; }
.trust-item strong { display: block; color: var(--sk9-ink); font-size: .98rem; line-height: 1.3; }
.trust-item span { font-size: .82rem; color: var(--sk9-muted); }
@media (max-width: 980px) {
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--sk9-line); }
}
@media (max-width: 640px) {
  .trust-bar { margin-top: -40px; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--sk9-line); }
  .trust-item:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Split (image + text) sections
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--sk9-radius); box-shadow: var(--sk9-shadow-lg); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.split-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border-radius: var(--sk9-radius); background: var(--sk9-sky); z-index: -1;
}
.split-media.flip::before { inset: 24px 24px -24px -24px; }
.split-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff;
  border-radius: 16px; box-shadow: var(--sk9-shadow-lg); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.split-badge svg { width: 30px; height: 30px; fill: var(--sk9-primary); flex: none; }
.split-badge strong { display: block; color: var(--sk9-ink); font-size: .92rem; line-height: 1.3; }
.split-badge span { font-size: .78rem; color: var(--sk9-muted); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media::before { display: none; }
  .split-badge { left: 12px; }
}

/* ==========================================================================
   Checklists
   ========================================================================== */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--sk9-ink); font-weight: 500; }
.check-list li svg { width: 22px; height: 22px; fill: var(--sk9-accent); flex: none; margin-top: 4px; }
.check-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

.list-panel {
  background: #fff; border: 1px solid var(--sk9-line); border-radius: var(--sk9-radius);
  box-shadow: var(--sk9-shadow); padding: 36px;
  display: flex; flex-direction: column; gap: 20px; height: 100%;
}
.list-panel-head { display: flex; align-items: center; gap: 14px; }
.list-panel-head .feature-icon { margin-bottom: 0; }
.list-panel-head h3 { margin: 0; }
.list-panel .note { font-size: .88rem; color: var(--sk9-muted); border-top: 1px dashed var(--sk9-line); padding-top: 16px; margin-top: auto; }

/* Callout */
.callout {
  border-radius: var(--sk9-radius); background: var(--sk9-sky);
  border: 1px solid #cfe7f7; padding: 32px 36px;
  display: flex; gap: 20px; align-items: flex-start;
}
.callout svg { width: 34px; height: 34px; fill: var(--sk9-primary); flex: none; margin-top: 4px; }
.callout h3 { margin-bottom: .3em; }
.callout p { margin-bottom: 0; }
@media (max-width: 640px) { .callout { flex-direction: column; padding: 26px; } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-card {
  background: #fff; border-radius: var(--sk9-radius); overflow: hidden;
  box-shadow: var(--sk9-shadow-lg); border: 1px solid var(--sk9-line);
  max-width: 500px; margin: 0 auto;
}
.pricing-top { background: var(--sk9-grad); color: #fff; text-align: center; padding: 40px 32px 34px; }
.pricing-top h3 { color: #fff; margin: 0 0 .2em; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.pricing-price { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.pricing-price sup { font-size: 1.4rem; font-weight: 600; top: -1.2em; }
.pricing-per { font-size: .92rem; opacity: .85; }
.pricing-body { padding: 32px 36px 38px; }
.pricing-body ul { list-style: none; margin: 0 0 24px; padding: 0; }
.pricing-body li { padding: 12px 0; border-bottom: 1px dashed var(--sk9-line); display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.pricing-body li:last-child { border-bottom: 0; }
.pricing-body li svg { width: 20px; height: 20px; fill: var(--sk9-accent); flex: none; margin-top: 5px; }
.pricing-body .btn { width: 100%; }

/* Vaccines strip */
.vaccine-box {
  border-radius: var(--sk9-radius); border: 1px solid var(--sk9-line); background: #fff;
  box-shadow: var(--sk9-shadow); padding: 40px; text-align: center;
}
.vaccine-pills { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 22px 0 14px; }
.vaccine-pill {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--sk9-sky); color: var(--sk9-primary-dark); font-weight: 600;
  padding: .7em 1.6em; border-radius: 999px; font-size: 1rem;
}
.vaccine-pill svg { width: 20px; height: 20px; fill: var(--sk9-primary); }
.vaccine-note { font-size: .9rem; color: var(--sk9-muted); margin: 0; }

/* ==========================================================================
   Video section
   ========================================================================== */
.video-wrap { max-width: 920px; margin: 0 auto; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--sk9-radius);
  overflow: hidden; box-shadow: var(--sk9-shadow-lg); background: var(--sk9-primary-deep);
}
.video-frame iframe, .video-frame img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.video-placeholder img { opacity: .55; }
.video-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(180deg, rgba(5, 34, 58, .15) 0%, rgba(5, 34, 58, .55) 100%);
}
.video-play {
  width: 84px; height: 84px; border-radius: 50%; background: var(--sk9-grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(3, 105, 180, .7), 0 0 0 10px rgba(255, 255, 255, .14);
}
.video-play svg { width: 36px; height: 36px; fill: #fff; margin-left: 4px; }
.video-coming {
  color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .4); padding: .55em 1.5em; border-radius: 999px;
  backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 28px; height: 28px; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--sk9-grad); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.08); top: -180px; right: -120px;
}
.cta-band::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.07); bottom: -120px; left: -80px;
}
.cta-band-inner { position: relative; z-index: 2; padding: clamp(60px, 8vw, 96px) 0; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e2f2fc; margin-bottom: 2em; }
.cta-band .hero-actions { justify-content: center; }
.cta-phone { display: inline-flex; align-items: center; gap: .5em; font-size: 1.05rem; font-weight: 600; color: #fff; }
.cta-phone svg { width: 18px; height: 18px; fill: #fff; }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-card { text-align: left; }
.post-card .card-img { aspect-ratio: 16 / 9; background: var(--sk9-sky); }
.post-meta { font-size: .82rem; color: var(--sk9-muted); display: flex; gap: 1em; flex-wrap: wrap; }
.post-meta span { display: inline-flex; align-items: center; gap: .4em; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--sk9-ink); }
.post-card h3 a:hover { color: var(--sk9-primary); }

.article-wrap { max-width: 760px; margin: 0 auto; }
.article-wrap .post-thumb img { border-radius: var(--sk9-radius); box-shadow: var(--sk9-shadow); margin-bottom: 36px; }
.article-content h2, .article-content h3 { margin-top: 1.6em; }
.article-content img { border-radius: var(--sk9-radius-sm); }
.article-content blockquote {
  margin: 1.6em 0; padding: 1.2em 1.6em; border-left: 4px solid var(--sk9-accent);
  background: var(--sk9-sky-soft); border-radius: 0 var(--sk9-radius-sm) var(--sk9-radius-sm) 0;
  font-style: italic; color: var(--sk9-ink);
}
.article-content a { text-decoration: underline; }
.article-content ul li, .article-content ol li { margin-bottom: .4em; }
.article-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--sk9-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--sk9-line); color: var(--sk9-ink); font-weight: 500; font-size: .95rem;
}
.pagination .page-numbers.current { background: var(--sk9-grad); color: #fff; border-color: transparent; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--sk9-primary); color: var(--sk9-primary); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 64px); row-gap: 28px; align-items: start;
}
.contact-info-card { grid-column: 1; grid-row: 1; }
.contact-form-col { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
/* Let the message box grow so the form and the map column end together. */
.contact-form-col .contact-form-card { height: 100%; display: flex; flex-direction: column; }
.contact-form-col .form-grid { flex: 1; grid-template-rows: auto auto 1fr auto; align-content: start; }
.contact-form-col .form-field:has(> textarea) { display: flex; flex-direction: column; }
.contact-form-col .form-field textarea { flex: 1; }
.contact-map { grid-column: 1; grid-row: 2; align-self: stretch; display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; grid-template-rows: none; }
  .contact-info-card, .contact-form-col, .contact-map { grid-column: 1; grid-row: auto; }
  .contact-map { order: 3; align-self: auto; }
  .contact-form-col { align-self: auto; }
  .contact-form-col .form-grid { grid-template-rows: none; }
}

.contact-info-card {
  background: var(--sk9-primary-deep); color: #c9dded; border-radius: var(--sk9-radius);
  padding: 40px 36px; box-shadow: var(--sk9-shadow-lg); position: relative; overflow: hidden;
}
.contact-info-card::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(42, 167, 228, .12); bottom: -100px; right: -80px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 1.4em; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; z-index: 1; }
.contact-info-item:last-of-type { border-bottom: 0; }
.contact-info-item svg { width: 22px; height: 22px; fill: var(--sk9-accent-light); flex: none; margin-top: 5px; }
.contact-info-item strong { display: block; color: #fff; font-size: .95rem; margin-bottom: 2px; }
.contact-info-item a, .contact-info-item span { color: #c9dded; font-size: .95rem; }
.contact-info-item a:hover { color: var(--sk9-accent-light); }

.contact-form-card {
  background: #fff; border: 1px solid var(--sk9-line); border-radius: var(--sk9-radius);
  box-shadow: var(--sk9-shadow); padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .form-field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .contact-form-card { padding: 28px 22px; } }
.form-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--sk9-ink); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--sk9-font); font-size: 1rem; color: var(--sk9-ink);
  padding: .85em 1.1em; border: 1.5px solid var(--sk9-line); border-radius: var(--sk9-radius-sm);
  background: var(--sk9-sky-soft); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--sk9-accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(32, 158, 217, .14);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-notice { border-radius: var(--sk9-radius-sm); padding: 1em 1.3em; margin-bottom: 22px; font-size: .95rem; font-weight: 500; }
.form-notice.ok { background: #e8f7ee; color: #14683a; border: 1px solid #bfe6cf; }
.form-notice.err { background: #fdeeee; color: #9c2b2b; border: 1px solid #f2c7c7; }
.sk9-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-map-title { display: flex; align-items: center; gap: .5em; font-size: 1.1rem; margin: 0 0 14px; }
.contact-map-title svg { width: 22px; height: 22px; fill: var(--sk9-accent); flex: none; }
.contact-map-frame {
  flex: 1; min-height: 320px; border-radius: var(--sk9-radius); overflow: hidden;
  box-shadow: var(--sk9-shadow); border: 1px solid var(--sk9-line); background: var(--sk9-sky);
}
.contact-map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.contact-map-link { display: inline-flex; align-items: center; gap: .3em; margin-top: 14px; font-weight: 600; align-self: flex-start; }
@media (max-width: 900px) { .contact-map-frame, .contact-map-frame iframe { min-height: 280px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--sk9-primary-deep); color: #a9c3d8; margin-top: 0; }
.footer-main { padding: clamp(56px, 7vw, 84px) 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 14px; padding: 5px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; line-height: 1.2; display: block; }
.footer-brand span { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sk9-accent-light); }
.site-footer p { font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.4em; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { color: #a9c3d8; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .93rem; }
.footer-contact-item svg { width: 18px; height: 18px; fill: var(--sk9-accent-light); flex: none; margin-top: 5px; }
.footer-contact-item a { color: #a9c3d8; }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .85rem; }
.footer-bottom .sk9-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #cfe0ee; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   WordPress core alignment classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--sk9-muted); text-align: center; padding: .5em 0; }
.sticky { display: block; }
.gallery-caption, .bypostauthor { display: block; }
