/* ==========================================================================
   Actual247 — shared stylesheet
   Link on every page:  <link rel="stylesheet" href="/css/style.css">
   Spacing: 4px base unit. Gap between page sections: 72px.
   ========================================================================== */

:root {
  /* Colors from the design sheet */
  --c-dark: #333333;      /* header, footer, background 2 */
  --c-mid: #4d4d4d;       /* background 3, text notes */
  --c-link: #ff9900;      /* links, navbar links, footer links */
  --c-brand: #ff6600;     /* background 1, active page, text emphasis, final CTA */
  --c-hover: #ffa366;     /* alternate background for mouse-over sections */
  --c-heading: #000000;   /* headings 1-4 */
  --c-body: #1a1a1a;      /* body text */
  --c-white: #ffffff;     /* alternate text */

  /* Spacing: multiples of 4px */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --gap-section: 72px;

  --radius: 15px;
  --header-h: 70px;
  --max-w: 1200px;

  --font-head: "Poppins", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-white);
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--s-4);
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.12; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

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

a { color: var(--c-link); }

:focus-visible { outline: 3px solid var(--c-dark); outline-offset: 3px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-6); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--c-white); color: var(--c-heading);
  font-family: var(--font-head); font-weight: 600;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s-2); }

.emphasis { color: var(--c-brand); }
.emphasis-block {
  display: inline-block;
  background: var(--c-dark); color: var(--c-white);
  padding: 0 var(--s-2); border-radius: 8px;
}

.eyebrow {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-head); font-weight: 600; font-size: .8125rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-mid); margin: 0 0 var(--s-2);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--c-brand); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--s-8); }
.section-head .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  padding: var(--s-3) var(--s-6);
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-heading); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--c-hover); border-color: var(--c-hover); }
.btn-dark { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-white); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--c-mid); border-color: var(--c-mid); }

/* ---------- Header / navbar ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--c-dark);
  border-bottom: 3px solid var(--c-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.site-header :focus-visible { outline-color: var(--c-white); }

.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--s-3) var(--s-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
.logo { display: block; line-height: 0; }
.logo img { height: 40px; width: auto; display: block; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-list li { display: flex; align-items: center; }
.nav-list li + li::before {
  content: "|"; color: var(--c-brand);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0 var(--s-1);
}
.nav-list li.nav-cta::before { content: none; }
.nav-list a:not(.btn) {
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  text-transform: uppercase; text-decoration: none;
  color: var(--c-link);
  padding: var(--s-2) var(--s-3);
}
.nav-list a:not(.btn):hover,
.nav-list a:not(.btn):focus-visible { color: var(--c-hover); text-decoration: underline; text-underline-offset: 6px; }
.nav-list a[aria-current="page"] { color: var(--c-brand); }
.nav-cta { margin-left: var(--s-4); }
.nav-cta .btn { text-transform: uppercase; font-size: 14px; font-weight: 700; padding: var(--s-2) var(--s-5); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 2px solid var(--c-brand); border-radius: var(--radius);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle .bar { display: block; width: 22px; height: 3px; background: var(--c-link); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile and tablet: hamburger menu */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-dark);
    border-bottom: 3px solid var(--c-brand);
    padding: var(--s-4) var(--s-6) var(--s-6);
  }
  .primary-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .nav-list li { display: block; }
  .nav-list li + li::before { content: none; }
  .nav-list a:not(.btn) { display: block; padding: var(--s-3) 0; }
  .nav-cta { margin: var(--s-4) 0 0; }
  .nav-cta .btn { display: block; }
}

/* ---------- Page layout ---------- */
main { display: flex; flex-direction: column; gap: var(--gap-section); padding-top: var(--s-6); }

/* Full-width background 1 (orange) band */
.band { background: var(--c-brand); padding: var(--s-12) 0; }
.band .eyebrow { color: var(--c-body); }
.band .eyebrow::before { background: var(--c-dark); }
.band :focus-visible { outline-color: var(--c-dark); }

