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

  :root {
    --black: #0d2d6b;
    --off-white: #f7fbff;
    --gold: #f7941d;
    --gold-light: #fbbf24;
    --charcoal: #ffffff;
    --muted: #5f7187;
    --border: rgba(26, 84, 196, 0.12);
    --blue: #1a54c4;
    --blue-deep: #0d2d6b;
    --blue-soft: #eaf0ff;
    --surface: #ffffff;
    --surface-alt: #f4f7fc;
    --shadow: 0 18px 45px rgba(13, 45, 107, 0.08);
  }

  html { scroll-behavior: smooth; overflow-x: hidden; }
  body { overflow-x: hidden; }

  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--surface-alt);
    color: var(--blue-deep);
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.6;
  }

  h1, h2, h3, h4, .logo { font-family: 'Plus Jakarta Sans', sans-serif; }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 0.75rem;
    padding: 0.9rem clamp(1.5rem, 4vw, 3.5rem);
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(13, 45, 79, 0.07);
  }
  .logo { font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; color: var(--off-white); text-decoration: none; z-index: 1001; }
  .logo span { color: var(--gold); }
  .brand { display: inline-flex; align-items: center; gap: 0.65rem; min-width: 0; max-width: min(60vw, 320px); justify-self: start; }
  .brand-text { color: var(--blue-deep); min-width: 0; font-size: 0.88rem; }
  .brand-mark { height: 44px; width: auto; object-fit: contain; display: block; flex-shrink: 0; transform: translateZ(0); }
  .nav-links { display: flex; gap: clamp(0.75rem, 1.5vw, 1.8rem); list-style: none; justify-content: center; min-width: 0; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; white-space: nowrap; }
  .nav-links a:hover { color: var(--blue); }
  
  .nav-actions { display: flex; align-items: center; gap: 1rem; z-index: 1001; flex-shrink: 0; justify-self: end; }
  
  .nav-cta {
    background: var(--blue); color: #fff;
    padding: 0.6rem 1.4rem; border-radius: 2px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
    font-size: 0.78rem; letter-spacing: 0.03em; text-transform: none;
    text-decoration: none; transition: background 0.2s;
  }
  .nav-cta:hover { background: #2563d4; }

  /* HAMBURGER MENU */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  .hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--blue-deep);
    transition: all 0.3s ease-in-out;
  }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* SHARED */
  section { padding: 6rem 4rem; }
  #services > .fade-up:first-child,
  #products > .fade-up:first-child,
  #portfolio > .fade-up:first-child,
  #testimonials > .fade-up:first-child,
  #contact > .fade-up:first-child,
  .services-grid,
  .products-grid,
  .why-layout,
  .portfolio-masonry,
  .about-layout,
  .contact-layout,
  .testi-carousel,
  .footer-grid,
  .footer-bottom {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .section-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
  .section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
  .section-sub { font-size: 1rem; color: var(--muted); max-width: 480px; line-height: 1.7; font-weight: 300; }
  .btn-primary {
    background: var(--gold); color: var(--blue-deep);
    padding: 1rem 2.2rem; border-radius: 2px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
    font-size: 0.85rem; letter-spacing: 0.02em; text-transform: none;
    text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; display: inline-block;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
  .btn-outline {
    background: rgba(255,255,255,0.15); color: #fff;
    padding: 1rem 2.2rem; border-radius: 2px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 0.02em; text-transform: none;
    text-decoration: none; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.4); cursor: pointer; display: inline-block;
  }
  .btn-outline:hover { border-color: var(--gold-light); color: #fff; background: rgba(255,255,255,0.22); }
  .fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }

  /* HERO */
  #home {
    --hero-image: url("../images/hero-electrical.jpg");
    min-height: 100vh;
    padding: 8rem 4rem 5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
      linear-gradient(90deg, rgba(26,84,196,0.78) 0%, rgba(13,45,107,0.58) 38%, rgba(13,45,107,0.3) 100%),
      linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(13,45,107,0.18) 100%),
      radial-gradient(circle at 78% 18%, rgba(248,156,34,0.28), transparent 34%),
      var(--hero-image);
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-color: var(--blue-deep);
    transition: background-image 0.8s ease, background-position 0.8s ease;
  }
  .hero-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    min-width: 0;
  }
  .hero-content { position: relative; z-index: 1; max-width: 720px; min-width: 0; }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 2px;
    font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 2rem;
  }
  .hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
  .hero-content h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: #fff; }
  .hero-content h1 em { font-style: normal; color: var(--gold); }
  .hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 520px; line-height: 1.7; font-weight: 300; margin-bottom: 3rem; }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .hero-slider-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
  .hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.45); background: transparent; cursor: pointer; transition: all 0.2s ease; }
  .hero-dot:hover, .hero-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
  .hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
  .stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; color: var(--gold); }
  .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 4px; letter-spacing: 0.05em; }
  .media-frame { position: relative; background: var(--surface); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
  .media-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: rgba(26,84,196,0.5); background: linear-gradient(180deg, rgba(26,84,196,0.05), rgba(248,156,34,0.05)); text-align: center; padding: 1.25rem; }
  .media-placeholder small { color: var(--muted); font-size: 0.75rem; }
  .media-placeholder code { color: var(--gold); }
  .media-frame.has-media .media-placeholder { display: none; }

  /* SERVICES */
  #services { background: var(--surface); }
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4rem; border: none; }
  .service-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; position: relative; overflow: hidden; box-shadow: var(--shadow); }
  .service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
  .service-card:hover { background: #fbfdff; transform: translateY(-4px); border-color: rgba(247,148,29,0.25); }
  .service-card:hover::before { transform: scaleX(1); }
  .service-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; background: rgba(247,148,29,0.12); border: 1px solid rgba(247,148,29,0.22); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
  .service-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
  .service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
  .service-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
  .service-includes { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
  .service-includes span { display: inline-block; font-size: 0.75rem; color: var(--blue); margin-right: 4px; margin-bottom: 4px; background: rgba(26,84,196,0.06); padding: 3px 8px; border-radius: 999px; }

  /* PRODUCTS */
  #products { background: var(--surface-alt); }
  .products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4rem; }
  .product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 2rem; transition: transform 0.3s, border-color 0.3s; box-shadow: var(--shadow); display: flex; flex-direction: column; }
  .product-card:hover { transform: translateY(-4px); border-color: var(--gold); }
  .product-badge { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: rgba(212,168,39,0.1); padding: 4px 10px; border-radius: 2px; display: inline-block; margin-bottom: 1rem; }
  .product-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
  .product-card > p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
  .product-list { list-style: none; }
  .product-list li { font-size: 0.8rem; color: var(--muted); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
  .product-list li::before { content: ''; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
  .product-footer { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--gold); }

  /* WHY US */
  #why { background: var(--surface); }
  .why-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr); gap: 4rem; align-items: center; margin-top: 3rem; }
  .why-list { list-style: none; margin-top: 2rem; }
  .why-list li { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
  .why-list li:first-child { border-top: 1px solid var(--border); }
  .why-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.7rem; color: var(--gold); font-weight: 800; padding-top: 3px; min-width: 24px; }
  .why-text strong { display: block; font-size: 0.95rem; font-weight: 500; margin-bottom: 3px; }
  .why-text span { font-size: 0.82rem; color: var(--muted); }

  /* PORTFOLIO */
  #portfolio { background: var(--surface-alt); }
  .portfolio-masonry { columns: 3 280px; column-gap: 1rem; margin-top: 2.5rem; }
  .masonry-card { display: inline-block; width: 100%; margin-bottom: 1rem; break-inside: avoid; border-radius: 18px; overflow: hidden; }
  .masonry-photo { width: 100%; display: block; object-fit: cover; transition: transform 0.4s ease; }
  .masonry-card:hover .masonry-photo { transform: scale(1.03); }
  .portfolio-placeholder { border: 2px dashed rgba(212,168,39,0.15); }

  /* TESTIMONIALS */
  #testimonials { background: var(--surface); }
  .testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 4rem; }
  .testi-card { background: var(--surface); border: 1px solid var(--border); padding: 2rem; border-radius: 18px; box-shadow: var(--shadow); }
  .testi-stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 1rem; letter-spacing: 2px; }
  .testi-card p { font-size: 0.9rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.5rem; font-style: italic; }
  .testi-author { display: flex; align-items: center; gap: 10px; }
  .testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(247,148,29,0.12); border: 1px solid rgba(247,148,29,0.22); display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.75rem; color: var(--gold); }
  .testi-name { font-size: 0.85rem; font-weight: 500; }
  .testi-loc { font-size: 0.75rem; color: var(--muted); }

  /* CTA BANNER */
  .cta-banner { background: linear-gradient(135deg, var(--blue), #2563d4 55%, var(--gold) 140%); padding: 5rem 4rem; text-align: center; }
  .cta-banner > * { width: min(860px, 100%); margin-left: auto; margin-right: auto; }
  .cta-banner h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 1rem; }
  .cta-banner p { font-size: 1rem; color: rgba(255,255,255,0.86); margin-bottom: 2.5rem; }
  .cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .cta-btn-dark { background: #fff; color: var(--blue); padding: 1rem 2.2rem; border-radius: 2px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; text-transform: none; text-decoration: none; transition: opacity 0.2s; }
  .cta-btn-dark:hover { opacity: 0.85; }
  .cta-btn-outline2 { background: transparent; color: #fff; padding: 1rem 2.2rem; border-radius: 2px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; text-transform: none; text-decoration: none; border: 2px solid rgba(255,255,255,0.75); transition: all 0.2s; }
  .cta-btn-outline2:hover { background: #fff; color: var(--blue); }

  /* ABOUT */
  #about { background: var(--surface); }
  .about-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 4rem; align-items: start; margin-top: 3rem; }
  .about-story p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; font-weight: 300; }
  .values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .value-item { background: var(--surface); border: 1px solid var(--border); padding: 1.25rem; border-radius: 16px; box-shadow: var(--shadow); }
  .value-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
  .value-item p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

  /* CONTACT */
  #contact { background: var(--surface-alt); }
  .contact-layout { display: grid; grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr); gap: 3rem; margin-top: 4rem; align-items: start; }
  .contact-layout > div > h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2rem; }
  .contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
  .contact-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(247,148,29,0.12); border: 1px solid rgba(247,148,29,0.22); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
  .contact-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
  .contact-item-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
  .contact-item-val { font-size: 0.9rem; color: var(--blue-deep); }
  .contact-item-val a { color: inherit; text-decoration: none; }
  .contact-item-val a:hover { color: var(--gold); }
  .branch-list { display: grid; gap: 0.9rem; }
  .branch-item { display: grid; gap: 0.2rem; padding: 0.95rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
  .branch-item strong { color: var(--blue); font-size: 0.92rem; }
  .branch-item span { color: var(--muted); line-height: 1.55; }
  .hours-block { margin-top: 2rem; padding: 1.5rem; background: rgba(26,84,196,0.04); border: 1px solid var(--border); border-radius: 16px; }
  .hours-block h4 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
  .hours-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 5px 0; border-bottom: 1px solid var(--border); }
  .hours-row:last-child { border-bottom: none; }
  .hours-row span:last-child { color: var(--gold); }
  .whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: #000; padding: 0.9rem; border-radius: 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em; text-transform: none; text-decoration: none; margin-top: 1rem; transition: opacity 0.2s; box-shadow: var(--shadow); }
  .whatsapp-btn:hover { opacity: 0.85; }
  .contact-form { display: flex; flex-direction: column; gap: 1rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-group label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .form-group input, .form-group select, .form-group textarea { background: var(--surface); border: 1px solid rgba(26,84,196,0.18); color: var(--blue-deep); padding: 0.75rem 1rem; border-radius: 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,84,196,0.08); }
  .form-group select option { background: var(--surface); }
  .form-group textarea { min-height: 120px; resize: vertical; }
  .form-note { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
  .form-note code { color: var(--gold); font-family: 'Plus Jakarta Sans', sans-serif; }
  .form-status { min-height: 1.5rem; font-size: 0.82rem; line-height: 1.6; }
  .form-status.is-success { color: #7fe3a1; }
  .form-status.is-error { color: #ff9d8f; }

  /* FOOTER */
  footer { background: var(--blue-deep); padding: 4rem; border-top: 1px solid rgba(255,255,255,0.12); }
  .footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
  .footer-grid > * { min-width: 0; }
  .footer-brand .brand-text { color: #fff; }
  .footer-brand .brand { max-width: none; }
  .footer-brand .brand-mark { height: 64px; }
  .footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin-top: 1rem; max-width: 280px; }
  .footer-col h4 { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 0.6rem; }
  .footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s; }
  .footer-col ul li a:hover { color: #fff; }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.78rem; color: rgba(255,255,255,0.68); gap: 1rem; }
  .footer-bottom > span { min-width: 0; overflow-wrap: anywhere; }

  /* SERVICE CARD IMAGES */
  .service-card { overflow: hidden; }
  .service-card::before { z-index: 1; }
  .service-img { margin: -1.5rem -1.5rem 1.5rem; height: 200px; box-shadow: none; border: none; border-bottom: 1px solid var(--border); border-radius: 0; overflow: hidden; }
  .service-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
  .service-card:hover .service-photo { transform: scale(1.04); }
  .service-img .media-placeholder { border-radius: 0; }

  /* WHY US IMAGE */
  .why-img { border-radius: 18px; height: 460px; box-shadow: var(--shadow); border: none; background: linear-gradient(135deg, var(--blue-deep), var(--blue)); }
  .why-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
  .why-img:hover .why-photo { transform: scale(1.03); }
  .why-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(to top, rgba(13,45,107,0.92) 0%, transparent 100%); border-radius: 0 0 18px 18px; }
  .why-caption blockquote { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 0.5rem; }
  .why-caption blockquote em { font-style: normal; color: var(--gold); }
  .why-caption cite { font-size: 0.78rem; color: rgba(255,255,255,0.7); font-style: normal; }
  .why-img .media-placeholder { border-radius: 18px; }

  /* PARALLAX SECTION */
  .parallax-section {
    background-color: var(--blue-deep);
    background-image:
      linear-gradient(135deg, rgba(13,45,107,0.88) 0%, rgba(26,84,196,0.75) 55%, rgba(247,148,29,0.38) 100%),
      url("../images/parallax-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 9rem 4rem;
    text-align: center;
  }
  .parallax-content { max-width: 700px; margin: 0 auto; }
  .parallax-content .section-label { color: var(--gold-light); }
  .parallax-content h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.1; }
  .parallax-content h2 em { font-style: normal; color: var(--gold); }
  .parallax-content p { font-size: 1rem; color: rgba(255,255,255,0.86); margin-bottom: 2.5rem; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }

  /* TESTIMONIALS CAROUSEL */
  #testimonials { overflow: hidden; }
  .testi-carousel { max-width: 760px; margin: 4rem auto 0; position: relative; overflow: hidden; }
  /* All cards occupy the same grid cell — no display toggling, no reflow */
  .testi-track { display: grid; }
  .testi-track .testi-card {
    grid-column: 1; grid-row: 1;
    display: block; width: 100%; box-sizing: border-box;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
  }
  .testi-track .testi-card.is-active {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
  }
  .testi-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
  .testi-prev, .testi-next { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--blue); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
  .testi-prev:hover, .testi-next:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
  .testi-dots { display: flex; gap: 0.5rem; }
  .testi-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(26,84,196,0.2); cursor: pointer; transition: all 0.25s; padding: 0; }
  .testi-dot.is-active { background: var(--gold); transform: scale(1.4); }

  /* ABOUT IMAGE */
  .about-img { border-radius: 18px; height: 420px; box-shadow: var(--shadow); border: none; background: linear-gradient(135deg, var(--blue-soft), var(--blue-deep)); }
  .about-photo { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; }
  .about-img .media-placeholder { border-radius: 18px; }

  /* RESPONSIVE */

  /* NAV: collapse to hamburger above 900px so links never overflow on mid-size desktops */
  @media (max-width: 1100px) {
    nav { grid-template-columns: auto auto; }
    .brand-text { display: none; }
    .brand { max-width: calc(100vw - 160px); }
    .hamburger { display: flex; }
    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(255,255,255,0.98);
      flex-direction: column;
      align-items: center;
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
      border-bottom: 1px solid transparent;
      box-shadow: 0 12px 28px rgba(13, 45, 79, 0.08);
      gap: 0;
    }
    .nav-links.active { max-height: 400px; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
    .nav-links li { width: 100%; }
    .nav-links a { width: 100%; text-align: center; font-size: 1rem; display: block; padding: 0.65rem 1rem; }
    .nav-cta { padding: 0.45rem 1rem; font-size: 0.75rem; }
  }

  /* LAYOUT: stack columns and reduce section padding on tablet/mobile */
  @media (max-width: 900px) {
    section { padding: 4rem 1.5rem; }
    #home { min-height: 88vh; padding: 6.5rem 1.5rem 3.5rem; }
    .why-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .parallax-section { background-attachment: scroll; padding: 6rem 1.5rem; }
    .why-img { height: 320px; }
    .about-img { height: 220px; }
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); }
    .hero-sub { font-size: 1rem; margin-bottom: 2.25rem; max-width: 30rem; }
    .hero-slider-nav { margin-top: 1.1rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .stat-num { font-size: 1.6rem; }
    .stat-label { font-size: 0.72rem; }
    #home {
      background:
        linear-gradient(180deg, rgba(26,84,196,0.76) 0%, rgba(13,45,107,0.58) 45%, rgba(13,45,107,0.72) 100%),
        linear-gradient(90deg, rgba(13,45,107,0.44) 0%, rgba(13,45,107,0.18) 100%),
        radial-gradient(circle at 78% 18%, rgba(248,156,34,0.2), transparent 30%),
        var(--hero-image);
      background-size: auto, auto, auto, cover;
      background-position: center, center, center, center;
      background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand p { max-width: 100%; }
    .cta-banner { padding: 4rem 1.5rem; }
    footer { padding: 3rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
  }

  @media (max-width: 500px) {
    nav { padding: 0.75rem 1rem; }
    .brand { gap: 0.5rem; max-width: calc(100vw - 110px); }
    .brand-mark { height: 34px; max-width: 140px; }
    .nav-actions { gap: 0.5rem; }
    .nav-cta { padding: 0.35rem 0.65rem; font-size: 0.68rem; }
    #home { min-height: 84vh; padding: 6rem 1rem 3rem; }
    .hero-tag { margin-bottom: 1.3rem; font-size: 0.68rem; }
    .hero-content h1 { font-size: clamp(2.15rem, 10.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1rem; }
    .hero-sub { font-size: 0.95rem; line-height: 1.65; margin-bottom: 2rem; }
    .hero-btns { gap: 0.75rem; }
    .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; text-align: center; }
    .hero-slider-nav { gap: 0.6rem; }
    .hero-stats { margin-top: 2.25rem; padding-top: 2rem; gap: 1rem 1.5rem; }
    .services-grid, .products-grid { grid-template-columns: 1fr; }
    .service-img { height: 180px; }
    .portfolio-masonry { columns: 1; }
    .hero-content h1, .hero-sub, .footer-brand p, .footer-bottom span { overflow-wrap: anywhere; }
    .footer-grid { gap: 1.6rem; }
    .footer-col ul li a, .footer-brand p, .footer-bottom { font-size: 0.82rem; }
    .footer-brand .brand-mark { height: 48px; max-width: 160px; }
  }
