/* ═══════════════════════════════════════
   MAIN.CSS — Out Shine Web Design
   Global styles: reset, variables, nav, footer, shared

   Direction: "The Signed Sign" — a founder's written proposal
   (ruled sheet, signature) carried by sign-painter panels
   (navy fields, blush pinstripes, pill plaques, script accents).
   Two colors only: midnight navy + original blush. Blush is a
   fill under navy text, or text on navy — never text on white.
═══════════════════════════════════════ */

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

:root {
  --cream:      #ffffff;
  --bg:         #ffffff;
  --blush:      #CA9084;
  --blush-rgb:  202,144,132;
  --blush-soft: #e9cdc6;   /* lighter step of blush for hover fills (navy text stays AA) */
  --teal:       #122d52;   /* midnight navy (legacy name) */
  --teal-rgb:   18,45,82;
  --teal-deep:  #0b1d36;   /* pressed / hover state for navy surfaces */
  --teal-light: rgba(18,45,82,0.06);
  --ink:        #111111;
  --ink-soft:   rgba(0, 0, 0, 1);

  --font-serif:  'Young Serif', Georgia, serif;
  --font-sans:   'Barlow', system-ui, sans-serif;
  --font-script: 'Yellowtail', cursive;

  /* Headline emphasis: navy script with a blush shade on light grounds */
  --em-color:  var(--teal);
  --em-shade:  var(--blush);
  --focus:     var(--teal);

  /* Sign-painter pinstripe (plaque edge) */
  --pinstripe: inset 0 0 0 2px var(--teal), inset 0 0 0 4px var(--blush), inset 0 0 0 5px var(--teal);
  --pinstripe-panel: inset 0 0 0 3px var(--teal), inset 0 0 0 5px var(--blush), inset 0 0 0 8px var(--teal);

  /* Shared page materials: ruled proposal sheet, pinned-note shadow, blush tint */
  --ruled: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(var(--teal-rgb), .09) 31px 32px);
  --note-shadow: 0 2px 0 rgba(var(--teal-rgb), .08), 0 18px 30px -18px rgba(var(--teal-rgb), .45);
  --note-shadow-lift: 0 2px 0 rgba(var(--teal-rgb), .08), 0 26px 38px -18px rgba(var(--teal-rgb), .5);
  --tint: rgba(var(--blush-rgb), .16);

  --section-pad: 6rem 5rem;
  --nav-height: 72px;
}

/* Navy grounds flip the accent: blush script, no shade, blush focus */
footer, .nav, .background-section, .goals-quote, .gs-stat,
.faq-accordion-bar, .contact-info-block, .cta-banner {
  --em-color: var(--blush);
  --em-shade: transparent;
  --focus:    var(--blush);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--teal);
  caret-color: var(--teal);
}

::selection { background: var(--blush); color: var(--teal); }

a { text-underline-offset: 0.18em; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--blush);
  color: var(--teal);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* Long words in big display headings wrap instead of forcing sideways scroll on small phones */
h1, h2, h3 { overflow-wrap: break-word; }

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.85rem;
}
.eyebrow--light { color: var(--blush); }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--teal);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
/* Hero title: an h2 styled as the page title, so the keyword eyebrow can be the h1 */
.hero-title { font-size: clamp(2.6rem, 5.2vw, 4.6rem); margin-bottom: 0; }
/* Keyword eyebrow used as the h1: reset h1 styling back to the eyebrow look */
h1.eyebrow { font-family: inherit; font-weight: 600; font-size: 0.82rem; line-height: inherit; letter-spacing: 0.22em; text-wrap: wrap; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 1.25rem; }

/* Script emphasis, shade-lettered like a sign painter's drop shadow */
h1 em, h2 em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: 0;
  line-height: 1;
  padding-right: 0.06em;
  color: var(--em-color);
  text-shadow: 0.05em 0.05em 0 var(--em-shade);
}

p.lead {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  max-width: 540px;
}

/* ── BUTTONS ── pill plaques with a painted pinstripe */
.btn-primary {
  display: inline-block;
  background: var(--blush);
  color: var(--teal);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 1rem 2.4rem;
  border: none;
  border-radius: 999px;
  box-shadow: var(--pinstripe);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s cubic-bezier(.2,.8,.2,1);
}
.btn-primary:hover { background: var(--blush-soft); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 1rem 2.4rem;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s cubic-bezier(.2,.8,.2,1);
}
.btn-outline:hover { background: var(--teal); color: var(--cream); transform: translateY(-2px); }

