/* ============================================================
   styles.css — Around Transportation Service
   Organized: Base → Layout → Components → Responsive
============================================================ */

/* ============================================================
   BASE STYLES — body, typography, links, resets
============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0d2340;
  --navy-dark:   #091929;
  --navy-mid:    #163352;
  --accent:      #1a6fc4;
  --accent-dark: #145ba0;
  --accent-light:#e8f1fb;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --light-gray:  #eaecf0;
  --mid-gray:    #6b7280;
  --dark-gray:   #374151;
  --text:        #1a2232;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 68px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.07);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

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

address {
  font-style: normal;
}

/* ============================================================
   LAYOUT — container, sections, header, footer
============================================================ */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

/* Generic section */
.section {
  padding-block: 5rem;
}

.section--light  { background-color: var(--off-white); }
.section--white  { background-color: var(--white); }
.section--navy   { background-color: var(--navy); }

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Footer */
.site-footer {
  background-color: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

/* ============================================================
   COMPONENTS — nav, hero, buttons, cards, forms, tables
============================================================ */

/* ---- Site logo ---- */
.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  flex-shrink: 0;
}

.site-logo:hover {
  color: rgba(255,255,255,.85);
}

/* ---- Desktop nav ---- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.82);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background-color: rgba(255,255,255,.10);
}

.nav-link--cta {
  background-color: var(--accent);
  color: var(--white);
  font-weight: 600;
  padding: 0.45rem 1rem;
}

.nav-link--cta:hover {
  background-color: var(--accent-dark);
  color: var(--white);
}

/* ---- Hamburger button ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.hamburger:hover {
  background-color: rgba(255,255,255,.12);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animated state */
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.btn--outline:hover {
  background-color: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.9);
  color: var(--white);
}

.btn--full {
  width: 100%;
  display: flex;
}

/* ---- Section label / eyebrow ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: rgba(255,255,255,.6);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.section-title--light {
  color: var(--white);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ---- Hero ---- */
.hero {
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding-block: 5.5rem 5rem;
}

.hero-inner {
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 640px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ---- About grid ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 0.5rem;
  align-items: start;
}

.about-text {
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.75;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fact-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fact-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.fact-label {
  font-size: 0.8rem;
  color: var(--mid-gray);
  font-weight: 500;
  line-height: 1.3;
}

/* ---- Services grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.93rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- Fleet grid ---- */
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 0.5rem;
}

.fleet-text {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.75;
}

.fleet-text p + p {
  margin-top: 1rem;
}

.fleet-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.fleet-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 0.75rem;
}

.fleet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fleet-list li {
  color: rgba(255,255,255,.82);
  font-size: 0.92rem;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.fleet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* ---- Lenders grid ---- */
.lenders-intro {
  max-width: 800px;
  color: var(--dark-gray);
  margin-bottom: 2.5rem;
}

.lenders-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.lenders-facts-title,
.lenders-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.facts-table tr {
  border-bottom: 1px solid var(--light-gray);
}

.facts-table tr:last-child {
  border-bottom: none;
}

.facts-table th {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  padding: 0.7rem 1rem 0.7rem 0;
  width: 38%;
  vertical-align: top;
}

.facts-table td {
  color: var(--dark-gray);
  padding: 0.7rem 0;
  vertical-align: top;
  line-height: 1.5;
}

.lenders-cta-box {
  background-color: var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
  color: rgba(255,255,255,.78);
}

.lenders-cta-box h3.lenders-cta-title {
  color: var(--white);
}

.lenders-cta-box p {
  font-size: 0.93rem;
  margin-bottom: 1rem;
}

.lenders-doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.lenders-doc-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,.8);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.4;
}

.lenders-doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}

.lenders-cta-btn {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* ---- Why Us grid ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  margin-top: 0.5rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-top: 0.1rem;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.92rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- Contact grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 0.5rem;
}

.contact-info-title {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-address {
  color: var(--dark-gray);
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-link {
  color: var(--dark-gray);
  display: inline-flex;
  gap: 0.35rem;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link-label {
  font-weight: 600;
  color: var(--navy);
}

.contact-hours-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-hours {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.65;
}

/* ---- Forms ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.required-star {
  color: var(--accent);
  margin-left: 1px;
}

.form-input {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,111,196,.15);
}

.form-input::placeholder {
  color: #aab0bd;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-notice {
  font-size: 0.9rem;
  font-weight: 500;
  color: #166534;
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  display: none;
}

.form-notice.visible {
  display: block;
}

.form-notice.error {
  color: #991b1b;
  background-color: #fee2e2;
  border-color: #fca5a5;
}

/* ---- Footer ---- */
.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 0;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-link:hover {
  color: rgba(255,255,255,.9);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — tablet and mobile media queries
============================================================ */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .fleet-details {
    grid-template-columns: 1fr 1fr;
  }

  .lenders-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Mobile: ≤ 640px — hamburger kicks in */
@media (max-width: 640px) {
  :root {
    --header-height: 60px;
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--navy-dark);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
    z-index: 99;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.15rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    color: rgba(255,255,255,.85);
  }

  .nav-link--cta {
    margin-top: 0.5rem;
    text-align: center;
    background-color: var(--accent);
  }

  .hero {
    padding-block: 3.5rem;
  }

  .hero-headline {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .section {
    padding-block: 3.5rem;
  }

  .about-facts {
    grid-template-columns: 1fr 1fr;
  }

  .fleet-details {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
  }
}
