/*
Theme Name: Maine Coons Canada
Theme URI: https://mainecoonscanada.ca
Author: Maine Coons Canada
Author URI: https://mainecoonscanada.ca
Description: Cattery theme for Maine Coons Canada - kitten profiles, parents, adoption stories, blog and SEO-optimised homepage targeting "Maine Coon kittens for sale Canada".
Version: 1.3.4
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: maine-coons-canada
Tags: cattery, pets, blog, one-column, custom-menu, featured-images
*/

:root {
  --cream: #fbf7f0;
  --paper: #ffffff;
  --ink: #241d16;
  --muted: #6c6055;
  --line: #e6dcce;
  --forest: #2f5d4f;
  --forest-dark: #234639;
  --amber: #b6742a;
  --amber-soft: #f3e3d0;
  --radius: 18px;
  --shadow: 0 18px 40px -28px rgba(36, 29, 22, .55);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); font-weight: 700; margin: 0 0 .8rem;
}
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section--alt { background: var(--paper); border-block: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700;
  background: var(--forest); color: #fff; border: 1px solid var(--forest);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--forest-dark); text-decoration: none; transform: translateY(-1px); color: #fff; }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--amber-soft); color: var(--forest-dark); }
.btn--amber { background: var(--amber); border-color: var(--amber); }
.btn--amber:hover { background: #9c6122; }

/* Topbar */
.topbar { background: var(--forest); color: #fff; font-size: .78rem; letter-spacing: .02em; }
.topbar-inner { display: flex; align-items: center; gap: .6rem; min-height: 34px; flex-wrap: wrap; }
.topbar-item { opacity: .9; }
.topbar-sep { opacity: .5; }
.topbar-mail { margin-left: auto; color: #fff; font-weight: 700; }
.topbar-mail:hover { color: #fff; text-decoration: underline; }
@media (max-width: 720px) { .topbar-sep, .topbar-item + .topbar-item { display: none; } .topbar-mail { margin-left: auto; } }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.15; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--forest); color: #fff; display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.brand-text { display: block; max-width: 180px; }
.brand small { display: block; font-family: "Karla", sans-serif; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); font-weight: 600; font-size: .92rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--forest); border-bottom-color: var(--forest); text-decoration: none; }
.nav-foot { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.nav-toggle { display: none; background: var(--forest); color: #fff; border: 0; border-radius: 12px; width: 46px; height: 42px; cursor: pointer; padding: 11px 12px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }
@media (max-width: 1120px) { .nav ul { gap: .85rem; } .nav a { font-size: .86rem; } .header-enquire { display: none; } }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-cta, .header-enquire { display: none; }
  .header-inner { flex-wrap: wrap; gap: 1rem; min-height: 68px; }
  .nav { display: none; width: 100%; order: 3; margin: 0 0 .6rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 0 .75rem; }
  .nav li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: .85rem 0; border-bottom: 0; }
  .nav-foot { display: flex; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
  .nav-foot .btn { flex: 1; justify-content: center; }
  .header-actions { margin-left: auto; }
}

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--forest); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .5rem; }
.hero-points li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--forest); font-weight: 700; }
.hero-media { position: relative; }
.hero-media img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -14px; bottom: 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1.1rem; box-shadow: var(--shadow);
  font-weight: 700; font-size: .9rem;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Trust strip */
.trust { background: var(--forest); color: #fff; padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust strong { display: block; font-family: "Fraunces", serif; font-size: 1.1rem; }
.trust span { font-size: .85rem; opacity: .8; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.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: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .kitten-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kitten-grid .card-body { padding: 12px; }
  .kitten-grid .card-body h3 { font-size: 1rem; }
  .kitten-grid .card-meta { font-size: .74rem; line-height: 1.4; }
  .kitten-grid .badge { top: 7px; left: 7px; padding: .2rem .45rem; font-size: .62rem; }
  .kitten-grid .card-foot--split { grid-template-columns: 1fr; gap: 6px; }
  .kitten-grid .btn--sm { padding: .52rem .4rem; font-size: .72rem; }
}

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--amber-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--forest);
  border-radius: 999px; padding: .25rem .7rem; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.badge--reserved { color: var(--amber); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Homepage journal carousel */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin-bottom: 0; }
