/* My Cane Corso — breed guide for owners of the Italian mastiff.
   Design: confident and grounded. Charcoal + warm rust accent, heavy
   sans headings, full-bleed dark hero. Built to feel like a working
   dog, not a fashion brand. Deliberately distinct from sibling sites. */

:root {
  --bg: #f6f4f0;
  --bg-soft: #ece8e1;
  --ink: #232220;
  --muted: #66625b;
  --primary: #8a3b1e;   /* rust — used by enhance.py */
  --accent: #c8722f;    /* amber — used by enhance.py */
  --dark: #232220;
  --line: #ddd7cd;
  --card: #ffffff;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

a { color: var(--primary); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---- Header ---- */
header { background: var(--dark); position: sticky; top: 0; z-index: 20; }
nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}
.nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.nav-links a {
  color: #c9c4bb;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }

/* ---- Hero (dark, full-bleed) ---- */
.hero {
  background: var(--dark);
  color: #f2efe9;
  padding: 78px 26px 88px;
  border-bottom: 5px solid var(--primary);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-size: 3.2rem; max-width: 16ch; margin: 0 0 20px; color: #fff; }
.hero p { font-size: 1.2rem; color: #c9c4bb; max-width: 54ch; margin: 0 0 30px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--primary);
  transition: background .15s, color .15s;
}
.btn:hover { background: #6f2f17; border-color: #6f2f17; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--dark); }

/* ---- Sections ---- */
section { padding: 62px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 38px; }
section h2 { font-size: 2.2rem; margin-bottom: 14px; }
section p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split.reverse .shot { order: 2; }
.shot { overflow: hidden; border-radius: 3px; box-shadow: 0 18px 38px rgba(35,34,32,.16); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--card); padding: 26px 22px; text-align: center; }
.stat .big { font-size: 1.7rem; font-weight: 800; color: var(--primary); display: block; }
.stat .lab { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 6px; }

/* ---- Card grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: transform .16s, box-shadow .16s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(35,34,32,.12); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin: 0; }
.tag { display: inline-block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--primary); margin-bottom: 10px; }

/* ---- Prose ---- */
.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { font-size: 1.9rem; margin: 44px 0 12px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 8px; }
.prose p, .prose li { color: #3a382f; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 18px 22px; margin: 28px 0; }
.callout p { margin: 0; color: var(--ink); }

/* ---- CTA ---- */
.cta { background: var(--dark); color: #f2efe9; text-align: center; padding: 70px 26px; }
.cta h2 { color: #fff; font-size: 2.1rem; margin-bottom: 14px; }
.cta p { color: #c9c4bb; max-width: 52ch; margin: 0 auto 26px; }

/* ---- Footer (enhance.py rebuilds) ---- */
footer { background: #1a1917; color: #b3aea4; padding: 52px 0 30px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.96rem; margin-bottom: 12px; }
.footer-grid a, .footer-grid p { color: #b3aea4; text-decoration: none; display: block; margin: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom, .footer-meta { max-width: var(--maxw); margin: 34px auto 0; padding: 18px 26px 0; border-top: 1px solid #34322d; font-size: 0.82rem; color: #847f75; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .shot { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  nav { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* LOGO:start */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; color: var(--primary); letter-spacing: 0.02em; text-decoration: none; }
.brand-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--primary); }
.brand-icon path, .brand-icon circle, .brand-icon rect, .brand-icon polygon, .brand-icon line { vector-effect: non-scaling-stroke; }
.brand:hover .brand-icon { color: var(--accent); transition: color 0.15s ease; }
/* LOGO:end */

/* ENHANCE:start */
.hero {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 50%;
  margin-left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: left;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid p,
.footer-grid a {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
  line-height: 1.5;
}
.footer-grid a:hover { color: var(--primary); }
.footer-meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.75;
  text-align: center;
  margin: 0;
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
}
/* ENHANCE:end */

/* HERO-FIX:start — restore the intended dark, high-contrast hero.
   enhance.py assumes a light hero and overrides .hero with a pale gradient,
   which left this site's light hero text unreadable on the cream page.
   This block sits after ENHANCE:end so it wins the cascade and survives
   re-running the pipeline. */
:root { --border: var(--line); }
.hero {
  background:
    radial-gradient(130% 120% at 82% -20%, rgba(200, 114, 47, 0.22), transparent 55%),
    linear-gradient(180deg, #2d2b27 0%, #201f1c 100%);
  color: #f3f0ea;
}
.hero::before, .hero::after { display: none; }   /* drop the mis-centered decoration */
.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: #ffffff;
}
.hero p { color: #d4cfc6; }
.hero .eyebrow { color: var(--accent); }
/* HERO-FIX:end */

