/* Detrás Co.: site styles
   Palette locked 2026-08-11: brand-assets/color-palette-2026-08-11.md */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype-variations"),
       url("assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --baltic-blue: #33658A;
  --sky-reflection: #86BBD8;
  --black: #040303;
  --vanilla-custard: #E3DC95;
  --copperwood: #BB6D10;

  --cream: #FAF6E9;       /* lightened Vanilla Custard for page background */
  --copperwood-dark: #96590D;
  --ink: #17140F;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(4, 3, 3, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--baltic-blue); text-decoration: none; }
a:hover { color: var(--copperwood); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--copperwood-dark);
  margin-bottom: 0.6em;
}
.eyebrow.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--copperwood);
  color: #fff;
}
.btn-primary:hover {
  background: var(--copperwood-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--baltic-blue);
  border-color: var(--baltic-blue);
  padding: 0.7em 1.4em;
}
.btn-ghost:hover {
  background: var(--baltic-blue);
  color: #fff;
}
.btn-small { padding: 0.55em 1.2em; font-size: 0.85rem; }
.btn-large { padding: 1em 2em; font-size: 1.05rem; }
.site-nav .nav-cta {
  /* default state, per Pierce 2026-08-11: black text on a Vanilla Custard (#E3DC95) background, explicit so it can't drift if .site-nav a or .btn-primary change. */
  background: #E3DC95;
  color: var(--black);
  transition: color 0s, background 0s;
}
.site-nav .nav-cta:hover {
  /* header "Book a Strategy Call" only, per Pierce 2026-08-11. Scoped under .site-nav so it beats .site-nav a:hover's specificity.
     Background intentionally left unset here: the E3DC95 default background carries through on hover (equal specificity,
     later in source wins), and #BB6D10 text has good contrast against that light cream on its own, no need to darken it.
     transform/box-shadow overridden to none: the 1px lift from .btn-primary:hover shifted the button under the cursor on this
     small target, flickering the hover state. transition set to 0s so the swap is instant and exact, no blended frames. */
  color: #BB6D10;
  transition: color 0s;
  transform: none;
  box-shadow: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(4, 3, 3, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 2px; /* trimmed tight, per Pierce 2026-08-11: minimal but the logo still fits comfortably */
}
.brand-logo { height: 198px; width: auto; } /* 132px x 1.5, per Pierce 2026-08-11 */

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--copperwood); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-compact { min-height: 56vh; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* landscape source, mild upward bias to keep the group's faces in frame */
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,3,3,0.55) 0%, rgba(4,3,3,0.72) 60%, rgba(4,3,3,0.86) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 90px;
  max-width: 760px;
}
.hero .eyebrow { color: var(--vanilla-custard); }
.hero h1 { color: #fff; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.6em;
  align-items: center;
}
.hero-ctas .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.hero-ctas .btn-ghost:hover {
  background: #fff;
  color: var(--baltic-blue);
}

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid rgba(4,3,3,0.06); }

.value-prop { background: var(--cream); }
.two-bad-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1.6em 0;
}
.option-card {
  background: #fff;
  border: 1px solid rgba(4,3,3,0.08);
  border-radius: var(--radius);
  padding: 24px;
}
.option-card h3 {
  color: var(--copperwood-dark);
  margin-bottom: 0.4em;
  font-size: 1.05rem;
}
.faq { background: var(--cream); }
.faq-intro { margin-bottom: 2.4em; }
.hero-tight .breadcrumb { margin-bottom: 0.5em; }
.hero-tight .eyebrow { margin-bottom: 0.35em; }
.hero-tight h1 { margin-bottom: 0.3em; }
.hero-tight + .wrap { margin-top: 2em; }
.breadcrumb {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(4,3,3,0.45);
  margin-bottom: 1.2em;
}
.faq-list { margin-top: 1.6em; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(4,3,3,0.08);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.faq-item h3 {
  color: var(--baltic-blue);
  margin-bottom: 0.4em;
  font-size: 1.05rem;
}
.faq-item p { margin: 0; }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  color: var(--baltic-blue);
  border-left: 4px solid var(--copperwood);
  padding-left: 20px;
  margin-top: 1.8em;
}
.pull-quote.center {
  border-left: none;
  padding-left: 0;
  text-align: center;
  color: var(--vanilla-custard);
}