/* ---------- Placeholders ---------- */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem;
  color: var(--c-body);
  border: 2px dashed rgba(26, 26, 26, .55); border-radius: var(--radius);
  background: rgba(255, 255, 255, .35);
  padding: var(--s-6);
}

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.hero-copy .lead { font-size: 1.25rem; max-width: 520px; margin-bottom: var(--s-6); }
.hero-media {
  position: relative; overflow: hidden;
  background: var(--c-brand); border-radius: var(--radius);
  min-height: 440px; display: flex; padding: var(--s-6);
}
.hero-media::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--c-hover); opacity: .7;
}
.hero-media .placeholder { position: relative; width: 100%; }

/* ---------- Supporting hero (video + local intro) ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.video-embed {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--c-dark); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3);
  color: var(--c-white); font-family: var(--font-head); font-weight: 600; font-size: .9375rem;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-brand); color: var(--c-heading);
  display: flex; align-items: center; justify-content: center;
}
.play-badge svg { width: 32px; height: 32px; fill: currentColor; }

.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin: var(--s-6) 0; }
.benefit h3 { font-size: 1.0625rem; margin-bottom: var(--s-2); }
.benefit p { font-size: .9375rem; margin: 0; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-brand); color: var(--c-heading);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
}
.icon-badge svg { width: 24px; height: 24px; fill: currentColor; }
.band .icon-badge { background: var(--c-dark); color: var(--c-link); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-white);
  border: 1px solid rgba(26, 26, 26, .18);   /* faint outline when not engaged */
  border-radius: var(--radius);
  padding: var(--s-8) var(--s-6) var(--s-6);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.service-card:hover,
.service-card:focus-within,
.service-card:active {
  background: var(--c-hover);
  border-color: var(--c-brand);
  transform: translateY(-2px);
}
.service-card:focus-within { outline: 3px solid var(--c-dark); outline-offset: 3px; }
.service-card .num {
  position: absolute; top: var(--s-4); right: var(--s-5);
  font-family: var(--font-head); font-weight: 700; font-size: 3rem; line-height: 1;
  color: rgba(26, 26, 26, .08);
}
.service-card h3 { border-left: 4px solid var(--c-brand); padding-left: var(--s-3); margin-bottom: var(--s-2); }
.service-card .tagline { font-weight: 500; margin-bottom: var(--s-3); }
.service-card ul { margin: 0 0 var(--s-6); padding-left: var(--s-5); }
.service-card li { margin-bottom: var(--s-1); }
.service-card .card-link {
  margin-top: auto;
  font-family: var(--font-head); font-weight: 600; font-size: .9375rem;
  color: var(--c-body);
  text-decoration: underline; text-decoration-color: var(--c-brand);
  text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.service-card .card-link:focus-visible { outline: none; }
.service-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is clickable */

/* ---------- Problem / solution flip cards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.flip {
  display: block; width: 100%; height: 300px;
  padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit; perspective: 1000px;
}
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transition: transform .6s ease; transform-style: preserve-3d; }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .flip-inner { transform: rotateY(180deg); } }

.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--radius); padding: var(--s-6);
}
.face .tag {
  font-family: var(--font-head); font-weight: 600; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-3);
}
.face-title {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  line-height: 1.2; color: var(--c-heading); margin-bottom: var(--s-3);
}
.face-text { display: block; font-size: .9375rem; }
.face-front { background: var(--c-white); border: 1px solid rgba(26, 26, 26, .18); }
.face-front .tag { color: var(--c-mid); }
.face-back { background: var(--c-brand); color: var(--c-body); transform: rotateY(180deg); }
.face-back .tag { color: var(--c-body); }
.flip-hint { text-align: center; font-size: .875rem; color: var(--c-mid); margin: var(--s-4) 0 0; }

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; transform: none !important; }
  .face-back { transform: none; opacity: 0; }
  .flip.is-flipped .face-front { opacity: 0; }
  .flip.is-flipped .face-back { opacity: 1; }
  @media (hover: hover) {
    .flip:hover .face-front { opacity: 0; }
    .flip:hover .face-back { opacity: 1; }
  }
}

.imagine { text-align: center; max-width: 760px; margin: var(--s-12) auto 0; }
.imagine .eyebrow { justify-content: center; }

/* ---------- Working local ---------- */
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.local-media {
  position: relative; overflow: hidden; display: flex; min-height: 420px; padding: var(--s-6);
  background: var(--c-brand); border-radius: var(--radius) var(--radius) 140px var(--radius);
}
.local-media::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%; background: var(--c-hover); opacity: .7;
}
.local-media .placeholder { position: relative; width: 100%; }

