/* ===== DESIGN TOKENS ===== */
:root {
  --primary: #0c71c3;
  --secondary: #e51b23;
  --text: #333333;
  --white: #ffffff;
  --bg-light: #f2f2f2;
  --navy: #04194e;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* NOTE: fill_container equivalent — text inside flex/grid containers always gets:
   width: 100%; word-wrap: break-word  (prevents horizontal overflow) */

/* ===== LAYOUT ===== */
.container { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container-flex { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: var(--primary); color: var(--white);
  padding: 12px 28px; border: none; border-radius: 4px;
  cursor: pointer; font-weight: 700; font-size: 15px;
  font-family: inherit; display: inline-block;
}
.btn-primary:hover { background-color: #0860a8; }

/* ===========================
   HEADER
=========================== */
.top-header {
  background-color: #222; color: var(--white); height: 40px; font-size: 13px;
}
.top-header .container-flex { height: 100%; }
.top-header .left-info { display: flex; align-items: center; gap: 20px; }
.top-header .left-info a { color: var(--white); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.top-header .social-links { display: flex; align-items: center; gap: 14px; }
.top-header .social-links a { color: var(--white); display: flex; align-items: center; }

.main-header {
  background-color: var(--white); height: 80px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 1000;
}
.main-header .container-flex { height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 60px; width: auto; object-fit: contain; }

.nav-menu { margin: 0 auto; }
.nav-menu > ul { display: flex; gap: 36px; align-items: center; }
.nav-menu a { color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.nav-menu a:hover { color: var(--primary); }

.has-submenu { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); min-width: 220px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12); border-radius: 8px;
  padding: 4px; border: 1px solid #eee; flex-direction: column; gap: 0;
  margin: 0; list-style: none;
}
.has-submenu:hover > .submenu { display: flex; }
.submenu li { margin: 0; padding: 0; line-height: 1; }
.submenu li a { display: block; padding: 8px 14px; font-weight: 400; border-radius: 4px; font-size: 13px; line-height: 1.3; }
.submenu li a:hover { background: #f5f5f5; color: var(--primary); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); padding: 4px;
}

/* ===========================
   HOME PAGE
=========================== */
.home-hero {
  position: relative; height: 520px;
  background-image: url('/images/generated-1772589302808.png');
  background-size: cover; background-position: center;
  display: flex; align-items: center; padding: 0 100px;
}
.hero-card {
  background: rgba(255,255,255,0.7); border-radius: 12px;
  padding: 30px; max-width: 600px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-card h1 { font-size: 40px; font-weight: 900; color: var(--text); width: 100%; word-wrap: break-word; line-height: 1.2; }
.hero-card .hero-sub { font-size: 24px; font-weight: 700; color: var(--primary); width: 100%; word-wrap: break-word; }
.slider-dots { display: flex; gap: 10px; margin-top: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.active { background: var(--primary); }
.dot.inactive { background: var(--white); border: 1px solid var(--text); }

.blurb-strip {
  background-color: var(--primary); padding: 60px 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.blurb-item { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.blurb-item img { width: 60px; height: 60px; object-fit: contain; }
.blurb-item span { color: var(--white); font-size: 16px; font-weight: 600; width: 100%; word-wrap: break-word; }

.showroom-section { background: var(--white); padding: 80px; display: flex; flex-direction: column; gap: 60px; }
.showroom-heading { font-size: 24px; font-weight: 700; color: var(--text); width: 100%; word-wrap: break-word; }
.showroom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.showroom-card { display: flex; flex-direction: column; gap: 12px; }
.showroom-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; }
.showroom-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); }
.showroom-card p { font-size: 14px; color: var(--text); width: 100%; word-wrap: break-word; }

.repair-section { background: var(--bg-light); padding: 80px; display: flex; flex-direction: column; gap: 40px; }
.repair-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.repair-content { display: flex; flex-direction: column; gap: 16px; }
.repair-content h2 { font-size: 28px; font-weight: 700; color: var(--text); width: 100%; word-wrap: break-word; line-height: 1.3; }
.repair-content p { font-size: 15px; width: 100%; word-wrap: break-word; }
.repair-content h4 { font-size: 15px; font-weight: 700; }
.repair-list li { font-size: 14px; padding: 3px 0; }
.repair-image img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }

.about-section { background: var(--white); padding: 80px; display: flex; flex-direction: column; gap: 40px; }
.about-section h2 { font-size: 32px; font-weight: 700; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-col { display: flex; flex-direction: column; gap: 14px; }
.about-col h3 { font-size: 20px; font-weight: 700; color: var(--primary); }
.about-col p, .about-col li { font-size: 14px; width: 100%; word-wrap: break-word; }
.about-col li { padding: 4px 0; }
.about-col li::before { content: "• "; color: var(--primary); font-weight: 700; }

.contact-cta-section { background: var(--bg-light); padding: 80px; display: flex; flex-direction: column; gap: 40px; }
.contact-cta-section h2 { font-size: 28px; font-weight: 700; width: 100%; word-wrap: break-word; }
.contact-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cta-left { display: flex; flex-direction: column; gap: 16px; }
.cta-left p { font-size: 15px; }
.cta-list li { font-size: 15px; font-weight: 600; color: var(--primary); padding: 4px 0; }
.cta-list li::before { content: "✓ "; }
.map-placeholder {
  background: #ddd; height: 280px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #888;
}

/* ===========================
   FOOTER
=========================== */
.site-footer { margin-top: 0; }

.queries-section {
  background-color: var(--navy); color: var(--white);
  height: 198px; display: flex; align-items: center;
}
.queries-section .container { width: 100%; }
.queries-section h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; width: 100%; word-wrap: break-word; }
.queries-section p { font-size: 15px; width: 100%; word-wrap: break-word; }

.footer-contact-section { padding: 80px 0; background: var(--white); }
.footer-contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.footer-info h3 { margin-bottom: 24px; font-size: 20px; font-weight: 700; width: 100%; word-wrap: break-word; line-height: 1.4; }
.footer-info p { font-size: 14px; line-height: 2.1; }

.footer-form input, .footer-form textarea {
  width: 100%; padding: 12px 16px; margin-bottom: 16px;
  border: 1px solid #ccc; background: var(--bg-light);
  font-family: inherit; font-size: 14px; border-radius: 2px;
}
.footer-form textarea { resize: vertical; }

.service-areas-banner {
  background-color: var(--navy); color: var(--white);
  height: 138px; display: flex; align-items: center;
}
.service-areas-banner p { font-size: 14px; width: 100%; word-wrap: break-word; text-align: center; }

.final-footer {
  background-color: #333; color: var(--white);
  height: 137px; display: flex; align-items: center;
}
.final-footer .container { width: 100%; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer-socials a { color: var(--white); display: flex; align-items: center; }
.final-footer p { font-size: 13px; text-align: center; }

/* ===========================
   PRODUCTS PAGE
=========================== */
.products-page { background: var(--white); padding: 80px; display: flex; flex-direction: column; gap: 60px; }
.products-page h1 { font-size: 36px; font-weight: 700; color: var(--text); text-align: center; }
.product-category { display: flex; flex-direction: column; gap: 24px; }
.product-category h2 {
  font-size: 26px; font-weight: 700; color: var(--primary);
  padding-bottom: 10px; border-bottom: 2px solid var(--primary);
  width: 100%; word-wrap: break-word;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-grid.four-col { grid-template-columns: repeat(4, 1fr); }

.mac-card { background: var(--white); border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.mac-card img { width: 100%; height: 180px; object-fit: cover; }
.mac-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mac-card-title { font-size: 15px; font-weight: 700; color: var(--text); width: 100%; word-wrap: break-word; }
.mac-card-specs { font-size: 12px; color: #666; line-height: 1.8; width: 100%; word-wrap: break-word; white-space: pre-line; }

/* ===========================
   SERVICES PAGE
=========================== */
.services-page { background: var(--white); padding: 80px; display: flex; flex-direction: column; gap: 60px; }
.services-page h1 { font-size: 36px; font-weight: 700; color: var(--text); }

.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block-content { display: flex; flex-direction: column; gap: 16px; }
.service-block-content h2 { font-size: 26px; font-weight: 700; color: var(--primary); width: 100%; word-wrap: break-word; line-height: 1.3; }
.service-block-content p { font-size: 14px; line-height: 1.8; width: 100%; word-wrap: break-word; }
.service-block-content li { font-size: 14px; padding: 3px 0; }
.service-block img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; }

.service-highlight {
  background: var(--bg-light); padding: 60px; border-radius: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.service-highlight-content { display: flex; flex-direction: column; gap: 14px; }
.service-highlight-content h2 { font-size: 28px; font-weight: 700; color: var(--primary); width: 100%; word-wrap: break-word; }
.service-highlight-content .years { font-size: 48px; font-weight: 900; color: var(--primary); line-height: 1; }
.service-highlight-content p { font-size: 14px; line-height: 1.8; width: 100%; word-wrap: break-word; }
.service-highlight img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; }

/* ===========================
   BLOG
=========================== */
.page-title { margin: 60px 0 40px; font-size: 40px; color: var(--primary); text-align: center; font-weight: 700; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.blog-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.card-image img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 20px; }
.card-content > h2 { font-size: 18px; margin-bottom: 10px; color: var(--primary); width: 100%; word-wrap: break-word; }
.card-content > h2 a { color: inherit; }
.card-content p { font-size: 14px; color: #555; width: 100%; word-wrap: break-word; }
.card-content p h2, .card-content h2:not(:first-child) { font-size: 14px; color: #5bacdf; margin: 8px 0 4px; }
.read-more { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 700; font-size: 14px; }

.post-hero { padding: 80px 0; }
.post-hero h1 { font-size: 40px; color: var(--primary); margin-bottom: 30px; width: 100%; word-wrap: break-word; font-weight: 700; }
.hero-img { max-width: 100%; border-radius: 16px; margin-bottom: 40px; }
.content-text { font-size: 16px; line-height: 1.9; }
.content-text h2 { margin: 36px 0 16px; color: #5bacdf; font-size: 24px; font-weight: 700; }
.content-text p { margin-bottom: 18px; width: 100%; word-wrap: break-word; }
.content-text ul, .content-text ol { margin: 0 0 18px 24px; }
.content-text li { margin-bottom: 8px; }
.content-text strong { font-weight: 700; }

.pagination { margin: 40px 0 60px; }
.pagination-list { display: flex; list-style: none; justify-content: center; gap: 10px; }
.pagination-link { padding: 8px 16px; border: 1px solid #ddd; border-radius: 4px; color: var(--text); font-size: 14px; }
.pagination-link.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===========================
   SERVICE DETAIL PAGES
=========================== */
.service-detail-page { background: var(--white); }

.service-hero {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 80px 200px; text-align: center;
}
.service-hero h1 {
  font-size: 48px; font-weight: 700; color: var(--primary);
  max-width: 800px; width: 100%; word-wrap: break-word; line-height: 1.2;
}
.service-subtitle {
  font-size: 24px; font-weight: 600; color: #e51b23; text-align: center;
  width: 100%; word-wrap: break-word;
}
.service-hero-img {
  max-width: 1000px; width: 100%; height: 400px; object-fit: cover;
  border-radius: 16px;
}
.service-hero-text {
  max-width: 800px; display: flex; flex-direction: column; gap: 16px;
}
.service-hero-text .large { font-size: 18px; line-height: 1.6; }
.service-hero-text p { font-size: 16px; line-height: 1.5; width: 100%; word-wrap: break-word; }
.highlight-red { color: #e51b23; font-weight: 600; }

.service-hero-split {
  display: flex; align-items: center; gap: 60px; padding: 80px 160px;
}
.service-hero-split .service-hero-text { flex: 1; }
.service-hero-split .service-hero-text h1 {
  font-size: 44px; font-weight: 700; color: var(--primary);
  width: 100%; word-wrap: break-word; line-height: 1.2; margin-bottom: 12px;
}
.service-hero-split .service-hero-text .service-subtitle { text-align: left; margin-bottom: 8px; }
.service-hero-split .service-hero-text .large { font-size: 18px; line-height: 1.6; }
.service-hero-img-side {
  width: 400px; min-width: 400px; height: 400px; object-fit: cover;
  border-radius: 16px;
}

.service-two-col {
  display: flex; gap: 40px; padding: 40px 200px;
}
.service-col { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.service-col h2, .service-col h3 { font-size: 20px; font-weight: 700; color: var(--primary); }
.service-col-title { font-size: 24px !important; font-weight: 600 !important; color: #e51b23 !important; }
.service-col p { font-size: 15px; line-height: 1.6; width: 100%; word-wrap: break-word; }

.service-details {
  display: flex; flex-direction: column; gap: 32px; padding: 40px 200px;
}
.service-detail-block { display: flex; flex-direction: column; gap: 8px; }
.service-detail-block h2 { font-size: 24px; font-weight: 700; color: var(--primary); }
.service-detail-block h3 { font-size: 20px; font-weight: 700; color: var(--primary); }
.service-detail-block p { font-size: 16px; line-height: 1.6; width: 100%; word-wrap: break-word; }
.service-detail-block ul { padding-left: 24px; list-style: disc; }
.service-detail-block li { font-size: 16px; line-height: 1.8; padding: 2px 0; }

.service-checklist-section {
  text-align: center; padding: 40px 200px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.service-checklist-section h2 { font-size: 32px; font-weight: 700; color: var(--primary); }
.checklist-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 600px;
}
.checklist-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 600; color: var(--text);
}

.service-content-centered {
  display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 40px 200px;
}
.recovery-details { max-width: 800px; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.recovery-details h2 { font-size: 24px; font-weight: 700; color: var(--primary); }
.recovery-details ul { padding-left: 24px; list-style: disc; }
.recovery-details li { font-size: 16px; line-height: 1.8; }

.recovery-table { max-width: 800px; width: 100%; }
.recovery-table table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 8px; overflow: hidden;
}
.recovery-table th {
  background: var(--primary); color: var(--white); padding: 16px 20px;
  font-size: 18px; font-weight: 700; text-align: left;
}
.recovery-table td {
  padding: 14px 20px; font-size: 15px; background: var(--white);
  border-bottom: 1px solid #e0e0e0;
}
.recovery-table tr:last-child td { border-bottom: none; }

.stats-section {
  display: flex; gap: 40px; padding: 40px 200px; justify-content: center;
}
.stat-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #f5f5f5; border-radius: 16px; padding: 24px; text-align: center;
}
.stat-number { font-size: 40px; font-weight: 800; color: #e51b23; }
.stat-label { font-size: 18px; font-weight: 700; color: var(--text); }
.stat-card p { font-size: 14px; line-height: 1.5; color: #666; width: 100%; word-wrap: break-word; }

/* ===========================
   CONTACT PAGE
=========================== */
.contact-page {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 80px 200px; text-align: center;
}
.contact-page h1 { font-size: 48px; font-weight: 700; color: var(--primary); }
.contact-map-img {
  max-width: 1000px; width: 100%; height: 450px; object-fit: cover;
  border-radius: 16px;
}
.contact-info-grid { display: flex; gap: 40px; width: 100%; text-align: left; }
.contact-info-col { flex: 1; }
.contact-info-col h2 { font-size: 24px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.contact-info-col p { font-size: 18px; line-height: 1.5; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1200px) {
  .container { padding: 0 40px; }
  .blurb-strip { padding: 40px; }
  .showroom-section, .repair-section, .about-section,
  .contact-cta-section, .products-page, .services-page { padding: 60px 40px; }
  .product-grid.four-col { grid-template-columns: repeat(3, 1fr); }
  .service-hero, .service-details, .service-two-col,
  .service-checklist-section, .service-content-centered,
  .stats-section, .contact-page { padding-left: 80px; padding-right: 80px; }
  .service-hero-split { padding: 60px 80px; }
}
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .blurb-strip { grid-template-columns: repeat(2, 1fr); padding: 30px 20px; }
  .showroom-grid, .repair-inner, .about-inner, .contact-cta-inner { grid-template-columns: 1fr; }
  .showroom-section, .repair-section, .about-section,
  .contact-cta-section, .products-page, .services-page { padding: 40px 20px; }
  .service-block, .service-highlight { grid-template-columns: 1fr; }
  .service-block.reverse { direction: ltr; }
  .footer-contact-inner { grid-template-columns: 1fr; }
  .product-grid, .product-grid.four-col { grid-template-columns: repeat(2, 1fr); }
  .home-hero { padding: 0 20px; height: auto; min-height: 360px; }
  .hero-card h1 { font-size: 28px; }
  .hamburger { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--white); box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    padding: 16px 20px; margin: 0; z-index: 999;
  }
  .nav-menu.open { display: block; }
  .nav-menu > ul { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-menu > ul > li { border-bottom: 1px solid #eee; }
  .nav-menu > ul > li:last-child { border-bottom: none; }
  .nav-menu > ul > li > a { padding: 12px 0; font-size: 15px; }
  .has-submenu .submenu {
    position: static; transform: none; box-shadow: none; border: none;
    border-radius: 0; padding: 0 0 8px 16px; min-width: auto;
    display: none;
  }
  .has-submenu.open > .submenu { display: flex; }
  .submenu li a { padding: 8px 0; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .service-hero, .service-details, .service-two-col,
  .service-checklist-section, .service-content-centered,
  .stats-section, .contact-page { padding-left: 20px; padding-right: 20px; }
  .service-hero-split { flex-direction: column; padding: 40px 20px; }
  .service-hero-img-side { width: 100%; min-width: auto; height: 300px; }
  .service-two-col { flex-direction: column; }
  .stats-section { flex-direction: column; }
  .contact-info-grid { flex-direction: column; }
  .checklist-grid { grid-template-columns: 1fr; }
  .service-hero h1, .service-hero-split .service-hero-text h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  .blurb-strip { grid-template-columns: 1fr; }
  .product-grid, .product-grid.four-col { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .top-header .left-info { gap: 10px; font-size: 11px; }
}
