/* =============================================================
   SR TRANSPORTES — LANDING PAGE STYLES
   Design System: sr-transportes-visual-identity
   ============================================================= */

/* -------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------------- */
:root {
  /* Palette */
  --color-navy-deep:    #0A1C4E;
  --color-navy-dark:    #0F2567;
  --color-blue-mid:     #14328D;
  --color-cyan:         #00C9FF;
  --color-gray-body:    #5C6068;  /* darkened from #747880 for AA contrast on #fff/#F2F5FD */
  --color-gray-mid:     #666666;
  --color-gray-light:   #E7E9EE;
  --color-bg-base:      #F2F5FD;
  --color-white:        #FFFFFF;

  /* Typography */
  --font-heading: 'Lato', sans-serif;
  --font-body:    'Lato', sans-serif;

  /* Type scale */
  --fs-h1:   3.125rem;   /* 50px */
  --lh-h1:   3.375rem;   /* 54px */
  --fs-h2:   2.5rem;     /* 40px */
  --lh-h2:   2.75rem;    /* 44px */
  --fs-h3:   1.875rem;   /* 30px */
  --lh-h3:   2.125rem;   /* 34px */
  --fs-h4:   1.25rem;    /* 20px */
  --lh-h4:   1.5rem;     /* 24px */
  --fs-body: 1rem;       /* 16px */
  --lh-body: 1.15;       /* ~18.4px relative */

  /* Spacing */
  --section-pad: 5rem;   /* 80px */
  --content-max: 1200px;

  /* Misc */
  --radius: 4px;
  --radius-sm: 8px;   /* buttons, pills, chips */
  --radius-md: 14px;  /* cards, icon badges */
  --radius-lg: 20px;  /* photo panels */
  --photo-offset: 20px;
  --transition: 200ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-gray-body);
  background: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

/* -------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-dark);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 900; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 900; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; }

/* -------------------------------------------------------------
   HEADER / NAVEGAÇÃO
   ------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-navy-deep);
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(10, 28, 78, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height var(--transition);
}

.header--scrolled .header__inner {
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 60px;
  width: auto;
  transition: height var(--transition);
}

.header--scrolled .header__logo img {
  height: 40px;
}

.header__links {
  display: flex;
  gap: 2.25rem;
}

.header__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #C7CEE6;
  transition: color var(--transition);
  position: relative;
}

.header__link:hover,
.header__link:focus-visible {
  color: var(--color-cyan);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  border: none;
}

.btn--primary {
  background: var(--color-blue-mid);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(15, 37, 103, 0.15);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-navy-dark);
  color: var(--color-cyan);
  box-shadow: 0 12px 28px rgba(20, 50, 141, 0.4);
  transform: translateY(-2px);
}

.btn__arrow {
  color: var(--color-cyan);
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   SECTIONS (shared)
   ------------------------------------------------------------- */
.section {
  padding: var(--section-pad) 1.5rem;
}

.section--light {
  background: var(--color-bg-base);
}

.section--alt {
  background: var(--color-gray-light);
}

.section--dark {
  background: linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy-dark) 55%, var(--color-blue-mid) 145%);
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__heading {
  color: var(--color-navy-dark);
  margin-bottom: 1rem;
}

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

.section__body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-gray-body);
  margin-bottom: 1rem;
}

.section__body:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------
   1) HERO
   ------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy-dark) 55%, var(--color-blue-mid) 145%);
  padding-top: 88px; /* header height offset */
  overflow: hidden;
}

.hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__content {
  max-width: 580px;
}

.hero__headline {
  color: var(--color-white);
}

.hero__subheadline {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: #B7C0DE;
  margin-top: 1.375rem;
  max-width: 520px;
}

