/*
Theme Name: Cairnesund Deerhounds
Theme URI: https://www.hundepaedagogen.dk
Author: Kennel Cairnesund
Author URI: https://www.hundepaedagogen.dk
Description: Skræddersyet WordPress-tema til Kennel Cairnesund — hjortehunde og hundepædagogik v/ Jeanette Clausen. Inspireret af Kongehusets lyseblå med moderne, elegant typografi.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cairnesund
Tags: blog, portfolio, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments
*/

/* =========================================================
   CAIRNESUND DEERHOUNDS - Stylesheet
   Inspireret af noblehound.dk (elegance) og qadiman.com (bold)
   Farvepalet: Kongehusets blå
   ========================================================= */

/* --- CSS Variables ----------------------------------------- */
:root {
  /* Kongehusets lyseblå - pastel, kølig, sofistikeret */
  --blue: #D4E8EC;             /* PRIMÆR - Kongehusets lyseblå */
  --blue-soft: #C0DCE2;         /* Lidt dybere variant */
  --blue-pale: #E4F0F2;          /* Lysere tone */
  --blue-mist: #F0F7F8;          /* Næsten hvid */

  /* Dybe blå til tekst/kontrast - bruges som accent */
  --blue-deep: #14375E;         /* Marineblå til overskrifter og tekst */
  --blue-mid: #2A5278;           /* Medium royal til knapper og fremhævelse */
  --blue-ink: #0A1F38;           /* Næsten sort marine til footer */

  /* Neutrals */
  --cream: #FAF7F2;            /* Warm off-white background */
  --cream-soft: #F5F2EC;
  --beige: #E8E0D5;
  --charcoal: #1A2233;
  --graphite: #34425A;
  --muted: #6B7785;
  --line: #DBE4E7;

  /* Accent / Gold */
  --gold: #B89968;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-w: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Reset / Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--blue-deep); }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.05;
  color: var(--blue-deep);
}
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-family: var(--font-sans); color: var(--blue-deep); }

p { margin-bottom: 1.1rem; color: var(--graphite); max-width: 65ch; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--graphite); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 38px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--blue-deep);
}

/* --- Layout helpers --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(4rem, 9vw, 8rem) 0; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 3rem 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}
.divider span {
  color: var(--blue-deep);
  letter-spacing: .35em;
  font-size: .75rem;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- Navigation ------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: rgba(250, 247, 242, 0);
  backdrop-filter: blur(0);
  transition: background .35s var(--ease), padding .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(12px);
  padding: .85rem 0;
  box-shadow: 0 1px 0 rgba(0, 47, 108, .07);
}
.site-header.on-light:not(.scrolled) .nav-link,
.site-header.on-light:not(.scrolled) .brand,
.site-header.on-light:not(.scrolled) .menu-btn { color: var(--blue-deep); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: flex;
  flex-direction: column;
  line-height: 1;
  transition: color .3s var(--ease);
}
.site-header.scrolled .brand { color: var(--blue-deep); }
.brand small {
  font-family: var(--font-sans);
  font-size: .55rem;
  letter-spacing: .35em;
  margin-top: 4px;
  opacity: .8;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-link {
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.site-header.scrolled .nav-link { color: var(--blue-deep); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active { font-weight: 500; }

.menu-btn {
  display: none;
  color: var(--blue-deep);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.site-header.scrolled .menu-btn { color: var(--blue-deep); }

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--blue-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, var(--blue-pale) 0%, var(--blue) 50%, var(--blue-soft) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(20,55,94,.06), transparent 55%);
}
.hero-image-placeholder {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(212,232,236,.20), rgba(212,232,236,.75));
  opacity: .96;
  border-bottom: 1px solid rgba(20,55,94,.06);
}
.hero-image-placeholder::before {
  content: "Hero billede her — landskab eller portræt med hund · 1920×1080";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(20,55,94,.35);
  font-style: italic;
}
.hero-content {
  max-width: 1100px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: .85rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--blue-deep);
  opacity: .8;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.hero h1 {
  color: var(--blue-deep);
  font-weight: 400;
  letter-spacing: -.02em;
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: .92;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue-mid);
  font-weight: 400;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  margin-top: 1.5rem;
  color: var(--blue-deep);
  opacity: .85;
  max-width: 600px;
  line-height: 1.3;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(20,55,94,.18);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-deep);
  opacity: .75;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  z-index: 2;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blue-deep);
  opacity: .55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(20,55,94,.55), transparent);
  animation: scrollLine 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Subpage hero (smaller) */
