/* ============================================================
   Auto Mirror Glass Factory — Global Stylesheet
   B2B industrial blue / dark gray theme
   ============================================================ */

:root {
  --blue-900: #042C53;
  --blue-800: #0C447C;
  --blue-600: #185FA5;
  --blue-400: #378ADD;
  --blue-100: #B5D4F4;
  --blue-50:  #E6F1FB;
  --gray-900: #2C2C2A;
  --gray-800: #444441;
  --gray-600: #5F5E5A;
  --gray-400: #888780;
  --gray-200: #D3D1C7;
  --gray-100: #EDEDE8;
  --orange-600: #993C1D;
  --orange-400: #D85A30;
  --orange-100: #F5C4B3;
  --orange-50:  #FAECE7;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(4, 44, 83, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
}

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Typography ---------- */
h1 { font-size: 34px; line-height: 1.25; color: var(--blue-900); font-weight: 700; margin-bottom: 18px; }
h2 { font-size: 26px; line-height: 1.3; color: var(--blue-900); font-weight: 700; margin: 40px 0 16px; }
h3 { font-size: 19px; color: var(--blue-800); font-weight: 600; margin: 24px 0 10px; }
p  { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 6px; }
.section { padding: 56px 0; }
.section-gray { background: var(--gray-100); }
.section-blue { background: var(--blue-50); }
.section-lead { font-size: 17px; color: var(--gray-600); max-width: 820px; }
.small-note { font-size: 13px; color: var(--gray-400); }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 15px;
}
.logo-text { font-size: 17px; font-weight: 700; color: var(--blue-900); line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--gray-400); letter-spacing: 1px; }

.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; }
.nav-menu a { color: var(--gray-800); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-menu a:hover { color: var(--blue-600); }
.nav-cta {
  background: var(--orange-400); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--radius); font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-600); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--gray-800); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* Nav dropdown */
.nav-item-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: -12px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 240px; padding: 8px 0; z-index: 110;
}
.nav-item-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 14px; color: var(--gray-800); white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--blue-50); color: var(--blue-600); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; text-decoration: none !important;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-800); }
.btn-accent { background: var(--orange-400); color: var(--white); }
.btn-accent:hover { background: var(--orange-600); }
.btn-outline { background: transparent; color: var(--blue-600); border: 2px solid var(--blue-600); }
.btn-outline:hover { background: var(--blue-50); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
  color: var(--white);
  padding: 84px 0;
}
.hero h1 { color: var(--white); font-size: 42px; max-width: 760px; }
.hero p { font-size: 19px; color: var(--blue-100); max-width: 700px; margin-bottom: 28px; }
.hero .btn { margin-right: 14px; margin-bottom: 10px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-badge {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px; padding: 6px 16px; font-size: 13.5px; color: var(--blue-100);
}
.page-hero {
  background: var(--blue-900);
  color: var(--white);
  padding: 52px 0 46px;
}
.page-hero h1 { color: var(--white); font-size: 32px; margin-bottom: 10px; }
.page-hero p { color: var(--blue-100); font-size: 17px; max-width: 760px; margin-bottom: 0; }
.breadcrumb { font-size: 13px; color: var(--blue-100); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue-100); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--blue-400); }
.card h3 { margin-top: 0; }
.card p { color: var(--gray-600); font-size: 15px; flex: 1; }
.card .card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.card .btn { align-self: flex-start; margin-top: 8px; padding: 10px 22px; font-size: 14.5px; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--blue-800); color: var(--white); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 38px; font-weight: 700; color: var(--white); }
.stat-label { font-size: 14px; color: var(--blue-100); margin-top: 4px; }

/* ---------- Image placeholders ---------- */
.ph {
  background: var(--gray-100); border: 2px dashed var(--gray-400);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 14px; text-align: center; padding: 20px;
}
.ph::before { content: "📷"; font-size: 30px; margin-bottom: 8px; }
.ph.tall { min-height: 320px; }
.ph.wide { min-height: 220px; }
.ph.small { min-height: 150px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--white); }
.spec-table th, .spec-table td {
  border: 1px solid var(--gray-200); padding: 12px 16px; text-align: left; font-size: 14.5px;
}
.spec-table th { background: var(--blue-50); color: var(--blue-900); font-weight: 600; }
.spec-table tr:nth-child(even) td { background: #F7F9FB; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 28px 0; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; position: relative;
}
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-600); color: var(--white);
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.step-title { font-weight: 600; color: var(--blue-900); font-size: 14.5px; }
.step-desc { font-size: 12.5px; color: var(--gray-600); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); }
.faq-q {
  padding: 16px 20px; font-weight: 600; color: var(--blue-900);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q .chev { transition: transform 0.2s; color: var(--blue-600); font-size: 13px; flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--gray-600); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange-400); color: var(--white); padding: 48px 0; }
.cta-band h2 { color: var(--white); margin-top: 0; }
.cta-band p { color: var(--orange-50); font-size: 17px; }
.cta-band .btn { background: var(--white); color: var(--orange-600); margin-top: 8px; }
.cta-band .btn:hover { background: var(--orange-50); }

/* ---------- Forms ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 14px; color: var(--blue-900); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 15px; font-family: var(--font); background: var(--white); color: var(--gray-800);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px var(--blue-50);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 14.5px; }
.form-status.ok { display: block; background: #EAF3DE; color: #27500A; border: 1px solid #97C459; }
.form-status.err { display: block; background: #FCEBEB; color: #791F1F; border: 1px solid #F09595; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.contact-item h3 { margin: 2px 0 4px; font-size: 16px; }
.contact-item p { margin: 0; color: var(--gray-600); font-size: 15px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(4, 44, 83, 0.3); text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
.wa-float:hover { background: #1DA851; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: var(--gray-200); padding: 54px 0 0; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--gray-200); font-size: 14px; }
.site-footer a:hover { color: var(--blue-100); }
.footer-about p { font-size: 14px; color: var(--gray-400); margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid #444441; padding: 18px 0; font-size: 13px; color: var(--gray-400);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Two-column content ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.two-col.start { align-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .two-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 680px) {
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow);
    padding: 8px 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 13px 24px; }
  .nav-toggle { display: block; }
  .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 30px; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 27px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .spec-table { display: block; overflow-x: auto; }
}
