/*
Theme Name: Black Crest Limousine
Theme URI: https://blackcrestlimousine.com/
Author: Black Crest Limousine
Description: A custom one-page luxury transportation theme with direct Kovelink booking.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: black-crest-limousine
*/

:root {
  color-scheme: light;
  --ink: #111111;
  --charcoal: #181715;
  --soft-black: #090909;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: rgba(17, 17, 17, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --muted: #5c5953;
  --muted-light: #bbb7ae;
  --red: #d71920;
  --red-dark: #a70f15;
  --brass: #b8995b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  --max: 1180px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(9, 9, 9, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name,
.brand-line {
  display: block;
  white-space: nowrap;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-line {
  margin-top: -2px;
  color: var(--muted-light);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a,
.header-phone {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after,
.header-phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.header-phone:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-phone {
  justify-self: end;
  font-weight: 800;
  letter-spacing: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--white);
  place-items: center;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  background: var(--soft-black);
  color: var(--white);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.95) 0%, rgba(9, 9, 9, 0.68) 36%, rgba(9, 9, 9, 0.18) 78%),
    linear-gradient(0deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0) 42%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.04);
}

.hero-copy {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 72px) 0 188px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 7.7rem;
}

h2 {
  font-size: 4.8rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.12;
}

.hero-lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: #eee7de;
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(var(--max), calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
  border-top: 1px solid var(--line-light);
  background: rgba(9, 9, 9, 0.7);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  min-width: 0;
  padding: 24px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line-light);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel span {
  display: block;
  color: var(--white);
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1;
}

.hero-panel p {
  margin: 8px 0 0;
  color: var(--muted-light);
  font-size: 0.92rem;
}

.section {
  padding: clamp(78px, 10vw, 132px) clamp(18px, 4vw, 56px);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.service-grid {
  display: grid;
  gap: 18px;
}

.service-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line-light);
}

.service-item:last-child {
  border-bottom: 1px solid var(--line-light);
}

.service-code {
  color: var(--brass);
  font-weight: 900;
}

.service-item p {
  grid-column: 2;
  margin: -4px 0 0;
  color: var(--muted-light);
}

.fleet-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 8vw, 100px);
  align-items: center;
}

.fleet-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.fleet-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.fleet-specs div {
  min-width: 0;
  padding: 18px;
  background: var(--white);
}

.fleet-specs dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fleet-specs dd {
  margin: 6px 0 0;
  font-weight: 850;
}

.fleet-figure {
  position: relative;
  margin: 0;
  box-shadow: var(--shadow);
}

.fleet-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.fleet-figure figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  background: rgba(9, 9, 9, 0.78);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

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

.booking-layout {
  display: grid;
  gap: 34px;
}

.booking-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 6vw, 74px);
  align-items: end;
}

.booking-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.booking-widget-wrap {
  width: 100%;
  min-height: 560px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--line);
  background: #fbfaf7;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 80px);
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 16px;
}

.contact-methods a {
  display: grid;
  gap: 4px;
  padding: 24px 0;
  border-top: 1px solid var(--line-light);
  color: var(--white);
  font-size: 1.9rem;
  font-weight: 850;
}

.contact-methods a:last-child {
  border-bottom: 1px solid var(--line-light);
}

.contact-methods span {
  color: var(--brass);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--soft-black);
  color: var(--muted-light);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    padding: 16px;
    background: rgba(9, 9, 9, 0.96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 14px 8px;
  }

  .header-phone {
    display: none;
  }

  .hero-copy {
    padding: calc(var(--header-height) + 54px) 0 210px;
  }

  h1 {
    font-size: 5.7rem;
  }

  h2 {
    font-size: 3.7rem;
  }

  .split,
  .fleet-layout,
  .booking-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .brand-line {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 690px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(9, 9, 9, 0.58) 100%),
      linear-gradient(0deg, rgba(9, 9, 9, 0.96) 0%, rgba(9, 9, 9, 0.06) 56%);
  }

  h1 {
    max-width: 9.5ch;
    font-size: 3.68rem;
  }

  h2 {
    font-size: 2.88rem;
    line-height: 1.04;
  }

  .hero-lede {
    font-size: 1.04rem;
  }

  .hero-panel span {
    font-size: 2rem;
  }

  .hero-copy {
    padding-bottom: 150px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .hero-panel div {
    padding: 14px 12px;
    border-right: 1px solid var(--line-light);
    border-bottom: 0;
  }

  .hero-panel div:last-child {
    border-right: 0;
  }

  .hero-panel p {
    font-size: 0.78rem;
  }

  .service-item {
    grid-template-columns: 42px 1fr;
  }

  .fleet-specs {
    grid-template-columns: 1fr;
  }

  .booking-widget-wrap {
    min-height: 540px;
    padding: 8px;
  }

  .site-footer {
    display: grid;
  }
}
