/* ==========================================================================
   Micros de Gira — styles
   ========================================================================== */

:root{
  --dark: #101215;
  --dark-2: #1a1d22;
  --dark-3: #22262c;
  --green: #27c96a;
  --green-dark: #1fa757;
  --text-muted: #9a9ea4;
  --white: #ffffff;
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --header-h: 100px;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3{ margin: 0; font-weight: 700; }
p{ margin: 0; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Reveal animation — defensive: content visible even if JS never runs */
.reveal{ opacity: 1; transform: none; }
.reveal[data-split]{ opacity: 1; transform: none; }
.reveal.js-ready{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.js-ready.in-view{ opacity: 1; transform: none; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}
.btn-primary{
  background: var(--green);
  color: var(--white);
  transition: background .2s ease, transform .2s ease;
}
.btn-primary:hover{ background: var(--green-dark); transform: translateY(-2px); }

.section-title{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin-bottom: 48px;
}

/* ---------------------------------- Header ---------------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled{
  background: var(--dark);
  box-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.header-inner{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{ display: flex; align-items: center; }
.brand-logo{
  height: 76px;
  width: auto;
}
.site-nav ul{ display: flex; gap: 36px; }
.site-nav a{
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}
.site-nav a::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s ease;
}
.site-nav a:hover::after{ width: 100%; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------------------------------- Hero ---------------------------------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.hero-bg img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.35) 40%, rgba(10,11,13,.75) 100%);
}
.hero-content{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 100px;
  width: 100%;
}
.hero-content h1{
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.1;
  max-width: 780px;
}
.hero-content p{
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  max-width: 620px;
  margin-top: 22px;
}
.hero-content .btn{ margin-top: 34px; }

/* ---------------------------------- Services ---------------------------------- */
.services{ padding: 100px 0; background: var(--dark); }
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card{ text-align: left; }
.service-photo{
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-3);
}
.service-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-photo img{ transform: scale(1.06); }
.service-card h3{
  margin-top: 20px;
  font-size: 1.15rem;
}
.service-card p{
  margin-top: 10px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------------------------------- Testimonials ---------------------------------- */
.testimonials{ padding: 100px 0; background: var(--dark); }
.testimonials-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card{
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stars{ color: var(--green); letter-spacing: 3px; font-size: 1.1rem; }
.quote{ color: rgba(255,255,255,.85); font-size: .96rem; line-height: 1.6; flex-grow: 1; }
.testimonial-author{ display: flex; align-items: center; gap: 14px; }
.testimonial-author img{
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author strong{ display: block; font-size: .92rem; }
.testimonial-author span{ display: block; font-size: .8rem; color: var(--text-muted); }

/* ---------------------------------- About ---------------------------------- */
.about{
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 640px;
}
.about-photo{ position: relative; height: 100%; min-height: 420px; }
.about-photo img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-content{
  background: var(--dark);
  color: var(--white);
  padding: 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.about-content .eyebrow{
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.about-content h2{
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
}
.about-content p{ color: rgba(255,255,255,.78); line-height: 1.65; font-size: .96rem; }
.about-content .btn{ align-self: flex-start; margin-top: 10px; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer{ background: var(--dark); color: rgba(255,255,255,.85); }
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo{ height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p{ font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer-col h3{
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-col p{ font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.footer-phone{ margin-bottom: 12px; }
.footer-phone strong{ color: rgba(255,255,255,.9); font-weight: 600; }
.footer-col a:hover{ color: var(--green); }
.social-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}
.social-link:hover{ color: var(--green); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 24px;
  text-align: center;
}
.footer-bottom p{ font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 960px){
  .about{ grid-template-columns: 1fr; }
  .about-photo{ min-height: 360px; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
  :root{ --header-h: 84px; }
  .brand-logo{ height: 58px; }
  .nav-toggle{ display: flex; }
  .site-nav{
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .site-nav.open{ max-height: 320px; }
  .site-nav ul{ flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .site-nav a{ display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }

  .services-grid{ grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .about-content{ padding: 48px 24px; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px){
  .footer-inner{ grid-template-columns: 1fr; }
  .hero-content{ padding-bottom: 70px; }
}

@media (max-width: 768px){
  /* On narrow screens the wide bus photo gets cropped hard by object-fit: cover.
     Shift the focal point toward the bus's front (right side of the source photo)
     instead of the default center, which mostly showed mountains and the side panel. */
  .hero-bg img{ object-position: 90% 45%; }
}
