/*
Theme Name:  Boardmoor
Theme URI:   https://boardmoor.com
Author:      -
Description: Pixel replica of the Boardmoor Pet Resort landing design. Classic theme, no dependencies. Comments disabled, classic editor enforced.
Version:     1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License:     GNU General Public License v2 or later
Text Domain: boardmoor
*/

/* ------------------------------------------------------------------
   1. Tokens
------------------------------------------------------------------ */
:root {
  --navy:        #152F44;
  --navy-deep:   #0F2434;
  --navy-light:  #25455C;
  --orange:      #E19158;
  --orange-dark: #D07F45;
  --sage:        #639E8A;
  --bg:          #F9F9F9;
  --white:       #FFFFFF;
  --slate:       #5A6B7A;

  --font-display: 'Amatic SC', cursive;
  --font-script:  'Pacifico', cursive;
  --font-sans:    'Montserrat', -apple-system, Segoe UI, sans-serif;

  --container: 1140px;
  --radius-pill: 999px;
  --shadow: 0 3px 12px rgba(21, 47, 68, .22);
}

/* ------------------------------------------------------------------
   2. Reset / base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--slate);
  font: 400 15px/1.8 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--orange-dark); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.section { padding: 84px 0; }
.section--tight { padding: 48px 0; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Amatic display headings */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  line-height: 1.05;
}

.section-title {
  font: 700 46px/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin: 0 0 52px;
  position: relative;
}
.section-title .sparkle {
  width: 26px; height: 26px;
  color: var(--orange);
  display: inline-block;
  vertical-align: top;
  margin: -10px 0 0 2px;
  transform: rotate(24deg);
}

/* ------------------------------------------------------------------
   3. Buttons
------------------------------------------------------------------ */
.btn {
  display: inline-block;
  font: 700 13px/1 var(--font-sans);
  letter-spacing: .03em;
  text-decoration: none;
  padding: 15px 36px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn--sm { padding: 12px 28px; font-size: 12px; }

/* ------------------------------------------------------------------
   4. Utility header (sage bar)
------------------------------------------------------------------ */
.site-header { position: relative; z-index: 50; }

.topbar { background: var(--sage); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  min-height: 108px;
  padding-left: 190px; /* clears the overlapping badge */
}

.brand-badge {
  position: absolute;
  top: 12px;
  left: max(24px, calc((100% - var(--container)) / 2 + 24px));
  width: 152px;
  height: 152px;
  z-index: 60;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(21, 47, 68, .25));
}
.brand-badge img,
.brand-badge svg { width: 100%; height: 100%; border-radius: 50%; }
.brand-badge a { display: block; line-height: 0; }

.top-contact {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.top-contact .chip {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-contact .chip svg { width: 20px; height: 20px; }
.top-contact span a { color: inherit; text-decoration: none; }
.top-contact span a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   5. Primary nav (orange bar)
------------------------------------------------------------------ */
.navbar { background: var(--orange); }
.navbar-inner {
  display: flex;
  align-items: center;
  padding-left: 190px;
  min-height: 46px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.main-nav a {
  display: block;
  padding: 15px 15px;
  font: 700 12px/1 var(--font-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  transition: background-color .15s, color .15s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--navy);
  color: var(--white);
}

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.socials a { color: var(--navy); line-height: 0; transition: color .15s, opacity .15s; }
.socials a:hover { opacity: .65; }
.socials svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 12px;
  margin-left: -12px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------
   6. Hero
------------------------------------------------------------------ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46%) 1fr;
  background: var(--navy);
  min-height: 600px;
}
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px) 140px;
  color: var(--white);
}
.hero-eyebrow { color: var(--orange); margin-bottom: 10px; }
.hero-eyebrow svg { width: 34px; height: 34px; transform: rotate(-18deg); }

.hero-title {
  margin: 0;
  font: 700 clamp(34px, 3.4vw, 46px)/1.15 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}