.btn-outline--light {
  color: var(--cream);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline--light:hover { background: var(--cream); color: var(--teal); border-color: var(--cream); }

/* Light plaque for navy grounds */
.btn-primary--light {
  background: var(--cream);
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 4px var(--teal), inset 0 0 0 5px var(--cream);
}
.btn-primary--light:hover { background: var(--blush); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--teal);
  border-bottom: 3px solid var(--blush);
}
.nav-inner {
  position: relative;
  z-index: 205;
  max-width: 1240px;
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: var(--teal);
}

.nav-logo {
  position: relative;
  z-index: 201;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--cream);
  white-space: nowrap;
}
.nav-logo-text span {
  font-family: var(--font-script);
  font-size: 1.25em;
  color: var(--blush);
  margin-left: 0.1em;
}

/* ── Links (desktop) ── */
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-links-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1.2vw, 1rem);
}
.nav-link {
  position: relative;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .4rem .7rem;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .7rem; right: calc(100% - .7rem);
  bottom: -2px;
  height: 2px;
  background: var(--blush);
  transition: right .3s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover,
.nav-link.active { color: var(--cream); }
.nav-link:hover::after,
.nav-link.active::after { right: .7rem; }

.nav-cta {
  background: var(--blush);
  color: var(--teal);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--pinstripe);
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 1rem;
}
.nav-cta:hover { background: var(--blush-soft); }

/* ── Services dropdown ── */
.nav-item { position: relative; }
/* Desktop: stretch the item to the full nav height so the panel opens
   flush with the bottom of the bar and hover isn't lost crossing the gap. */
@media (min-width: 1081px) {
  .nav-links,
  .nav-links-center { align-self: stretch; }
  .nav-item {
    align-self: stretch;
    display: flex;
    align-items: center;
  }
}
.nav-item > .nav-link { padding-right: 1.6rem; }
.nav-item > .nav-link::before {
  content: "";
  position: absolute;
  right: .55rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.nav-dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  background: var(--cream);
  border-top: 3px solid var(--blush);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--note-shadow-lift);
  padding: .9rem;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  z-index: 210;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.open > .nav-dropdown { display: grid; }
/* Escape dismisses the hover/focus panel (WCAG 1.4.13) until the pointer or focus leaves */
.nav-item.dismissed > .nav-dropdown { display: none; }
.nav-dropdown li:first-child { grid-column: 1 / -1; }
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  height: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(var(--teal-rgb), .15);
  border-left: 4px solid var(--blush);
  border-radius: 4px;
  color: var(--teal);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-dropdown-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.2;
}
.nav-dropdown-desc {
  font-size: .86rem;
  line-height: 1.45;
  color: var(--ink);
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.active {
  background: var(--teal);
  border-color: var(--teal);
  border-left-color: var(--blush);
  color: var(--cream);
}
.nav-dropdown a:hover .nav-dropdown-desc,
.nav-dropdown a:focus-visible .nav-dropdown-desc,
.nav-dropdown a.active .nav-dropdown-desc { color: rgba(255,255,255,.82); }

/* ── Hamburger ── */
.nav-toggle {
  position: relative;
  z-index: 210;
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1.5px solid rgba(var(--blush-rgb), .7);
  border-radius: 999px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile / small laptop: the full link row no longer fits below ~1080px ── */
@media (max-width: 1080px) {
  .nav-inner { padding: 0 var(--gutter, 1.5rem); }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--teal);
    border-bottom: 3px solid var(--blush);
    padding: .5rem var(--gutter, 1.5rem) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    z-index: 199;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links-center { display: contents; }

  .nav-link {
    padding: 1rem .2rem;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    font-size: 1rem;
    color: var(--cream);
  }
  .nav-link::after { display: none; }
  .nav-link:hover,
  .nav-link.active { color: var(--blush); }

  /* Mobile: "Services" expands its list in place instead of navigating */
  .nav-item { display: flex; flex-direction: column; }
  .nav-item > .nav-link { padding-right: 2rem; }
  .nav-item > .nav-link::before { right: .5rem; }
  .nav-item.open > .nav-link { color: var(--blush); }
  .nav-item.open > .nav-link::before { transform: translateY(-30%) rotate(-135deg); }
  .nav-item:hover > .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown { display: none; }
  .nav-item.open > .nav-dropdown { display: grid; }
  .nav-dropdown {
    position: static;
    transform: none;
    width: auto;
    grid-template-columns: 1fr;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: .75rem 0 .5rem;
    gap: .5rem;
  }
  .nav-dropdown a {
    color: var(--cream);
    border-color: rgba(255,255,255,.14);
    border-left-color: var(--blush);
  }
  .nav-dropdown-desc { color: rgba(255,255,255,.75); }
  .nav-dropdown a:hover,
  .nav-dropdown a:focus-visible,
  .nav-dropdown a.active { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); border-left-color: var(--blush); }

  .nav-cta {
    margin: 1.25rem 0 0;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 1.05em 1.5em;
  }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 30px; }
  .nav-logo-text { font-size: 1.05rem; }
}

