/* ==========================================================================
   ORMONDFELL — CORE DESIGN SYSTEM & FOUNDATION (styles.css)
   Premium redesign · Google Sans · Deep Navy · Warm Gold Accents
   Domain: ormondfell.site
   ========================================================================== */

/* Google Fonts — Google Sans family */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Google+Sans+Display:wght@400;500;700&family=Google+Sans+Mono&display=swap');

:root {
  /* ── Brand Core ─────────────────────────────────────────────── */
  --color-navy:          #09172A;       /* Deep midnight */
  --color-navy-mid:      #0F2035;       /* Rich navy */
  --color-navy-card:     #142843;       /* Dark card surface */
  --color-charcoal:      #182535;
  --color-offwhite:      #F7F6F2;
  --color-white:         #FFFFFF;

  /* ── Gold Accent System ─────────────────────────────────────── */
  --color-gold:          #C8922A;       /* Primary warm gold */
  --color-gold-light:    #E5B24E;       /* Highlight gold */
  --color-gold-dark:     #A37120;       /* Hover / pressed gold */
  --color-gold-subtle:   rgba(200, 146, 42, 0.11);
  --color-gold-glow:     rgba(200, 146, 42, 0.30);
  --color-gold-border:   rgba(200, 146, 42, 0.40);

  /* ── Supporting Tones ───────────────────────────────────────── */
  --color-steel:         #6B7D8E;
  --color-slate:         #9DB0BE;
  --color-mist:          #C4D0DA;
  --color-bg-light:      #EDECE8;
  --color-bg-card:       #FFFFFF;
  --color-bg-dark-card:  #122033;       /* Replaces old navy card */

  /* ── Border Colors ──────────────────────────────────────────── */
  --border-light:        rgba(9, 23, 42, 0.10);
  --border-subtle:       rgba(9, 23, 42, 0.06);
  --border-dark:         rgba(255, 255, 255, 0.09);
  --border-dark-subtle:  rgba(255, 255, 255, 0.05);
  --border-gold:         rgba(200, 146, 42, 0.45);
  --border-focus:        #C8922A;

  /* ── Typography ─────────────────────────────────────────────── */
  --font-family-primary:   'Google Sans', 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-display:   'Google Sans Display', 'Google Sans', 'Product Sans', sans-serif;
  --font-family-mono:      'Google Sans Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ── Fluid Type Scale ───────────────────────────────────────── */
  --text-xs:    clamp(0.72rem,  0.70rem + 0.12vw, 0.80rem);
  --text-sm:    clamp(0.84rem,  0.82rem + 0.15vw, 0.938rem);
  --text-base:  clamp(0.938rem, 0.90rem + 0.22vw, 1.063rem);
  --text-lg:    clamp(1.063rem, 1.01rem + 0.28vw, 1.25rem);
  --text-xl:    clamp(1.25rem,  1.15rem + 0.48vw, 1.563rem);
  --text-2xl:   clamp(1.5rem,   1.35rem + 0.78vw, 1.938rem);
  --text-3xl:   clamp(1.875rem, 1.65rem + 1.20vw, 2.625rem);
  --text-4xl:   clamp(2.25rem,  1.90rem + 1.80vw, 3.5rem);
  --text-hero:  clamp(2.75rem,  2.20rem + 2.80vw, 4.75rem);

  /* ── Spacing Scale ──────────────────────────────────────────── */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* ── Layout ─────────────────────────────────────────────────── */
  --container-max:       1296px;
  --container-narrow:    960px;
  --container-wide:      1440px;
  --container-padding:   clamp(1.25rem, 4vw, 2.75rem);
  --header-height:       80px;
  --header-height-mobile: 68px;

  /* ── Radii ──────────────────────────────────────────────────── */
  --radius-xs:   3px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────────────────── */
  --shadow-subtle:  0 1px 3px  rgba(9, 23, 42, 0.06);
  --shadow-sm:      0 2px 10px rgba(9, 23, 42, 0.08);
  --shadow-md:      0 6px 22px rgba(9, 23, 42, 0.10);
  --shadow-lg:      0 18px 42px rgba(9, 23, 42, 0.14);
  --shadow-xl:      0 32px 64px rgba(9, 23, 42, 0.18);
  --shadow-dark:    0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-gold:    0 6px 24px  rgba(200, 146, 42, 0.28);

  /* ── Glass Surfaces ─────────────────────────────────────────── */
  --glass-light:  rgba(255, 255, 255, 0.06);
  --glass-dark:   rgba(9, 23, 42, 0.72);

  /* ── Transitions ────────────────────────────────────────────── */
  --transition-fast:   160ms cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 260ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow:   420ms cubic-bezier(0.2, 0, 0, 1);
  --transition-spring: 380ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Legacy copper aliases (keeps old class references working) ─ */
  --color-copper:        var(--color-gold);
  --color-copper-hover:  var(--color-gold-dark);
  --color-copper-subtle: var(--color-gold-subtle);
  --color-copper-glow:   var(--color-gold-glow);
}

/* ==========================================================================
   CSS RESET & BASE ELEMENTS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-charcoal);
  background-color: var(--color-offwhite);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--color-copper);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-xs);
  z-index: 9999;
  transition: top var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* Visible focus outline */
:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 3px;
}

/* ==========================================================================
   TYPOGRAPHY & CONTENT HIERARCHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.032em;
  line-height: 1.12;
}

h2 {
  font-size: var(--text-3xl);
  line-height: 1.2;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.28;
}

h4 {
  font-size: var(--text-xl);
  line-height: 1.34;
}

p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
  color: #2E3D4D;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.62;
  color: #46596A;
  font-weight: 400;
}

/* Uppercase Eyebrow / Section Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-xs);
  font-family: var(--font-family-primary);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.875rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  flex-shrink: 0;
}

.eyebrow--light {
  color: var(--color-gold-light);
}

.eyebrow--light::before {
  background: linear-gradient(90deg, var(--color-gold-light), rgba(229,178,78,0.5));
}

/* ==========================================================================
   LAYOUT CONTAINERS & GRIDS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  position: relative;
}

.section--sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--lg {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.section--dark {
  background-color: var(--color-navy);
  color: var(--color-offwhite);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 50%, rgba(200,146,42,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(15,32,53,0.7) 0%, transparent 70%);
  pointer-events: none;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-slate);
}

.section--neutral {
  background-color: var(--color-bg-light);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header--center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ==========================================================================
   ACCESSIBILITY & UTILITIES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-copper,
.text-gold {
  color: var(--color-gold);
}

.text-steel {
  color: var(--color-steel);
}

.text-slate {
  color: var(--color-slate);
}

.no-scroll {
  overflow: hidden !important;
}

/* ── Gradient text ─ */
.text-gradient {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider accent ─ */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}
