/* ── VIKING LOCKSMITHS — SHARED CSS (Dark Theme) ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --black: #16100c;
  --deep: #1e1208;
  --dark: #2a1a0e;
  --mid: #3d2414;
  --panel: #251508;
  --gold: #c88c64;
  --gold-light: #dca078;
  --gold-dim: #8a5c3a;
  --rust: #5b2b17;
  --rust-bright: #7a3420;
  --steel: #626669;
  --steel-light: #8a9098;
  --bone: #e8d4bc;
  --bone-dim: #ccb297;
  --cream: #f0e0cc;
  --white: #f5ece0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--black);
  color: var(--bone);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,9,8,0.97);
  border-bottom: 1px solid rgba(200,150,10,0.15);
  transition: transform 0.3s ease;
}
nav.hidden { transform: translateY(-100%); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img { width: 52px; height: 52px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-title {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 10px;
  color: var(--bone-dim);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--rust);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--rust-bright) !important; }

/* hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── EMERGENCY BAR ── */
.emergency-bar {
  position: fixed;
  top: 70px; left: 0; right: 0;
  z-index: 999;
  transition: transform 0.3s ease;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 24px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--cream);
}
.emergency-bar a { color: var(--gold-light); text-decoration: none; }
.emergency-bar a:hover { text-decoration: underline; }
.emerg-divider { opacity: 0.4; }

#header-spacer { height: 114px; }

/* ── SECTIONS ── */
section { padding: 90px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: var(--gold-dim);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 24px;
}
.section-title .gold { color: var(--gold); }
.section-title .rust { color: var(--rust-bright); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--black);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 16px 36px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--bone);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 15px 35px;
  text-decoration: none;
  border: 1px solid rgba(232,223,200,0.3);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── CARDS ── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,168,83,0.12);
  padding: 32px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(212,168,83,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--deep);
  border-top: 1px solid rgba(200,150,10,0.15);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--bone-dim);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 12px;
  color: var(--bone-dim);
  letter-spacing: 0.08em;
}

/* ── MOBILE ── */
@media (min-width: 901px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}
@media (max-width: 900px) {
  nav { padding: 0 16px; height: 60px;
    display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; }
  .nav-logo { grid-column: 2; justify-content: center; }
  .nav-logo img { width: 44px; height: 44px; }
  .nav-logo-sub { display: none; }
  .hamburger { grid-column: 3; justify-self: end; }
  .nav-links {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,9,8,0.98);
    justify-content: center; align-items: center;
    gap: 32px; transform: translateX(100%);
    transition: transform 0.3s ease; z-index: 1050; padding: 0 40px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .emergency-bar { top: 60px; padding: 6px 16px; text-align: center; font-size: 10px; letter-spacing: 0.08em; background: var(--rust); }
  .emerg-divider { display: none; }
  .emergency-bar a { display: none; }
  #header-spacer { height: 120px; }
  nav { background: var(--black) !important; }
  body::before, body::after, .celtic-right-border { display: none; }
  section { padding: 64px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ── NAV SCROLL HIDE ── */
.nav-hidden { transform: translateY(-100%) !important; }
.embar-hidden { transform: translateY(-130px) !important; }

/* shared nav JS snippet inline */

/* ── CELTIC DECORATIONS ── */

/* Knotwork top border strip */
body::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--rust) 0%,
    var(--gold) 25%,
    var(--rust-bright) 50%,
    var(--gold) 75%,
    var(--rust) 100%
  );
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}

/* Thin gradient side strips — original style */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 5px;
  height: 100vh;
  background: repeating-linear-gradient(
    180deg,
    var(--rust) 0px,
    var(--gold) 20px,
    var(--rust-bright) 40px,
    var(--gold) 60px,
    var(--rust) 80px
  );
  opacity: 0.3;
  z-index: 9998;
  pointer-events: none;
}
.celtic-right-border {
  position: fixed;
  top: 0; right: 0;
  width: 5px;
  height: 100vh;
  background: repeating-linear-gradient(
    180deg,
    var(--rust) 0px,
    var(--gold) 20px,
    var(--rust-bright) 40px,
    var(--gold) 60px,
    var(--rust) 80px
  );
  opacity: 0.3;
  z-index: 9998;
  pointer-events: none;
}