/* ── FOOTER ── */
footer {
  background: var(--teal);
  border-top: 3px solid var(--blush);
  padding: 4.5rem 5rem 2.5rem;
  color: var(--cream);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 2rem;
}
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--cream);
}
.footer-logo-text span {
  font-family: var(--font-script);
  font-size: 1.2em;
  color: var(--blush);
}
.footer-tagline {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  max-width: 260px;
}
.footer-heading {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.25rem;
}
/* The footer's audit hook is set inline in italic; Young Serif has no italic cut */
footer p[style] { font-style: normal !important; font-size: 1.2rem !important; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.6rem; }
.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--blush); }
.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  stroke: var(--blush);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a {
  color: inherit;
  text-decoration: none;
  padding: .2rem 0;
  margin: -.2rem 0;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--blush); text-decoration: underline; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--blush-rgb), .7);
  color: var(--cream);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--blush); color: var(--teal); transform: translateY(-2px); }
.footer-social svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
/* Facebook glyph is a solid shape, not a stroke icon — fill it instead */
.footer-social a:first-child svg {
  stroke: none;
  fill: currentColor;
}
.footer-cta-block { text-align: right; }
.footer-cta-hook {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.72); }
.footer-legal { font-size: 0.82rem; color: rgba(255,255,255,0.72); }
.footer-legal a { color: inherit; text-decoration: underline; }
.footer-legal a:hover { color: var(--blush); }

/* ── PAGE SHEETS ──
   Inner-page heroes and closing calls share the homepage's ruled
   proposal sheet: white paper, faint navy rules, a blush margin line. */
.about-hero, .services-hero, .pricing-hero, .portfolio-hero, .contact-hero,
.blog-hero, .post-hero, .work-hero, .notfound-hero, .thankyou-hero,
.about-cta, .services-cta, .pricing-cta, .work-cta, .post-cta {
  background: var(--cream) var(--ruled);
  color: var(--ink);
  position: relative;
}
.about-hero::before, .services-hero::before, .pricing-hero::before, .portfolio-hero::before,
.contact-hero::before, .blog-hero::before, .post-hero::before, .work-hero::before,
.notfound-hero::before, .thankyou-hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 3.2rem;
  width: 2px;
  background: var(--blush);
  pointer-events: none;
}
.about-cta, .services-cta, .pricing-cta, .work-cta, .post-cta {
  border-top: 3px double var(--blush);
}
.sign-off {
  font-family: var(--font-script);
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--teal);
}

/* ── SECTION BASE ── */
section { padding: var(--section-pad); }

/* ── CHECKMARK LIST ── */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.check-list li::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--blush);
  box-shadow: inset 0 0 0 1.5px var(--teal);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23122d52' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════
   TABLET (≤ 1100px)
══════════════════════ */
@media (max-width: 1100px) {
  :root { --section-pad: 5rem 3rem; }
  footer { padding: 4rem 3rem 2rem; }
  .footer-inner { gap: 2rem; }
}

/* ══════════════════════
   MOBILE (≤ 768px)
══════════════════════ */
@media (max-width: 768px) {
  :root { --section-pad: 4rem 1.5rem; }

  .about-hero::before, .services-hero::before, .pricing-hero::before, .portfolio-hero::before,
  .contact-hero::before, .blog-hero::before, .post-hero::before, .work-hero::before,
  .notfound-hero::before, .thankyou-hero::before { left: 0.75rem; }

  p.lead { font-size: 1.12rem; }
  .check-list li { font-size: 1.05rem; }

  footer { padding: 3rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cta-block { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-heading { font-size: 0.78rem; }
  .footer-copy, .footer-legal { font-size: 0.88rem; }
}
