/* =========================================================
   RIDES BY MARTI
   Main stylesheet
   ========================================================= */
/* =========================================================
   DESIGN VARIABLES
   ========================================================= */
:root {
  --color-background: #ffffff;
  --color-background-soft: #f6f5f1;
  --color-text: #242424;
  --color-text-soft: #626262;
  --color-heading: #183d3d;
  --color-accent: #287b78;
  --color-accent-dark: #1e605e;
  --color-border: #e4e2dc;
  --color-white: #ffffff;
  --color-overlay: rgba(13, 29, 29, 0.42);
  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --container-width: 1200px;
  --header-height: 84px;
  --header-height-scrolled: 68px;
  --shadow-small: 0 8px 24px rgba(22, 39, 39, 0.08);
  --shadow-header: 0 4px 20px rgba(22, 39, 39, 0.08);
  --radius-small: 6px;
  --radius-medium: 12px;
  --transition-fast: 180ms ease;
  --transition-standard: 280ms ease;
}
/* =========================================================
   RESET AND BASE STYLES
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border: 0;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  line-height: 1.15;
}
h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
h2 {
  margin-bottom: 28px;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
h3 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
p {
  margin-bottom: 1.4em;
}
p:last-child {
  margin-bottom: 0;
}
/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
  outline: 3px solid rgba(40, 123, 120, 0.45);
  outline-offset: 4px;
}
::selection {
  background: rgba(40, 123, 120, 0.2);
}
/* =========================================================
   CONTAINER
   ========================================================= */
.container {
  width: min(calc(100% - 48px), var(--container-width));
  margin-inline: auto;
}
/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  color: var(--color-white);
  transition:
    background-color var(--transition-standard),
    box-shadow var(--transition-standard),
    color var(--transition-standard);
}
.site-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.46),
    rgba(0, 0, 0, 0)
  );
  content: "";
  pointer-events: none;
  transition: opacity var(--transition-standard);
}
.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-header);
  color: var(--color-heading);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled::before,
.site-header.menu-active::before {
  opacity: 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: var(--header-height);
    transition:
        min-height 280ms ease,
        padding 280ms ease;
}
.site-header.is-scrolled .header-inner,
.site-header.menu-active .header-inner {
    min-height: var(--header-height-scrolled);
}
.site-title {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}
.site-title:hover {
  opacity: 0.78;
}
/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
}
.desktop-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.91rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0.75;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--transition-fast);
}
.desktop-nav a.active {
    color: var(--color-white);
}

.site-header.is-scrolled .desktop-nav a.active,
.site-header.menu-active .desktop-nav a.active {
    color: var(--color-accent);
}
.desktop-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.desktop-nav a:last-child {
  padding: 11px 18px;
  border: 1px solid var(--color-white);
  background: var(--color-white);
  border-radius: var(--radius-small);
  color: var(--color-heading);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}
.desktop-nav a:last-child::after {
  display: none;
}
.desktop-nav a:last-child:hover {
  background: var(--color-white);
  color: var(--color-heading);
}
.site-header.is-scrolled .desktop-nav a:last-child,
.site-header.menu-active .desktop-nav a:last-child {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
}
.site-header.is-scrolled .desktop-nav a:last-child:hover,
.site-header.menu-active .desktop-nav a:last-child:hover {
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
}
/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.55rem;
  line-height: 1;
  transition: background-color var(--transition-fast);
}
.menu-button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.site-header.is-scrolled .menu-button:hover,
.site-header.menu-active .menu-button:hover {
  background: rgba(40, 123, 120, 0.1);
}
/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */
.mobile-nav {
  display: none;
}
/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(520px, 69vh, 760px);
  place-items: center;
  overflow: hidden;
  background-color: #334746;
  background-image: url("../images/hero/hero.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 24, 24, 0.24),
      rgba(10, 24, 24, 0.08) 45%,
      rgba(10, 24, 24, 0.2)
    ),
    linear-gradient(
      to bottom,
      rgba(7, 17, 17, 0.17),
      var(--color-overlay)
    );
  content: "";
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 960px);
  padding: calc(var(--header-height) + 60px) 0 70px;
  color: var(--color-white);
  text-align: center;
}
.hero-overlay h1 {
  color: var(--color-white);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
}
.hero-overlay p {
  margin: 0 auto 34px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
/* =========================================================
   BUTTONS
   ========================================================= */
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border: 1px solid var(--color-white);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-heading);
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.button:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0);
}
/* =========================================================
   MAIN CONTENT SECTIONS
   ========================================================= */
