/* ============================================================
   THE GREAT PLAINS KENNELS — site styles
   Edit colors here once and they change everywhere.
   ============================================================ */
:root {
  --cream:  #F5F1E6;   /* page background */
  --ink:    #28291f;   /* main text */
  --green:  #3d4a2e;   /* prairie green — headers, footer */
  --green-d:#2e3823;   /* darker green */
  --rust:   #b5562c;   /* accent — buttons, links */
  --rust-d: #94431f;   /* darker rust (hover) */
  --rust-l: #d97a4a;   /* lighter rust (gradients) */
  --tan:    #d9cbb0;   /* borders, subtle fills */
  --white:  #fffdf7;   /* card background */
  --radius: 16px;
  --shadow:    0 2px 6px rgba(40,41,31,.06), 0 10px 28px rgba(40,41,31,.12);
  --shadow-lg: 0 8px 18px rgba(40,41,31,.12), 0 28px 60px rgba(40,41,31,.22);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Bitter', Georgia, serif; line-height: 1.2; color: var(--green-d); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p + p { margin-top: 1em; }
img { max-width: 100%; display: block; }
a { color: var(--rust); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   main.js adds .reveal to sections/cards/photos automatically,
   then .in when they scroll into view.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.18) translateY(-2.5%); }
}
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}
@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-28px) rotate(6deg); }
}

/* ---------- Header / Nav (glass) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(46, 56, 35, .82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 2px 18px rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(245,241,230,.12);
  transition: background .3s var(--ease);
}
.nav-bar {
  display: flex; align-items: center; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 10px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 54px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.07); }
.brand-name { font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--cream); }
.brand-sub { display: block; font-family: 'Source Sans 3', sans-serif; font-weight: 400; font-size: .78rem; color: var(--tan); letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .97rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--rust-l); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { background: rgba(255,255,255,.10); transform: translateY(-1px); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { background: linear-gradient(135deg, var(--rust), var(--rust-l)); color: #fff; box-shadow: 0 4px 14px rgba(181,86,44,.45); }
.nav-links a.active::after { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--cream); border-radius: 8px;
  color: var(--cream); font-size: 1.4rem; line-height: 1; padding: 4px 10px; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(46,56,35,.96); backdrop-filter: blur(12px);
    padding: 10px 22px 16px;
  }
  .nav-links.open { display: flex; animation: fadeUp .35s var(--ease) both; }
}

/* ---------- Hero (layered parallax + Ken Burns) ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--cream); padding: 90px 22px;
  overflow: hidden; isolation: isolate;
}
.hero::before {                       /* drifting photo layer */
  content: ""; position: absolute; inset: -6%;
  background: url('images/hero.jpeg') center/cover no-repeat;
  z-index: -2;
  animation: kenburns 22s var(--ease) infinite alternate;
}
.hero::after {                        /* depth vignette */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(30,34,22,.18) 0%, rgba(30,34,22,.66) 78%),
    linear-gradient(180deg, rgba(30,34,22,.45), rgba(30,34,22,.30) 45%, rgba(46,56,35,.78));
}
.hero > div { animation: fadeUp 1s .15s var(--ease) both; transform-style: preserve-3d; }
.hero h1 {
  color: #fff; margin-bottom: 14px;
  text-shadow: 0 3px 10px rgba(0,0,0,.5), 0 14px 40px rgba(0,0,0,.45);
  letter-spacing: .01em;
}
.hero p.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); max-width: 660px; margin: 0 auto 32px;
  color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,.55);
  animation: fadeUp 1s .35s var(--ease) both;
}
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp 1s .55s var(--ease) both; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  color: var(--cream); font-size: 1.6rem; text-decoration: none; opacity: .85;
  animation: bobble 2.2s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* Small page hero (interior pages) */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(181,86,44,.35), transparent 55%),
    radial-gradient(120% 160% at 10% 120%, rgba(217,203,176,.16), transparent 55%),
    linear-gradient(160deg, var(--green) 0%, var(--green-d) 100%);
  color: var(--cream); text-align: center; padding: 64px 22px 56px;
}
.page-hero::before, .page-hero::after {   /* floating depth orbs */
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none;
  border: 1.5px solid rgba(245,241,230,.18);
}
.page-hero::before { width: 220px; height: 220px; right: -60px; top: -70px; animation: drift 7s ease-in-out infinite alternate; }
.page-hero::after  { width: 140px; height: 140px; left: -40px; bottom: -50px; animation: drift 9s ease-in-out infinite alternate-reverse; }
.page-hero h1 { color: #fff; animation: fadeUp .9s .1s var(--ease) both; text-shadow: 0 3px 14px rgba(0,0,0,.4); }
.page-hero p { max-width: 720px; margin: 14px auto 0; color: var(--tan); font-size: 1.1rem; animation: fadeUp .9s .28s var(--ease) both; }

/* ---------- Buttons (shine sweep + lift) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--rust), var(--rust-l));
  color: #fff; text-decoration: none; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(181,86,44,.40), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::before {                         /* shine sweep */
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(181,86,44,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn.ghost { background: rgba(255,255,255,.06); border: 2px solid var(--cream); box-shadow: 0 6px 18px rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.btn.ghost:hover { background: rgba(255,255,255,.16); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section.alt {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(217,203,176,.25), transparent 60%),
    var(--white);
}
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; max-width: 700px; margin: 0 auto 44px; color: #555848; }
.kicker {
  display: block; text-align: center; color: var(--rust); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; margin-bottom: 8px;
}

/* Two-column feature (text + photo) */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; perspective: 1200px; }
.feature.flip > .feature-img { order: -1; }
.feature-img { position: relative; }
.feature-img::after {                  /* offset accent frame for depth */
  content: ""; position: absolute; inset: 18px -14px -14px 18px;
  border: 2px solid var(--tan); border-radius: var(--radius); z-index: -1;
  transition: inset .4s var(--ease);
}
.feature-img:hover::after { inset: 10px -8px -8px 10px; }
.feature-img img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feature-img:hover img { transform: translateY(-6px) rotate(-.5deg); }
.feature h2 { margin-bottom: 14px; }
.feature .btn { margin-top: 22px; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > .feature-img { order: 0; }
}

/* ---------- Cards (3D tilt — JS sets --rx/--ry) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; perspective: 1100px; }
.card {
  position: relative;
  background: var(--white); border: 1px solid var(--tan);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 28px; display: flex; flex-direction: column;
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--lift, 0));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform-style: preserve-3d;
  overflow: hidden;
}
.card::before {                        /* animated accent bar */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--green), var(--rust), var(--rust-l), var(--green));
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
}
.card:hover { --lift: -8px; box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 6px; transform: translateZ(24px); }
.card p, .card ul { transform: translateZ(12px); }
.card .price { font-family: 'Bitter', serif; font-size: 1.6rem; color: var(--rust); font-weight: 700; margin-bottom: 12px; }
.card ul { margin: 10px 0 0 20px; }
.card ul li { margin-bottom: 7px; }
.card .btn { margin-top: auto; align-self: flex-start; transform: translateZ(30px); }
.card .badge {
  align-self: flex-start; background: linear-gradient(135deg, var(--green), var(--green-d));
  color: var(--cream); box-shadow: 0 4px 10px rgba(46,56,35,.35);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; transform: translateZ(34px);
}

