/* ==========================================================================
   FrederickCampbell.com — Main Stylesheet (sleek, single-hero layout)
   Drop-in replacement for /assets/css/main.css
   --------------------------------------------------------------------------
   Goals:
   • Modern, minimal, professional
   • Unified gradient background (no bands)
   • Fixed header on top, sticky footer at bottom on short pages
   • Single hero landing with clean typography and strong focus states
   ========================================================================== */

/* ----------------------
   DESIGN TOKENS
---------------------- */
:root{
  /* Brand palette (refined, professional takes on your colors) */
  --bg-1: #170c0d;          /* deep oxblood */
  --bg-2: #2a1415;          /* subtle plum-brown */
  --surface: #1e1011;       /* footer / bars */
  --text-1: #ffffff;        /* primary text */
  --text-2: #e7dcd8;        /* secondary text */
  --brand: #e07a3f;         /* copper accent */
  --brand-600: #cf6a33;     /* hover */
  --brand-700: #b65b2c;     /* visited */

  /* Effects & layout */
  --radius: 10px;
  --container: 1200px;
  --nav-h: 82px;            /* set to your actual fixed nav height */
}

/* ----------------------
   BASE / RESET
---------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  /* Full-page gradient (prevents “bands” above/below hero) */
  min-height: 100svh;
  display: flex;
  flex-direction: column;

  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text-1);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Page regions (header injected above #main, footer below) */
#main { flex: 1 0 auto; }

/* Nice text selection */
::selection { background: rgba(224, 122, 63, 0.35); }

/* Media defaults */
img, svg, video { max-width: 100%; height: auto; display: block; }

/* ----------------------
   TYPOGRAPHY
---------------------- */
h1, h2 { letter-spacing: 0.2px; }
h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

p {
  font-size: 1.125rem;      /* ~18px */
  max-width: 720px;
  line-height: 1.7;
  color: var(--text-2);
  text-wrap: pretty;
  hyphens: auto;
}

/* ----------------------
   LINKS & BUTTONS
---------------------- */
a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease;
}
a:hover   { color: var(--brand-600); }
a:visited { color: var(--brand-700); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: linear-gradient(45deg, #5f1a15, #4b1513);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  transition: transform .18s ease, filter .2s ease, background .25s ease;
  will-change: transform;
}
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  background: linear-gradient(45deg, #4b1513, #5f1a15);
}
.button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Group buttons neatly */
.button-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----------------------
   FIXED NAVBAR
   (header HTML is loaded into the page; styles assume .desktop-navbar)
---------------------- */
.desktop-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
  z-index: 1000;
}

.nav-content {
  max-width: var(--container);
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 12px;
}
.nav-links a {
  color: var(--brand);
  padding: 8px 12px;
  font-weight: 700;
  letter-spacing: 0.15px;
  transition: color .2s ease, opacity .2s ease;
}
.nav-links a:hover { color: var(--brand-600); }
.logo-img { max-width: 80px; height: auto; display: block; }

/* ----------------------
   SECTIONS / HERO
---------------------- */
.section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  text-align: center;
  background: transparent; /* let body gradient show through */
}

#hero {
  /* Take full viewport minus navbar height */
  min-height: calc(100svh - var(--nav-h));
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#hero > div {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

#hero p {
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------
   FOOTER
---------------------- */
footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-2);
  padding: 18px 12px;
}
footer .footer-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}
#footer-placeholder footer { width: 100%; }

/* ----------------------
   FORMS (minimal, consistent)
---------------------- */
select, input, textarea {
  appearance: none;
  background: #2a1516;
  color: var(--text-1);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  transition: border-color .2s ease, background .2s ease;
}
select:hover, input:hover, textarea:hover {
  border-color: rgba(255,255,255,0.18);
}
select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand-600);
}

/* ----------------------
   UTILITIES
---------------------- */
.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.hidden { display: none !important; }

/* ----------------------
   REDUCED MOTION
---------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