main {
  overflow: hidden;
}
.content-section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}
.content-section:nth-child(even) {
  background: var(--color-background-soft);
}
.content-section .container {
  max-width: 980px;
}
.content-section h2 {
  position: relative;
  padding-bottom: 22px;
  text-align: center;
}
.content-section h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: var(--color-accent);
  content: "";
  transform: translateX(-50%);
}
/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 34px 0;
  background: var(--color-heading);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-align: center;
}
/* =========================================================
   TABLET AND MOBILE
   ========================================================= */
@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }
  .container {
    width: min(calc(100% - 36px), var(--container-width));
  }
  .desktop-nav {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  .mobile-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-header);
    color: var(--color-heading);
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 350ms ease,
      opacity 220ms ease;
  }
  .mobile-nav.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav a {
    padding: 17px 24px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast);
  }
  .mobile-nav a:hover {
    background: var(--color-background-soft);
    color: var(--color-accent-dark);
  }
  .mobile-nav a:last-child {
    border-bottom: 0;
    background: var(--color-accent);
    color: var(--color-white);
  }
  .mobile-nav a:last-child:hover {
    background: var(--color-accent-dark);
  }
  .hero {
    min-height: clamp(500px, 72vh, 680px);
  }
  .hero-overlay {
    width: min(calc(100% - 36px), 760px);
    padding-top: calc(var(--header-height) + 50px);
  }
}
/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), var(--container-width));
  }
  .site-title {
    font-size: 1.45rem;
  }
  .hero {
    min-height: 600px;
    background-position: center center;
  }
  .hero-overlay {
    width: min(calc(100% - 28px), 520px);
    padding-bottom: 54px;
  }
  .hero-overlay p {
    max-width: 290px;
  }
  .button {
    width: 100%;
    max-width: 260px;
  }
  .content-section {
    padding: 74px 0;
  }
}
/* =========================================================
   HERO ENTRANCE
   ========================================================= */
.hero-title,
.hero-subtitle,
.hero-button {
    opacity: 0;
    transform: translateY(20px);
}
.hero-loaded .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .7s ease,
        transform .7s ease;
}
.hero-loaded .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .7s ease .15s,
        transform .7s ease .15s;
}
.hero-loaded .hero-button {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .7s ease .3s,
        transform .7s ease .3s;
}
/* =========================================================
   SECTION REVEAL
   ========================================================= */
.reveal-section {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}
.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Temporary visibility safeguard */
.hero-title,
.hero-subtitle,
.hero-button {
  opacity: 1;
  transform: translateY(0);
}
.reveal-section {
  opacity: 1;
  transform: translateY(0);
}
/* =========================================================
   Meet the Team
   ========================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.team-member {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    height: 100%;
}
.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(22,39,39,.12);
}
.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.team-member-content {
    flex: 1;
}
.team-member h3 {
    margin-bottom: .5rem;
}
.team-member p {
    margin: 0;
    color: var(--color-text-soft);
}
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .team-member {
        flex-direction: column;
        text-align: center;
    }
}
/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
    margin-top: 3rem;
}
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-white);
    overflow: hidden;
    box-shadow: var(--shadow-small);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-heading);
    list-style: none;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform var(--transition-fast);
}
.faq-item[open] summary {
    background: var(--color-background-soft);
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-soft);
}
/* =========================================================
   Booking
   ========================================================= */
.booking-widget {
    margin-top: 3rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-white);
    box-shadow: var(--shadow-small);
}
.booking-widget iframe {
    display: block;
    width: 100%;
    border: 0;
}
/* =========================================================
   Feature Sections
   ========================================================= */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.feature-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}
.feature-content h2 {
    text-align: left;
}
.feature-content h2::after {
    display: none;
}
.feature-content p {
    color: var(--color-text-soft);
}
.feature-content .button {
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-content {
        text-align: center;
    }
    .feature-content h2 {
        text-align: center;
    }
}
.feature-row.reverse .feature-image {
    order: 2;
}
.feature-row.reverse .feature-content {
    order: 1;
}
@media (max-width: 900px) {
    .feature-row.reverse .feature-image,
    .feature-row.reverse .feature-content {
        order: initial;
    }
}

/* =========================================================
   Vehicles & Comfort
   ========================================================= */

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 760px;
    margin: 3rem auto 0;
}

.vehicle-image {
    overflow: hidden;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.vehicle-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 600px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* Featured Marti card above the two-column driver grid */
.team-member-featured {
    margin-bottom: 24px;
}

@media (min-width: 700px) {
    .team-member-featured {
        display: grid;
        grid-template-columns: 180px 1fr;
        align-items: center;
        gap: 32px;
    }

    .team-member-featured img {
        width: 180px;
        height: 180px;
        object-fit: cover;
    }
}

@media (max-width: 699px) {
    .team-member-featured {
        display: flex;
    }
}