/* ==========================================================================
   ELITE GUPPY FARM — BASE STYLES
   Tokens · reset · typography · layout · buttons · form elements
   --------------------------------------------------------------------------
   Fonts: change --font-heading / --font-body below and the Google Fonts
   <link> in each page <head>. Colours: edit the palette tokens.
   ========================================================================== */

:root {
  /* Palette — deep navy, ocean, teal, aquatic green, warm whites */
  --navy-950: #061420;
  --navy-900: #0a1d2e;
  --navy-800: #0f2b42;
  --navy-700: #16405f;
  --ocean: #0f5f86;
  --teal: #11807f;
  --teal-2: #1ba7a0;
  --aqua: #6fd9dc;          /* accent — use sparingly */
  --leaf: #4a8a5c;
  --leaf-2: #7fb58b;
  --sand: #f6f3ec;
  --mist: #edf3f4;
  --white: #ffffff;
  --gold: #b8923f;
  --coral: #d9534f;
  --wa: #25d366;
  --wa-deep: #13894a;

  /* Text on light */
  --ink: #0c1b28;
  --ink-2: #42566a;
  --ink-3: #6b7d8e;
  --line: rgba(12, 27, 40, 0.1);
  --line-2: rgba(12, 27, 40, 0.18);
  --surface: #ffffff;
  --surface-2: #f7f9fa;

  /* Type */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3.3rem);
  --fs-h1: clamp(2.6rem, 1.7rem + 4.4vw, 5.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --section: clamp(64px, 9vw, 132px);

  --shadow-sm: 0 1px 2px rgba(12, 27, 40, 0.06), 0 4px 12px -6px rgba(12, 27, 40, 0.12);
  --shadow-md: 0 2px 4px rgba(12, 27, 40, 0.05), 0 18px 40px -22px rgba(12, 27, 40, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(6, 20, 32, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --util-h: 36px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.has-dialog { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: rgba(27, 167, 160, 0.3); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h1, h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; }
.h2, h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h1 em, h2 em, .h1 em, .h2 em, .pd__title em { font-style: italic; font-weight: 400; color: var(--teal); }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.72rem/1 var(--font-body);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow:has(.icon)::before { display: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 900px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 56px); display: grid; gap: 14px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.section-head--row > div:first-child { display: grid; gap: 14px; max-width: 680px; }
.section-head p { color: var(--ink-2); }

/* Surfaces */
.s-sand { background: var(--sand); }
.s-white { background: var(--white); }
.s-mist { background: var(--mist); }
.s-navy, .s-deep, .on-dark {
  color: #eaf2f6;
  --ink: #eaf2f6; --ink-2: #b4c6d3; --ink-3: #8aa0b2;
  --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.24);
  --surface: rgba(255, 255, 255, 0.05); --surface-2: rgba(255, 255, 255, 0.09);
}
.s-navy { background: var(--navy-900); }
.s-deep { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.s-navy .eyebrow, .s-deep .eyebrow, .on-dark .eyebrow { color: var(--aqua); }
.s-navy h1 em, .s-navy h2 em, .s-deep h2 em, .on-dark h1 em, .on-dark h2 em { color: var(--aqua); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 var(--fs-sm)/1 var(--font-body); letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--sm { --bh: 44px; padding: 0 16px; font-size: 0.8125rem; }
.btn--lg { --bh: 56px; padding: 0 30px; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn--square { padding: 0; width: var(--bh); }

.btn--primary { background: var(--navy-800); color: #fff; box-shadow: 0 10px 24px -14px rgba(15, 43, 66, 0.9); }
.btn--primary:hover { background: var(--ocean); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -14px rgba(17, 128, 127, 0.9); }
.btn--teal:hover { background: #0e6f6e; }
.btn--light { background: #fff; color: var(--navy-900); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5); }
.btn--light:hover { background: var(--mist); }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: currentColor; }
.btn--glass { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn--wa { color: #fff; background: var(--wa-deep); box-shadow: 0 10px 24px -14px rgba(19, 137, 74, 0.9); }
.btn--wa:hover { background: #0f7a41; }
.btn--text { background: none; color: var(--ink-3); padding: 0 8px; }
.btn--text:hover { color: var(--coral); transform: none; }
.btn.is-added { animation: btn-pop 0.5s var(--ease); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; position: relative; transition: background-color 0.2s, color 0.2s; }
.icon-btn:hover { background: rgba(12, 27, 40, 0.06); }
.on-dark .icon-btn:hover, .s-navy .icon-btn:hover, .s-deep .icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn .icon { width: 21px; height: 21px; }
.icon-btn--sm { width: 38px; height: 38px; }
.icon-btn--sm .icon { width: 18px; height: 18px; }
.icon-btn--lg { width: 56px; height: 56px; border: 1px solid var(--line-2); }

.count-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--teal); color: #fff;
  font: 800 0.66rem/1 var(--font-body);
}
.count-badge--inline { position: static; margin-left: 2px; }
.count-badge.bump { animation: badge-bump 0.6s var(--ease); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--teal); }
.s-navy .link-arrow, .s-deep .link-arrow, .on-dark .link-arrow { color: var(--aqua); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }

/* ---------- Chips / badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
a.chip:hover, button.chip:hover { color: var(--ink); border-color: var(--teal); }
.chip--dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c1, var(--teal)); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font: 700 0.66rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.94); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.badge--featured { color: #7a5a14; }
.badge--new { color: var(--teal); }
.badge--limited, .badge--popular { color: var(--coral); }
.badge--out { color: var(--ink-3); }

.price { font: 800 var(--fs-lg)/1.2 var(--font-body); color: var(--ink); }
.price-was { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); text-decoration-color: var(--coral); margin-left: 6px; }
.badge--sale { background: var(--coral); color: #fff; margin-left: 8px; box-shadow: none; white-space: nowrap; }
.price--enquire { font-size: var(--fs-sm); font-weight: 700; color: var(--ocean); }
.s-navy .price--enquire, .s-deep .price--enquire { color: var(--aqua); }
.price--lg { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.price--lg.price--enquire { font-size: var(--fs-xl); }

.avail { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail--ok { color: #2f8a4e; }
.avail--warn { color: #b7791f; }
.avail--info { color: var(--teal); }
.s-navy .avail--info, .s-deep .avail--info { color: var(--aqua); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1px solid rgba(12, 27, 40, 0.18);
  background: #fff; color: var(--navy-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17, 128, 127, 0.18); outline: none; }
.field__error { font-size: var(--fs-xs); color: var(--coral); }
.field.has-error input, .field.has-error textarea { border-color: var(--coral); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }
.req { color: var(--coral); }
kbd { font: 700 0.68rem/1 var(--font-body); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-3); }

/* Photo credit (required by Creative Commons licences) */
.credit {
  position: absolute; right: 10px; bottom: 8px; z-index: 3;
  max-width: calc(100% - 20px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 0.62rem; line-height: 1.4; color: rgba(255, 255, 255, 0.8);
  padding: 2px 8px; border-radius: 999px; background: rgba(6, 20, 32, 0.5);
}
.credit:hover { color: #fff; }
