/* =========================================================
   Haflinger Australia Association — shared theme
   Palette: Cream #E1D4B3 · Gold #A88413 · White
   ========================================================= */

:root {
  --cream: #E1D4B3;
  --cream-soft: #EFE7D2;
  --cream-pale: #F7F2E6;
  --gold: #A88413;
  --gold-dark: #836610;
  --gold-soft: #C9A53A;
  --white: #FFFFFF;
  --ink: #2C2519;
  --ink-soft: #4A4030;
  --line: rgba(168, 132, 19, 0.22);
  --shadow: 0 10px 30px rgba(44, 37, 25, 0.10);
  --shadow-sm: 0 4px 14px rgba(44, 37, 25, 0.08);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}

p { margin: 0 0 1.1em; }

a { color: var(--gold-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: .98rem;
  padding: .82rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all .22s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-light { background: var(--white); color: var(--gold-dark); border-color: var(--white); }
.btn-light:hover { background: var(--cream-soft); color: var(--gold-dark); border-color: var(--cream-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 52px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 500;
  color: var(--ink);
  font-size: .98rem;
  position: relative;
  padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }

.nav-cta { margin-left: .5rem; }
.nav-links .nav-cta a.btn {
  color: var(--white);
  padding: .62rem 1.9rem;
  font-size: .92rem;
}
.nav-links .nav-cta a.btn:hover { color: var(--white); }
.nav-links .nav-cta a.btn::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: left;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(44,37,25,.72) 0%, rgba(44,37,25,.42) 50%, rgba(44,37,25,.20) 100%);
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--cream); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 16ch;
  margin-bottom: .6rem;
}
.hero p { font-size: 1.18rem; max-width: 46ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Page banner (sub pages) ---------- */
.page-banner {
  position: relative; color: var(--white); text-align: center; padding: 5.5rem 0 4.5rem;
}
.page-banner::before { content:""; position:absolute; inset:0; background: linear-gradient(rgba(44,37,25,.62), rgba(44,37,25,.62)); z-index:1; }
.page-banner-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-banner p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-cream { background: var(--cream-pale); }
.section-gold { background: var(--cream); }
.section-tight { padding: 4rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.lead { font-size: 1.16rem; color: var(--ink-soft); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.split-media.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-media.stack img { max-height: 320px; }
.split-media.stack img:first-child { grid-row: span 2; max-height: 100%; }

/* Wide image on top, two below */
.split-media.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-media.mosaic img { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media.mosaic img:first-child { grid-column: 1 / -1; height: 300px; object-position: center 35%; }
.split-media.mosaic img:nth-child(2),
.split-media.mosaic img:nth-child(3) { height: 215px; max-height: 215px; }

/* ---------- Discipline / feature grid ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  box-shadow: var(--shadow-sm); color: var(--white); display: flex; align-items: flex-end;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(44,37,25,.78), rgba(44,37,25,0) 65%); }
.tile span { position: relative; z-index: 2; padding: 1.2rem 1.4rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.tile:hover img { transform: scale(1.06); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; }

/* ---------- Breeders directory ---------- */
.breeder-loc { font-weight: 600; color: var(--gold-dark); margin-bottom: 1rem; }
.breeder-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.breeder-links li { color: var(--ink-soft); font-size: .98rem; }

.icon-badge {
  width: 50px; height: 50px; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; color: var(--gold-dark);
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Sponsors ---------- */
.sponsors {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.4rem; align-items: center;
}
.sponsor {
  display: flex; align-items: center; justify-content: center; padding: 0 1rem;
}
.sponsor img {
  max-height: 130px; max-width: 100%; width: auto; object-fit: contain;
  transition: transform .25s ease;
}
.sponsor:hover img { transform: scale(1.05); }

/* ---------- Affiliations ---------- */
.affiliations {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; align-items: start;
  max-width: 760px; margin: 0 auto;
}
.affiliation {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 0 1rem;
}
.affiliation img {
  max-height: 170px; max-width: 100%; width: auto; object-fit: contain;
}
.affiliation span {
  font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.4;
}

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
label .req { color: var(--gold-dark); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream-pale); transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,132,19,.15); background: var(--white); }
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem 1.2rem; margin: 0 0 1.2rem; }
legend { font-weight: 600; font-size: .9rem; padding: 0 .4rem; color: var(--ink); }
.radio-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-weight: 500; }
.radio-row input { width: auto; }
.form-note { font-size: .9rem; color: var(--ink-soft); background: var(--cream-pale); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; border-radius: 6px; margin-bottom: 1.4rem; }
.payment-box { background: var(--cream-soft); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; font-size: .95rem; margin: 1.4rem 0; }
.payment-box strong { color: var(--gold-dark); }

/* ---------- Form page layout ---------- */
.form-page { max-width: 820px; }
.breadcrumb { font-size: .9rem; margin-bottom: 1.4rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--gold-dark); font-weight: 600; }
.breadcrumb span { margin: 0 .4rem; color: var(--gold); }
.form-intro { color: var(--ink-soft); margin-bottom: 1.8rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; font-weight: 500; }
.checkbox-row input { width: auto; margin-top: .35rem; }

/* ---------- Forms list ---------- */
.forms-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
.form-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.15rem 1.4rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.form-link:hover { color: var(--gold-dark); transform: translateX(3px); border-color: var(--gold-soft); }
.form-link .arrow { color: var(--gold); font-size: 1.2rem; }
.form-link small { display:block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.info-item .icon-badge { flex: 0 0 auto; margin: 0; }
.info-item h4 { margin: 0 0 .2rem; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); }
.info-item p { margin: 0; font-size: 1.05rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: var(--white); text-align: center; padding: 4rem 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand img { height: 64px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .92; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6rem; font-size: .96rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 78px; right: 0; width: min(78vw, 320px); height: calc(100vh - 78px);
    background: var(--white); flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1.5rem 1.8rem; box-shadow: -8px 0 30px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem 0; }
  .nav-links .nav-cta { margin: 1rem 0 0; }
  .nav-toggle { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .sponsors { grid-template-columns: 1fr 1fr; }
  .forms-list, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 76vh; }
}
@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  .affiliations { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .form-card { padding: 1.5rem; }
  .brand-text { display: none; }
}
