/* Better Take Studio — one-page site (draft)
   Brand colors and type from /workspace/business/brand/brand-identity.md
   Approved: Ink Navy, Slate Blue, Rec Coral, Deep Coral, Warm Sand, etc.
   Buttons: navy text on coral. Never white text on coral.
   Rec Coral on sand/white is large text or graphics only.
*/

:root {
  --ink-navy: #15233F;
  --slate-blue: #3D5A80;
  --rec-coral: #F2542D;
  --deep-coral: #C2410C;
  --warm-sand: #F4EFE6;
  --white: #FFFFFF;
  --charcoal: #1F2328;
  --steel-gray: #5F6773;
  --mist: #E3E7EE;

  --font-heading: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-accent: "Fraunces", Georgia, "Times New Roman", serif;

  --space: 1rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wide: 70rem;
  --prose: 38rem;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 2px rgb(21 35 63 / 0.06), 0 8px 24px rgb(21 35 63 / 0.06);
  --header-h: 4.25rem;
  --focus: 0 0 0 2px var(--warm-sand), 0 0 0 4px var(--rec-coral);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--warm-sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--deep-coral);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink-navy);
}

:focus-visible {
  outline: 2px solid var(--rec-coral);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink-navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
  color: var(--white);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-sand);
  border-bottom: 1px solid var(--mist);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  color: inherit;
}

.logo img,
.logo svg {
  width: clamp(10.75rem, 32vw, 13.5rem);
  height: auto;
}

.nav-toggle {
  margin-left: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-navy);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-toggle span {
  transform-origin: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn.header-cta {
  display: none;
}

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  padding: 0.25rem 0 0.5rem;
}

.site-nav a {
  color: var(--ink-navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.7rem 0.35rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--deep-coral);
  background: rgb(21 35 63 / 0.04);
}

#nav-box {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#nav-box:focus-visible + .nav-toggle {
  outline: 2px solid var(--rec-coral);
  outline-offset: 3px;
}

#nav-box:checked ~ .site-nav {
  display: flex;
}

#nav-box:checked + .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-box:checked + .nav-toggle span:nth-child(2) {
  opacity: 0;
}

#nav-box:checked + .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* When the checkbox is on, we still need the header to wrap */
.header-inner {
  flex-wrap: wrap;
}

@media (min-width: 52rem) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    padding: 0;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.7rem;
  }

  .btn.header-cta {
    display: inline-flex;
    margin-left: 0.5rem;
  }

  #nav-box:checked ~ .site-nav {
    display: flex;
    flex-direction: row;
  }
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--rec-coral);
  color: var(--ink-navy);
  border-color: var(--rec-coral);
}

.btn-primary:hover {
  background: #e44824;
  border-color: #e44824;
  color: var(--ink-navy);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 0.45);
}

.btn-secondary:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
  border-color: var(--white);
}

.btn-on-light {
  background: var(--ink-navy);
  color: var(--white);
  border-color: var(--ink-navy);
}

.btn-on-light:hover {
  background: #0f1a30;
  color: var(--white);
  border-color: #0f1a30;
}

/* ----- Layout ----- */

.section {
  padding: clamp(3.25rem, 7vw, 5.5rem) var(--gutter);
}

.section-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

h1, h2, h3, .logo {
  font-family: var(--font-heading);
}

h2 {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-navy);
}

h3 {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink-navy);
}

.lede,
.section-intro {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--charcoal);
  font-size: 1.0625rem;
}

.muted {
  color: var(--steel-gray);
}

/* ----- Hero ----- */

.hero {
  background: var(--ink-navy);
  color: var(--white);
  padding: clamp(3.5rem, 10vw, 7.5rem) var(--gutter);
}

.hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.hero-wordmark {
  width: clamp(12rem, 34vw, 17.5rem);
  margin: 0 0 1.5rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.15rem, 6.4vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 14ch;
}

.hero .lede {
  color: var(--mist);
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  line-height: 1.55;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  margin: 0;
  color: var(--mist);
  font-size: 0.9375rem;
}

.hero-meta strong {
  font-weight: 600;
  color: var(--white);
}

/* ----- What we make ----- */

.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}

.platform-card .icon-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rec-coral);
  margin-bottom: 0.85rem;
}

.platform-card p {
  margin: 0;
  color: var(--steel-gray);
  font-size: 0.975rem;
}

.audiences h3 {
  margin-bottom: 0.75rem;
}

.audiences p {
  margin: 0;
  max-width: 40rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  background: var(--white);
  border: 1px solid var(--mist);
  color: var(--ink-navy);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

@media (min-width: 40rem) {
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .platform-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----- How it works ----- */

.steps-section {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 0.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--ink-navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
}

.steps p {
  margin: 0;
  color: var(--steel-gray);
  font-size: 0.975rem;
}

.steps .note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-navy);
  font-weight: 600;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ----- Samples ----- */

.samples-note {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--rec-coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--charcoal);
  font-size: 0.975rem;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-card figcaption {
  margin-top: 0.75rem;
}

.sample-card strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 0.15rem;
}

.sample-card span {
  display: block;
  font-size: 0.875rem;
  color: var(--steel-gray);
}

.sample-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
  background: var(--ink-navy);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--mist);
  box-shadow: var(--shadow);
}

.sample-frame .rec-light {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--rec-coral);
  border-radius: 50%;
}

.sample-frame .ph-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rec-coral);
  margin: 0 0 0.5rem;
}

.sample-frame .ph-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.sample-frame .ph-ratio {
  font-size: 0.8rem;
  color: var(--mist);
  margin: 0;
}

@media (min-width: 40rem) {
  .sample-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sample-frame {
    max-width: none;
  }
}

/* ----- About ----- */

.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-copy p {
  margin: 0 0 1rem;
  max-width: var(--prose);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.slogan {
  margin: 0;
  padding: 1.5rem 0 0;
  max-width: 18ch;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.25;
  color: var(--ink-navy);
}

.slogan::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--rec-coral);
  margin-bottom: 1rem;
}

@media (min-width: 52rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 3.5rem;
    align-items: start;
  }

  .slogan {
    padding-top: 2.4rem;
  }
}

/* ----- Contact ----- */

.contact-section {
  background: var(--warm-sand);
}

.contact-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  max-width: 28rem;
}

.contact-list li {
  margin: 0;
}

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--deep-coral);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.125rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list .value {
  color: var(--ink-navy);
  font-weight: 600;
  font-size: 1.125rem;
}

.packages-note {
  margin: 0 0 1.5rem;
  color: var(--steel-gray);
  font-size: 0.975rem;
}

/* ----- Footer ----- */

.site-footer {
  background: var(--ink-navy);
  color: var(--mist);
  padding: 2rem var(--gutter);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.footer-wordmark {
  width: 10.5rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mist);
}

.footer-meta a {
  color: var(--mist);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (min-width: 40rem) {
  .footer-meta {
    margin-left: auto;
    text-align: right;
  }
}

/* ----- Reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle span {
    transition: none;
  }
}

/* ----- Print ----- */

@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .site-footer,
  .steps li::before,
  .sample-frame {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .hero h1,
  .hero .lede,
  h2,
  h3 {
    color: #000 !important;
  }
}

.contact-list .local-note {
  display: block;
  font-size: 0.975rem;
  font-weight: 400;
  color: var(--steel-gray);
}
