/* ============================
   Vista Tech Windows - Styles
   ============================ */

:root {
  --navy: #0b1f3f;
  --navy-light: #16305c;
  --orange: #e8782a;
  --orange-dark: #b9560f;
  --bg: #f4f2ef;
  --white: #ffffff;
  --text: #1c2430;
  --text-muted: #5a6575;
  --whatsapp: #1e8e3e;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;

  --radius: 10px;
  --shadow: 0 4px 16px rgba(11, 31, 63, 0.08);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3 {
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Top bar */
.topbar { background: var(--navy-light); color: var(--white); font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-text { font-size: 20px; font-weight: 800; line-height: 1.05; letter-spacing: 0.5px; }
.logo-text em { font-style: normal; color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--white); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--orange); }
.menu-button { display: none; background: none; border: 0; color: var(--white); font-size: 30px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--navy) !important; }
.btn-orange:hover { background: #f08a3e; }
.btn-green { background: var(--whatsapp); color: var(--white); }
.btn-outline { border-color: var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: var(--space-5) 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-4); align-items: center; }
.hero h1 { color: var(--white); font-size: 44px; }
.hero h1 span { color: var(--orange); }
.hero p { color: #cfd8e6; font-size: 18px; }
.hero-buttons { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-3) 0; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.trust-list li { color: #e6ecf5; }
.image-placeholder {
  background: var(--navy-light);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: #9fb0cc;
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: var(--space-5) 0; }
.section-white { background: var(--white); }
.section-title { text-align: center; font-size: 34px; margin-bottom: var(--space-1); }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--text-muted); margin: 0 0 var(--space-4); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-4); align-items: center; }
.owner-line { margin-top: var(--space-2); }
.stat-box { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: var(--space-4) var(--space-3); text-align: center; box-shadow: var(--shadow); }
.stat-box strong { display: block; font-size: 54px; color: var(--orange); line-height: 1; }
.stat-box span { display: block; font-size: 20px; font-weight: 700; margin: var(--space-1) 0; }
.stat-box em { font-style: normal; color: #cfd8e6; font-size: 15px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.service-card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-2); text-align: center; transition: transform 0.2s ease; }
.service-card:hover { transform: translateY(-4px); }
.service-img { background: #dfe4ec; color: var(--text-muted); border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-bottom: var(--space-2); }
.service-card h3 { font-size: 20px; margin-bottom: 6px; }
.service-card p { margin: 0 0 var(--space-2); color: var(--text-muted); font-size: 15px; }
.service-link { color: var(--orange-dark); font-weight: 700; }
.service-link:hover { text-decoration: underline; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.why-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3) var(--space-2); text-align: center; }
.why-icon { font-size: 40px; margin-bottom: var(--space-1); }
.why-card h3 { font-size: 18px; }
.why-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Gallery */
.tabs { display: flex; justify-content: center; gap: var(--space-1); margin-bottom: var(--space-4); }
.tab { background: var(--bg); color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius); padding: 10px 32px; font-size: 16px; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--navy); color: var(--white); }
.tab-panel[hidden] { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.photo-item { background: #dfe4ec; color: var(--text-muted); border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.video-card { display: block; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s ease; }
.video-card:hover { transform: translateY(-4px); }
.video-thumb { position: relative; background: var(--navy-light); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.play { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px; }
.video-info { padding: var(--space-2); }
.video-info h3 { font-size: 17px; margin: 0; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.testi-card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3) var(--space-2); text-align: center; }
.testi-photo { width: 72px; height: 72px; border-radius: 50%; background: #dfe4ec; color: var(--text-muted); font-size: 11px; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-2); }
.testi-text { color: var(--text-muted); font-size: 15px; margin: 0 0 var(--space-1); }
.testi-lang { display: block; color: var(--orange-dark); font-size: 13px; font-weight: 700; }

/* Quote form */
.quote-wrap { max-width: 760px; }
.quote-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full, .quote-form .full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; padding: 10px 12px; border: 1px solid #c5ccd8; border-radius: 8px; background: var(--white); }
.field.check { flex-direction: row; align-items: center; gap: 10px; }
.field.check label { font-weight: 400; }
.form-msg { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Contact panel */
.contact-panel { background: var(--navy); color: var(--white); padding: var(--space-5) 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-4); align-items: center; }
.office h2 { color: var(--orange); font-size: 24px; }
.office p { margin: 0 0 12px; color: #e6ecf5; }
.cta-box { background: var(--navy-light); border-radius: var(--radius); padding: var(--space-3); text-align: center; }
.cta-box h3 { color: var(--white); font-size: 24px; }
.cta-box p { color: #cfd8e6; }
.cta-box .btn { display: block; margin: var(--space-2) 0; }
.cta-box small { color: #cfd8e6; }

/* Free site visit banner */
.visit-banner { background: var(--orange); padding: var(--space-4) 0; }
.visit-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.visit-banner h2 { color: var(--navy); margin-bottom: 6px; font-size: 28px; }
.visit-banner p { margin: 0; color: var(--navy); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #cfd8e6; text-align: center; font-size: 14px; padding: var(--space-3) 0; }
.site-footer p { margin: 4px 0; }

/* Mobile sticky bar (hidden on desktop) */
.mobile-bar { display: none; }

/* Tablet */
@media (max-width: 960px) {
  .services-grid, .why-grid, .photo-grid, .testi-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Phone / small tablet */
@media (max-width: 860px) {
  .menu-button { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-2);
    border-top: 1px solid var(--navy-light);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; }
  .nav-cta { margin-top: var(--space-1); }
  .hero-inner, .about-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .topbar-inner { font-size: 13px; }

  body { padding-bottom: 64px; }
  .mobile-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 200;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  }
  .mobile-bar a { flex: 1; text-align: center; padding: 16px 8px; font-weight: 700; color: var(--white); }
  .mb-call { background: var(--navy); }
  .mb-wa { background: var(--whatsapp); }
}

@media (max-width: 560px) {
  .services-grid, .why-grid, .photo-grid, .testi-grid, .video-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .quote-form { grid-template-columns: 1fr; }
  .visit-banner h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card, .video-card { transition: none; }
}


/* Video popup */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}
.video-modal[hidden] { display: none; }
.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: var(--space-2);
  text-align: center;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-close {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}
.video-yt {
  margin-top: var(--space-2);
}


/* Images */
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-img {
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* Gallery photo cards */
.photo-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: var(--space-3);
}
.photo-card {
  margin: 0;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo-card figcaption {
  text-align: center;
  padding-top: var(--space-1);
}
.photo-card strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}
.photo-card span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
}
@media (max-width: 560px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}


/* Gallery grid fix */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 900px;
  margin: 0 auto;
}
.photo-card {
  margin: 0;
  min-width: 0;
}
.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo-card figcaption {
  text-align: center;
  padding-top: var(--space-1);
}
.photo-card strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}
.photo-card span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
}
@media (max-width: 560px) {
  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Testimonial cards */
.testi-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-1);
}
.stars {
  color: #f5b301;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: var(--space-1);
}
.star-off {
  color: #d3d8e0;
}
.testi-card strong {
  display: block;
  color: var(--navy);
}
.testi-loc {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
}
.testi-installed {
  display: inline-block;
  margin-top: var(--space-1);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
}


/* Testimonial face photos */
.testi-face {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-1);
  border: 3px solid var(--orange);
}