/*
Theme Name: Lachlan Heart Kennels
Theme URI: https://www.lachlanheartkennels.com.au
Author: Lachlan Heart Kennels
Description: A friendly, editable WordPress theme for Lachlan Heart Tenterfield Terriers.
Version: 1.2.2
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: lachlan-heart
*/

:root {
  --navy: #122f4b;
  --blue: #245f7b;
  --teal: #198f91;
  --teal-dark: #126d70;
  --purple: #76578f;
  --lavender: #e9e2f0;
  --cream: #fbf8f3;
  --ink: #173047;
  --muted: #607181;
  --white: #ffffff;
  --line: #dbe6e7;
  --shadow: 0 18px 50px rgba(18, 47, 75, .12);
  --radius: 24px;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple); }
h1, h2, h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { font-size: clamp(2.55rem, 7vw, 5.5rem); margin: 0 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); margin: 0 0 18px; }
h3 { font-size: 1.45rem; margin: 0 0 8px; }
p { margin: 0 0 1.1em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-soft { background: #eef7f6; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 34px; height: 2px; background: var(--teal); content: ""; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.16rem; }
.skip-link { position: fixed; z-index: 9999; top: -100px; left: 20px; padding: 12px 18px; border-radius: 0 0 10px 10px; background: var(--navy); color: var(--white); font-weight: 800; }
.skip-link:focus { top: 0; color: var(--white); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--purple); background: var(--purple); color: var(--white); }
.button-outline { background: transparent; color: var(--navy); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(18, 47, 75, .09);
  background: rgba(251, 248, 243, .95);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 25px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 900; text-decoration: none; }
.brand img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy small { margin-top: 5px; color: var(--purple); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--navy); font-size: .84rem; font-weight: 800; text-decoration: none; }
.site-nav .current-menu-item > a, .site-nav a:hover { color: var(--teal-dark); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); font-size: 1rem; font-weight: 800; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 750px;
  display: grid;
  align-items: center;
  background: linear-gradient(100deg, rgba(251,248,243,.98) 10%, rgba(251,248,243,.91) 49%, rgba(18,47,75,.14) 76%), url('assets/images/kennel-life.jpg') center/cover;
}
.hero::after {
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 90px solid rgba(118, 87, 143, .14);
  border-radius: 50%;
  content: "";
}
.hero-content { position: relative; z-index: 1; max-width: 670px; padding: 120px 0; }
.hero h1 span { color: var(--teal-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 36px; color: var(--navy); font-size: .9rem; font-weight: 800; }
.hero-note::before { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 7px var(--lavender); content: ""; }

.intro-grid, .split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.image-card { position: relative; }
.image-card img { display: block; width: 100%; min-height: 480px; border-radius: 44% 44% 24px 24px; object-fit: cover; box-shadow: var(--shadow); }
.image-card::before { position: absolute; z-index: -1; inset: 28px -20px -20px 28px; border-radius: 44% 44% 24px 24px; background: var(--lavender); content: ""; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); }
.stat strong { display: block; color: var(--purple); font-family: Georgia, serif; font-size: 1.7rem; }
.stat span { color: var(--muted); font-size: .78rem; font-weight: 700; }

.announcement { position: relative; overflow: hidden; border-radius: 32px; background: linear-gradient(125deg, var(--navy), #225c75); color: var(--white); box-shadow: var(--shadow); }
.announcement-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; padding: clamp(34px, 6vw, 66px); }
.announcement h2, .announcement h3 { color: var(--white); }
.announcement p { max-width: 760px; color: #dceff1; }
.announcement .eyebrow { color: #91e1da; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 42px; }
.dog-card, .content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 35px rgba(18,47,75,.07);
}
.dog-photo { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(145deg, #e4f2ef, #e8def0); }
.dog-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dog-card:hover .dog-photo img { transform: scale(1.035); }
.dog-placeholder { display: grid; place-items: center; height: 100%; padding: 26px; color: var(--navy); text-align: center; }
.dog-placeholder img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; opacity: .7; filter: saturate(.75); }
.dog-placeholder span { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.card-body { padding: 25px; }
.registered-name { margin-bottom: 12px; color: var(--purple); font-size: .77rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card-body p:last-child { margin-bottom: 0; }
.meta { color: var(--teal-dark); font-size: .82rem; font-weight: 800; }

.page-hero { padding: clamp(70px, 9vw, 120px) 0 65px; background: linear-gradient(135deg, #e7f3f1, var(--lavender)); text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.page-hero .lead { margin-inline: auto; }
.prose { max-width: 850px; }
.prose h2 { margin-top: 1.4em; }
.breed-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 38px 0; }
.breed-fact { padding: 28px; border-left: 4px solid var(--teal); border-radius: 0 18px 18px 0; background: var(--white); box-shadow: 0 10px 30px rgba(18,47,75,.06); }
.source-note { padding: 18px 22px; border-radius: 16px; background: var(--lavender); color: var(--navy); font-size: .9rem; }
.faq-list { display: grid; gap: 14px; margin-top: 32px; }
.faq-item { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.faq-item h3 { font-size: 1.2rem; }
.seo-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.seo-topic { padding: 28px; border-top: 4px solid var(--purple); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(18,47,75,.06); }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 36px; }
.gallery-item { grid-column: span 4; overflow: hidden; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: span 8; }
.gallery-item img { width: 100%; height: 330px; object-fit: cover; }
.gallery-caption { padding: 18px 20px; color: var(--navy); font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(35px, 7vw, 90px); }
.contact-card { padding: 32px; border-radius: 24px; background: var(--navy); color: var(--white); }
.contact-card h2, .contact-card h3, .contact-card a { color: var(--white); }
.contact-list { display: grid; gap: 20px; margin-top: 28px; }
.contact-list span { display: block; color: #a9d9dc; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a { overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .82rem; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid #cad9da; border-radius: 12px; background: var(--white); padding: 14px 15px; color: var(--ink); font: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(25,143,145,.15); }
.notice { margin-bottom: 22px; padding: 15px 18px; border-radius: 12px; background: #e0f3eb; color: #145e48; font-weight: 800; }
.notice-error { background: #f8e4e3; color: #872f33; }
.website-field { position: absolute !important; left: -10000px !important; }

.site-footer { padding: 60px 0 25px; background: #0c263d; color: #cbd9e1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: #d7eeee; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #91a8b7; font-size: .78rem; }

@media (max-width: 1050px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; display: none; top: 82px; right: 20px; left: 20px; padding: 22px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 12px; }
  .site-nav a { display: block; padding: 5px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  body.admin-bar .site-header { top: 46px; }
  .brand-copy { display: none; }
  .hero { min-height: 680px; background: linear-gradient(rgba(251,248,243,.91), rgba(251,248,243,.93)), url('assets/images/kennel-life.jpg') center/cover; }
  .hero-content { padding: 90px 0; }
  .intro-grid, .split, .contact-grid, .footer-grid, .announcement-inner { grid-template-columns: 1fr; }
  .announcement-inner .button { justify-self: start; }
  .card-grid, .breed-facts, .seo-topics { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .image-card img { min-height: 360px; }
  .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: 1 / -1; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
}

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