/* ==========================================================================
   NorCal Irish Setter Rescue — restoration theme
   Palette: cobalt blue #0038b1 (headings), mahogany/rust #cc6600 (accent,
   the Irish Setter coat), shamrock green #009900 (clover motif), on white.
   Typeface: Verdana/Arial stack (true to the original), with a warm
   modern card layout honoring the original's brown rounded "content box".
   ========================================================================== */

:root {
  --cobalt: #0038b1;
  --cobalt-dark: #002b88;
  --cobalt-light: #2a5fd6;
  --rust: #cc6600;
  --rust-dark: #993300;
  --rust-soft: #f6e6d2;     /* tan, evokes the original brown corner boxes */
  --rust-border: #e4c9a6;
  --shamrock: #009900;
  --shamrock-dark: #047a04;
  --alert: #d12a2a;
  --ink: #2f2a26;
  --ink-soft: #5d564f;
  --cream: #fbf7f1;         /* warm off-white page wash */
  --paper: #ffffff;
  --line: #ece4d8;
  --shadow-sm: 0 2px 8px rgba(60, 40, 20, .08);
  --shadow-md: 0 10px 30px rgba(60, 40, 20, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: Verdana, Geneva, Arial, Helvetica, sans-serif;
  --font-head: Verdana, Geneva, Arial, Helvetica, sans-serif;
  --maxw: 1120px;
}

/* ---- base ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--rust); text-decoration: underline; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--cobalt); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--rust); margin: 2.2rem 0 .85rem; }
h3 { font-size: 1.18rem; color: var(--cobalt-dark); margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
strong { color: var(--ink); }

/* ---- skip link / a11y ------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--cobalt); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- top bar (shamrock ribbon) --------------------------------------- */
.ribbon {
  background: var(--shamrock);
  background-image: linear-gradient(90deg, var(--shamrock), var(--shamrock-dark));
  color: #fff;
  font-size: .82rem;
  letter-spacing: .02em;
}
.ribbon .container { display: flex; align-items: center; gap: .5rem; padding-top: .4rem; padding-bottom: .4rem; }
.ribbon i { opacity: .9; }

/* ---- header / nav ----------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--rust);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand-mark {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--rust), var(--rust-dark));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand-mark i { font-size: 1.35rem; }
.brand-text { line-height: 1.1; min-width: 0; }
.brand-text .b1 { font-weight: 700; color: var(--cobalt); font-size: 1.08rem; }
.brand-text .b2 { display: block; font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.nav-toggle {
  display: none; background: var(--cobalt); color: #fff; border: 0; border-radius: 8px;
  padding: .55rem .7rem; font-size: 1.1rem; cursor: pointer;
}
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .9rem; padding: .5rem .68rem;
  border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { background: var(--rust-soft); color: var(--rust-dark); text-decoration: none; }
.nav-links a.active { background: var(--cobalt); color: #fff; }

/* ---- hero ------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--cobalt-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(0,33,110,.86) 0%, rgba(0,43,136,.66) 48%, rgba(153,51,0,.40) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0; max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #f3ede3; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: #ffd9b0;
  background: rgba(0,0,0,.22); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero-inner-page { padding: clamp(2.4rem, 6vw, 4rem) 0; }

/* page hero (interior) keeps it lighter */
.page-hero { position: relative; color: #fff; overflow: hidden; background: var(--cobalt); }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--cobalt-dark); }
.btn-blue { background: var(--cobalt); color: #fff; }
.btn-blue:hover { background: var(--cobalt-dark); color: #fff; }

/* ---- main content ----------------------------------------------------- */
main { display: block; }
.section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.content-layout { display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) {
  .content-layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* the signature "content box": warm tan-bordered rounded card */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.card--warm { border: 1px solid var(--rust-border); }
.prose { font-size: 1.02rem; }
.prose .lead {
  font-size: 1.18rem; color: var(--cobalt-dark); font-weight: 600; line-height: 1.6;
  border-left: 5px solid var(--rust); padding-left: 1rem; margin-bottom: 1.5rem;
}
.prose img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 1.4rem 0; }
.prose h2:first-child { margin-top: 0; }
.figure { margin: 1.6rem 0; }
.figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; font-style: italic; }
.inline-img { float: right; width: min(42%, 360px); margin: .3rem 0 1.1rem 1.6rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
@media (max-width: 640px) { .inline-img { float: none; width: 100%; margin: 1.2rem 0; } }

/* ---- aside / sidebar -------------------------------------------------- */
.aside { display: grid; gap: 1.4rem; }
.aside .card { padding: 1.4rem; }
.aside h3 { margin-top: 0; color: var(--rust-dark); display: flex; align-items: center; gap: .5rem; }
.aside ul.tidy { list-style: none; padding: 0; margin: 0; }
.aside ul.tidy li { margin: 0; border-top: 1px solid var(--line); }
.aside ul.tidy li:first-child { border-top: 0; }
.aside ul.tidy a { display: flex; align-items: center; gap: .6rem; padding: .62rem .2rem; color: var(--ink); font-weight: 600; font-size: .94rem; }
.aside ul.tidy a:hover { color: var(--rust); text-decoration: none; }
.aside ul.tidy i { color: var(--shamrock); width: 1.1rem; text-align: center; }
.aside .fact { background: var(--rust-soft); border: 1px solid var(--rust-border); }
.aside .fact h3 { color: var(--rust-dark); }
.aside .fact p { font-size: .92rem; margin-bottom: 0; color: var(--ink-soft); }

/* ---- breadcrumb ------------------------------------------------------- */
.crumb { font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: .6rem; }
.crumb a { color: #ffd9b0; }
.crumb a:hover { color: #fff; }

/* ---- feature/quicklink grid (home) ----------------------------------- */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--shamrock);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:nth-child(3n+2) { border-top-color: var(--rust); }
.tile:nth-child(3n+3) { border-top-color: var(--cobalt); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: .9rem; font-size: 1.25rem; background: var(--cobalt); }
.tile:nth-child(3n+2) .ic { background: var(--rust); }
.tile:nth-child(3n+3) .ic { background: var(--shamrock); }
.tile h3 { margin: 0 0 .4rem; color: var(--cobalt-dark); }
.tile p { font-size: .94rem; color: var(--ink-soft); margin-bottom: .7rem; }
.tile a.more { font-weight: 700; color: var(--rust); font-size: .9rem; }

/* ---- band (alt background section) ----------------------------------- */
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--tan { background: var(--rust-soft); border-color: var(--rust-border); }
.band-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.band-head h2 { color: var(--cobalt); }
.band-head p { color: var(--ink-soft); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; text-align: center; }
.stat .n { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--rust); }
.stat .l { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

/* notice / framing banner */
.notice {
  background: #fff; border: 1px dashed var(--rust-border); border-left: 5px solid var(--shamrock);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .9rem; color: var(--ink-soft);
  display: flex; gap: .8rem; align-items: flex-start;
}
.notice i { color: var(--shamrock); font-size: 1.1rem; margin-top: .15rem; }

/* ---- footer ----------------------------------------------------------- */
.site-footer { background: var(--cobalt-dark); color: #d7def2; margin-top: 2.5rem; }
.site-footer a { color: #ffd9b0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 2.6rem 0 1.6rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; font-size: .92rem; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand p { font-size: .9rem; color: #b9c4e6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0 1.6rem; font-size: .82rem; color: #aeb9dd; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.footer-bottom .clover { color: var(--shamrock); }
.totop { color: #ffd9b0; font-weight: 700; }

/* ---- 404 -------------------------------------------------------------- */
.err { text-align: center; padding: clamp(3rem, 9vw, 6rem) 0; }
.err .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--rust); line-height: 1; font-family: var(--font-head); }
.err i { color: var(--shamrock); }

/* ---- responsive nav --------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1rem 1rem; border-bottom: 3px solid var(--rust); box-shadow: var(--shadow-md);
  }
  .site-header { position: relative; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem .6rem; border-radius: 8px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}