/* Blog */
.article-meta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(4,3,3,0.5);
  margin: 0.6em 0 0;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2em;
}
.article-body { padding-top: 2.4em; }
.article-body h2 { margin-top: 1.5em; }
.article-body h3 { margin-top: 1.2em; color: var(--baltic-blue); font-size: 1.05rem; }
.article-body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.source-note {
  font-size: 0.85rem;
  color: rgba(4,3,3,0.55);
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(4,3,3,0.08);
}
.source-note a { color: rgba(4,3,3,0.55); text-decoration: underline; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.4em;
}
.blog-card {
  background: #fff;
  border: 1px solid rgba(4,3,3,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card .article-meta { margin: 0 0 0.6em; }
.blog-card h3 { color: var(--ink); margin-bottom: 0.5em; }
.blog-card p { color: rgba(4,3,3,0.72); font-size: 0.95rem; }
.blog-card .read-more { font-weight: 600; }
#blog-intro { padding-bottom: 24px; }
.section.blog-posts { padding-top: 8px; border-top: none; }

.guide { background: var(--baltic-blue); color: #fff; }
.guide h2, .guide h3 { color: #fff; }
.guide .eyebrow { color: var(--vanilla-custard); }
.guide p { color: rgba(255,255,255,0.92); }
.guide-dark { background: var(--ink); }
.services-pillars { margin-top: 2.4em; }

/* Services page: tagline above, service name as the big title */
.service-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--copperwood-dark);
  margin-bottom: 0.5em;
}
.guide .service-tagline { color: var(--vanilla-custard); }
.guide p a { color: var(--vanilla-custard); }
.guide p a:hover { color: #fff; }
h2.service-name { font-size: clamp(1.75rem, 3.9vw, 2.6rem); }
.services-pillars .option-card h3 { font-size: 1.35rem; }
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.guide-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work { background: var(--cream); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2em;
}
.photo-grid img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plan { background: #fff; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 2.4em;
}
.plan-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 24px;
}
.plan-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.plan-card img.plan-img-tall {
  /* same 4:3 card size as the other two; crop pulls from the bottom (the drink) so the hands stay fully in frame, per Pierce 2026-08-11 */
  object-position: center top;
}
.plan-card h3, .plan-card p {
  padding-left: 24px;
  padding-right: 24px;
}
.plan-card h3 { margin-top: 0.6em; color: var(--baltic-blue); }
.plan-card.text-only {
  /* no image to push the badge out of the way, so pad the card itself; the badge stays absolute at top:14px */
  padding-top: 56px;
}
.plan-card.text-only h3 { margin-top: 0; }
.plan-number {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--copperwood);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.checklist-body { background: var(--cream); }
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 2.4em;
}
.checklist-item {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(4,3,3,0.08);
  border-radius: var(--radius);
  padding: 24px 24px 24px 64px;
}
.checklist-item .plan-number {
  position: absolute;
  top: 24px;
  left: 20px;
}
.checklist-grid .checklist-item:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 12px);
  margin: 0 auto;
}
.checklist-item h3 { color: var(--baltic-blue); margin-bottom: 0.3em; }
.checklist-item p { margin: 0; font-size: 0.95rem; }

.transformation { background: var(--ink); color: #fff; }
.transformation-media {
  margin: 0 auto 48px;
  max-width: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.transformation-media img { aspect-ratio: 21 / 9; object-fit: cover; }
.transformation h2 { color: #fff; margin-bottom: 1em; }
.transform-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
}
.transform-table th, .transform-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.transform-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--vanilla-custard);
}
.transform-table th:first-child, .transform-table td:first-child {
  color: rgba(255,255,255,0.6);
}
.transform-table th:last-child, .transform-table td:last-child {
  color: #fff;
}
.transform-table tr:last-child td { border-bottom: none; }

.cta-band {
  background: var(--copperwood);
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: 1.05rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--copperwood-dark);
}
.cta-band .btn-primary:hover {
  background: var(--ink);
  color: #fff;
}

.contact { background: var(--vanilla-custard); }
.contact-note { font-size: 0.95rem; color: rgba(4,3,3,0.75); }

/* Contact form */
.contact-form-section { background: #fff; }
.form-intro { color: rgba(4,3,3,0.7); margin-top: -0.4em; margin-bottom: 2em; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 1em;
  border: 1px solid rgba(4,3,3,0.2);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus {
  outline: none;
  border-color: var(--baltic-blue);
  background: #fff;
}
.form-field-full { grid-column: 1 / -1; }
.optional-tag { font-weight: 400; color: rgba(4,3,3,0.5); text-transform: none; }

.services-dropdown { position: relative; font-family: var(--font-body); }
.services-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.75em 1em;
  border: 1px solid rgba(4,3,3,0.2);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
.services-dropdown summary::-webkit-details-marker { display: none; }
.services-dropdown summary::after {
  content: "\25BE";
  float: right;
  color: rgba(4,3,3,0.5);
}
.services-dropdown[open] summary {
  border-color: var(--baltic-blue);
  background: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.services-dropdown-list {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--baltic-blue);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 0.5em;
  box-shadow: var(--shadow);
}
.services-dropdown-list label {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.92rem;
  font-weight: 400;
  padding: 0.5em 0.6em;
  border-radius: 6px;
  cursor: pointer;
}
.services-dropdown-list label:hover { background: var(--cream); }
.services-dropdown-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--baltic-blue);
  flex-shrink: 0;
}

.contact-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.5em;
}
.form-success {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 2em 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo {
  height: 198px; /* matches the header logo, per Pierce 2026-08-11 */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: inline-flex; color: rgba(255,255,255,0.7); }
.footer-social a:hover { color: var(--vanilla-custard); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label {
  margin: 0 0 2px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--vanilla-custard); }
.footer-copy { font-size: 0.82rem; margin: 0; width: 100%; text-align: center; color: rgba(255,255,255,0.5); }
.footer-legal { font-size: 0.78rem; margin: 8px 0 0; width: 100%; text-align: center; color: rgba(255,255,255,0.4); }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--vanilla-custard); }

/* Responsive */
@media (max-width: 860px) {
  .two-bad-options,
  .guide-grid,
  .plan-grid,
  .checklist-grid,
  .contact-form { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-media { order: -1; }
  .checklist-grid .checklist-item:last-child { max-width: none; margin: 0; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(4,3,3,0.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .site-nav .nav-cta {
    /* .site-nav a's padding/width above was winning over the button's own .btn-small padding by specificity,
       squishing it to 0 horizontal padding with left-aligned text: same category of bug as the color issue. */
    padding: 0.75em 1.2em;
    text-align: center;
    margin-top: 8px;
  }
  .nav-toggle { display: flex; }
  .brand-logo, .footer-logo { height: 126px; } /* 84px x 1.5, scaled back from 198px so it doesn't crowd the hamburger / footer */
  .section { padding: 64px 0; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-social { justify-content: center; }
  .footer-links { justify-content: center; text-align: center; }
  .footer-col { align-items: center; }
  .blog-grid { grid-template-columns: 1fr; }
}
