/*
Theme Name: Airport Taxi 4U 247
Description: A lightweight, custom WordPress theme for Airport Taxi for 4U 247 airport transfers.
Author: Airport Taxi 4U 247
Version: 1.1.0
Text Domain: airport-taxi-4u-247
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================================================
   01. DESIGN TOKENS
   Fonts are enqueued separately in functions.php (coming next).
   Change --at4u-container to adjust the site-wide maximum width.
   ======================================================================== */
:root {
  --at4u-navy: #0d2038;
  --at4u-blue: #295a97;
  --at4u-gold: #d1a32a;
  --at4u-gold-hover: #bb901d;
  --at4u-bg: #f5f8fc;
  --at4u-white: #ffffff;
  --at4u-heading: #192b40;
  --at4u-text: #34465b;
  --at4u-muted: #617187;
  --at4u-border: #e0e7ef;
  --at4u-focus: #295a97;

  --at4u-font-heading: 'Plus Jakarta Sans', Arial, sans-serif;
  --at4u-font-body: 'Nunito Sans', Arial, sans-serif;

  --at4u-container: 1440px;
  --at4u-gutter: 28px;
  --at4u-section-space: clamp(64px, 7vw, 112px);
  --at4u-radius-sm: 8px;
  --at4u-radius-md: 14px;
  --at4u-radius-lg: 22px;
  --at4u-shadow-card: 0 12px 36px rgba(13, 32, 56, 0.07);

  --at4u-text-sm: 0.875rem;
  --at4u-text-base: 1rem;
  --at4u-text-lg: 1.125rem;
  --at4u-h1: clamp(2.5rem, 5.1vw, 4.5rem);
  --at4u-h2: clamp(2rem, 3.25vw, 3.25rem);
  --at4u-h3: clamp(1.35rem, 2vw, 1.75rem);
}

/* ========================================================================
   02. RESET & GLOBAL DEFAULTS
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--at4u-white);
  color: var(--at4u-text);
  font-family: var(--at4u-font-body);
  font-size: var(--at4u-text-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
}

img,
video {
  height: auto;
}

img {
  vertical-align: middle;
}

svg {
  display: inline-block;
}

iframe {
  max-width: 100%;
}

figure,
blockquote {
  margin: 0;
}

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

button,
select {
  cursor: pointer;
}

button,
input,
textarea,
select {
  min-width: 0;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--at4u-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--at4u-gold);
  color: var(--at4u-navy);
}

/* ========================================================================
   03. TYPOGRAPHY
   ======================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  color: var(--at4u-heading);
  font-family: var(--at4u-font-heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--at4u-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--at4u-h2);
}

h3 {
  font-size: var(--at4u-h3);
}

h4 {
  font-size: 1.2rem;
}

h5,
h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--at4u-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

a:hover {
  color: var(--at4u-navy);
}

strong,
b {
  font-weight: 800;
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.25rem;
}

small {
  font-size: var(--at4u-text-sm);
}

/* ========================================================================
   04. CONTAINERS & SECTION HELPERS
   .site-container matches the index.php foundation file.
   ======================================================================== */
.site-container,
.at4u-container {
  width: min(calc(100% - (2 * var(--at4u-gutter))), var(--at4u-container));
  margin-inline: auto;
}

.at4u-section {
  padding-block: var(--at4u-section-space);
}

.at4u-section--soft {
  background: var(--at4u-bg);
}

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

.at4u-section--dark h1,
.at4u-section--dark h2,
.at4u-section--dark h3,
.at4u-section--dark h4 {
  color: var(--at4u-white);
}

.at4u-section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.at4u-section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.at4u-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--at4u-blue);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.at4u-section--dark .at4u-eyebrow {
  color: var(--at4u-gold);
}

.at4u-lead {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.8;
}

.at4u-card {
  background: var(--at4u-white);
  border: 1px solid var(--at4u-border);
  border-radius: var(--at4u-radius-md);
  box-shadow: var(--at4u-shadow-card);
}

