/* Adib Insulation — site styles */

:root {
  --brand-dark: #0e3a1a;
  --brand: #1f6b2e;
  --brand-2: #2f8a3e;
  --brand-light: #b9d28a;
  --brand-tint: #eef3e5;
  --ink: #15181a;
  --muted: #5d6660;
  --bg: #ffffff;
  --bg-alt: #f6f7f4;
  --line: #e6e8e2;
  --shadow-sm: 0 1px 2px rgba(14,58,26,.06), 0 2px 8px rgba(14,58,26,.05);
  --shadow-md: 0 6px 18px rgba(14,58,26,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1,h2,h3,h4,h5 { color: var(--brand-dark); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw + .5rem, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2vw + .8rem, 2.4rem); line-height: 1.15; margin-bottom: .5rem; }
h3 { font-size: 1.25rem; }

.lead { color: var(--muted); }

/* Skip to content (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
  background: var(--brand-dark); color: #fff; padding: .5rem 1rem; border-radius: .25rem; z-index: 2000;
}

/* Navbar */
.navbar-brand-text {
  font-weight: 800; letter-spacing: .02em; line-height: 1; color: var(--brand-dark) !important;
}
.navbar-brand-text small {
  display: block; font-size: .65rem; font-weight: 600;
  color: var(--brand); letter-spacing: .12em; margin-top: .15rem;
}
.navbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.navbar .nav-link { color: var(--ink); font-weight: 500; padding-left: .9rem; padding-right: .9rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand-dark); }
.navbar .nav-link.active { box-shadow: inset 0 -3px 0 var(--brand); }
.navbar .btn-brand { padding: .45rem 1rem; }

/* Hero */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background: #0a1f10 url('../img/hero-rooftop.jpg') center / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,30,15,.78) 0%, rgba(14,58,26,.55) 50%, rgba(31,107,46,.45) 100%);
}
.hero > .container { position: relative; z-index: 1; padding: 5rem 1rem; }
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: 1rem; }
.hero p.lead { color: rgba(255,255,255,.92); max-width: 56ch; font-size: 1.15rem; }
.hero .eyebrow {
  display: inline-block; color: var(--brand-light); letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(185,210,138,.4); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.25rem; background: rgba(14,58,26,.4);
}
.hero .cta-row { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 768px) {
  .hero { background-image: url('../img/hero-rooftop-sm.jpg'); min-height: 72vh; }
}

/* Buttons */
.btn-brand {
  background: var(--brand); border-color: var(--brand); color: #fff;
  font-weight: 600; padding: .65rem 1.4rem; border-radius: .35rem;
}
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-light-brand { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; padding: .65rem 1.4rem; border-radius: .35rem; font-weight: 600; }
.btn-outline-light-brand:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-outline-brand { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); padding: .55rem 1.2rem; border-radius: .35rem; font-weight: 600; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* Section utilities */
section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.bg-alt { background: var(--bg-alt); }
.bg-brand-dark { background: var(--brand-dark); color: #fff; }
.bg-brand-dark h2, .bg-brand-dark h3 { color: #fff; }
.eyebrow-section { color: var(--brand); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; font-weight: 700; margin-bottom: .5rem; display: block; }

/* Service cards */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: .75rem;
  padding: 1.5rem; height: 100%; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-light); }
.service-card .icon-bubble {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: .8rem;
}
.service-card h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Service detail block (services page) */
.service-detail {
  border-top: 1px solid var(--line); padding-top: 3rem; padding-bottom: 3rem;
}
.service-detail:first-of-type { border-top: 0; }
.service-detail .icon-bubble { width: 56px; height: 56px; font-size: 1.6rem; }
.service-detail h2 { margin-top: .5rem; }

/* Values strip */
.values-row .value-item { padding: 1rem; }
.values-row .value-item i { font-size: 2rem; color: var(--brand); }
.values-row h3 { margin-top: .5rem; }

/* Recent work strip */
.work-thumb {
  display: block; position: relative; border-radius: .5rem; overflow: hidden;
  aspect-ratio: 4 / 3; background: #ddd;
}
.work-thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease;
}
.work-thumb:hover img { transform: scale(1.05); }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.gallery-filter {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: .4rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s ease;
}
.gallery-filter:hover { border-color: var(--brand); color: var(--brand); }
.gallery-filter.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { display: block; position: relative; overflow: hidden; border-radius: .5rem; aspect-ratio: 4/3; background: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.is-hidden { display: none; }
.gallery-item::after {
  content: "\F4FE"; /* bi-zoom-in */
  font-family: "bootstrap-icons" !important;
  position: absolute; right: .6rem; bottom: .6rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(14,58,26,.78); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
  opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* Banner-style gallery item (wide intro photo). Higher specificity than .gallery-item. */
.gallery-item.gallery-banner {
  display: block; width: 100%; aspect-ratio: 21/9;
  margin-bottom: 1.5rem; border-radius: .5rem; overflow: hidden;
}
.gallery-item.gallery-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item.gallery-banner:hover img { transform: scale(1.02); }
.gallery-item.gallery-banner::after {
  content: "Calgary, Alberta";
  font-family: inherit;
  position: absolute; left: 1rem; bottom: 1rem; right: auto; top: auto;
  width: auto; height: auto;
  background: rgba(14,58,26,.78); color: #fff; padding: .35rem .9rem;
  border-radius: 999px; font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 1;
}
@media (max-width: 600px) {
  .gallery-item.gallery-banner { aspect-ratio: 16/9; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,15,10,.92);
  z-index: 1080; display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: .25rem; box-shadow: var(--shadow-md); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer; transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.75rem;
  height: 100%;
}
.contact-card .icon-bubble {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-card a { color: var(--brand-dark); font-weight: 600; word-break: break-word; }
.contact-card a:hover { color: var(--brand); }
.map-embed { border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(110deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff; border-radius: .75rem; padding: 2.25rem 2rem;
}
.cta-banner h2 { color: #fff; margin-bottom: .25rem; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; }

/* Footer */
footer.site-footer {
  background: var(--brand-dark); color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
footer.site-footer a { color: rgba(255,255,255,.85); }
footer.site-footer a:hover { color: var(--brand-light); text-decoration: none; }
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* Page header (used on inner pages) */
.page-header {
  background: linear-gradient(110deg, var(--brand-dark) 0%, #134f24 100%);
  color: #fff; padding: 5rem 0 3.5rem; position: relative;
}
.page-header h1 { color: #fff; margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.9); margin: 0; max-width: 60ch; }
.page-header .breadcrumb { background: transparent; padding: 0; margin-bottom: .75rem; }
.page-header .breadcrumb a { color: var(--brand-light); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.7); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* Helpers */
.text-brand-dark { color: var(--brand-dark) !important; }
.text-brand { color: var(--brand) !important; }
.bg-tint { background: var(--brand-tint); }
.divider-soft { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Print niceties (cards / minimal printing) */
@media print {
  .navbar, footer, .cta-banner, .lightbox { display: none !important; }
  .hero { color: var(--ink); background: #fff; }
  .hero::before { display: none; }
}
