/* ==========================================================================
   Josh's Web Services — joshswebservices.design
   Design system mirrored from the live Wix site:
   Wix Madefor type, ink #2F2B36, ivory gradients, hairline pill buttons,
   inset media heroes with giant titles, charcoal footer.
   ========================================================================== */

:root {
  --ink: #2f2b36;           /* headings, footer, buttons — from live site */
  --body: #545454;          /* muted body copy */
  --black: #000000;
  --white: #ffffff;
  --ivory: #fff9e4;         /* warm section background */
  --panel: #eff1e0;         /* contact form panel */
  --card: #f7f7f7;          /* about cards */
  --line: rgba(47, 43, 54, 0.35);
  --font-text: "Wix Madefor Text", system-ui, sans-serif;
  --font-display: "Wix Madefor Display", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1060px, 94%);
  margin-inline: auto;
}

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

.site-header {
  background: var(--white);
  position: relative;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-block: 14px 12px;
  min-height: 83px;
}

.brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}
.brand:hover { text-decoration: none; }

.brand .wordmark {
  font-family: var(--font-text);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: block;
}

.brand .brand-sub {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-top: 10px;
}

.site-nav > ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  align-items: center;
  margin: 0;
}

.site-nav a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.site-nav a:hover { color: #8f8a99; text-decoration: none; }
.site-nav a.active { color: #8f8a99; }

/* Workshop dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.active > .nav-dropdown-toggle { color: #8f8a99; }

.nav-dropdown .caret { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .caret,
.nav-dropdown:focus-within .caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(47, 43, 54, 0.12);
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu li { width: 100%; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-bottom: 14px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

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

.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Hairline pill — "Learn More" / "Services" / "Send a Message" on live site */
.btn-pill {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: 0.8px solid var(--ink);
  border-radius: 50px;
  padding: 11px 30px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-pill:hover { background: var(--ink); color: var(--white); text-decoration: none; }

/* Rectangular hairline — "Get a Quote" on live services page */
.btn-square {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  border: 0.8px solid var(--black);
  border-radius: 0;
  padding: 11px 26px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-square:hover { background: var(--ink); border-color: var(--ink); color: var(--white); text-decoration: none; }

/* Solid dark pill — contact form submit on live site */
.btn-dark-pill {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 11px 30px;
  transition: opacity 0.2s;
  cursor: pointer;
}
.btn-dark-pill:hover { opacity: 0.85; text-decoration: none; }

/* ---------------------------- Banner hero (inset) -------------------------
   Live interior pages: photo/video banner inset from the page edges with
   soft rounded corners and a giant white title centered on top.        */

.banner-hero {
  position: relative;
  margin: 0 auto;
  width: min(1840px, calc(100% - 36px));
  border-radius: 10px;
  overflow: hidden;
  height: clamp(260px, 43vw, 440px);
  background: var(--ink);
}

.banner-hero img,
.banner-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-hero .banner-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: clamp(52px, 14vw, 150px);
  line-height: 1;
  text-align: center;
  z-index: 2;
}

/* -------------------------------- Sections ------------------------------- */

.section { padding: 80px 0; }

.section-title {
  font-size: clamp(30px, 4.4vw, 44.6px);
  font-weight: 400;
  color: var(--ink);
}

.section-title.center { text-align: center; }

.ivory-section {
  background: linear-gradient(353deg, var(--ivory) 62.068%, var(--white) 100%);
}

.lead-bold {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 22.4px);
  color: var(--black);
  line-height: 1.55;
}

.muted { color: var(--body); }

/* --------------------------- Coverage grid (home) -------------------------
   Live site: plain columns divided by hairline vertical rules.          */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.coverage-cell {
  padding: 40px 32px 48px;
  border-left: 1px solid var(--line);
}
.coverage-cell:first-child { border-left: none; }
.coverage-grid + .coverage-grid .coverage-cell { border-top: 1px solid var(--line); }

.coverage-cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
  margin-bottom: 18px;
}

.coverage-cell p {
  font-size: 16px;
  color: var(--black);
  line-height: 1.65;
}

/* ------------------------- Photo overlay sections (home) ------------------ */

.photo-band {
  position: relative;
  overflow: hidden;
}

.photo-band > .band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.photo-band > .container { position: relative; z-index: 1; }

/* ------------------------------ Cards (about) ----------------------------- */

.gray-card {
  background: var(--card);
  border-radius: 15px;
  padding: 44px 48px;
}

.gray-card h2 {
  font-size: clamp(28px, 4vw, 44.6px);
  font-weight: 400;
  margin-bottom: 26px;
}

.gray-card ul {
  list-style: disc;
  padding-left: 22px;
  color: var(--body);
}

.gray-card ul li {
  font-size: 16px;
  padding: 5px 0;
}

.gray-card a { text-decoration: underline; color: var(--body); }

/* --------------------------- Pricing columns (services) -------------------
   Live site: plain text columns, hairline rules, checkbox glyphs.       */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.plans-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }

