/* ========== THEME (dark, slider + sky) ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root{
  --bg:#00000000;
  --fg:#ddd;
  --fg-muted:#aaa;
  --card:#111;
  --accent:#D62828;
  --container:1100px;
}
body{
/*  background:var(--bg);*/
  color:var(--fg);
  font-family:'Lato', sans-serif;
  line-height:1.6;
}

/* Real-time sky canvas behind everything
#skyCanvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: visibleStroke;
} */

/* Ensure site content sits above the sky */
.site-header, .hero, main, footer { position: relative; z-index: 1; }

/* Layout */
.container{ width: min(var(--container), 92%); margin: 0 auto; }

.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{ font-family:'Montserrat', sans-serif; font-weight:700; letter-spacing:.06em; color:#fff; }
.nav a{ color:#fff; text-decoration:none; margin-left:18px; font-weight:600; }
.btn{ display:inline-block; padding:10px 18px; border-radius:6px; background:#222; color:#fff; text-decoration:none; }
.btn-cta{ background:var(--accent); }

/* ========== HERO (Swiper) ========== */
.hero{ position:relative; height:100vh; overflow:hidden; }
.hero .swiper{ width:100%; height:100%; }
.hero .swiper-wrapper{ height:100%; }
.hero .swiper-slide{
  width:100%; height:100%;
  position:relative;
  background-image: transparent;
  display:flex; align-items:center; justify-content:center; text-align:center;
}
.hero-overlay{
  position:absolute; inset:0;  z-index:2; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.hero-content{ position:relative; z-index:3; }
.hero h1{ font-family:'Montserrat', sans-serif; color:#fff; font-size: clamp(2rem, 4vw + 1rem, 3.2rem); line-height:1.15; margin:0 0 12px; }
.hero p{ color:#ccc; font-size: clamp(1rem, 1.2vw + .6rem, 1.25rem); margin:0 0 24px; }

/* Swiper controls */
.swiper-pagination-bullet{ background:#fff; opacity:.5; }
.swiper-pagination-bullet-active{ background:var(--accent); opacity: 0.3;; }
.swiper-button-prev, .swiper-button-next{ color:#fff; }

/* Sections */
.section{ padding: 72px 0; }
.section-alt{ background:#8C2724; }
.section h2{ font-family:'Montserrat', sans-serif; color:#584127; text-align:center; font-size: clamp(2.2rem, 1.8vw + 1rem, 2.8rem); margin:0 0 26px; }

.cards{
  display:grid; gap:22px;
  grid-template-columns: repeat(3, 1fr);
}
.card{
  background:var(--card);
  border:3px solid rgba(255,255,255,.04);
  border-radius:12px; overflow:hidden;
  transition: transform .50s ease, box-shadow .50s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: 4px 12px 32px rgba(0,0,0,.35); }
.card img{ width:100%; height: 100%; object-fit:fill; display:block; }
.card h3{ color:#111D25; font-size:1.15rem; margin:14px 16px 6px; }
.card p{ color:#284254; margin: 0 16px 18px; font-size:.98rem; }

/* Contact */
.contact-form .grid{
  display:grid; gap:16px; grid-template-columns: 1fr 1fr;
}
.field label{ display:block; font-weight:700; margin-bottom:6px; color:#fff; }
.field input, .field textarea{
  width:100%; padding:12px 12px; border-radius:8px; border:1px solid #333; background:#111D25; color:#fff;
}
.field textarea{ resize:vertical; }
.site-footer{ background:#0b0b0b; color:var(--fg-muted); padding:22px 0; text-align:center; }

/* Responsive */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .contact-form .grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .nav a{ margin-left:12px; }
  .cards{ grid-template-columns: 1fr; }
}
/* Draw the slide image on a translucent layer above the sky */
.hero .swiper-slide::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);      /* uses your inline --bg:url('...') */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.6;                      /* tweak 0.4–0.8 */
  z-index: 1;
}
/* --- Allow the live sky to show behind the hero slides --- */
.hero { background: transparent !important; }

.hero .swiper-slide {
  width: 100%; height: 100%;
  position: relative;
  /* IMPORTANT: remove solid bg here so we can draw it on a separate layer */
  background: transparent !important;
  display: flex; align-items: center; justify-content: center; text-align: center;
}

/* Keep overlay + text above the image layer */
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));}
.hero-content { position: relative; z-index: 3; }

/* Debug: show canvas area 
#skyCanvas { background: repeating-linear-gradient(45deg, #0f0 0 10px, #070 10px 20px); }
*/

/*Temp Debug: Pull Canvas To The Front So We Can See It
#skyCanvas.debug {
  z-index: 9999 !important;
  opacity: 0.6 !important;
  background: none !important;
} */

#skyCanvas{ position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.site-header, .hero, main, footer{ position:relative; z-index:1; }
