/* ===== Lucky Automobile & Workshop — main stylesheet ===== */
:root {
  --navy: #0f1f3d;
  --navy-2: #172b52;
  --accent: #e8491d;
  --accent-dark: #c63a12;
  --text: #1f2937;
  --muted: #5b6475;
  --surface: #f4f6fa;
  --white: #ffffff;
  --border: #e3e7ee;
  --shadow: 0 6px 24px rgba(15, 31, 61, 0.10);
  --radius: 10px;
  --heading: 'Rajdhani', 'Segoe UI', sans-serif;
  --body: 'Poppins', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--navy); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 70px 0; }
.section-surface { background: var(--surface); }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading p { color: var(--muted); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.navbar {
  max-width: 1180px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--heading); font-weight: 700; font-size: 1.35rem; color: var(--white); letter-spacing: .5px; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: .75rem; color: #b9c3d6; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #dbe2ee; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent); color: var(--white);
  padding: 8px 18px; border-radius: 6px;
}
.nav-links .nav-cta:hover { background: var(--accent-dark); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: .25s; font-family: var(--body);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-block { width: 100%; }
.center-btn { text-align: center; margin-top: 36px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(rgba(15,31,61,.82), rgba(15,31,61,.88)), url('../images/gallery-workshop-2.jpg') center/cover no-repeat, var(--navy);
  color: var(--white); text-align: center; padding: 120px 16px 110px;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.15rem; color: #dbe2ee; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Stats ===== */
.stats-bar { background: var(--accent); color: var(--white); padding: 30px 16px; }
.stats-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 16px; }
.stat-num { font-family: var(--heading); font-size: 2.2rem; font-weight: 700; }
.stat-label { font-size: .9rem; opacity: .9; }

/* ===== Grids & cards ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
.card-photo { width: calc(100% + 52px); margin: -26px -26px 18px; height: 200px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: #d9dee8; }
.card .icon { font-size: 2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.learn-more { font-weight: 600; }

.why-point { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.why-point p { color: var(--muted); margin: 0; }
.check { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.img-placeholder {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, #d9dee8, #c3cad8); aspect-ratio: 4 / 3;
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.img-placeholder:hover img { transform: scale(1.06); }
.g-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: linear-gradient(transparent, rgba(15,31,61,.85)); color: var(--white); font-size: .85rem; font-weight: 500;
}

/* Gallery filter (pure CSS) */
.filter-wrap > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-tabs label {
  padding: 8px 20px; border-radius: 30px; border: 2px solid var(--navy); color: var(--navy);
  cursor: pointer; font-weight: 500; font-size: .9rem; transition: .2s;
}
.filter-tabs label:hover { background: var(--navy); color: var(--white); }
#tab-all:checked ~ .filter-tabs label[for="tab-all"],
#tab-workshop:checked ~ .filter-tabs label[for="tab-workshop"],
#tab-engine:checked ~ .filter-tabs label[for="tab-engine"],
#tab-denting:checked ~ .filter-tabs label[for="tab-denting"],
#tab-full:checked ~ .filter-tabs label[for="tab-full"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
#tab-workshop:checked ~ .gallery-grid .g-item:not(.workshop),
#tab-engine:checked ~ .gallery-grid .g-item:not(.engine),
#tab-denting:checked ~ .gallery-grid .g-item:not(.denting),
#tab-full:checked ~ .gallery-grid .g-item:not(.full) { display: none; }

/* ===== Testimonials ===== */
.testimonial-card { background: var(--white); padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.stars { color: #f5a623; font-size: 1.2rem; margin-bottom: 10px; }
.quote { font-style: italic; color: var(--muted); }
.author { font-weight: 600; color: var(--navy); }

/* ===== CTA ===== */
.cta-banner { background: var(--accent); text-align: center; padding: 60px 16px; }
.cta-banner h2 { color: var(--white); margin-bottom: 24px; }

/* ===== Page banner ===== */
.page-banner { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); text-align: center; padding: 64px 16px; }
.page-banner h1 { color: var(--white); margin-bottom: 8px; }
.breadcrumb { color: #b9c3d6; font-size: .9rem; }
.breadcrumb a { color: var(--accent); }

/* ===== About ===== */
.legal-content { max-width: 860px; }
.legal-content h2 { margin-top: 28px; }
.legal-content ul { padding-left: 22px; margin: 0 0 12px; }
.updated { color: var(--muted); font-size: .9rem; }
.owner-card { display: flex; align-items: center; gap: 20px; background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.owner-card img { flex: 0 0 auto; background: #d9dee8; }
.owner-card p { margin: 0; color: var(--muted); }
.gst-box { background: var(--white); border: 2px dashed var(--accent); border-radius: var(--radius); padding: 26px; }
.gst-box dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; }
.gst-box dt { font-weight: 600; color: var(--navy); }
.gst-box dd { margin: 0; color: var(--text); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; }

/* ===== Services ===== */
.service-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-bottom: 30px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.service-photo { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; background: #d9dee8; }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.service-head h2 { margin: 0; }
.icon-lg { font-size: 2.2rem; }
.service-desc { color: var(--muted); }
.sub-services { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.sub-services li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.faq-item { background: var(--white); border-radius: 8px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; color: var(--accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-detail-block { margin-bottom: 22px; }
.contact-detail-block h4 { margin-bottom: 6px; }
.contact-detail-block p { color: var(--muted); }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a { padding: 8px 18px; border-radius: 6px; background: var(--navy); color: var(--white); font-size: .9rem; }
.social-links a:hover { background: var(--accent); color: var(--white); }
.form-card { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--body); font-size: .95rem; background: #fbfcfe; transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-success { display: none; background: #e7f7ec; color: #1d7a3a; border: 1px solid #b6e3c4; padding: 14px; border-radius: 6px; margin-bottom: 16px; font-weight: 500; }
.form-success.show { display: block; }

/* ===== 404 ===== */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 16px; }
.error-page .code { font-family: var(--heading); font-size: 7rem; font-weight: 700; color: var(--accent); line-height: 1; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #b9c3d6; padding: 60px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 40px; }
.footer-logo { font-family: var(--heading); font-weight: 700; font-size: 1.35rem; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.site-footer h4 { color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c3d6; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0 0 6px; }
.contact-line { margin-bottom: 10px !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .85rem; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px;
    max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s;
  }
  .nav-links.open { max-height: 420px; padding: 10px 16px 18px; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .section { padding: 50px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sub-services { grid-template-columns: 1fr; }
  .hero { padding: 80px 16px; }
  .stat-num { font-size: 1.6rem; }
  .gst-box dl { grid-template-columns: 1fr; gap: 2px; }
  .gst-box dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .gallery-grid, .gallery-grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.1rem; }
}