.plan { display: flex; flex-direction: column; }

.plan h3 {
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 18px;
}

.plan .plan-tagline {
  font-size: 18px;
  color: var(--ink);
  min-height: 5.2em;
}

.plan .starting {
  text-align: center;
  font-size: 13px;
  color: var(--body);
  margin-top: 10px;
}

.plan .price {
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.plan ul { list-style: none; }

.plan ul li {
  font-size: 15px;
  color: var(--ink);
  padding: 7px 0 7px 30px;
  position: relative;
}

.plan ul li::before {
  content: "☑";
  position: absolute;
  left: 2px;
  top: 6px;
  font-size: 15px;
  color: var(--ink);
}

.plan ul li.not-included { color: var(--body); }
.plan ul li.not-included::before { content: "—"; top: 7px; }

.plan ul li.rule-above { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.plan ul li.rule-above::before { top: 13px; }

.plan .plan-cta { text-align: center; margin-top: auto; padding-top: 34px; }

.fine-print {
  font-size: 14px;
  color: var(--body);
  max-width: 560px;
  margin: 72px auto 0;
  text-align: left;
}

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

.form-panel {
  background: var(--panel);
  border-radius: 15px;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 6vw, 60px);
}

.form-panel .form-inner { max-width: 840px; margin-inline: auto; }

.form-field { margin-bottom: 22px; }

.form-field label {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  padding: 11px 14px;
  border: 1px solid #8b8b8b;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #9a9a9a; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-field textarea { resize: vertical; min-height: 90px; }

.check-group { margin-bottom: 22px; }
.check-group > span {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--ink);
  padding: 6px 0;
}

.check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.submit-btn {
  display: block;
  width: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.submit-btn:hover { opacity: 0.85; }

/* Honeypot — off-screen spam trap; real users never see or tab to it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Native FAQ (details/summary — no JS) */
.faq-native { max-width: 760px; margin: 0 auto; }
.faq-native details { border-bottom: 1px solid var(--line); }
.faq-native summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 18px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-native summary::-webkit-details-marker { display: none; }
.faq-native summary::after {
  content: "+";
  font-size: 22px;
  color: var(--body);
  flex-shrink: 0;
}
.faq-native details[open] summary::after { content: "\2013"; }
.faq-native details p {
  padding: 0 0 20px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
  max-width: 68ch;
}

/* Legal / long-form text pages */
.legal { max-width: 760px; }
.legal .section-title { margin-bottom: 6px; }
.legal .legal-updated { color: var(--body); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; font-weight: 400; margin: 32px 0 10px; }
.legal p { color: var(--body); margin-bottom: 14px; line-height: 1.7; }
.legal ul { color: var(--body); margin: 0 0 14px 1.2rem; line-height: 1.7; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--ink); text-decoration: underline; }
.legal .legal-note { font-size: 13px; color: var(--body); font-style: italic; margin-top: 28px; }

/* Cookie / privacy notice banner (injected by main.js on first visit) */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cookie-banner p { font-size: 14px; margin: 0; color: rgba(255, 255, 255, 0.9); }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-banner button:hover { background: #e9ecf2; }

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

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 40px 0 22px;
}

.site-footer .footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer .footer-wordmark {
  font-family: var(--font-text);
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}

.site-footer .footer-email {
  font-size: 15px;
  color: var(--white);
}
.site-footer .footer-email:hover { text-decoration: underline; }

.site-footer .footer-nav {
  display: flex;
  gap: 3.5rem;
}

.site-footer .footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer .footer-col-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.site-footer .footer-col a {
  color: var(--white);
  font-size: 15px;
}
.site-footer .footer-col a:hover { color: #8f8a99; text-decoration: none; }

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 30px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer .copyright { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.site-footer .footer-legal { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.site-footer .footer-legal:hover { color: #8f8a99; text-decoration: none; }

/* ----------------- Generic product-page helpers (CaptionCraft) ------------ */

.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 56px); }
.page-hero p { margin-top: 14px; max-width: 60ch; font-size: 18px; color: rgba(255, 255, 255, 0.75); }
.page-hero .eyebrow { color: #8f8a99; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 12px;
}

.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(28px, 4vw, 44.6px); font-weight: 400; }
.section-head p { margin-top: 0.8rem; color: var(--body); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border-radius: 15px;
  padding: 1.8rem;
}
.card .card-icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 0.6rem; color: var(--black); }
.card p { font-size: 15px; color: var(--body); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--ink); position: relative; }
.price-card .plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-card h3 { font-size: 20px; font-weight: 400; }
.price-card .price { font-size: 40px; color: var(--ink); margin: 0.4rem 0 0.2rem; }
.price-card .price small { font-size: 0.9rem; color: var(--body); }
.price-card .plan-tagline { font-size: 14px; color: var(--body); min-height: 3em; }
.price-card ul { list-style: none; margin: 1.1rem 0 1.5rem; flex-grow: 1; }
.price-card ul li {
  padding: 0.4rem 0 0.4rem 1.7rem;
  position: relative;
  font-size: 14px;
  color: var(--ink);
}
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.step {
  background: var(--card);
  border-radius: 15px;
  padding: 1.6rem;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 0.5rem; color: var(--black); }