/* ========================================================================
   05. REUSABLE BUTTONS
   Gold = primary booking action. Navy/outline = secondary actions.
   ======================================================================== */
.at4u-btn,
a.at4u-btn,
button.at4u-btn,
input.at4u-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--at4u-radius-sm);
  font-family: var(--at4u-font-body);
  font-size: 0.975rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

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

.at4u-btn:active {
  transform: translateY(0);
}

.at4u-btn--primary {
  background: var(--at4u-gold);
  border-color: var(--at4u-gold);
  color: var(--at4u-navy);
}

.at4u-btn--primary:hover {
  background: var(--at4u-gold-hover);
  border-color: var(--at4u-gold-hover);
  color: var(--at4u-navy);
}

.at4u-btn--secondary {
  background: var(--at4u-navy);
  border-color: var(--at4u-navy);
  color: var(--at4u-white);
}

.at4u-btn--secondary:hover {
  background: var(--at4u-blue);
  border-color: var(--at4u-blue);
  color: var(--at4u-white);
}

.at4u-btn--outline {
  background: transparent;
  border-color: var(--at4u-navy);
  color: var(--at4u-navy);
}

.at4u-btn--outline:hover {
  background: var(--at4u-navy);
  color: var(--at4u-white);
}

.at4u-btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--at4u-white);
}

.at4u-btn--outline-light:hover {
  background: var(--at4u-white);
  border-color: var(--at4u-white);
  color: var(--at4u-navy);
}

.at4u-btn:disabled,
.at4u-btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* ========================================================================
   06. FORMS
   ======================================================================== */
label {
  font-weight: 700;
}

input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']),
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  background: var(--at4u-white);
  border: 1px solid #cdd8e4;
  border-radius: var(--at4u-radius-sm);
  color: var(--at4u-heading);
  line-height: 1.4;
}

textarea {
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: var(--at4u-muted);
  opacity: 1;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--at4u-blue);
}

/* ========================================================================
   07. WORDPRESS & FALLBACK INDEX.PHP CONTENT
   ======================================================================== */
.site-main {
  min-height: 45vh;
  padding-block: clamp(44px, 6vw, 84px);
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  margin-bottom: 0.5rem;
}

.archive-description {
  max-width: 750px;
}

.site-entry {
  max-width: 880px;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--at4u-border);
}

.site-entry:last-of-type {
  border-bottom: 0;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--at4u-blue);
}

.entry-content > * + * {
  margin-top: 1rem;
}

.entry-content img,
.entry-content .wp-block-image img {
  height: auto;
}

.entry-content .alignwide {
  max-width: 100%;
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  margin-top: 0.5rem;
  color: var(--at4u-muted);
  font-size: var(--at4u-text-sm);
}

.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--at4u-border);
  border-radius: var(--at4u-radius-sm);
  text-decoration: none;
}

.navigation.pagination .page-numbers.current {
  background: var(--at4u-navy);
  border-color: var(--at4u-navy);
  color: var(--at4u-white);
}

/* WordPress-generated state/alignment classes. */
.sticky {
  position: relative;
}

.bypostauthor {
  display: block;
}

/* Meet & Greet on the homepage and Airport Transfers page. */
.at4u-meet-greet__included {
  margin: 0;
  padding: 0;
  list-style: none;
}
.at4u-meet-greet__included li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
}
.at4u-meet-greet__included svg { flex-shrink: 0; margin-top: 2px; }
.at4u-meet-greet__included strong,
.at4u-meet-greet__included span { display: block; line-height: 1.5; }
.at4u-meet-greet__included span { margin-top: 3px; }

