/* =========================================================
   All Things Equine - COPYRIGHT CLICKANERD.COM 2025
   ========================================================= */
   
html {
  overflow-y: scroll; /* Always reserve scrollbar space */
}

:root {
  --tan-50: #fbf6ef;
  --tan-100: #f6eedf;
  --tan-200: #efe3c9;
  --tan-300: #e6d3a9;
  --tan-400: #d8bf86;
  --gold: #caa76a;
  --brown: #4b2f1e;
  --brown-600: #3c2517;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* === Base Layout === */
html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(1400px 600px at 20% -10%, rgba(202, 167, 106, 0.08), transparent 60%),
              linear-gradient(180deg, var(--tan-50), var(--tan-100));
  color: #2c2a28;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* === Links === */
a {
  color: var(--brown);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Animated underline (gold gradient) */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #b99352, #e5c37d);
  transition: width 0.3s ease;
  border-radius: 2px;
}

a:hover::after,
a:focus::after,
a.active::after {
  width: 100%;
}

a:hover,
a:focus,
a.active {
  color: var(--brown-600);
}

/* === Header + Brand === */
.top {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #fff, var(--tan-50));
  border: 1px solid rgba(75, 47, 30, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.brand h1 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--brown);
  line-height: 1.1;
}

/* === Navigation === */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(75,47,30,0.12);
  color: var(--brown);
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}

/* Disable underline animation for nav */
.nav a::after { display: none !important; }

.nav a:hover {
  background: linear-gradient(180deg, #fff, var(--tan-100));
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 0 0 100vmax rgba(75,47,30,0.92),
              0 6px 16px rgba(75,47,30,0.18);
  transform: translateY(-1px);
}

.nav a.active {
  background: linear-gradient(180deg, #fff, var(--tan-200));
  box-shadow: inset 0 0 0 100vmax rgba(75,47,30,0.1);
}

/* === Hero Section === */
.hero {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.75));
  border: 1px solid rgba(75,47,30,0.08);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(18px,3.2vw,36px);
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  color: var(--brown);
  margin: 0 0 12px;
}

.sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: #544a3e;
  line-height: 1.65;
  margin-bottom: 18px;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: all .18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn.primary {
  background: linear-gradient(180deg, var(--gold), #b99352);
  color: #2b1c10;
  box-shadow: 0 6px 16px rgba(202,167,106,.4);
}

.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn.ghost {
  background: #fff;
  color: var(--brown);
  border: 1px solid rgba(75,47,30,.12);
}

.btn.ghost:hover {
  background: var(--tan-100);
}

/* === Cards === */
.hero-card,
.card {
  background: #fff;
  border: 1px solid rgba(75,47,30,.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card h3,
.card h4 {
  font-family: var(--font-heading);
  color: var(--brown);
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.kv div {
  background: linear-gradient(180deg, var(--tan-100), #fff);
  border: 1px solid rgba(75,47,30,.08);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  color: #3a3227;
}

/* === Features === */
.features {
  max-width: 1200px;
  margin: 26px auto;
  padding: 0 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

/* === Page Content === */
.wrap {
  max-width: 1200px;
  margin: 20px auto 40px;
  padding: 0 16px;
}

.page {
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.85));
  border: 1px solid rgba(75,47,30,.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
}

.page h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  color: var(--brown);
}

.lead {
  font-size: clamp(15px, 1.2vw, 18px);
  color: #544a3e;
  line-height: 1.75;
}

/* === Footer === */
footer {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  color: #564c40;
  text-align: center;
}

.mininav a { margin: 0 8px; }

footer .credit {
  font-size: 14px;
  color: #6b5b47;
  margin-top: 4px;
}

footer .credit a {
  color: var(--brown);
  font-weight: 600;
}

footer .credit a:hover {
  color: var(--gold);
}

/* === Responsive === */
@media (max-width: 768px) {
  .brand { display: none !important; }

  header.top {
    justify-content: center;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #fff, #f6eedf);
    border: 1px solid rgba(75,47,30,0.15);
    box-shadow: none;
    font-weight: 700;
    letter-spacing: .03em;
    font-size: 16px;
    color: #4b2f1e;
  }

  .nav a:hover {
    background: linear-gradient(180deg, #f6eedf, #e6d3a9);
    color: #3c2517;
  }

  .nav a.active {
    background: linear-gradient(180deg, #efe3c9, #e6d3a9);
  }

  .hero { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .brand img { height: 56px; }
}
