/* International Animal Care College — site styles */
:root {
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-ink: #14213d;
  --color-muted: #4d5a70;
  --color-line: #d7deea;
  --color-brand: #1b2f5b;
  --color-brand-ink: #ffffff;
  --color-accent: #e6c35c;
  --color-accent-ink: #8a6a12;
  --color-accent-soft: #f6e3a1;
  --color-destructive: #a3261b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-control: 999px;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-background); color: var(--color-ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--color-brand); }
a:hover { color: var(--color-accent-ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--color-accent-ink); margin-bottom: 1rem; }
.lede { font-size: 1.18rem; color: var(--color-muted); max-width: 40em; }
.muted { color: var(--color-muted); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.section--tint { background: var(--color-surface); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.section--brand { background: var(--color-brand); color: #eef3fb; }
.section--brand .kicker { color: var(--color-accent); }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand a { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 36px; }
.section-head > div { max-width: 46rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-control); padding: 13px 26px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--color-accent); color: var(--color-brand); }
.btn--primary:hover { background: #d4ae3f; color: var(--color-brand); }
.btn--ghost { background: transparent; color: var(--color-brand); border-color: var(--color-brand); }
.btn--ghost:hover { background: var(--color-brand); color: #fff; }
.btn--light { background: #fff; color: var(--color-brand); }
.btn--light:hover { background: var(--color-accent); color: var(--color-brand); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--color-accent); padding-bottom: 1px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-ink); border-radius: var(--radius-control); padding: 8px 16px; font: 500 .95rem/1.2 var(--font-body); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip.is-active { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Header */
.topbar { background: #13223f; color: #dbe6f5; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-ink); margin-right: auto; }
.brand img { height: 54px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; color: var(--color-muted); letter-spacing: .04em; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; color: var(--color-ink); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--color-brand); box-shadow: inset 0 -3px 0 var(--color-accent); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font: 600 1rem var(--font-body); color: var(--color-ink); cursor: pointer; padding: 8px 4px; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--color-accent); color: var(--color-brand); font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.cart-count:empty { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--color-ink); }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-background); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--color-line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--color-line); }
  .brand span { display: none; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(86vh, 760px); }
.hero__text { padding: clamp(48px, 7vw, 110px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero__text .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 18px; }
.hero__media { position: relative; overflow: hidden; background: var(--color-line); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-line); font-size: .95rem; color: var(--color-muted); }
.hero__facts strong { display: block; color: var(--color-ink); font-size: 1.05rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero__media { aspect-ratio: 4 / 3; order: -1; } }

.page-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--color-line); }
.page-hero .lede { margin-bottom: 0; }