/* ---------- Photo strip / gallery ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-strip img {
  border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; width: 100%;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .45s var(--ease);
}
.photo-strip img:hover {
  transform: translateY(-8px) scale(1.04) rotate(.6deg);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.12);
  z-index: 2; position: relative;
}

.masonry { columns: 4 240px; column-gap: 16px; }
.masonry img {
  border-radius: 12px; margin-bottom: 16px; box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .45s var(--ease);
}
.masonry img:hover { transform: scale(1.035) rotate(-.4deg); box-shadow: var(--shadow-lg); filter: saturate(1.12); }

/* ---------- Testimonials ---------- */
.testimonial {
  position: relative;
  background: var(--white); border-left: 6px solid var(--rust);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 38px 38px 30px; margin-bottom: 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial::before {
  content: "\201C"; position: absolute; top: -6px; right: 22px;
  font-family: 'Bitter', serif; font-size: 7rem; line-height: 1;
  color: var(--tan); opacity: .55; pointer-events: none;
}
.testimonial blockquote { font-size: 1.12rem; font-style: italic; color: #44483a; }
.testimonial .who { margin-top: 16px; font-weight: 700; color: var(--green-d); }
.testimonial .t-photos { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.testimonial .t-photos img {
  height: 220px; width: auto; border-radius: 10px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testimonial .t-photos img:hover { transform: scale(1.05) rotate(.8deg); box-shadow: var(--shadow-lg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; }
.contact-list li {
  padding: 13px 0 13px 6px; border-bottom: 1px solid var(--tan); font-size: 1.08rem;
  transition: padding-left .3s var(--ease), background .3s var(--ease);
}
.contact-list li:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(217,203,176,.25), transparent); }
.contact-list li strong { color: var(--green-d); }
.map-frame { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Video ---------- */
.video-box video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- CTA band (parallax) ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(rgba(46,56,35,.85), rgba(46,56,35,.92)), url('images/tgpk5.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--cream); text-align: center; padding: 84px 22px;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgba(181,86,44,.22), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; text-shadow: 0 3px 12px rgba(0,0,0,.4); }
.cta-band p { max-width: 620px; margin: 0 auto 28px; }
@media (max-width: 900px) { .cta-band { background-attachment: scroll; } } /* iOS fix */

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--green-d), #232b1a);
  color: var(--tan); padding: 50px 0 28px;
  border-top: 3px solid var(--rust);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; max-width: 1100px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--cream); margin-bottom: 12px; }
.site-footer a { color: var(--cream); text-decoration: none; transition: color .25s, padding-left .25s var(--ease); }
.site-footer a:hover { color: var(--rust-l); padding-left: 4px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-quote { font-style: italic; }
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }

/* ---------- Misc ---------- */
.checklist { list-style: none; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--rust); font-weight: 800; }

.notice-link {
  display: inline-block; background: var(--white); border: 1px solid var(--tan);
  border-radius: 10px; padding: 12px 18px; font-weight: 600; text-decoration: none;
}

/* ---------- Accessibility: honor reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cta-band { background-attachment: scroll; }
}
