/* Polished stylesheet — Refined Collision (desktop + responsive improvements) */
:root{
  --bg: #070708;
  --surface: rgba(255,255,255,0.03);
  --muted: #bfc4d6;
  --accent: #2563eb;
  --accent-2: #6f78ff;
  --glass: rgba(255,255,255,0.02);
  --radius: 12px;
  --container: 1200px;
  --shadow: 0 10px 30px rgba(2,6,23,0.6);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: dark;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Prevent horizontal overflow (fixes scrollbar on desktop) */
html, body {
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  background: linear-gradient(180deg,#020203,var(--bg));
  color: #fff;
}

/* Reset / Utilities */
* { box-sizing: border-box; }
.container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 0 32px; 
}
a { 
    color: inherit; 
    text-decoration: none; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* Header (desktop tuned) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(6px);
  background: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.header-inner {
  display:flex;
  align-items:center;
  gap:22px;
  padding:18px 0;
}

.brand { 
    display:flex; 
    gap:14px; 
    align-items:center; 
    text-decoration:none; 
    color:inherit; 
}

.brand-logo { 
    width:64px; 
    height:64px; 
    object-fit:cover; 
    border-radius:10px; 
    border:1px solid rgba(255,255,255,0.04); 
}


.brand-title { 
    display:block; 
    font-weight:700; 
    font-size:18px; 
    line-height:1;
}
.brand-sub { 
    display:block; 
    font-size:13px; 
    color:var(--muted); 
    margin-top:4px; 
}

/* Nav (desktop) */
.nav-list { 
    list-style:none; 
    margin:0; 
    padding:0; 
    display:flex; 
    gap:14px; 
    align-items:center; 
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list a { 
    display:inline-block; 
    padding:10px 14px; 
    border-radius:8px; 
    color:var(--muted); 
    transition: background .15s, color .15s; 
    font-weight:600; 
}

.nav-list a:hover, .nav-list a:focus { 
    background: rgba(255,255,255,0.02); 
    color:#fff; 
    outline:none;
 }

/* Header actions */
.header-actions { 
    margin-left:auto; 
    display:flex; 
    gap:12px; 
    align-items:center; 
}

.span:hover {
    color: #fff;
}

.btn { 
    display:inline-flex; 
    align-items:center; 
    gap:8px; 
    padding:10px 14px; 
    border-radius:10px; 
    border:1px solid rgba(255,255,255,0.04); 
    cursor:pointer; 
    background:transparent; 
    font-weight:600; 
}

.btn-ghost { 
    color:var(--muted); 
}

.btn-outline { 
    border:1px solid rgba(255,255,255,0.06); 
    color:var(--muted); 
}

.btn-primary { 
    background: linear-gradient(90deg,var(--accent),var(--accent-2)); 
    color:#fff; 
    border:none; 
    box-shadow: 0 8px 24px rgba(47,72,255,0.06); 
}

.btn-primary:hover{
    cursor: pointer;
    background: #fff;
    color: #2563eb;
}

.btn-outline:hover {
    background: linear-gradient(90deg,var(--accent),var(--accent-2));
    color: #fff;
}

/* Mobile menu toggle */
.menu-toggle { 
    display:none; 
    background:transparent; 
    border:none; 
    padding:8px; 
    cursor:pointer; 
}
.hamburger { 
    width:22px;
    height:2px; 
    background:#fff; 
    position:relative; 
    display:block; 
}
.hamburger::before, .hamburger::after { 
    content:"";
    position:absolute; 
    left:0; 
    width:22px; 
    height:2px; 
    background:#fff; 
}
.hamburger::before { 
    top:-6px;
} 

.hamburger::after { 
    top:6px; 
}

/* Mobile menu slide-over (improved responsive behavior) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(10,10,12,0.98), rgba(6,6,8,0.98));
  box-shadow: -20px 0 80px rgba(0,0,0,0.6);
  transition: transform .28s cubic-bezier(.2,.9,.3,1), right .28s cubic-bezier(.2,.9,.3,1);
  z-index:130;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:18px;
  transform: translateX(100%);
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
}
.mobile-close { 
    background:transparent; 
    border:none; 
    color:#fff; 
    font-size:26px; 
    align-self:flex-end; 
    cursor:pointer; 
}

.mobile-nav { 
    list-style:none; 
    padding:0; 
    margin:8px 0 0 0; 
    display:flex; 
    flex-direction:column; 
    gap:10px; 
}

.mobile-nav a { 
    padding:12px 14px; 
    border-radius:8px; 
    color:var(--muted); 
    display:block; 
}

.mobile-cta { 
    margin-top:auto; 
    display:flex; 
    flex-direction:column; 
    gap:10px; 
}

/* Hero (desktop-friendly) */
.hero {
    height: 85vh; /* adjust as needed */
    background-image: url('images/2.png'); /* put correct file path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* remove leftover scrolling issue */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 0;              /* behind content */
  pointer-events: none;    /* so it never blocks buttons/links */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 900px;
    color: white;
    margin:0; 
    font-size: clamp(26px, 2.6vw, 44px); 
    line-height:1.04; 
    font-weight:700; 
}

.lead { 
    margin:0; 
    color:var(--muted); 
    max-width:64ch; 
}

/* === HERO CTA BUTTON ("Get a Free Estimate") === */
.hero-content a:first-of-type {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 24px rgba(47,72,255,0.25);
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.hero-content a:first-of-type:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #000000;
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}


/* spacing between button and phone number */
.hero-content a:first-of-type + span,
.hero-content a:first-of-type + strong,
.hero-content a:first-of-type + a {
    margin-left: 8px;
}

/* Layout: main + sidebar */
.grid-layout {
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 32px 0;
  align-items:start;
  max-width: var(--container);
  margin: 0 auto;
}

.content { 
    display:flex; 
    flex-direction:column; 
    gap:20px; 
    max-width: 860px; 
}

.card { 
    background: var(--surface); 
    padding:20px; 
    border-radius: var(--radius); 
    border:1px solid rgba(255,255,255,0.03); 
    box-shadow: var(--shadow); 
}

.card h2 { 
    margin:0 0 10px 0; 
}

.muted { 
    color:var(--muted); 
}

/* Services */
.services-grid { 
    display:grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap:14px;
    margin-top:12px; 
}

.service { 
    padding:14px;
    border-radius:10px; 
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); 
}

.service:hover {
    color: #6f78ff;
}

/* Gallery */
.gallery-grid { 
    display:grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap:12px; 
    margin-top:12px; 
}

.gallery-grid figure { 
    margin:0; 
    border-radius:10px; 
    overflow:hidden; 
    cursor:pointer; 
    transition: transform .16s ease, box-shadow .16s ease; 
}

.gallery-grid img { 
    width:100%; 
    height:180px; 
    object-fit:cover; 
    display:block; 
}

.gallery-grid figure:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 14px 36px rgba(0,0,0,0.6); 
}

/* Testimonials */
.testimonials { 
    position:relative; 
    overflow:hidden; 
}

.testimonial { 
    display:none; 
    padding:8px 0; 
}

.testimonial.active { 
    display:block;
}

.testimonial .quote { 
    margin:0; 
    font-style:italic; 
    color:var(--muted); 
}

.testimonial-controls { 
    display:flex; 
    gap:8px; 
    justify-content:center; 
    margin-top:12px; 
}

.testimonial-controls button { 
    background:transparent; 
    border:1px solid rgba(255,255,255,0.05); 
    color:var(--muted); 
    padding:8px 12px; 
    border-radius:8px; 
    cursor:pointer;
}

/* Sidebar */
.sidebar { 
    display:flex; 
    flex-direction:column; 
    gap:12px; 
    width:320px; 
}
.contact-card input, .contact-card textarea { 
    width:100%; 
    padding:10px 12px; 
    border-radius:8px; 
    border:1px solid rgba(255,255,255,0.04); 
    background:transparent; 
    color:#fff; 
    margin-top:8px; 
}

.form-actions { 
    display:flex; 
    gap:8px; 
    margin-top:12px; 
}

.form-msg { 
    margin-top:10px; 
    color:var(--muted);
    min-height:18px; 
}

/* Map */
.map-wrap { 
    margin-top:12px; 
    border-radius:10px; 
    overflow:hidden; 
    border:1px solid rgba(255,255,255,0.03); 
}

.map-wrap iframe { 
    width:100%; 
    height:160px; 
    border:0; 
    display:block; 
}

/* Footer */
.site-footer { 
    border-top:1px solid rgba(255,255,255,0.03); 
    padding:18px 0; 
    text-align:center; 
    color:var(--muted); 
}

/* Lightbox */
.lightbox { 
    position:fixed; 
    inset:0; display:flex; 
    align-items:center; 
    justify-content:center; 
    background: rgba(0,0,0,0.88); 
    z-index:9999; 
    opacity:0; 
    pointer-events:none; 
    transition: opacity .18s ease; 
}

.lightbox[aria-hidden="false"] { 
    opacity:1; 
    pointer-events:auto; 
}

.lightbox img { 
    max-width:92%; 
    max-height:84vh; 
    border-radius:10px; 
    box-shadow: 0 30px 80px rgba(0,0,0,0.9); 
}
.lightbox-close, .lightbox-nav { 
    position:absolute; 
    background:transparent; 
    border:none; 
    color:#fff; 
    font-size:36px; 
    cursor:pointer; 
    padding:12px; 
}
.lightbox-close {
    top:18px; 
    right:18px; 
}
.lightbox-nav { 
    top:50%; 
    transform:translateY(-50%); 
    font-size:44px; 
}
#lbPrev { left:18px; } #lbNext { right:18px; }

/* Focus states */
button:focus, a:focus, input:focus, textarea:focus { 
    outline: 3px solid rgba(99,102,241,0.18); 
    outline-offset:2px; 
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; 
    animation: none !important; 
    scroll-behavior: auto !important; 
}
}