.hero__cta {
  margin-top: 2.25rem;
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 6 / 5;
  background:
    repeating-linear-gradient(
      45deg,
      #132a63,
      #132a63 12px,
      #0f2354 12px,
      #0f2354 24px
    );
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: var(--photo-offset) calc(-1 * var(--photo-offset)) calc(-1 * var(--photo-offset)) var(--photo-offset);
  background: var(--color-blue-mid);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* -------------------------------------------------------------
   2) SOBRE
   ------------------------------------------------------------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Stacked photo treatment: large primary photo, smaller photo overlapping bottom-left */
.sobre__media {
  position: relative;
  order: 1;
  padding-bottom: 3rem;
}

.sobre__media-primary {
  margin-left: 12%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 37, 103, 0.18);
}

.sobre__media-secondary {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid var(--color-white);
  box-shadow: 0 20px 45px rgba(15, 37, 103, 0.22);
  z-index: 2;
}

.sobre__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre__media-primary .placeholder,
.sobre__media-secondary .placeholder {
  box-shadow: none;
}

.sobre__text {
  order: 2;
}

.sobre__eyebrow {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-mid);
  margin-bottom: 0.875rem;
}

.sobre__heading-accent {
  color: var(--color-blue-mid);
}

.sobre__text .section__body {
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.sobre__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
  max-width: 540px;
}

.sobre__check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.sobre__check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.125rem;
  border-radius: 50%;
  background: rgba(0, 201, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre__check-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sobre__check-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy-dark);
}

.sobre__check-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-gray-body);
}

/* -------------------------------------------------------------
   3) SERVIÇOS
   ------------------------------------------------------------- */
.servicos__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.servicos__eyebrow {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-mid);
  margin-bottom: 0.875rem;
}

.servicos__heading {
  color: var(--color-navy-dark);
  max-width: 34ch;
  margin: 0 auto;
}

.servicos__subheadline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-gray-body);
  max-width: 640px;
  margin: 1rem auto 0;
}

/* Cards grid — 3 columns */
.servicos-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cards */
.servicos-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 37, 103, 0.07);
  transition: box-shadow var(--transition), transform var(--transition);
}

.servicos-card:hover {
  box-shadow: 0 16px 40px rgba(15, 37, 103, 0.14);
  transform: translateY(-4px);
}

.servicos-card__media {
  aspect-ratio: 4 / 3;
}

.servicos-card__media .placeholder {
  border-radius: 0;
  border-width: 0 0 2px;
  box-shadow: none;
}

.servicos-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicos-card__content {
  padding: 1.75rem;
  text-align: center;
}

.servicos-card__title {
  color: var(--color-navy-dark);
  font-size: 20px;
  margin-bottom: 0.75rem;
}

.servicos-card__body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-gray-body);
}

.servicos__cta {
  text-align: center;
  margin-top: 3rem;
}

/* -------------------------------------------------------------
   4) ROTAS / COBERTURA
   ------------------------------------------------------------- */
.rotas__text {
  margin-bottom: 2rem;
  text-align: center;
}

.rotas__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 37, 103, 0.14);
}

.rotas__photo-wrap {
  position: relative;
  aspect-ratio: 16 / 5;
  min-height: 200px;
}

.rotas__photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-navy-deep);
  opacity: 0.25;
  pointer-events: none;
}

.rotas__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

/* -------------------------------------------------------------
   5) DIFERENCIAIS
   ------------------------------------------------------------- */
.diferenciais__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.diferenciais__eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: #B7C0DE;
  margin-bottom: 0.875rem;
}

.diferenciais__subheadline {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #B7C0DE;
  margin: 1rem 0 2.25rem;
  max-width: 440px;
}

.diferenciais__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.diferenciais__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.diferenciais__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 0.125rem;
}

.diferenciais__item-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.diferenciais__item-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-white);
}

.diferenciais__item-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #B7C0DE;
  max-width: 440px;
}

/* Stacked photo treatment: large primary photo, secondary photo overlapping bottom-right */
.diferenciais__media {
  position: relative;
  padding-bottom: 3rem;
}

.diferenciais__media-primary {
  margin-right: 8%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.diferenciais__media-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.diferenciais__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------
   6) CONTATO
   ------------------------------------------------------------- */