.hero-script {
  display: block;
  margin: 6px 0 0 -4px;
  font: 400 clamp(60px, 6.6vw, 94px)/1.2 var(--font-script);
  text-transform: none;
  letter-spacing: 0;
  color: var(--orange);
}
.hero .btn { margin-top: 38px; }

.hero-media { position: relative; min-height: 420px; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(60px, 9vw, 120px);
  z-index: 5;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   7. Services
------------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;
  max-width: 980px;
  margin: 0 auto;
}
.service {
  display: block;
  text-decoration: none;
  text-align: center;
}
.medallion {
  width: 142px;
  height: 142px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 5px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.medallion svg { width: 62px; height: 62px; stroke-width: 1.6; }
.service:hover .medallion { transform: translateY(-5px); }
.service h3 {
  margin: 0;
  font: 700 25px/1.2 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ------------------------------------------------------------------
   8. Live cam banner
------------------------------------------------------------------ */
.cam-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--navy);
  border-radius: var(--radius-pill);
  padding: 26px 44px;
  box-shadow: var(--shadow);
}
.cam-banner::before {
  content: "";
  position: absolute;
  top: -80%;
  right: 14%;
  width: 40%;
  height: 260%;
  background: var(--navy-light);
  transform: rotate(22deg);
}
.cam-banner > * { position: relative; z-index: 1; }
.cam-banner .cam-icon { color: var(--orange); flex: none; }
.cam-banner .cam-icon svg { width: 54px; height: 54px; }
.cam-copy h2 {
  margin: 0 0 3px;
  font: 700 30px/1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.cam-copy p { margin: 0; font-weight: 700; font-size: 15px; color: var(--white); line-height: 1.4; }
.cam-banner .btn { margin-left: auto; white-space: nowrap; }

/* ------------------------------------------------------------------
   9. Welcome / about
------------------------------------------------------------------ */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.welcome-copy h2 {
  margin: 0 0 4px;
  font: 700 40px/1.1 var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
}
.welcome-copy .subhead {
  margin: 0 0 20px;
  font: 700 26px/1.1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.welcome-copy p { margin: 0 0 26px; }

/* ------------------------------------------------------------------
   10. Doodle strip
------------------------------------------------------------------ */
.doodle-strip {
  height: 86px;
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  background-color: var(--orange);
  background-image: url('assets/img/doodles.svg');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 48px;
}

/* ------------------------------------------------------------------
   11. Features
------------------------------------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}
.feature { text-align: center; }
.feature .feature-icon { color: var(--orange); margin-bottom: 14px; }
.feature .feature-icon svg { width: 56px; height: 56px; margin: 0 auto; }
.feature h3 {
  margin: 0 0 8px;
  font: 700 24px/1.2 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.feature p { margin: 0; font-size: 13px; line-height: 1.75; }
.features-media img { margin: 0 auto; }

/* ------------------------------------------------------------------
   12. Bone divider
------------------------------------------------------------------ */
.bone-divider {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  color: var(--navy);
}
.bone-divider::before,
.bone-divider::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
}
.bone-divider svg { width: 48px; height: 48px; flex: none; }

/* ------------------------------------------------------------------
   13. CTA cards
------------------------------------------------------------------ */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cta-card {
  background: var(--navy);
  color: var(--white);
  padding: 72px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta-card h3 {
  margin: 0;
  font: 700 30px/1.1 var(--font-display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--white);
}
.cta-card p {
  margin: 0;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .85);
}
.cta-card .btn { margin-top: 10px; }

/* ------------------------------------------------------------------
   14. Testimonials
------------------------------------------------------------------ */
.testimonials {
  background: var(--orange);
  padding: 64px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.testimonials h2 {
  margin: 0;
  font: 700 40px/1.15 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

.quote-track { position: relative; }
.quote-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}
.quote-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.quote-slide blockquote {
  margin: 0;
  font: italic 500 16px/1.85 var(--font-sans);
  color: var(--white);
  text-align: center;
}
.quote-slide cite {
  display: block;
  margin-top: 14px;
  font: 700 14px/1 var(--font-sans);
  font-style: normal;
  color: var(--white);
}
.quote-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.quote-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  opacity: .35;
  cursor: pointer;
  transition: opacity .15s;
}
.quote-dots button.is-active,
.quote-dots button:hover { opacity: 1; }

/* ------------------------------------------------------------------
   15. Footer
------------------------------------------------------------------ */
.site-footer {
  background: var(--navy) url('assets/img/paw-pattern.svg') repeat;
  background-size: 220px;
  color: var(--white);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 230px repeat(3, 1fr);
  gap: 44px;
}
.footer-logo {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.footer-logo svg { width: 96px; height: 96px; color: var(--white); }

.footer-col h4 {
  margin: 8px 0 18px;
  font: 700 27px/1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--orange); }
.footer-col address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.9;
}
.footer-col address p { margin: 0 0 14px; }

