/* ============================================================
   Jaguar Roofing Services — styles
   ============================================================ */
:root {
  --ink:        #1a1d21;
  --ink-soft:   #41464c;
  --muted:      #6c727a;
  --line:       #e6e8eb;
  --bg:         #ffffff;
  --bg-alt:     #f5f6f8;
  --bg-dark:    #15181c;
  --surface:    #ffffff;   /* cards, forms */
  --surface-2:  #fafbfc;   /* inputs */
  --header-bg:  rgba(255,255,255,.92);
  --accent:     #c8612b;   /* terracotta / jaguar amber */
  --accent-dk:  #a64d20;
  --slate:      #2b3038;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 10px 30px rgba(20,24,28,.08);
  --shadow-lg:  0 24px 60px rgba(20,24,28,.16);
  --maxw:       1160px;
}

:root[data-theme="dark"] {
  --ink:        #eef1f3;
  --ink-soft:   #c2c7cb;
  --muted:      #969ba1;
  --line:       #474b4f;
  --bg:         #2a2d2f;   /* monument / charcoal — one consistent tone */
  --bg-alt:     #2a2d2f;
  --bg-dark:    #2a2d2f;
  --surface:    #383c3f;   /* lighter-grey infill: cards, forms */
  --surface-2:  #313436;
  --header-bg:  rgba(42,45,47,.9);
  --slate:      #3d4145;
  --shadow:     0 10px 30px rgba(0,0,0,.35);
  --shadow-lg:  0 24px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3 { font-family: "Oswald", sans-serif; font-weight: 600; line-height: 1.1; letter-spacing: .3px; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); box-shadow: 0 8px 20px rgba(200,97,43,.35); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(20,24,28,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
.brand-mark { height: 80px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand-text strong { font-family: "Oswald", sans-serif; font-size: 1.35rem; letter-spacing: 2px; }
.brand-text em { font-style: normal; font-size: .62rem; letter-spacing: 3.5px; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.nav-cta { background: var(--slate); color: #fff !important; padding: 10px 20px; border-radius: 999px; }
.nav-cta:hover { background: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); cursor: pointer; flex: none;
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(21,24,28,.90) 0%, rgba(28,32,38,.72) 52%, rgba(166,77,32,.55) 130%),
    url("img/hero-chirnside.jpg") center 42% / cover no-repeat,
    #1c2026;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% -10%, rgba(200,97,43,.4), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(64px, 10vw, 130px) 24px clamp(56px, 8vw, 100px); max-width: 880px; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 620px; margin-top: 8px; }
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 40px; margin: 48px 0 0; padding: 28px 0 0; }
.hero-stats li { display: flex; flex-direction: column; font-size: .82rem; letter-spacing: .5px; color: rgba(255,255,255,.7); text-transform: uppercase; }
.hero-stats span { font-family: "Oswald", sans-serif; font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.section-eyebrow.light { color: var(--accent); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-lead, .section-dark h2 { color: #fff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--ink-soft); }
.tick-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 30px; font-weight: 500; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; background: var(--accent); color: #fff;
  border-radius: 50%; font-size: .7rem; display: grid; place-items: center;
}
.about-card { background: var(--slate); color: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.about-card h3 { color: #fff; margin-bottom: 22px; }
.about-feature { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.about-feature:first-of-type { border-top: 0; padding-top: 0; }
.about-feature .num { font-family: "Oswald", sans-serif; color: var(--accent); font-size: 1.1rem; }
.about-feature strong { display: block; }
.about-feature p { margin: 2px 0 0; color: rgba(255,255,255,.7); font-size: .92rem; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--slate); border-color: var(--slate); color: #fff; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card.is-hidden { display: none; }
.product-swatch {
  position: relative; height: 180px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.28)),
    repeating-linear-gradient(90deg, var(--swatch) 0 26px, color-mix(in srgb, var(--swatch) 82%, #000) 26px 28px),
    var(--swatch);
}
.product-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
  transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-swatch.no-img .product-img { display: none; }
.product-img-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 2;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.product-img-overlay.is-visible { opacity: 1; }
.product-card:hover .product-img-overlay { transform: scale(1.05); }
.material-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; text-transform: capitalize;
  background: rgba(0,0,0,.45); color: #fff; font-size: .7rem; font-weight: 600;
  letter-spacing: .5px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(2px);
}
.product-body { padding: 18px 18px 22px; }
.product-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.brand-pill { font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; color: #fff; }
.brand-monier { background: #b5301f; }
.brand-bristile { background: #1f3a5f; }
.profile-tag { font-size: .72rem; color: var(--muted); font-weight: 600; }
.product-body h3 { margin-bottom: 6px; }
.product-body p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---- Colour picker ---- */
.colour-picker { border-top: 1px solid var(--line); padding-top: 14px; }
.colour-meta { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 8px; margin-bottom: 9px; }
.colour-name-wrap { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: nowrap; min-width: 0; }
.colour-label { font-weight: 600; font-size: .85rem; color: var(--ink); white-space: nowrap; }
.colour-tier {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.colour-tier:empty { display: none; }
.colour-count { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch-dot {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--dot); border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line); transition: transform .12s ease, box-shadow .12s ease;
}
.swatch-dot:hover { transform: scale(1.12); }
.swatch-dot.is-active { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.05); }

.range-note { margin-top: 28px; color: var(--muted); font-size: .9rem; text-align: center; }
.range-note-star { display: block; margin-top: 6px; font-size: .8rem; color: var(--accent); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
@media (min-width: 1080px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
  .service-card { padding: 24px 18px; }
}
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-ico { font-size: 1.8rem; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-media { margin-bottom: 28px; }
.gallery-video {
  display: block; width: 100%; max-width: 440px; height: auto;
  border-radius: var(--radius); background: transparent;
  box-shadow: var(--shadow); object-fit: cover;
}
.gallery-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.instagram-link {
  display: inline-flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 20px 28px; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow);
}
.instagram-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #ee0979; }
.ig-logo { width: 56px; height: 56px; flex: none; }
.ig-label { display: flex; flex-direction: column; gap: 4px; }
.ig-label strong { font-size: 1.1rem; font-family: "Oswald", sans-serif; letter-spacing: .5px; }
.ig-label em { font-style: normal; font-size: .88rem; color: var(--muted); }
.gallery-note { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-lead { color: rgba(255,255,255,.7); }
.contact-details { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-details li { display: flex; flex-direction: column; gap: 3px; }
.c-label { text-transform: uppercase; letter-spacing: 2px; font-size: .68rem; font-weight: 700; color: var(--accent); }
.contact-details a { color: #fff; font-size: 1.08rem; font-weight: 500; transition: color .2s; }
.contact-details a:hover { color: var(--accent); }

.visit-card {
  margin-top: 26px; padding: 20px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.visit-card h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.visit-hours { list-style: none; padding: 0; margin: 0; }
.visit-hours li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: .92rem; color: rgba(255,255,255,.78);
}
.visit-hours li span:first-child { font-weight: 600; color: #fff; }
.visit-hours li span:last-child { color: var(--accent); font-weight: 600; }

.contact-map {
  margin-top: 26px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.contact-map iframe { display: block; }

.contact-form { background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  font-family: inherit; font-size: .95rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field textarea { resize: vertical; }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--accent-dk); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1013; color: #fff; padding: 46px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.brand-footer .brand-text strong { color: #fff; }
.footer-meta { color: rgba(255,255,255,.78); margin: 0; font-size: .95rem; }
.footer-fine { color: rgba(255,255,255,.4); font-size: .8rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 360px; }
  .main-nav a { padding: 15px 24px; border-top: 1px solid var(--line); }
  .nav-cta { margin: 12px 24px; text-align: center; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero { background-position: 0 0, 58% 46%, 0 0; }
}