.blog-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card-media { aspect-ratio: 16/10; }
.blog-controls { display: none; }
.blog-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center;
  border: 1px solid var(--forest); border-radius: 50%; background: var(--paper);
  color: var(--forest); font: inherit; font-size: 1.25rem; cursor: pointer;
}
.blog-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 700px) {
  .section-head { align-items: flex-start; flex-direction: column; }
  .blog-carousel { overflow: hidden; }
  .blog-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-inline: contain; padding: 2px 2px 14px;
  }
  .blog-track::-webkit-scrollbar { display: none; }
  .blog-card { flex: 0 0 calc(88% - 8px); scroll-snap-align: start; }
  .blog-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
}

/* Spec list */
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.specs li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.specs span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs strong { font-size: .98rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border-radius: 14px; aspect-ratio: 1/1; object-fit: cover; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } .specs { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split--rev .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 26px; } .split--rev .split-media { order: 0; } }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--amber); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 22px 18px; color: var(--muted); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.entry-hero img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; max-height: 460px; object-fit: cover; }

/* Page head */
.page-head { padding: 56px 0 10px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }

/* CTA band */
.cta-band { background: var(--forest); color: #fff; border-radius: 24px; padding: 42px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 60ch; margin-inline: auto; }
.cta-band .btn { background: #fff; color: var(--forest); border-color: #fff; }
.cta-band .btn:hover { background: var(--amber-soft); }

/* Footer */
.site-footer { background: #1d1712; color: #ddd2c4; margin-top: 70px; padding: 54px 0 26px; }
.site-footer h4 { color: #fff; font-family: "Fraunces", serif; margin-bottom: .7rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer a { color: #ddd2c4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; opacity: .75; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Forms */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select {
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  font: inherit; color: inherit; width: 100%;
}
.notice { padding: 14px 18px; border-radius: 12px; background: var(--amber-soft); margin-bottom: 18px; }

/* WP core */
.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { margin: 0 auto 1.2rem; }
.wp-caption-text, .screen-reader-text { font-size: .85rem; color: var(--muted); }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); line-height: 1; }
.pagination .prev, .pagination .next { min-width: auto; }
.pagination .current { background: var(--forest); color: #fff; border-color: var(--forest); }
.pagination .dots { border-color: transparent; background: transparent; min-width: 28px; padding-inline: .2rem; }
@media (max-width: 480px) {
  .pagination { gap: 6px; }
  .pagination .page-numbers { min-width: 38px; min-height: 38px; padding: .45rem .65rem; font-size: .86rem; }
}


/* Inquiry modal */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 20, 16, .62); }
.modal-panel { position: relative; z-index: 1; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--card, #fff); border: 1px solid var(--line, #e6ded2); border-radius: 16px; padding: 28px; box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.modal-panel h2 { margin: 0 0 8px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; }
.inquiry-form { margin-top: 16px; display: grid; gap: 14px; }
.inquiry-form .field { display: grid; gap: 6px; }
.inquiry-form label { font-size: 13px; font-weight: 600; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line, #e6ded2); border-radius: 10px; font: inherit; background: #fff; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--light { background: #fff; color: #1d1a16; }
.btn--onDark { border-color: rgba(255,255,255,.6); color: #fff; }

/* Location pages */
.loc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.loc-links a { display: block; padding: 12px 14px; border: 1px solid var(--line, #e6ded2); border-radius: 10px; text-decoration: none; }
.loc-links a:hover { border-color: var(--accent, #2f5d3f); }
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
.split-media img { width: 100%; border-radius: 16px; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.post-figure { margin: 26px 0; }
.post-figure img { width: 100%; border-radius: 14px; }
.post-figure figcaption { font-size: 13px; color: var(--muted, #6c6459); margin-top: 8px; }
.entry-hero img { width: 100%; border-radius: 16px; }


/* Card actions */
.btn--sm { padding: .62rem 1.05rem; font-size: .85rem; }
.card-foot--split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-foot--split .btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; padding-inline: .6rem; }
.card-foot--split .btn--ghost { border-color: var(--line); }
.card-foot--split .btn--ghost:hover { border-color: var(--forest); }
@media (max-width: 420px) { .card-foot--split { grid-template-columns: 1fr; } }

/* Full-width article content */
.prose--wide { max-width: 100%; }
.prose--wide p, .prose--wide ul, .prose--wide ol { max-width: 78ch; }
.prose--wide h2 { max-width: 78ch; }
.prose--wide .post-figure { max-width: 100%; }
