/* ===================================================================
   FORGET THE OFFICE — Brand Design System
   Fonts: Juana (titles/serif) + Garet (body/sans) — licensed webfont
   files, self-hosted from assets/fonts/.
   =================================================================== */

@font-face {
  font-family: 'Juana';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Juana-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Juana';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Juana-RegularItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Garet';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Garet-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Garet';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Garet-Bold.woff2') format('woff2');
}

:root {
  /* Brand palette (from Forget the Office brand book) */
  --blue-klein: #3B5F95;   /* primary — headings, logo, links */
  --terracotta: #C28868;   /* warm accent — CTAs, highlights, section bg */
  --gold: #E7BB60;         /* accent — highlights, tags, text on dark */
  --green-clear: #B2C6AE;  /* legacy soft sage (replaced by terracotta) */
  --rajola: #E8E4DD;       /* warm greige/cream — section backgrounds (Aug 2026 brand book) */
  --beige: #E8DCC8;        /* warm beige text color */
  --off-white: #FFFFFF;

  --ink: var(--blue-klein);
  --bg: var(--off-white);

  --font-serif: 'Juana', 'Georgia', serif;
  --font-sans: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 0;
  --container: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--blue-klein);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.fto-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .fto-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--blue-klein);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

em, .fto-accent {
  font-style: italic;
  color: var(--terracotta);
}

p { margin: 0 0 16px; }

.fto-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--terracotta);
  margin-bottom: 12px;
  display: inline-block;
}

.fto-lede {
  font-size: 1.15rem;
  max-width: 620px;
  opacity: 0.9;
}

/* Buttons */
.fto-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.fto-btn--primary {
  background: var(--blue-klein);
  color: var(--off-white);
}
.fto-btn--primary:hover { background: #2e4c78; }

.fto-btn--accent {
  background: var(--terracotta);
  color: var(--off-white);
}
.fto-btn--accent:hover { background: #ab7154; }

.fto-btn--outline {
  background: transparent;
  border-color: var(--blue-klein);
  color: var(--blue-klein);
}
.fto-btn--outline:hover { background: var(--blue-klein); color: var(--off-white); }

/* Sections */
.fto-section { padding: 96px 0; }
.fto-section--sm { padding: 64px 0; }
.fto-section--cream { background: var(--rajola); }
.fto-section--klein { background: var(--blue-klein); color: var(--off-white); }
.fto-section--klein h1,
.fto-section--klein h2,
.fto-section--klein h3 { color: var(--off-white); }

/* Green as accent detail (not full background) */
.fto-green-detail {
  color: var(--green-clear);
}
.fto-headline--green {
  font-family: var(--font-serif);
  color: var(--green-clear);
  font-weight: 400;
}
.fto-badge--green {
  display: inline-block;
  background: var(--green-clear);
  color: var(--off-white);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0;
}

.fto-center { text-align: center; }
.fto-center .fto-lede { margin-left: auto; margin-right: auto; }

/* Grid */
.fto-grid {
  display: grid;
  gap: 32px;
}
.fto-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fto-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .fto-grid--2, .fto-grid--3 { grid-template-columns: 1fr; }
  .fto-section { padding: 64px 0; }
}

/* Cards */
.fto-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 2px 24px rgba(59, 95, 149, 0.08);
}
.fto-card--cream { background: var(--rajola); box-shadow: none; }

/* Nav */
.fto-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.fto-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--blue-klein);
  text-decoration: none;
}
.fto-logo em { color: var(--blue-klein); }
.fto-nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.fto-nav-links a {
  color: var(--blue-klein);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.fto-nav-links a:hover { color: var(--terracotta); }

/* Footer */
.fto-footer {
  background: var(--blue-klein);
  color: var(--off-white);
  padding: 56px 0 32px;
}
.fto-footer a { color: var(--off-white); }
.fto-footer .fto-logo, .fto-footer .fto-logo em { color: var(--off-white); }
.fto-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero media placeholder (swap for real photography) */
.fto-media {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-clear), var(--rajola));
  aspect-ratio: 4 / 3;
  width: 100%;
}

.fto-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-klein);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0;
  margin-bottom: 12px;
}

/* Scroll animations */
.fto-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fto-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fto-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}
.fto-fade-in.visible {
  opacity: 1;
}

.fto-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fto-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fto-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fto-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fto-scale-up {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fto-scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Add scroll animation trigger script inline in pages or via footer */

@media (max-width: 860px) {
  .fto-nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fto-nav-links { flex-wrap: wrap; gap: 16px 20px; }
}

/* ============================================================
   FULL-BLEED SECTIONS — for embedding each section as its own
   block inside GoHighLevel/Ivorey, whose centred column would
   otherwise box every section in. Each section breaks out to the
   full viewport width; its inner .fto-container keeps content
   centred at max 1140px, so the design reads as full-width bands
   with contained content. `overflow-x: clip` kills the 100vw
   scrollbar WITHOUT breaking sticky headers (unlike overflow:hidden).
   Harmless in a normal browser — sections are full-width already.
   ============================================================ */
html, body { overflow-x: clip; }
section[class*="fto-section"],
section.ftoc__section,
.home-hero, .pm-hero, .ab-hero, .wwu-hero, .faqp-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* Content inside stays comfortably centred; a touch more room on big screens */
.fto-container { width: 100%; }