/* Grids and cards */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--courses { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(29, 42, 38, .45); color: inherit; }
.card__img { aspect-ratio: 1 / 1; background: #e6ecf5; overflow: hidden; position: relative; }
.grid--courses .card__img { aspect-ratio: 16 / 10; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--contain img { object-fit: contain; padding: 14px; background: #fff; }
.card__img .noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--color-muted); font-family: var(--font-display); font-size: 1.1rem; padding: 20px; text-align: center; }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--color-accent); color: var(--color-brand); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-control); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; line-height: 1.25; margin: 0; }
.card__price { font-weight: 700; color: var(--color-brand); }
.card__price s { color: var(--color-muted); font-weight: 400; margin-left: 6px; }
.card__meta { font-size: .88rem; color: var(--color-muted); }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card__cta { font-weight: 600; font-size: .95rem; color: var(--color-accent-ink); }
.tile-add { background: none; border: 1px solid var(--color-brand); color: var(--color-brand); border-radius: var(--radius-control); padding: 7px 14px; font: 600 .88rem var(--font-body); cursor: pointer; }
.tile-add:hover { background: var(--color-brand); color: #fff; }
.tile-add:disabled { opacity: .5; cursor: progress; }
.state { padding: 40px; text-align: center; color: var(--color-muted); border: 1px dashed var(--color-line); border-radius: var(--radius-lg); }
.state--error { color: var(--color-destructive); }
.skeleton { background: linear-gradient(90deg, #e6ecf5, #f2f5fa, #e6ecf5); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius-lg); min-height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Features */
.features { display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { color: var(--color-muted); margin: 0; }
.section--brand .feature p { color: #dbe6f5; }
.feature svg { width: 30px; height: 30px; color: var(--color-accent-ink); margin-bottom: 12px; }
.section--brand .feature svg { color: var(--color-accent); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.split img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.creds li { background: var(--color-accent-soft); color: #4a3a08; border-radius: var(--radius-control); padding: 6px 14px; font-weight: 600; font-size: .88rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--color-accent-ink); border-bottom: 2.5px solid var(--color-accent-ink); transform: rotate(-45deg); }

.steps { counter-reset: s; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; border-top: 2px solid var(--color-brand); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 1.8rem; color: var(--color-accent-ink); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--color-muted); margin: 0; }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { margin: 0; }

/* Course groups */
.group { margin-bottom: 72px; }
.group:last-child { margin-bottom: 0; }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 30px; align-items: end; border-bottom: 1px solid var(--color-line); padding-bottom: 16px; margin-bottom: 26px; }
.group-head p { margin: 0; color: var(--color-muted); max-width: 44rem; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Shop toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.toolbar .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar label { font-size: .9rem; color: var(--color-muted); display: inline-flex; gap: 8px; align-items: center; }
select, input, textarea { font: inherit; color: inherit; }
.toolbar select, .toolbar input { border: 1px solid var(--color-line); background: var(--color-surface); border-radius: var(--radius-md); padding: 9px 12px; }
.more { display: flex; justify-content: center; margin-top: 36px; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.pdp__gallery { position: sticky; top: 100px; }
@media (max-width: 900px) { .pdp__gallery { position: static; } }
.pdp__main { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; overflow: hidden; }
.pdp__main img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp__thumbs button { width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-md); overflow: hidden; background: #fff; cursor: pointer; }
.pdp__thumbs button[aria-pressed="true"] { border-color: var(--color-brand); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .88rem; color: var(--color-muted); margin-bottom: 14px; }
.crumbs a { color: var(--color-muted); }
.pdp h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.pdp__price { font-size: 1.6rem; font-weight: 700; color: var(--color-brand); margin: 4px 0 20px; }
.pdp__price s { font-size: 1.1rem; color: var(--color-muted); font-weight: 400; margin-left: 10px; }
.pdp fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.pdp legend { font-weight: 600; margin-bottom: 10px; }
.pdp .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="date"], .field input[type="url"], .field select, .field textarea { width: 100%; border: 1px solid #c9bda9; background: #fff; border-radius: var(--radius-md); padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--color-destructive); }
.field .help { font-size: .88rem; color: var(--color-muted); margin: 6px 0 0; }
.field .err, .err { color: var(--color-destructive); font-size: .9rem; margin: 6px 0 0; }
.field--check label, .field--radio label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-bottom: 6px; }
.field--radio .legend { font-weight: 600; margin-bottom: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-line); border-radius: var(--radius-control); background: #fff; }
.qty button { background: none; border: 0; width: 40px; height: 42px; font-size: 1.2rem; cursor: pointer; color: var(--color-ink); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0 10px; }
.buy .btn--primary { flex: 1; min-width: 220px; }
.blocked { color: var(--color-muted); font-size: .92rem; margin: 6px 0 0; }
.desc { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--color-line); }
.desc p { margin-bottom: .8em; }
.accordion details { border-top: 1px solid var(--color-line); padding: 16px 0; }
.accordion details:last-child { border-bottom: 1px solid var(--color-line); }
.accordion summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--color-accent-ink); }
.accordion details[open] summary::after { content: "−"; }
.accordion .acc-body { padding-top: 12px; color: #34423d; font-size: .97rem; }
.note { background: var(--color-accent-soft); border-radius: var(--radius-md); padding: 14px 18px; font-size: .95rem; margin: 18px 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
.dl { display: grid; gap: 18px; margin: 0; }
.dl dt { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-accent-ink); }
.dl dd { margin: 2px 0 0; }
.thanks { font-size: 1.15rem; }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery img { width: 100%; margin-bottom: 16px; border-radius: var(--radius-md); break-inside: avoid; }

/* Footer */
.site-footer { background: #13223f; color: #c9d6ea; font-size: .95rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 36px; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-base { border-top: 1px solid #2a3d66; margin-top: 44px; padding-top: 20px; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #9fb0cc; }

/* Cart drawer */
.cart-backdrop { position: fixed; inset: 0; background: rgba(15, 25, 22, .5); z-index: 90; display: flex; justify-content: flex-end; }
.cart-backdrop[hidden] { display: none; }
.cart-panel { width: min(440px, 100%); height: 100%; background: var(--color-background); display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgba(0,0,0,.4); }
.cart-panel header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--color-line); }
.cart-panel header h2 { font-size: 1.5rem; margin: 0; }
.cart-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--color-ink); padding: 4px 8px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.cart-line img, .cart-line .ph { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: #fff; }
.cart-line h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.cart-line .meta { font-size: .82rem; color: var(--color-muted); }
.cart-line .qty button { width: 32px; height: 32px; font-size: 1rem; }
.cart-line .remove { background: none; border: 0; color: var(--color-muted); text-decoration: underline; cursor: pointer; font-size: .82rem; padding: 4px 0; }
.cart-line .lp { font-weight: 700; text-align: right; }
.cart-foot { padding: 20px 24px 26px; border-top: 1px solid var(--color-line); background: var(--color-surface); }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .95rem; }
.cart-row--total { font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.cart-foot .btn { width: 100%; margin-top: 14px; }
.cart-coupon { display: flex; gap: 8px; margin-top: 12px; }
.cart-coupon input { flex: 1; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 8px 10px; background: #fff; }
.cart-coupon button { background: none; border: 1px solid var(--color-brand); color: var(--color-brand); border-radius: var(--radius-control); padding: 6px 14px; cursor: pointer; font-weight: 600; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--color-muted); }
body.no-scroll { overflow: hidden; }
:focus-visible { outline: 3px solid var(--color-accent-ink); outline-offset: 2px; }

/* Blue and gold additions */
.hero { background: linear-gradient(135deg, #1b2f5b 0%, #13223f 100%); color: #eef3fb; }
.hero h1 { color: #fff; }
.hero .lede { color: #dbe6f5; }
.hero .kicker { color: var(--color-accent); }
.hero .textlink { color: #fff; }
.hero__facts { border-top-color: rgba(230, 195, 92, .45); color: #c9d6ea; }
.hero__facts strong { color: var(--color-accent); }
.offer { display: inline-block; background: var(--color-accent); color: var(--color-brand); font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.qual { background: var(--color-surface); border: 1px solid var(--color-line); border-left: 5px solid var(--color-accent); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px); margin-bottom: 26px; }
.qual h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.qual .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 6px 0 14px; color: var(--color-muted); font-size: .95rem; }
.qual .facts strong { color: var(--color-ink); }
.qual ul { margin: 0 0 16px; padding-left: 20px; }
.qual .links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols .panel h3 { margin-bottom: .4em; }
