/*
Theme Name: Adventure Star
Theme URI: https://example.com/
Author: Adventure Star
Description: Hybrid WordPress theme for Adventure Star hire car excess protection.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: adventure-star
*/

:root {
  --as-primary: #ffb87a;
  --as-secondary: #0f204b;
  --as-accent: #ff987c;
  --as-white: #ffffff;
  --as-light: #fff6ee;
  --as-dark: #08142f;
  --as-muted: #56617d;
  --as-radius: 1.25rem;
  --as-shadow: 0 18px 50px rgba(15, 32, 75, 0.18);
  --as-max-width: 1180px;
  --as-header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--as-light);
  color: var(--as-secondary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--as-secondary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--as-dark);
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.container {
  width: min(calc(100% - 2rem), var(--as-max-width));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--as-header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 184, 122, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 32, 75, 0.12);
  transition: background 220ms ease, box-shadow 220ms ease;
}

body.logo-docked .site-header,
body:not(.home) .site-header {
  background: rgba(255, 184, 122, 0.98);
  box-shadow: 0 10px 30px rgba(15, 32, 75, 0.12);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  width: min(calc(100% - 2rem), var(--as-max-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 170px;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo-static {
  display: block;
  width: 176px;
  max-width: 42vw;
  transition: opacity 180ms ease;
}

body.home.has-hero-js .site-logo-static {
  opacity: 0;
}

body.home.hero-logo-reduced .site-logo-static {
  opacity: 1;
}

.primary-navigation {
  display: flex;
  align-items: center;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: var(--as-secondary);
  font-weight: 750;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--as-secondary);
  color: var(--as-white);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--as-secondary);
  color: var(--as-white);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 32, 75, 0.32), rgba(15, 32, 75, 0.5)),
    url("assets/images/hero-placeholder.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--as-primary), var(--as-accent));
  color: var(--as-white);
  padding: calc(var(--as-header-height) + 2rem) 1rem 4rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, var(--as-light));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin-top: 9rem;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--as-secondary);
  border-radius: 999px;
  font-weight: 850;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero p {
  max-width: 680px;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  background: var(--as-secondary);
  color: var(--as-white);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
button[type="submit"]:hover,
button[type="submit"]:focus {
  background: var(--as-dark);
  color: var(--as-white);
}

.button.button-light {
  background: var(--as-white);
  color: var(--as-secondary);
}

.button.button-light:hover,
.button.button-light:focus {
  background: var(--as-primary);
}

.hero-morph-logo {
  position: absolute;
  z-index: 5;
  top: 19%;
  left: 50%;
  width: min(74vw, 540px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 16px 30px rgba(15, 32, 75, 0.32));
}

body.home.has-hero-js .hero-morph-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    left 480ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 480ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 480ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease;
}

body.home.has-hero-js.is-loaded .hero-morph-logo {
  opacity: 1;
}

body.home.hero-logo-reduced .hero-morph-logo {
  position: absolute;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-primary {
  background: var(--as-primary);
}

.section-secondary {
  background: var(--as-secondary);
  color: var(--as-white);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  color: var(--as-accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-secondary .section-eyebrow {
  color: var(--as-primary);
}

h1,
h2,
h3,
h4 {
  color: inherit;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--as-muted);
}

.section-secondary .lead {
  color: rgba(255, 255, 255, 0.78);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--as-white);
  border: 1px solid rgba(15, 32, 75, 0.1);
  border-radius: var(--as-radius);
  padding: 1.4rem;
  box-shadow: var(--as-shadow);
}

.card h3 {
  margin-top: 0;
}

.cover-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cover-card-image {
  overflow: hidden;
  margin: -1.4rem -1.4rem 1.2rem;
  border-radius: var(--as-radius) var(--as-radius) 0 0;
  background: var(--as-primary);
  aspect-ratio: 16 / 10;
}

.cover-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.page-hero {
  padding: calc(var(--as-header-height) + 4rem) 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(255, 152, 124, 0.55), transparent 34rem),
    var(--as-primary);
}

.page-hero h1 {
  margin: 0;
}

.content-area {
  padding: 4rem 0;
}

.entry-content {
  font-size: 1.05rem;
}

.entry-content > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide {
  max-width: var(--as-max-width);
}

.entry-content > .alignfull {
  max-width: none;
}

.faq-list details {
  background: var(--as-white);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 25px rgba(15, 32, 75, 0.08);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  background: var(--as-secondary);
  color: var(--as-white);
  border-radius: var(--as-radius);
  padding: 1.5rem;
}

.contact-form-panel {
  background: var(--as-white);
  border-radius: var(--as-radius);
  padding: 1.5rem;
  box-shadow: var(--as-shadow);
}

.wpcf7-form label {
  display: block;
  font-weight: 800;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid rgba(15, 32, 75, 0.2);
  border-radius: 0.8rem;
  padding: 0.8rem;
  font: inherit;
}

.site-footer {
  background: var(--as-secondary);
  color: var(--as-white);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo {
  width: 180px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--as-white);
  font-weight: 750;
}

.footer-small {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  :root {
    --as-header-height: 70px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    background: var(--as-white);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: var(--as-shadow);
  }

  body.nav-open .primary-navigation {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 0.25rem;
  }

  .primary-menu a {
    border-radius: 0.75rem;
  }

  .card-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-top: 8rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-logo-static {
    width: 142px;
  }

  .hero-morph-logo {
    width: 84vw;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 16vw, 4rem);
  }
}