/*
Theme Name: Toronto Airport Rides
Theme URI: https://www.torontoairportrides.ca/
Author: Toronto Airport Rides
Description: Static HTML/CSS/JS frontend for Toronto airport transportation. Structured for conversion into a custom WordPress theme. Do not treat this file as an active WordPress theme until PHP templates are added.
Version: 1.0.0
Text Domain: toronto-airport-rides
*/

/* --------------------------------------------------------------------------
   Design tokens  →  future: Customizer / theme.json
   -------------------------------------------------------------------------- */
:root {
  --primary-color: #d4b15f;
  --primary-dark: #b8903a;
  --secondary-color: #12151c;
  --accent-color: #1c2330;
  --text-color: #1c1c1c;
  --text-muted: #5d5a53;
  --text-on-dark: #f4f1ea;
  --text-on-dark-muted: #c8c2b4;
  --background-color: #ffffff;
  --background-alt: #f6f3ec;
  --background-dark: #12151c;
  --border-color: #e4ddd0;
  --container-width: 1180px;
  --border-radius: 8px;
  --header-height: 4.75rem;
  --header-top-height: 2.05rem;
  --site-header-offset: calc(var(--header-height) + var(--header-top-height));
  --shadow: 0 10px 30px rgba(18, 21, 28, 0.08);
  --font-heading: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --focus-ring: 2px solid var(--primary-color);
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-color);
  background: var(--background-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text-color);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  color: var(--secondary-color);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* --------------------------------------------------------------------------
   WordPress-like document structure
   #page.site  /  #masthead  /  #content  /  #primary  /  #colophon
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-header h1:not(.about-heading)::after,
.section-header h2:not(.about-heading)::after,
.entry-header .entry-title::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin-top: 0.85rem;
  background: var(--primary-color);
}

.section-header--center h1::after,
.section-header--center h2::after {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header  →  future: header.php
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--background-dark);
  color: var(--text-on-dark);
  box-shadow: 0 1px 0 rgba(212, 177, 95, 0.25);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.header-top a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.header-top a:hover {
  color: var(--primary-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-height);
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  display: flex;
  align-items: center;
  width: auto;
  max-width: min(320px, 62vw);
}

.site-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(var(--header-height) - 1.35rem);
  height: auto;
  object-fit: contain;
}

.site-title,
.site-description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Navigation  →  future: wp_nav_menu()
   -------------------------------------------------------------------------- */
.main-navigation {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(212, 177, 95, 0.45);
  border-radius: 4px;
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.main-navigation .menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation .menu-item a {
  display: block;
  padding: 0.7rem 0.75rem;
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.main-navigation .menu-item a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > .menu-item-row > a {
  color: var(--primary-color);
}

.menu-item-row {
  display: flex;
  align-items: center;
}

.menu-item-has-children > .menu-item-row > a {
  flex: 1 1 auto;
}

.submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-on-dark-muted);
  cursor: pointer;
}

