/* cgfamilystudio.com — built by CGFS Autopilot (website.py). Don't edit the copy in the site repo:
   the app rebuilds it. Mobile first; brand: Bebas Neue headings, Open Sans body, Roboto Mono for
   technical terms; #1E2B3C, white/#F8F9FA, #9D00FF accent. Text contrast >= 4.5:1 everywhere
   (#9D00FF is only used as a fill behind white text, or as text on white; on navy, #C77DFF). */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/OpenSans-Variable.ttf") format("truetype"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("../fonts/RobotoMono-Variable.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }

:root {
  --navy: #1E2B3C; --navy-2: #27384D; --ink: #1E2B3C; --muted: #4A5A6E; --paper: #F8F9FA; --white: #FFFFFF;
  --accent: #9D00FF; --accent-dark: #7A00C7; --accent-on-navy: #C77DFF; --line: #DCE1E7; --code-bg: #EEF0F4;
  --radius: 8px; --gap: 16px; --max: 1080px;
  --head: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Roboto Mono", Consolas, "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; line-height: 1.05; margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
code, .mono { font-family: var(--mono); font-size: .9em; background: var(--code-bg); padding: .08em .35em; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---- header */
.site-head { background: var(--navy); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand span { font-family: var(--head); font-size: 1.6rem; letter-spacing: .04em; white-space: nowrap; }
.brand:hover { color: var(--white); }
.nav-desk { display: none; }
.nav-desk a, .nav-mobile a { color: var(--white); text-decoration: none; font-weight: 600; }
.nav-desk a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--accent-on-navy); }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--navy-2); border-radius: var(--radius); padding: 8px; display: grid; min-width: 210px; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.nav-mobile nav a { padding: 10px 12px; border-radius: 6px; }
.nav-mobile nav a:hover { background: rgba(255,255,255,.08); }
@media (min-width: 820px) {
  .nav-desk { display: flex; gap: 22px; }
  .nav-mobile { display: none; }
}

/* ---- sections */
.hero { background: var(--navy); color: var(--white); padding: 48px 0 56px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { font-size: 1.15rem; max-width: 60ch; color: #E6EAF0; }
.hero .accent { color: var(--accent-on-navy); }
.section { padding: 48px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-title { background: var(--navy); color: var(--white); padding: 40px 0; }
.page-title h1 { margin: 0; color: var(--white); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.tools li { font-family: var(--mono); font-size: .9rem; background: var(--code-bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* ---- buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); background: var(--accent); color: var(--white); text-decoration: none; font-weight: 700; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.line { background: transparent; color: var(--accent-dark); border-color: var(--accent-dark); }
.btn.line:hover { background: var(--accent-dark); color: var(--white); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--gap); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card a.cover { display: block; aspect-ratio: 16 / 9; background: var(--navy); }
.card a.cover img { width: 100%; height: 100%; object-fit: cover; }
.card.product a.cover { aspect-ratio: 1 / 1; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body h3 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; letter-spacing: 0; line-height: 1.35; margin: 0; }
.card .body h3 a { color: var(--ink); text-decoration: none; }
.card .body h3 a:hover { color: var(--accent-dark); }
.card .meta { color: var(--muted); font-size: .9rem; margin: 0; }
.card .price { font-weight: 700; color: var(--accent-dark); margin: 0; }
.card .body .btn { margin-top: auto; align-self: flex-start; }
.empty { color: var(--muted); }
.more { margin-top: 20px; }

/* ---- the free toolkit band + newsletter */
.band { background: var(--accent); color: var(--white); padding: 40px 0; }
.band h2 { color: var(--white); }
.band p { max-width: 60ch; }
.band .btn { background: var(--white); color: var(--accent-dark); border-color: var(--white); }
.band .btn:hover { background: var(--paper); color: var(--accent-dark); }
.newsletter { border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.soon { display: inline-block; font-family: var(--mono); font-size: .8rem; background: var(--navy); color: var(--white); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* ---- contact form */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea { font: inherit; width: 100%; padding: 12px; border: 1px solid #9AA6B5; border-radius: var(--radius); background: var(--white); color: var(--ink); min-width: 0; }
.form textarea { min-height: 180px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.form .hp { display: none; }      /* the spam trap: people never see it, bots fill it */
.form-status { padding: 12px 14px; border-radius: var(--radius); }
.form-status.ok { background: #E7F6EC; color: #14532D; }
.form-status.err { background: #FDECEC; color: #7F1D1D; }
.form-status:empty { display: none; }

/* ---- footer */
.site-foot { background: var(--navy); color: #D7DDE5; padding: 32px 0; margin-top: 0; font-size: .95rem; }
.site-foot .wrap { display: grid; gap: 16px; }
.site-foot a { color: var(--white); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; }
.site-foot .copy { color: #B9C2CE; margin: 0; }

/* ---- the draft banner (preview only: a published page never carries it) */
.draft-banner { background: #FFF4D6; color: #5B4300; border-bottom: 1px solid #E8D08A; padding: 10px 0; font-size: .95rem; }
.preview-note { background: #E8EEFF; color: #1C2D6B; padding: 10px 14px; border-radius: var(--radius); }

@media (min-width: 760px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