.at4u-meet-greet--homepage {
  padding-block: clamp(48px, 6vw, 88px);
  background: var(--at4u-bg);
}
.at4u-meet-greet--homepage .at4u-meet-greet__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.at4u-meet-greet--homepage .at4u-meet-greet__title {
  margin: 0 0 14px;
  font-size: var(--at4u-h2);
  font-weight: 800;
}
.at4u-meet-greet--homepage .at4u-meet-greet__intro {
  max-width: 48ch;
  margin: 0;
  font-size: var(--at4u-text-lg);
  line-height: 1.55;
}
.at4u-meet-greet__quote { margin-top: 24px; }
.at4u-meet-greet--homepage .at4u-meet-greet__included li {
  padding-block: 16px;
}
.at4u-meet-greet--homepage .at4u-meet-greet__included li + li {
  border-top: 1px solid var(--at4u-border);
}
.at4u-meet-greet--homepage .at4u-meet-greet__included li:last-child { padding-bottom: 0; }
.at4u-meet-greet--homepage .at4u-meet-greet__waiting { border-top: 2px solid var(--at4u-gold); }
.at4u-meet-greet--homepage .at4u-meet-greet__included svg { color: var(--at4u-blue); }
.at4u-meet-greet--homepage .at4u-meet-greet__included strong {
  color: var(--at4u-heading);
  font-size: var(--at4u-text-lg);
}
.at4u-meet-greet__included .at4u-meet-greet__duration {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 6px clamp(12px, 2vw, 28px);
  margin-bottom: 16px;
  font-family: var(--at4u-font-heading);
}
.at4u-meet-greet__duration span { margin-top: 0; }
.at4u-meet-greet__duration .at4u-meet-greet__limit {
  grid-column: 1 / -1;
  font-size: var(--at4u-text-base);
}
.at4u-meet-greet__duration .at4u-meet-greet__minutes {
  color: var(--at4u-blue);
  font-size: clamp(5rem, 9vw, 8rem);
  letter-spacing: -.03em;
  line-height: .85;
}
.at4u-meet-greet__duration .at4u-meet-greet__units {
  max-width: 14ch;
  padding-bottom: 4px;
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.at4u-meet-greet--homepage .at4u-meet-greet__fee {
  margin-top: 6px;
  color: var(--at4u-heading);
  font-weight: 700;
}
@media (max-width: 760px) {
  .at4u-meet-greet--homepage .at4u-meet-greet__layout { grid-template-columns: minmax(0, 1fr); }
}

.at4u-meet-greet--compact {
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: var(--at4u-radius-md);
  background: var(--at4u-navy);
  color: var(--at4u-white);
}
.at4u-meet-greet--compact .at4u-meet-greet__title {
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
}
.at4u-meet-greet--compact .at4u-meet-greet__intro { margin: 0; }
.at4u-meet-greet--compact .at4u-meet-greet__intro,
.at4u-meet-greet--compact .at4u-meet-greet__included span {
  color: #c5d3e4;
  font-size: .9375rem;
  line-height: 1.5;
}
.at4u-meet-greet--compact .at4u-meet-greet__included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #34465e;
}
.at4u-meet-greet--compact .at4u-meet-greet__included svg { color: var(--at4u-gold); }
@media (max-width: 600px) {
  .at4u-meet-greet--compact { padding: 24px; }
  .at4u-meet-greet--compact .at4u-meet-greet__included {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  clip-path: inset(50%);
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--at4u-white);
  color: var(--at4u-navy);
  font-size: 0.875rem;
  font-weight: 800;
}

/* ========================================================================
   08. RESPONSIVE DEFAULTS
   ======================================================================== */
@media (max-width: 1024px) {
  :root {
    --at4u-gutter: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --at4u-gutter: 18px;
    --at4u-section-space: 64px;
  }

  body {
    font-size: 0.975rem;
  }

  .at4u-btn,
  a.at4u-btn,
  button.at4u-btn,
  input.at4u-btn {
    min-height: 48px;
    padding: 0.75rem 1.15rem;
  }

  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 1.25rem auto;
  }

  .site-entry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --at4u-gutter: 16px;
    --at4u-section-space: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