.step p { font-size: 15px; color: var(--body); }

.section-dark { background: var(--ink); color: rgba(255, 255, 255, 0.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .step { background: rgba(255, 255, 255, 0.06); }
.section-dark .step h3 { color: var(--white); }
.section-dark .step p { color: rgba(255, 255, 255, 0.7); }
.section-dark .eyebrow { color: #8f8a99; }

.cta-banner {
  background: var(--ink);
  border-radius: 15px;
  padding: 56px 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}
.cta-banner h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 40px); font-weight: 400; }
.cta-banner p { margin: 0.8rem auto 1.6rem; max-width: 52ch; }
.cta-banner .btn-row { justify-content: center; }
.cta-banner .btn-pill { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.cta-banner .btn-pill:hover { background: var(--white); color: var(--ink); }

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 1rem 4%;
    z-index: 40;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: flex-start; gap: 0.9rem; margin: 0; }

  /* Workshop dropdown: static, labeled sub-list inside the mobile panel */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { pointer-events: none; color: rgba(47, 43, 54, 0.55); font-size: 14px; }
  .nav-dropdown .caret { display: none; }
  .nav-dropdown-menu {
    display: flex;
    position: static;
    transform: none;
    min-width: 0;
    margin-top: 6px;
    padding: 0 0 0 14px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .nav-dropdown-menu a { padding: 6px 0; }

  .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); }

  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-cell { border-left: none; border-top: 1px solid var(--line); }
  .coverage-cell:first-child { border-top: none; }
  .coverage-grid + .coverage-grid .coverage-cell:first-child { border-top: 1px solid var(--line); }

  .plans-grid, .plans-grid.two { grid-template-columns: 1fr; gap: 48px; }
  .plan .plan-tagline { min-height: 0; }

  .section { padding: 56px 0; }
}