/* ---------- Final call to action / book now ---------- */
.book-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.book-inner .eyebrow { justify-content: center; }
.scheduler-placeholder {
  height: 500px; margin-top: var(--s-6);
  background: var(--c-white); border: 2px dashed var(--c-dark); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-head); font-weight: 600; color: var(--c-body); padding: var(--s-6);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: var(--c-white); margin-top: var(--gap-section); }
.site-footer :focus-visible { outline-color: var(--c-white); }
.footer-top {
  max-width: var(--max-w); margin: 0 auto; padding: var(--s-12) var(--s-6) var(--s-8);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8);
}
.footer-brand img { height: 40px; width: auto; display: block; margin-bottom: var(--s-4); }
.footer-brand p { font-size: .9375rem; max-width: 320px; }
.footer-heading {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--c-white); margin: 0 0 var(--s-4);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--s-2); }
.footer-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .9375rem;
  color: var(--c-link); text-decoration: none;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--c-hover); text-decoration: underline; text-underline-offset: 4px; }

.footer-line { border: 0; border-top: 1px solid var(--c-mid); margin: 0; width: 100%; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: var(--s-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .875rem; }
.social { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.social a {
  --social-bg: var(--c-brand);
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--social-bg); color: var(--c-heading);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background-color .2s ease;
}
.social a:hover, .social a:focus-visible { --social-bg: var(--c-hover); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .intro-grid, .local-grid { grid-template-columns: 1fr; }
  .hero-media, .local-media { min-height: 320px; }
  .service-grid { grid-template-columns: 1fr; }
  .local-grid .local-media { order: 2; }
}

@media (max-width: 560px) {
  :root { --gap-section: 72px; }
  .container, .header-inner, .footer-top, .footer-bottom { padding-left: var(--s-4); padding-right: var(--s-4); }
  .band { padding: var(--s-10) 0; }
  .benefits { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: 1fr; }
  .flip { height: 260px; }
  .footer-top { grid-template-columns: 1fr; }
  .scheduler-placeholder { height: 500px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   a247works.com additions (demo site)
   ========================================================================== */

/* Logo with "Works" tag */
.logo { display: flex; align-items: center; gap: var(--s-2); line-height: 1; }
.logo-works {
  font-family: var(--font-head); font-weight: 700; font-size: .875rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-white);
  border-left: 2px solid var(--c-brand); padding-left: var(--s-2);
}

/* Two main topics */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.topic-grid .service-card { padding-bottom: var(--s-8); }
.topic-grid .tagline { font-size: 1.125rem; }

/* Demo cards */
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.demo-grid .service-card { min-height: 200px; padding-bottom: var(--s-6); }
.demo-grid .tagline { margin-bottom: var(--s-6); }
.section-note { text-align: center; font-size: .9375rem; color: var(--c-mid); margin: var(--s-6) 0 0; }

.cta-copy { max-width: 640px; margin: 0 auto var(--s-6); }

.footer-top.three { grid-template-columns: 1.4fr 1fr 1fr; }

@media (max-width: 1100px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .demo-grid { grid-template-columns: 1fr; }
  .footer-top.three { grid-template-columns: 1fr; }
}

.hero-secondary { margin: var(--s-4) 0 0; }
.topic-grid .service-card h3 { padding-right: 56px; }
