/*
Theme Name: Vachon Rental Cars
Theme URI: https://vachonrentalcars.com/
Author: Vachon Rental Company
Description: Custom editable WordPress theme for Vachon Rental Cars in Cranston, Rhode Island.
Version: 1.0.8
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: vachon-rental-cars
*/

:root {
  --ink: #0b1020;
  --ink-soft: #1c2335;
  --blue: #343da7;
  --blue-bright: #5969ff;
  --blue-pale: #eef0ff;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --line: #dfe4ed;
  --muted: #626b7c;
  --success: #177a4e;
  --warning-bg: #fff4d7;
  --warning-ink: #765516;
  --shadow: 0 22px 60px rgba(13, 20, 40, .12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(89, 105, 255, .5);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-kicker { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; }

h1, h2, h3 { margin-top: 0; font-weight: 760; letter-spacing: -.045em; line-height: 1.02; }

h1 { max-width: 900px; margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.25rem); }

h2 { margin-bottom: 22px; font-size: clamp(2.15rem, 4.4vw, 4.15rem); }

h3 { margin-bottom: 12px; font-size: clamp(1.3rem, 2vw, 1.72rem); }

p { margin-top: 0; }

.topline {
  padding: 9px 0;
  color: #fff;
  background: var(--ink);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.topline .shell { display: flex; justify-content: space-between; gap: 20px; }
.topline a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(223, 228, 237, .85);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.nav-wrap { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 30px; }

.brand { flex: 0 0 auto; }
.brand .custom-logo-link { display: block; }
.brand img { width: 208px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .primary-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav .primary-menu li { margin: 0; padding: 0; }
.site-nav a { color: #343b4a; font-size: .92rem; font-weight: 680; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }

.nav-cta,
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 760;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-nav .nav-cta { min-height: 44px; padding-inline: 18px; color: #fff; font-size: .9rem; }
.site-nav .nav-cta:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.button:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(12, 17, 32, .2); }
.button-blue { border-color: var(--blue); background: var(--blue); }
.button-light { border-color: #fff; color: var(--ink); background: #fff; }
.button-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.button-ghost:hover { background: var(--mist); box-shadow: none; }
.text-link { color: var(--blue); font-weight: 760; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.hero { padding: 76px 0 30px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
}

.hero h1 span { color: var(--blue); }
.hero-copy { max-width: 650px; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-media { position: relative; min-height: 600px; }
.hero-media::before {
  position: absolute;
  inset: 30px -60px -30px 70px;
  z-index: -1;
  border-radius: 50%;
  background: var(--blue-pale);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 600px;
  border-radius: 160px 24px 24px 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-note {
  position: absolute;
  left: -42px;
  bottom: 28px;
  max-width: 260px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px;
  color: #fff;
  background: rgba(11, 16, 32, .92);
  box-shadow: var(--shadow);
}

.hero-note strong { display: block; margin-bottom: 6px; font-size: 1.08rem; }
.hero-note span { color: #cbd2e1; font-size: .9rem; }

.trust-strip { padding: 28px 0 54px; }
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.trust-list li { position: relative; padding: 20px 24px; color: #3d4657; font-size: .91rem; font-weight: 690; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list li::before { color: var(--success); content: "✓"; margin-right: 8px; font-weight: 900; }

.booking-band { padding: 80px 0; color: #fff; background: var(--ink); }
.booking-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: clamp(40px, 7vw, 96px); }
.booking-band h2 { max-width: 480px; }
.booking-band .section-kicker { color: #bac3d5; }
.booking-panel { min-height: 420px; padding: 26px; border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.booking-panel .integration-loading { margin: 0; color: var(--muted); }
.booking-intro { display: grid; grid-template-columns: .72fr 1.28fr; align-items: end; gap: clamp(40px, 7vw, 96px); margin-bottom: 42px; }
.booking-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -18px; }
.booking-intro h2 { margin-bottom: 0; }
.booking-panel-wide { min-height: 560px; }

.section { padding: 96px 0; }
.section-soft { background: var(--mist); }
.section-dark { color: #fff; background: var(--ink); }
.section-dark .section-kicker { color: #b9c2d2; }

.split-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 50px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading .section-kicker { justify-self: end; }

.option-list { border-top: 1px solid var(--line); }
.option-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.2fr auto;
  align-items: center;
  gap: 28px;
  min-height: 132px;
  border-bottom: 1px solid var(--line);
}

.option-number { color: var(--blue); font-size: .78rem; font-weight: 820; letter-spacing: .1em; }
.option-row h3 { margin: 0; }
.option-row p { margin: 0; color: var(--muted); }
.circle-arrow { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.25rem; }
.option-row:hover .circle-arrow { color: #fff; border-color: var(--blue); background: var(--blue); }

.location-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 22px; }
.location-grid-single { grid-template-columns: 1fr; }
.location-card { min-height: 440px; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius); }
.location-card-primary { display: flex; flex-direction: column; color: #fff; background: var(--blue); }
.location-card-secondary { border: 1px solid var(--line); background: #fff; }
.location-status { display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: auto; padding: 7px 11px; border-radius: 999px; font-size: .75rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.location-card-primary .location-status { background: rgba(255,255,255,.14); }
.location-card-secondary .location-status { color: var(--warning-ink); background: var(--warning-bg); }
.location-status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.location-card h3 { margin-top: 55px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.location-card address { margin-bottom: 28px; color: inherit; font-style: normal; opacity: .82; }
.location-card-secondary p { color: var(--muted); }

.story-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(44px, 7vw, 92px); }
.story-media img { width: 100%; height: 480px; border-radius: 24px 120px 24px 24px; object-fit: cover; }
.story-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 34px; }
.story-point { padding-top: 18px; border-top: 2px solid var(--blue); }
.story-point strong { display: block; margin-bottom: 4px; }
.story-point span { color: var(--muted); font-size: .92rem; }

.review-wrap { margin-top: 42px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.review-wrap iframe { display: block; width: 100%; min-height: 420px; border: 0; }

.faq-list { max-width: 900px; margin: 42px auto 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 1.04rem; font-weight: 760; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 1.6rem; font-weight: 450; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; padding: 0 0 28px; color: var(--muted); }

.cta-band { padding: 85px 0; color: #fff; background: var(--blue); }
.cta-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.cta-row h2 { max-width: 740px; margin: 0; }

.page-hero { padding: 86px 0 68px; background: linear-gradient(135deg, #f7f8fc 0%, #eef0ff 100%); }
.page-hero h1 { max-width: 960px; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.page-hero .section-kicker { max-width: 740px; font-size: 1.17rem; }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: capitalize; }
.breadcrumbs a:hover { color: var(--blue); }

.status-banner { padding: 16px 0; color: var(--warning-ink); background: var(--warning-bg); font-weight: 720; }
.status-banner .shell { display: flex; align-items: center; gap: 12px; }

.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(42px, 7vw, 90px); }
.detail-panel { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-panel dl { margin: 0; }
.detail-panel div { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-panel div:last-child { border-bottom: 0; }
.detail-panel dt { color: var(--muted); font-size: .86rem; font-weight: 720; }
.detail-panel dd { margin: 0; font-weight: 680; }

.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-tile { padding: 30px; border-top: 3px solid var(--blue); background: #fff; }
.content-tile p { margin-bottom: 0; color: var(--muted); }

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area-item { min-height: 220px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease, transform .2s ease; }
.area-item:hover { position: relative; z-index: 1; background: var(--blue-pale); transform: translateY(-3px); }
.area-item span { display: block; margin-bottom: 34px; color: var(--blue); font-size: .76rem; font-weight: 820; letter-spacing: .1em; }
.area-item p { margin: 0; color: var(--muted); }
.area-item strong { display: block; margin-top: 18px; color: var(--blue); font-size: .88rem; }

.booking-page { min-height: 680px; padding: 62px 0 100px; background: var(--mist); }
.booking-shell { padding: 30px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.booking-shell .hq-rental-software-integration { min-height: 560px; }

.contact-support { padding-bottom: 78px; }
.contact-heading { max-width: 690px; margin-bottom: 34px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-card { display: flex; min-width: 0; min-height: 230px; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.contact-card small { margin-bottom: 24px; color: var(--blue); font-size: .78rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.contact-card strong { overflow-wrap: anywhere; font-size: 1.08rem; line-height: 1.4; }
.contact-card span { margin-top: auto; padding-top: 22px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
a.contact-card { transition: background .2s ease, transform .2s ease; }
a.contact-card:hover { position: relative; z-index: 1; background: var(--blue-pale); transform: translateY(-3px); }
.contact-form-section { padding: 82px 0 100px; background: #fff; }
.contact-form-heading { max-width: 700px; margin: 0 auto 34px; text-align: center; }
.contact-form-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.contact-form-embed { width: 100%; min-height: 760px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-frame { display: block; width: 100% !important; height: 760px; min-height: 760px; margin: 0; border: 0; background: #fff; }

.policy { max-width: 840px; }
.policy h2 { margin-top: 52px; font-size: 2rem; }
.policy h3 { margin-top: 34px; font-size: 1.25rem; }
.policy p, .policy li { color: #495266; }
.policy li + li { margin-top: 8px; }

.site-footer { padding: 70px 0 30px; color: #fff; background: #080c17; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .8fr 1.1fr; gap: 50px; }
.footer-logo { width: 220px; height: auto; margin-bottom: 22px; filter: brightness(0) invert(1); }
.footer-intro { max-width: 320px; color: #aeb8ca; }
.footer-heading { display: block; margin-bottom: 18px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-location { color: #b7c0d1; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-location + .footer-location { margin-top: 18px; }
.footer-location strong { display: block; margin-bottom: 4px; color: #fff; }
.footer-location em { display: block; margin-top: 5px; color: #f5cf74; font-size: .78rem; font-style: normal; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 58px; padding-top: 24px; border-top: 1px solid #222a3a; color: #818ca1; font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 18px; }

.mobile-book { display: none; }

@media (max-width: 980px) {
  .topline .shell { justify-content: center; text-align: center; }
  .topline .topline-secondary { display: none; }
  .site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 117px 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    min-height: calc(100dvh - 117px);
    max-height: calc(100dvh - 117px);
    padding: 18px 24px 120px;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    transition: transform .25s ease;
  }
  .site-nav .primary-menu { display: grid; gap: 0; width: 100%; }
  .menu-open .site-nav { transform: translateX(0); }
  .site-nav a { padding: 17px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .primary-menu a { display: block; border-bottom: 0 !important; }
  .site-nav .nav-cta { margin-top: 18px; color: #fff; }
  .hero-grid, .booking-grid, .booking-intro, .story-grid, .detail-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 58px; }
  .hero-media { min-height: 500px; }
  .hero-media img { height: 500px; }
  .hero-note { left: 20px; }
  .booking-grid { gap: 38px; }
  .booking-intro { gap: 14px; }
  .booking-intro .eyebrow { grid-column: auto; margin-bottom: 0; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-list li:nth-child(4) { border-top: 1px solid var(--line); }
  .split-heading { grid-template-columns: 1fr; gap: 16px; }
  .split-heading .section-kicker { justify-self: start; }
  .option-row { grid-template-columns: 55px 1fr auto; }
  .option-row p { grid-column: 2; }
  .option-row .circle-arrow { grid-row: 1 / span 2; grid-column: 3; }
  .location-grid { grid-template-columns: 1fr; }
  .location-card { min-height: 390px; }
  .content-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 783px) {
  body.admin-bar .site-header { top: 32px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .topline { font-size: .74rem; }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 170px; }
  .site-nav {
    inset: 109px 0 0;
    min-height: calc(100dvh - 109px);
    max-height: calc(100dvh - 109px);
  }
  h1 { font-size: clamp(2.85rem, 14vw, 4.15rem); }
  h2 { font-size: clamp(2.05rem, 10vw, 3.15rem); }
  .hero { padding-top: 44px; }
  .hero-grid { gap: 40px; }
  .hero-media, .hero-media img { min-height: 390px; height: 390px; }
  .hero-media img { border-radius: 90px 18px 18px 18px; }
  .hero-media::before { inset: 22px -45px -20px 55px; }
  .hero-note { right: 14px; left: 14px; bottom: 14px; max-width: none; }
  .hero-actions .button { width: 100%; }
  .trust-strip { padding-bottom: 30px; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li + li, .trust-list li:nth-child(3), .trust-list li:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .section, .booking-band { padding: 72px 0; }
  .booking-panel, .booking-shell { padding: 18px; border-radius: 16px; }
  .option-row { grid-template-columns: 42px 1fr auto; min-height: 150px; gap: 14px; padding: 22px 0; }
  .location-card { min-height: 360px; padding: 28px; }
  .story-media img { height: 350px; border-radius: 18px 80px 18px 18px; }
  .story-points { grid-template-columns: 1fr; }
  .review-wrap { padding: 8px; }
  .cta-row { align-items: stretch; flex-direction: column; }
  .cta-row .button { width: 100%; }
  .page-hero { padding: 60px 0 52px; }
  .detail-panel div { grid-template-columns: 1fr; gap: 3px; }
  .area-grid { grid-template-columns: 1fr; }
  .contact-support { padding-bottom: 60px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 205px; padding: 24px; }
  .contact-form-section { padding: 64px 0 80px; }
  .contact-form-heading { text-align: left; }
  .contact-form-embed { min-height: 820px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .form-frame { height: 820px; min-height: 820px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { padding-bottom: 64px; flex-direction: column; }
  .mobile-book {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 120;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 14px 35px rgba(31, 41, 130, .36);
    font-weight: 800;
  }
  body.menu-open .mobile-book { display: none; }
}

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