/* Responsive improvements */
@media (max-width: 980px) {
  .nav { 
    display:none !important;
}
  .menu-toggle { 
    display:inline-block !important; 
}

  /* ---------- NEW MOBILE REFINEMENTS ---------- */
  /* hide the phone button in the header on mobile (assumes phone uses .btn-ghost) */
  .header-actions .btn-ghost { 
    display: none !important; 
}

  /* hide the Request button in the header on mobile (we clone/move it into the mobile menu via JS) */
  #requestBtn { 
    display: none !important; 
}

  /* compact header spacing for phones */
  .header-inner { 
    padding: 12px 12px; 
    gap:12px; }

  .brand-logo { 
    width:48px; 
    height:48px; 
}

  .brand-title { 
    font-size:15px; 
}

  .brand-sub { 
    display:none; 
}

  /* menu toggle: bigger tap target */
  .menu-toggle { 
    padding:10px; 
    border-radius:8px; 
}

  /* hero tweaks for mobile */
  .hero-content { 
    margin-left:8px; 
    padding:24px 16px; 
    max-width: unset;
}

.grid-layout{
    display: block;
}

  .hero { 
    min-height: 240px; 
}

  /* mobile card and gallery spacing */
  .card { 
    padding:16px; 
    border-radius:12px; 
}
  .gallery-grid { 
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap:10px; 
}

  .gallery-grid img { 
    height: 110px; 
    object-position: center; 
}

  /* mobile menu full width */
  .mobile-menu { 
    width:100%; 
    right:-100%; 
    transform: translateX(100%); 
    max-width: 100%; 
}

  /* increase tappable CTA size inside mobile menu */
  .mobile-cta .btn { 
    padding:12px 16px; 
    font-size:15px; 
    border-radius:10px; 
}
  .mobile-cta .btn-primary { 
    font-weight:700; 
}

  .map-wrap iframe { 
    height:150px; 
}
  .site-header { 
    z-index: 150; 
}

  /* Move sidebar/form/map to full width rows and ensure they appear before footer */
.grid-layout { 
    grid-auto-flow: row; 
}

.sidebar { 
    grid-column: 1 / -1; 
    width: 100%; 
    margin: 0; 
    padding: 0; 
}

.contact-card, .map-wrap { 
    width: 100%; 
    margin-top: 8px; 
    margin-bottom: 8px; 
    border-radius: 12px; 
}

.contact-card input, .contact-card textarea { 
    box-sizing: border-box; 
    width: 100%; 
}

footer.site-footer { 
    margin-top: 20px; 
}
  /* ---------- END NEW MOBILE REFINEMENTS ---------- */
}

@media (max-width: 520px) {
  .brand-title { 
    font-size:15px;
    padding-left: 60px;
}
  .hero { 
    min-height:240px; 
}
  .gallery-grid img { 
    height:98px; 
}
  .btn { 
    padding:8px 10px; 
    font-size:14px; 
}
  .mobile-close { 
    font-size:28px; 
}
}

/* Very large screens */
@media (min-width:1400px) {
  .container { max-width: 1400px; }
  .hero-content { padding-left: 48px; padding-right: 48px; }
  .gallery-grid img { height: 200px; }
}
