/* ==========================================================================
   Jay Detail Co. — shared styles
   Brand: dusty blue #6080A0 on white. Premium, minimal, calm.
   ========================================================================== */

/* --- Fonts --------------------------------------------------------------
   Wordmark is the outlined "Emily Austin" script shipped as logo.svg — no
   web font needed. Body / headings use Barlow (a clean, condensed-friendly
   sans — not Inter / Roboto / Space Grotesk).
------------------------------------------------------------------------- */

:root {
  --blue: #6080a0;
  --blue-deep: #4c6885;
  --blue-tint: #eef2f6;
  --ink: #22282e;
  --ink-soft: #55606b;
  --line: #e4e9ee;
  --white: #ffffff;

  --maxw: 1100px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Barlow Semi Condensed", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow: 0 1px 2px rgba(34, 40, 46, 0.04),
            0 8px 30px rgba(34, 40, 46, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Reserve the scrollbar space on both sides so centered content
     (e.g. the pricing card in its tinted band) stays symmetric and
     doesn't shift left when the vertical scrollbar appears. */
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw + 0.6rem, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 1vw + 0.75rem, 1.4rem);
}

p {
  margin: 0 0 1.1em;
}

.label {
  font-family: var(--font-head);
  font-size: clamp(11px, 0.5vw + 0.5rem, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--tint {
  background: var(--blue-tint);
}

.narrow {
  max-width: 60ch;
}

/* --- Skip link ---------------------------------------------------------- */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-block: 0.35rem;
}

.wordmark img {
  display: block;
  width: auto;
  height: clamp(1.75rem, 1.6vw + 1.1rem, 2.5rem);
}

.wordmark:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-block: 0.25rem;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--blue-deep);
  text-decoration: none;
}

.nav__links a[aria-current="page"] {
  border-bottom: 2px solid var(--blue);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-deep);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue);
}

.btn--ghost:hover {
  background: var(--blue-tint);
  text-decoration: none;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Hero (full-bleed background video) ---------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: clamp(30rem, 78vh, 46rem);
  padding-block: clamp(3rem, 8vw, 6rem);
  /* Dusty-blue gradient shows before/behind the video so the empty
     placeholder state still looks intentional — never a broken-media box. */
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 55%, #3a5673 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim over the video/gradient for text legibility. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(24, 32, 42, 0.15) 0%,
    rgba(24, 32, 42, 0.35) 55%,
    rgba(24, 32, 42, 0.66) 100%
  );
}

.hero > .wrap {
  display: flex;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  color: #fff;
}

.hero__inner h1 {
  color: #fff;
}

/* Logo + tagline pinned to the top-right of the hero. */
.hero__logo-group {
  align-self: flex-end;
  text-align: right;
}

/* Lockup logo used as the hero headline — white on the dark video/gradient. */
.hero__logo {
  margin: 0;
}

.hero__logo img {
  width: clamp(180px, 30vw, 360px);
  height: auto;
  margin-left: auto;
  filter: brightness(0) invert(1);
}

.hero__tagline {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

/* Button pushed to the bottom, centered. */
.hero__cta {
  margin-top: auto;
  align-self: center;
}

.hero .label {
  color: #dbe6f1;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
}

/* --- Cards / grids ------------------------------------------------------ */

.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.35rem;
}

/* Cards whose price/footer should sit flush at the bottom, so a row of
   cards lines up evenly regardless of description length. */
.card--fill {
  display: flex;
  flex-direction: column;
}

.card--fill > :last-child {
  margin-top: auto;
  padding-top: 1rem;
}

.price-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0;
}

/* --- Media placeholders / gallery --------------------------------------- */
/* Honest empty states until real photos/video exist. Swap the inner markup
   for an <img>/<video> from /media later — the frame styling stays. */

.gallery {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--blue-tint),
      var(--blue-tint) 14px,
      #fff 14px,
      #fff 28px
    );
  color: var(--blue-deep);
  overflow: hidden;
}

.media-placeholder--wide {
  aspect-ratio: 16 / 9;
}

.media-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.media-placeholder__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

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

/* --- Booking coming-soon ------------------------------------------------- */

.booking {
  border: 1px dashed var(--blue);
  border-radius: 16px;
  background: var(--blue-tint);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.booking .pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.booking p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-inline: auto;
}

.booking__note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--blue-deep);
  background: var(--blue-tint);
  border: 1px solid var(--blue);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

/* --- Pricing table ------------------------------------------------------ */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  font-size: 1rem;
}

.price-table caption {
  text-align: left;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.price-table thead th {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
}

.price-table td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- Featured pricing card (focal point of the Services page) ------------ */

.wrap--wide {
  max-width: 1280px;
}

.pricing-card {
  padding: clamp(1.75rem, 4.5vw, 3.75rem);
  border-radius: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 2px 6px rgba(34, 40, 46, 0.05),
              0 34px 70px rgba(34, 40, 46, 0.12);
}

.pricing-card__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem);
}

.pricing-card > .price-note:first-of-type,
.pricing-card__sub {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.pricing-card .price-table {
  margin-block: 0.5rem 1.25rem;
}

/* Taller rows give the card more physical presence without changing type. */
.pricing-card .price-table th,
.pricing-card .price-table td {
  padding: 1.3rem 1rem;
}

.pricing-card .price-table tbody th {
  font-size: 1.1rem;
}

.pricing-card .price-table td {
  font-weight: 600;
  color: var(--ink);
}

/* Emphasize the Full Detail row as the headline offer. */
.pricing-card .price-table tr.is-featured th,
.pricing-card .price-table tr.is-featured td {
  background: var(--blue-tint);
}

.pricing-card .price-table tr.is-featured td {
  color: var(--blue-deep);
}

.pricing-card .price-table tr.is-featured th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.pricing-card .price-table tr.is-featured td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* --- Definition / info lists -------------------------------------------- */

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.info-list dt,
.info-list .k {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.15rem;
}

.info-list dd {
  margin: 0;
}

/* --- CTA band ----------------------------------------------------------- */

.cta-band {
  text-align: center;
}

.cta-band .btn-row {
  justify-content: center;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
}

.site-footer .wordmark {
  margin-bottom: 0.6rem;
}

.site-footer .wordmark img {
  height: 2.3rem;
}

.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--blue-deep);
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* --- Utilities ---------------------------------------------------------- */

.stack > * + * {
  margin-top: 1rem;
}

.muted {
  color: var(--ink-soft);
}

.center {
  text-align: center;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: clamp(2rem, 5vw, 3rem);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* --- Phone (<= 620px) --------------------------------------------------- */

@media (max-width: 620px) {
  /* Stack the header so the wordmark sits above centered nav links
     instead of the links cramping / wrapping beside it. */
  .site-header__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 0;
    padding-block: 0.7rem;
  }

  .nav {
    width: 100%;
  }

  .nav__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .nav__links a {
    padding-block: 0.45rem; /* larger tap target */
  }

  /* Give tight tables more room on narrow screens. */
  .price-table th,
  .price-table td {
    padding: 0.85rem 0.5rem;
  }

  .pricing-card {
    padding: 1.5rem 1.15rem;
  }

  .pricing-card .price-table th,
  .pricing-card .price-table td {
    padding: 1rem 0.5rem;
  }

  .pricing-card .price-table tbody th {
    font-size: 1rem;
  }

  /* Full-width CTA buttons are easier to tap on a phone. */
  .btn-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
