/*
Theme Name: FitnessBeach
Theme URI: https://fitnessbeach.ca
Author: Culturis
Author URI: https://culturis.ca
Description: Custom WordPress theme for FitnessBeach.ca. Built from the locked v3 mockups. Fraunces + Epilogue, asymmetric corner signature (14px 0 14px 14px), warm cream + navy + blue + orange palette.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.2
License: Proprietary
Text Domain: fitnessbeach
*/

/* ============================================================
   TOKENS — DO NOT HARD-CODE COLORS, FONTS, OR RADIUS ELSEWHERE
   Source: locked mockups :root blocks (v3, 2026-05-23).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400..500&family=Epilogue:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --navy:        #0d1b2a;
  --navy-soft:   #1a2a3d;
  --teal:        #2fa68c;
  --teal-soft:   #d6ebe5;
  --teal-deep:   #1f7a66;
  --cream:       #faf7f2;
  --cream-warm:  #f3ede2;
  --ink:         #0d1b2a;
  --ink-mid:     #5a6776;
  --hairline:    #e7e1d6;
  --fb-warm:        #e8662a;
  --fb-warm-soft:   #f6d4bc;
  --fb-warm-deep:   #c84e15;
  --fb-blue:        #21ACCB;
  --fb-blue-soft:   #B8E4ED;
  --fb-blue-deep:   #1A88A3;

  /* The brand corner signature. Top-right is the un-rounded corner. */
  --radius:      14px;
  --fb-radius:   14px 0 14px 14px;

  /* Type scale (rem) */
  --fs-eyebrow:  0.6875rem;  /* 11px */
  --fs-meta:     0.8125rem;  /* 13px */
  --fs-body:     1rem;       /* 16px */
  --fs-lead:     1.125rem;   /* 18px */
  --fs-h4:       1.375rem;   /* 22px */
  --fs-h3:       1.75rem;    /* 28px */
  --fs-h2:       2.5rem;     /* 40px */
  --fs-h1:       3.5rem;     /* 56px */
  --fs-display:  5rem;       /* 80px */

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Container */
  --container-max: 1240px;
  --container-pad: clamp(16px, 4vw, 48px);
}

/* ============================================================
   ELEMENT RESETS
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Epilogue', system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--fs-h1); line-height: 1.02; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }

p  { margin: 0 0 var(--space-4); }

a {
  color: var(--fb-warm-deep);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--fb-warm); }

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

/* ============================================================
   LAYOUT
   ============================================================ */

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

.fb-section { padding: var(--space-9) 0; }
.fb-section--tight { padding: var(--space-7) 0; }
.fb-section--wide  { padding: var(--space-10) 0; }

/* ============================================================
   COMPONENTS — extracted from mockups, normalized.
   Per brief §3 these names are locked: fb-btn-primary, fb-btn-ghost,
   fb-card, fb-eyebrow, fb-stat, fb-quote, fb-watermark, fb-pillars-card,
   fb-tag-{type}. Component CSS lives in /assets/css/fb-components.css
   to keep style.css focused on theme bootstrap.
   ============================================================ */

/* Components are loaded via inc/enqueue.php from assets/css/fb-components.css */

/* ============================================================
   BRAND WORDMARK — used in header.php
   Blue 'fitness' + orange italic 'beach' per brief §3.
   ============================================================ */

.fb-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fb-blue);
}
.fb-wordmark__beach {
  color: var(--fb-warm);
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.screen-reader-text:focus {
  position: static;
  width: auto; height: auto;
  margin: var(--space-2); padding: var(--space-3);
  clip: auto;
  background: var(--navy);
  color: var(--cream);
}
