/* ==========================================================================
   SEO Consultant Auckland - base.css
   Fonts, design tokens, element defaults (mirrors the original theme defaults)
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Fjalla One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fjalla-one-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fjalla One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fjalla-one-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

/* ---------- design tokens ---------- */
:root {
  --primary-color: #d4af37;
  --primary-color-gradient: linear-gradient(180deg, #e9c85a 0%, #f1cc42 66%, #ffc93e 100%);
  --dark: #161c24;
  --white: #ffffff;
  --light-text: #f2f4f6;
  --light-gray: #cbd5e1;

  --sk-ink: #0b0f14;
  --sk-ink-2: #121826;
  --sk-text: #101318;
  --sk-text-muted: #667085;
  --sk-text-invert: #eaf0ff;
  --sk-text-soft: #b9c3d1;
  --sk-slate: #1b2334;
  --sk-gold: #d4af37;

  --body-color: #363636;
  --body-font: -apple-system, "system-ui", "Segoe UI", roboto, helvetica, arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --display-font: "Fjalla One", var(--body-font);

  --container-width: 80rem;
  --section-padding: clamp(1.5rem, 1.53vw + 1.194rem, 2.5rem);
  --section-padding-y: clamp(36px, 7vw, 96px);
  --gap-sm: clamp(0.5rem, 0.382vw + 0.424rem, 0.75rem);
  --gap-md: clamp(1rem, 0.382vw + 0.924rem, 1.25rem);
  --gap-lg: clamp(1rem, 1.53vw + 0.694rem, 2rem);
  --gap-xl: clamp(1.25rem, 0.765vw + 1.097rem, 1.75rem);
  --transition: all 0.1s;
}

/* ---------- element defaults ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: auto;
  font-size: 100%;
  line-height: 1.15;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--white);
  color: var(--body-color);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
}

main,
header,
footer,
nav,
section {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  text-rendering: optimizelegibility;
}
h1 { font-size: 2.4em; line-height: 1.4; }
h2 { font-size: 2.1em; line-height: 1.4; }
h3 { font-size: 1.8em; line-height: 1.4; }
h4 { font-size: 1.6em; line-height: 1.4; }
h5 { font-size: 1.3em; line-height: 1.4; }
h6 { font-size: 1.1em; line-height: 1.4; }

p {
  margin-block: 0 1.2em;
}
p:last-of-type {
  margin-block-end: 0;
}
p:last-of-type + h1,
p:last-of-type + h2,
p:last-of-type + h3,
p:last-of-type + h4 {
  margin-block: 1.2em 0;
}

a {
  color: currentcolor;
  border-color: currentcolor;
  cursor: pointer;
  text-decoration: none;
}

img {
  border-style: none;
  height: auto;
  max-width: 100%;
  outline: none;
  vertical-align: middle;
}

svg:not([width]) { min-width: 1em; }
svg:not([height]) { min-height: 1em; }

table {
  width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  text-align: inherit;
}
button {
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  background: none;
  color: inherit;
  text-transform: none;
}
input:not([type="submit"]),
select,
textarea {
  border: 1px solid;
  box-shadow: none;
  color: currentcolor;
  font-size: inherit;
  line-height: 40px;
  outline: none;
  padding: 0 12px;
  transition: var(--transition);
  width: 100%;
}
select {
  appearance: none;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, gray 0), linear-gradient(135deg, gray 50%, transparent 0);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  border-radius: 0;
  cursor: pointer;
}
textarea {
  height: auto;
  line-height: inherit;
  min-height: 90px;
  overflow: auto;
  padding: 10px 12px;
}
label {
  display: block;
  font-weight: 400;
  margin-bottom: 5px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 100%;
}

:focus-visible {
  outline: auto;
}

/* ---------- accessibility helpers ---------- */
.skip-link {
  clip: rect(1px, 1px, 1px, 1px);
  background: #000;
  border-bottom-right-radius: 8px;
  color: #fff;
  font-weight: 700;
  height: 1px;
  left: 0;
  overflow: hidden;
  padding: 5px 10px;
  position: absolute;
  top: 0;
  transition: transform 0.1s;
  white-space: nowrap;
  width: 1px;
  z-index: 9999;
}
.skip-link:focus {
  clip: auto;
  height: auto;
  overflow: visible;
  width: auto;
}

.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

/* ---------- page shell ---------- */
.main {
  flex: 1;
  position: relative;
  width: 100%;
}

/* ---------- keyframes shared across pages ---------- */
@keyframes spin {
  to { transform: rotate(1turn); }
}
@keyframes scrolling {
  0% { opacity: 1; }
  to { opacity: 0; transform: translateY(10px); }
}