.hero-sub {
  min-height: 70vh;
  align-items: center;
  padding-bottom: 0;
}
.hero-sub h1 {
  font-size: clamp(2.6rem, 8vw, 7rem);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 2.2rem;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
  transition: all .3s var(--ease);
}
.btn:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}
.btn-ghost:hover {
  background: var(--blue-deep);
  color: #fff;
}
.btn-light {
  border-color: rgba(255,255,255,.85);
  background: transparent;
  color: #fff;
}
.btn-light:hover {
  background: var(--blue);
  color: var(--blue-deep);
  border-color: var(--blue);
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Image placeholders ----------------------------------- */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-pale) 100%);
  border: 1px dashed rgba(20,55,94,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--blue-deep);
  text-align: center;
  padding: 1rem;
  aspect-ratio: 4/3;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(20,55,94,.08);
  pointer-events: none;
}
.img-placeholder .ph-icon {
  font-size: 2.5rem;
  margin-bottom: .8rem;
  opacity: .35;
}
.img-placeholder .ph-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: .25rem;
  color: var(--blue-deep);
}
.img-placeholder .ph-dim {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-mid);
  opacity: .65;
}
.img-placeholder.tall { aspect-ratio: 3/4; }
.img-placeholder.wide { aspect-ratio: 16/9; }
.img-placeholder.square { aspect-ratio: 1/1; }
.img-placeholder.portrait { aspect-ratio: 5/7; }

/* --- Sections / Common patterns --------------------------- */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.intro-block__heading h2 {
  margin-bottom: 0;
  font-style: italic;
  font-weight: 400;
}
.intro-block__copy p:not(:last-child) { margin-bottom: 1.4rem; }
.intro-block__copy p { font-size: 1.05rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 4rem;
}
.feature {
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--blue-deep);
  box-shadow: 0 30px 60px -30px rgba(0,47,108,.25);
}
.feature__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}
.feature h3 {
  margin-bottom: 1rem;
  font-style: italic;
}
.feature p {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

/* Image gallery grid (Forside) */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.gallery .img-placeholder { aspect-ratio: auto; height: 100%; }
.gallery .g1 { grid-column: span 4; aspect-ratio: 3/4; }
.gallery .g2 { grid-column: span 5; aspect-ratio: 5/4; margin-top: 4rem; }
.gallery .g3 { grid-column: span 3; aspect-ratio: 3/4; }
.gallery .g4 { grid-column: span 7; aspect-ratio: 16/9; }
.gallery .g5 { grid-column: span 5; aspect-ratio: 4/3; margin-top: -3rem; }

/* Quote/manifesto section */
.quote-section {
  background: var(--blue);
  color: var(--blue-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: "\201C";
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 22rem;
  color: rgba(20,55,94,.10);
  line-height: 1;
}
.quote-section blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.3;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.quote-section cite {
  display: block;
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blue-deep);
  opacity: .7;
}

/* About / Bio section (Jeanette) */
.bio {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.bio__portrait .img-placeholder { aspect-ratio: 5/7; }
.bio__copy h2 { margin-bottom: 2rem; font-style: italic; font-weight: 400; }
.bio__copy p { font-size: 1.02rem; line-height: 1.75; }
.bio__copy p + p { margin-top: 1.2rem; }
.bio-block { margin-top: 5rem; }
.bio-block h3 {
  margin-bottom: 1.5rem;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  font-weight: 400;
}

/* --- Contact form ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact-form {
  background: #fff;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field {
  margin-bottom: 1.5rem;
  position: relative;
}
.field label {
  display: block;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: .55rem;
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--charcoal);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }

.contact-info {
  padding-top: 2rem;
}
.contact-info h3 {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 2rem;
}
.contact-info dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}
.contact-info dt {
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: start;
  padding-top: 4px;
}
.contact-info dd {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--blue-deep);
  font-weight: 500;
}
.contact-info dd a:hover { color: var(--gold); }

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--blue-ink);
  color: rgba(255,255,255,.85);
  padding: 5rem 0 2rem;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: .04em;
}
.footer-brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .35em;
  margin-top: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 360px;
}
.site-footer h5 {
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
}

/* --- Reveal animations ------------------------------------
   Only hidden when JS is ready — elements show by default
   for accessibility and graceful degradation.
------------------------------------------------------------ */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
body.js-ready .reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Mobile menu ------------------------------------------ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-ink) 100%);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
}
.mobile-menu .close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  width: 44px; height: 44px;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #fff;
}
.mobile-menu a:hover { color: var(--gold); }

/* --- Responsive ------------------------------------------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .intro-block { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery .g1 { grid-column: span 6; aspect-ratio: 4/3; }
  .gallery .g2 { grid-column: span 6; aspect-ratio: 4/3; margin-top: 0; }
  .gallery .g3 { grid-column: span 6; aspect-ratio: 4/3; }
  .gallery .g4 { grid-column: span 6; aspect-ratio: 16/9; }
  .gallery .g5 { grid-column: span 6; aspect-ratio: 4/3; margin-top: 0; }
  .bio { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero { padding-bottom: 2rem; }
  .hero-meta { gap: 1rem; }
}