.celtic-divider {
  width: 100%;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  background: var(--deep);
}
.celtic-divider svg {
  width: 100%;
  height: 36px;
  opacity: 0.4;
}

/* Corner bracket ornaments — applied to hero */
.celtic-corners {
  position: absolute;
  top: 16px; left: 16px; right: 16px; bottom: 16px;
  pointer-events: none;
  z-index: 1;
}
.celtic-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0.45;
}
.celtic-corner.tl { top: 0; left: 0; }
.celtic-corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.celtic-corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.celtic-corner.br { bottom: 0; right: 0; transform: scale(-1); }

/* Subtle micro-pattern background on alternating sections */
.celtic-bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5L34 18H48L37 27L41 40L30 31L19 40L23 27L12 18H26Z' fill='none' stroke='%23c88c64' stroke-width='0.35' opacity='0.12'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── HD CLEANING CROSSOVER ── */
.hd-crossover {
  background: var(--deep);
  padding: 0 40px;
}
.hd-crossover-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  background: var(--mid);
  border: 1px solid rgba(200,140,100,0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.hd-crossover-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,140,100,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hd-crossover-left {
  padding: 44px 48px;
  position: relative;
  z-index: 1;
}
.hd-crossover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,140,100,0.15);
  border: 1px solid rgba(200,140,100,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hd-crossover-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.hd-crossover-title em {
  font-style: italic;
  color: var(--gold);
}
.hd-crossover-text {
  font-family: 'Crimson Text', serif;
  font-size: 17px;
  color: var(--bone-dim);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}
.hd-crossover-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.hd-crossover-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px 44px 36px;
  border-left: 1px solid rgba(200,140,100,0.15);
  position: relative;
  z-index: 1;
  min-width: 200px;
  gap: 0;
}
.hd-stat {
  padding: 18px 0;
  border-bottom: 1px solid rgba(200,140,100,0.1);
}
.hd-stat:last-child { border-bottom: none; }
.hd-stat-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 4px;
}
.hd-stat-label {
  font-size: 11px;
  color: var(--bone-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Cinzel', serif;
}

@media (max-width: 900px) {
  .hd-crossover { padding: 0 16px; }
  .hd-crossover-inner { grid-template-columns: 1fr; }
  .hd-crossover-left { padding: 32px 24px; }
  .hd-crossover-right { border-left: none; border-top: 1px solid rgba(200,140,100,0.1); padding: 24px; flex-direction: row; flex-wrap: wrap; gap: 16px; min-width: unset; }
  .hd-stat { border-bottom: none; padding: 0; }
}

/* ── MOBILE HEADER — FINAL OVERRIDE (must stay at end of file) ── */
@media (max-width: 900px) {
  body::before { display: none !important; height: 0 !important; }
  body::after  { display: none !important; }
  .celtic-right-border { display: none !important; }
  nav {
    background: #1e1208 !important;
    border-bottom: 1px solid rgba(200,140,100,0.15) !important;
  }
  .emergency-bar {
    top: 60px !important;
    background: #1e1208 !important;
    border-bottom: 1px solid rgba(200,140,100,0.15) !important;
    padding: 9px 16px !important;
    font-size: 10px !important;
    letter-spacing: 0.07em !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.5 !important;
  }
  .emergency-bar a:not(.emerg-main) { display: none !important; }
  .emergency-bar a.emerg-main {
    display: block !important;
    width: 100% !important;
    color: #e8622a !important;
    text-decoration: none !important;
    text-align: center !important;
    letter-spacing: 0.1em !important;
    font-size: 10px !important;
  }
  .emerg-divider { display: none !important; }
  #header-spacer { height: 110px !important; }
  .embar-hidden { transform: translateY(-110px) !important; }
}