.submenu-toggle-icon,
.submenu-toggle-icon::before {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.menu-item-has-children.is-open .submenu-toggle-icon {
  transform: rotate(-135deg);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 220;
  min-width: 16.5rem;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: var(--accent-color);
  border: 1px solid rgba(212, 177, 95, 0.22);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.menu-item-has-children:hover > .sub-menu:not(.areas-mega-menu),
.menu-item-has-children:focus-within > .sub-menu:not(.areas-mega-menu),
.menu-item-has-children.is-open > .sub-menu:not(.areas-mega-menu) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu .menu-item a {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.sub-menu .menu-item a:hover,
.sub-menu .current-menu-item > a {
  background: rgba(212, 177, 95, 0.08);
  color: var(--primary-color);
}

.menu-item-has-children {
  position: relative;
}

/* Areas We Serve mega menu */
@media (min-width: 961px) {
  .main-navigation .menu-item-has-mega {
    position: static;
  }

  .main-navigation .menu > .menu-item-has-children > .menu-item-row .submenu-toggle {
    display: inline-flex;
    width: 1.45rem;
    height: 1.45rem;
    margin-left: 0.05rem;
    color: var(--text-on-dark-muted);
    pointer-events: none;
  }

  .main-navigation .menu > .menu-item-has-children > .menu-item-row:hover .submenu-toggle,
  .main-navigation .menu > .menu-item-has-children:focus-within > .menu-item-row .submenu-toggle,
  .main-navigation .menu > .menu-item-has-children.is-open > .menu-item-row .submenu-toggle,
  .main-navigation .menu > .menu-item-has-children.current-menu-ancestor > .menu-item-row .submenu-toggle,
  .main-navigation .menu > .menu-item-has-mega:has(> .areas-mega-menu:hover) > .menu-item-row .submenu-toggle {
    color: var(--primary-color);
  }

  .main-navigation .menu > .menu-item-has-children > .menu-item-row:hover .submenu-toggle-icon,
  .main-navigation .menu > .menu-item-has-children:focus-within > .menu-item-row .submenu-toggle-icon,
  .main-navigation .menu > .menu-item-has-children.is-open > .menu-item-row .submenu-toggle-icon,
  .main-navigation .menu > .menu-item-has-mega:has(> .areas-mega-menu:hover) > .menu-item-row .submenu-toggle-icon {
    transform: rotate(-135deg);
  }

  .menu-item-has-mega > .areas-mega-menu {
    left: 50%;
    right: auto;
    top: calc(100% + 0.35rem);
    width: min(72rem, calc(100vw - 2rem));
    min-width: 0;
    padding: 0;
    border-radius: 6px;
    transform: translateX(-50%) translateY(0.35rem);
    pointer-events: none;
  }

  .menu-item-has-mega > .menu-item-row:hover + .areas-mega-menu,
  .menu-item-has-mega > .areas-mega-menu:hover,
  .menu-item-has-mega:focus-within > .areas-mega-menu,
  .menu-item-has-mega.is-open > .areas-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .menu-item-has-mega > .areas-mega-menu::before {
    content: "";
    position: absolute;
    top: -0.55rem;
    left: 0;
    right: 0;
    height: 0.55rem;
  }

  .areas-mega-menu__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.75rem;
    padding: 1.35rem 1.5rem 1.45rem;
  }

  .areas-mega-menu__group {
    position: static;
  }

  .areas-mega-menu__group-row {
    margin-bottom: 0.55rem;
  }

  .areas-mega-menu__heading {
    display: block;
    margin: 0;
    padding: 0 0 0.45rem;
    border-bottom: 1px solid rgba(212, 177, 95, 0.22);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
  }

  .areas-mega-menu__group-toggle {
    display: none;
  }

  .areas-mega-menu .areas-mega-menu__links {
    position: static;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .areas-mega-menu__links .menu-item a {
    display: block;
    padding: 0.38rem 0;
    font-size: 0.86rem;
    line-height: 1.35;
    white-space: normal;
    border-radius: 3px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .areas-mega-menu__links .menu-item a:hover,
  .areas-mega-menu__links .current-menu-item > a {
    background: transparent;
    color: var(--primary-color);
    padding-left: 0.15rem;
  }
}

.header-cta {
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   Footer  →  future: footer.php
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--background-dark);
  color: var(--text-on-dark-muted);
  overflow: hidden;
}

.footer-cta {
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  padding: clamp(2rem, 4vw, 2.75rem) 0;
}

.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-cta-content h2 {
  margin: 0 0 0.45rem;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.footer-cta-content p {
  margin: 0;
  max-width: 38rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

.footer-cta-btn {
  flex-shrink: 0;
}

.footer-main {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-footer .widget-title {
  margin: 0 0 1rem;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--primary-color);
}

.footer-brand-link {
  display: inline-block;
}

.footer-brand-tagline {
  margin: 0 0 1rem;
  max-width: 30rem;
  line-height: 1.65;
}

.footer-brand-hours {
  margin: 0;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-logo {
  display: block;
  width: min(240px, 100%);
  height: auto;
  max-height: 4.5rem;
  margin-bottom: 1rem;
  object-fit: contain;
  object-position: left center;
}

.footer-menu,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  display: inline-block;
  line-height: 1.45;
}

.footer-menu a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(212, 177, 95, 0.55);
  text-underline-offset: 0.18em;
}

.footer-contact-company {
  margin: 0 0 1rem;
  color: var(--text-on-dark);
  font-weight: 650;
}

.footer-contact-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  opacity: 0.9;
}

.footer-contact-label {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--text-on-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-contact-text {
  margin: 0;
  line-height: 1.55;
}

.site-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 1.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.1);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(212, 177, 95, 0.55);
  text-underline-offset: 0.18em;
}

/* --------------------------------------------------------------------------
   Page heroes (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 18rem;
  padding: 4.5rem 0 2.5rem;
  color: var(--text-on-dark);
  background: var(--background-dark);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.45) 0%, rgba(18, 21, 28, 0.82) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero p {
  color: var(--text-on-dark);
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin-top: 0.85rem;
  background: var(--primary-color);
}

.breadcrumb {
  margin-bottom: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #b7b1a6;
}

.page-hero .breadcrumb ol,
.page-hero .breadcrumb a {
  color: var(--text-on-dark-muted);
}

.page-hero .breadcrumb a:hover {
  color: var(--primary-color);
}

.page-hero .breadcrumb li:not(:last-child)::after {
  color: rgba(244, 241, 234, 0.35);
}

/* --------------------------------------------------------------------------
   Content layout (page.php / single.php / archive.php)
   -------------------------------------------------------------------------- */
.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 2.5rem;
  padding: var(--space-xl) 0;
}

.content-area--full {
  grid-template-columns: 1fr;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-meta {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.widget-area .widget {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.widget-title {
  margin-bottom: 0.75rem;
}

.widget .btn {
  width: 100%;
}

.widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-list li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--text-muted);
}
