/* ===================================================================
   Garage Công Thành — styles.css
   Tông màu: charcoal (nền tối) + cam (accent). Responsive, mobile-first.
   =================================================================== */

:root {
  --bg:          #0f1115;
  --bg-alt:      #151922;
  --bg-dark:     #0b0d11;
  --surface:     #1b2029;
  --surface-2:   #222835;
  --border:      #2a3140;
  --text:        #e8ebf0;
  --text-muted:  #9aa4b2;
  --accent:      #ff6a2b;
  --accent-2:    #ff8c42;
  --accent-soft: rgba(255, 106, 43, 0.12);
  --success:     #2ecc71;
  --star:        #ffc93c;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 45px rgba(0, 0, 0, 0.35);
  --maxw:        1160px;
  --font-head:   'Barlow Condensed', 'Inter', sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: .5px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow.light { color: var(--accent-2); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(255,106,43,.32); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 12px 30px rgba(255,106,43,.42); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,17,21,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: 1px;
}
.brand-text { font-size: 1.35rem; letter-spacing: .5px; }
.brand-text strong { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 8px 14px; color: var(--text-muted); font-weight: 500; font-size: .96rem; border-radius: 8px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav .nav-cta { color: #fff; margin-left: 8px; }
.main-nav .nav-cta:hover { 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: 2.5px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 12vw, 120px) 0 clamp(50px, 8vw, 90px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -5%, rgba(255,106,43,.22), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(255,140,66,.10), transparent 60%),
    linear-gradient(180deg, #0b0d11, #0f1115);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero h1 { margin: 6px 0 20px; }
.hero-sub { font-size: 1.12rem; color: var(--text-muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 2.3rem; color: #fff; line-height: 1; }
.hero-stats span { color: var(--text-muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--accent); color: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 14px 22px; font-weight: 600; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { margin-bottom: 14px; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
}

.service-card { transition: transform .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--accent-soft); margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .97rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border);
  background:
    repeating-linear-gradient(135deg, var(--surface), var(--surface) 18px, var(--surface-2) 18px, var(--surface-2) 36px);
  display: grid; place-items: center; color: var(--text-muted); font-size: .95rem;
}
.about-badge {
  position: absolute; right: -14px; bottom: -14px;
  background: var(--accent); color: #fff; border-radius: 16px; padding: 16px 22px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.about-badge strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.about-badge span { font-size: .82rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 1px; }
.about-content p { color: var(--text-muted); margin-bottom: 22px; }
.about-content h2 { margin-bottom: 18px; }
.check-list { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h3 { margin-bottom: 8px; }
.price-card .price { color: var(--text-muted); margin-bottom: 20px; }
.price-card .price strong { font-family: var(--font-head); font-size: 2rem; color: var(--text); }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.price-card li { padding-left: 26px; position: relative; color: var(--text-muted); font-size: .96rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card .tag {
  position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 100px;
}
.pricing-note { text-align: center; color: var(--text-muted); font-size: .88rem; margin-top: 26px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 14px, var(--surface-2) 14px, var(--surface-2) 28px);
  display: grid; place-items: center; color: var(--text-muted); font-size: .9rem;
  transition: transform .2s; overflow: hidden;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; gap: 14px; }
.review-card .stars { color: var(--star); letter-spacing: 3px; }
.review-card p { color: var(--text); font-style: italic; }
.review-card footer { color: var(--text-muted); font-size: .9rem; font-style: normal; }

/* ---------- Booking ---------- */
.booking-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: start; }
.booking-intro h2 { margin-bottom: 18px; }
.booking-intro p { color: var(--text-muted); margin-bottom: 26px; }
.booking-contact { list-style: none; display: grid; gap: 14px; }
.booking-contact li { font-size: 1.05rem; }
.booking-contact a { color: var(--accent-2); font-weight: 600; }

.booking-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--text); }
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: .96rem; font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.booking-form textarea { resize: vertical; }
.booking-form input.invalid,
.booking-form select.invalid { border-color: #e74c3c; }
.form-hint { font-size: .92rem; min-height: 1.2em; }
.form-hint.success { color: var(--success); }
.form-hint.error { color: #ff7a6b; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info { display: grid; gap: 24px; align-content: start; }
.contact-item { display: flex; gap: 16px; }
.ci-icon { font-size: 1.4rem; }
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); }
.contact-item a { color: var(--accent-2); }
.contact-socials { display: flex; gap: 12px; margin-top: 4px; }
.contact-map { min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; }
.footer-brand { display: flex; gap: 14px; max-width: 380px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.3rem; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.footer-nav a { color: var(--text-muted); font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { color: var(--text-muted); font-size: .86rem; text-align: center; }

/* ---------- Floating call button ---------- */
.floating-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 10px 26px rgba(255,106,43,.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,106,43,.5); }
  70% { box-shadow: 0 0 0 16px rgba(255,106,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,106,43,0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 10px 16px 20px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 10px; border-radius: 8px; }
  .main-nav .nav-cta { margin: 10px 0 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .grid-3, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}