.contato__inner {
  text-align: center;
}

.contato__sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #B7C0DE;
  margin-top: 0.75rem;
  margin-bottom: 2.5rem;
}

.contato__canais {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contato__canal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contato__canal:hover,
.contato__canal:focus-visible {
  color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.contato__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 201, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contato__cta {
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------
   7) FOOTER
   ------------------------------------------------------------- */
.footer {
  background: #060E2A;  /* slightly darker than navy-deep */
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer__logo-wrap {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.footer__logo {
  height: 60px;
  width: auto;
}

.footer__tagline {
  color: var(--color-gray-mid);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer__legal {
  color: var(--color-gray-mid);
  font-size: 0.8125rem;
  opacity: 0.7;
}

.footer__address {
  color: var(--color-gray-mid);
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* -------------------------------------------------------------
   PLACEHOLDER IMAGES
   ------------------------------------------------------------- */
.placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-gray-light);
  border: 2px dashed #B7C0DE;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(15, 37, 103, 0.18);
  text-align: center;
  padding: 2rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--color-navy-dark);
}

.placeholder--square {
  aspect-ratio: 1 / 1;
}

.placeholder--landscape {
  aspect-ratio: 16 / 5;
  min-height: 200px;
}

.placeholder__id {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-blue-mid);
  letter-spacing: 0.04em;
}

.placeholder__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 320px;
}

.placeholder__dim {
  font-size: 0.75rem;
  color: var(--color-gray-mid);
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */

/* Tablet — 768px */
@media (max-width: 900px) {
  :root {
    --fs-h1: 2.25rem;    /* 36px */
    --lh-h1: 2.5rem;     /* 40px */
    --fs-h2: 1.875rem;   /* 30px */
    --lh-h2: 2.125rem;   /* 34px */
    --fs-h3: 1.5rem;     /* 24px */
    --lh-h3: 1.75rem;    /* 28px */
    --fs-h4: 1.125rem;   /* 18px */
    --lh-h4: 1.375rem;   /* 22px */
    --section-pad: 3.5rem;
  }

  /* Hero — single column */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem 3.5rem;
  }

  .hero__visual {
    aspect-ratio: 16 / 9;
    order: -1; /* imagem acima do texto em mobile/tablet */
  }

  .hero__headline {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subheadline {
    max-width: 100%;
  }

  /* Sobre — single column, image above text */
  .sobre__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sobre__media {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
  }

  .sobre__text .section__body,
  .sobre__checklist {
    max-width: 100%;
  }

	  /* Serviços — header max-width no tablet */
	  .servicos__heading {
	    max-width: 100%;
	  }

	  .servicos__subheadline {
	    max-width: 100%;
	  }

  /* Diferenciais — single column, media above text */
  .diferenciais__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .diferenciais__media {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 2.5rem;
  }

  .diferenciais__subheadline,
  .diferenciais__item-desc {
    max-width: 100%;
  }

  /* Serviços — 1 column */
  .servicos-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Contato — stack canais */
  .contato__canais {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Header — hamburger menu */
  .header__hamburger {
    display: flex;
  }

  .header__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy-deep);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header__links--open {
    display: flex;
  }

  .header__link {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Mobile — 480px */
@media (max-width: 540px) {
  :root {
    --fs-h1: 2rem;       /* 32px */
    --lh-h1: 2.25rem;    /* 36px */
    --fs-h2: 1.625rem;   /* 26px */
    --lh-h2: 1.875rem;   /* 30px */
    --fs-h3: 1.375rem;   /* 22px */
    --lh-h3: 1.625rem;   /* 26px */
    --section-pad: 2.5rem;
    --photo-offset: 10px;
  }

  .hero__inner {
    padding: 2rem 1rem 3rem;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }


  .contato__canais {
    gap: 0.5rem;
  }

  .contato__canal {
    font-size: 0.875rem;
  }

  .btn {
    font-size: 0.9375rem;
    padding: 0.875rem 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
