/* ===== โตโยต้าพนมรุ้ง — Static Landing (clone จาก toyotaphanomrung.com) ===== */
:root {
  --navy: #14314f;
  --navy-2: #0f2540;
  --blue: #005eb8;
  --text: #222;
  --header-h: 70px;
  --maxw: 1190px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ======= HEADER ======= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo { width: 42px; height: 42px; }
.brand-name { font-size: 23px; font-weight: 600; letter-spacing: .2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 16px;
  font-size: 16px;
  color: var(--text);
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.site-nav a:hover { color: var(--blue); background: #f0f5fa; }

.site-nav a.nav-cta {
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  margin-left: 6px;
}

.site-nav a.nav-cta:hover { background: #004e9b; color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ======= HERO ======= */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  background: var(--navy);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 25, 45, .62) 0%, rgba(10, 25, 45, .28) 55%, rgba(10, 25, 45, .45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.hero-logo {
  width: 320px;
  max-width: 72vw;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
}

.hero-tagline {
  color: #fff;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.hero-play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  transition: transform .2s;
}

.hero-play:hover { transform: scale(1.06); }

.hero-play img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.85);
  font-size: 26px;
  line-height: 1;
  animation: bob 1.8s ease-in-out infinite;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ======= SERVICES ======= */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px 24px 64px;
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .2px;
}

.section-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #444;
  margin-top: 6px;
  margin-bottom: 42px;
}

.section-title.light { color: #fff; }

.services-wrap {
  position: relative;
}

.services-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 24px 14px;
  scrollbar-width: none;
  clip-path: none;
}

.services-track::-webkit-scrollbar { display: none; }

.svc-card {
  flex: 0 0 calc((100% - 44px - 48px) / 3.55);
  min-width: 250px;
  scroll-snap-align: start;  /* aligns to scroll-padding-left */
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(15, 37, 64, .18);
  transition: transform .25s, box-shadow .25s;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(15, 37, 64, .28);
}

.svc-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.svc-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 60px 16px 76px;
  text-align: left;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 37, 64, .92));
}

.svc-card strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.svc-card span { font-size: 14.5px; opacity: .92; }

.svc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}

.svc-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.svc-arrow.prev { left: 36px; }
.svc-arrow.next { right: 34px; }

.services-bullets {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.services-bullets button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #c9d4de;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.services-bullets button.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* ======= BRANCHES ======= */
.branches {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 70px 0 0;
  overflow: hidden;
}

.branches::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/showroom.jpg') center/cover no-repeat;
  opacity: .16;
}

.branches::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,49,79,.25), rgba(20,49,79,.85));
}

.branches > * { position: relative; z-index: 1; }

.branch-map {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 0 24px;
}

.branch-map img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.branches-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.branch-col {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 30px 32px 28px;
  backdrop-filter: blur(2px);
}

.branch-col h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}

.branch-col p {
  font-size: 16px;
  opacity: .95;
}

.branch-col a { font-weight: 600; color: #9ec7ee; }
.branch-col a:hover { text-decoration: underline; }

.branch-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  opacity: .9;
}

.socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

.socials a:hover { transform: scale(1.12); }

.socials .line-icon {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* ======= FOOTER ======= */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--navy-2);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 20px 24px;
  font-size: 14px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
    box-shadow: 0 8px 14px rgba(0,0,0,.14);
    display: none;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 24px; border-radius: 0; }
  .site-nav a.nav-cta { margin: 6px 16px 0; text-align: center; }

  .hero { min-height: 400px; max-height: 520px; }
  .hero-content { padding: 32px 20px 48px; gap: 20px; }
  .hero-tagline { font-size: 20px; }
  .hero-logo { width: 230px; }
  .hero-play img { width: 46px; height: 46px; }

  .section-title { font-size: 27px; }
  .section-subtitle { font-size: 16px; margin-bottom: 30px; }

  .services { padding: 54px 16px 44px; }
  .services-wrap { margin: 0 -16px; }
  .services-track { padding: 6px 16px 12px; }
  .svc-card { flex-basis: 76%; min-width: 0; }
  .svc-arrow { display: none; }
  .svc-card strong { font-size: 19px; }

  .branches { padding-top: 52px; }
  .branch-map { padding: 0 16px; margin-top: 26px; }
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 16px 48px;
  }
  .branch-col { padding: 24px 22px 22px; }
}