.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-bottom small { font-size: 11px; color: rgba(255, 255, 255, .55); }
.footer-bottom .socials { margin-left: 0; }
.footer-bottom .socials a { color: var(--white); }
.footer-bottom .socials a:hover { color: var(--orange); opacity: 1; }

/* ------------------------------------------------------------------
   16. Inner pages / blog
------------------------------------------------------------------ */
.page-hero {
  background: var(--navy);
  padding: 66px 0;
  text-align: center;
}
.page-hero .hero-eyebrow { display: inline-block; margin: 0 0 8px; }
.page-hero h1 {
  margin: 0;
  font: 700 clamp(40px, 4.5vw, 54px)/1.1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  line-height: 1.15;
  margin: 1.6em 0 .5em;
}
.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 27px; }
.entry-content a { color: var(--orange-dark); }
.entry-content img { border-radius: 6px; }

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.post-card {
  background: var(--white);
  border: 1px solid #E8E4DE;
  padding: 30px;
}
.post-card h2 { margin: 0 0 6px; font: 700 28px/1.15 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--orange-dark); }
.post-card .post-meta { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-dark); font-weight: 700; }
.post-card p { font-size: 14px; }

.error-404 { text-align: center; padding: 60px 0; }
.error-404 .h-display { font-size: 60px; margin: 0 0 10px; }

/* WordPress core requirements */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--slate); text-align: center; padding-top: 6px; }
.sticky, .bypostauthor { display: inherit; }

/* ------------------------------------------------------------------
   17. Responsive
------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { padding-bottom: 110px; align-items: center; text-align: center; }
  .hero-media { min-height: 340px; order: -1; }
  .hero-wave { height: 64px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
  .features-grid { grid-template-columns: 1fr; }
  .features-media { order: -1; }
  .features-media img { max-height: 380px; width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar-inner {
    padding: 14px 0 14px 128px;
    min-height: 96px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .brand-badge { width: 104px; height: 104px; top: 10px; }
  .topbar .btn { display: none; }

  .navbar-inner { padding-left: 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--orange);
    box-shadow: 0 14px 24px rgba(21, 47, 68, .25);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 0; }
  .main-nav a { padding: 14px 26px; font-size: 13px; }

  .cam-banner { flex-wrap: wrap; border-radius: 34px; padding: 30px; }
  .cam-banner .btn { margin-left: 0; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 30px; }
  .testimonials h2 { text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 38px; margin-bottom: 38px; }

  .top-contact--mail { display: none; }
  .topbar-inner { font-size: 12px; }

  .hero-panel { padding: 44px 24px 100px; }
  .medallion { width: 118px; height: 118px; }
  .medallion svg { width: 52px; height: 52px; }

  .doodle-strip { height: 64px; background-size: auto 36px; border-width: 2px; }
  .features-list { grid-template-columns: 1fr; gap: 36px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 52px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
