/* =========================================================
   Arctic Lock & Door Solutions LLC
   Navy / Light Blue / Gold — Inter (body) + Fraunces (display)
   ========================================================= */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Brand palette */
  --navy-900: #061a3d;
  --navy-800: #0b2a5b;       /* primary navy */
  --navy-700: #143a78;
  --navy-600: #1b4690;
  --navy-500: #2858a8;
  --blue-300: #8fb6e8;       /* light blue accent */
  --blue-200: #bfd0ec;
  --blue-100: #e3ecf8;
  --blue-50:  #f3f7fc;
  --gold-700: #a17a00;
  --gold-600: #c89400;
  --gold-500: #e6b800;       /* primary gold */
  --gold-400: #f0c92e;
  --gold-200: #f4e4a3;

  /* Surfaces (light theme) */
  --color-bg: #fbfcfe;
  --color-surface: #ffffff;
  --color-surface-2: #f3f7fc;
  --color-surface-offset: #e9eef7;
  --color-border: #d8e0ed;
  --color-divider: #e6ebf3;

  /* Text */
  --color-text: #0a1730;
  --color-text-muted: #4a587a;
  --color-text-faint: #8995ad;
  --color-text-inverse: #f3f7fc;

  /* Semantic */
  --color-primary: var(--navy-800);
  --color-primary-hover: var(--navy-700);
  --color-accent: var(--gold-500);
  --color-accent-hover: var(--gold-600);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 42, 91, 0.08);
  --shadow-md: 0 6px 18px rgba(11, 42, 91, 0.10);
  --shadow-lg: 0 18px 40px rgba(11, 42, 91, 0.16);

  /* Transition */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Widths */
  --content-narrow: 720px;
  --content-default: 1120px;
  --content-wide: 1280px;

  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: rgba(11, 42, 91, 0.18); color: var(--color-text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.brand-logo {
  width: 56px;
  height: auto;
  flex-shrink: 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--navy-800); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transition: right var(--transition);
}
.site-nav a:hover::after { right: 0; }

.nav-cta {
  background: var(--navy-800);
  color: #fff !important;
  padding: var(--space-2) var(--space-4) !important;
  border-radius: var(--radius-md);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-700) !important; color: #fff !important; }

.header-call {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-800);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.header-call:hover {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

@media (min-width: 880px) {
  .site-nav { display: flex; }
  .header-call { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy-800);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--navy-800);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--navy-800); }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
}
.btn-ghost:hover { background: var(--color-surface-2); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 61, 0) 0%, rgba(6, 26, 61, 0.18) 58%, rgba(6, 26, 61, 0.88) 100%),
    linear-gradient(0deg, rgba(6, 26, 61, 0.76) 0%, rgba(6, 26, 61, 0.1) 38%, rgba(6, 26, 61, 0) 100%),
    linear-gradient(105deg, rgba(6, 26, 61, 0.94) 0%, rgba(11, 42, 91, 0.82) 38%, rgba(11, 42, 91, 0.58) 66%, rgba(6, 26, 61, 0.48) 100%),
    linear-gradient(180deg, rgba(6, 26, 61, 0.0) 60%, rgba(6, 26, 61, 0.55) 100%);
}

.hero-inner {
  position: relative;
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--blue-200);
  margin-bottom: var(--space-4);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(230, 184, 0, 0.22);
}

.hero h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  font-weight: 600;
  color: #fff;
}
.hero h1 .hl {
  color: var(--gold-500);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--blue-100);
  margin-bottom: var(--space-8);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--blue-100);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Section base ---------- */
.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}
.section-alt { background: var(--color-surface-2); }
.section-dark {
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(143, 182, 232, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
}

.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: var(--space-3);
}
.section-eyebrow.light { color: var(--gold-500); }
.section-head h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: inherit;
}
.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.section-dark .section-lead { color: var(--blue-100); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--space-6); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-8); }
.two-col { grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

/* ---------- Service cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 3px solid transparent;
  background: linear-gradient(var(--gold-500), var(--gold-500)) top center / 40px 3px no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-700);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
  color: var(--navy-900);
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ---------- Brand banner ---------- */
.brand-banner {
  background: var(--navy-900);
  overflow: hidden;
}
.brand-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 360px;
  display: block;
}
@media (min-width: 720px) {
  .brand-banner img { max-height: 420px; }
}

/* ---------- Panels (res/comm) ---------- */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  position: relative;
}
.panel-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full, 9999px);
  background: var(--navy-800);
  color: #fff;
  margin-bottom: var(--space-4);
}
.panel-tag-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.panel h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--navy-900);
}
.panel p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.bullets {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.bullets li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 2px;
  background: var(--gold-500);
}

/* ---------- Why us ---------- */
.why-item {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.why-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.why-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--navy-900);
}
.why-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Service area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 860px) {
  .area-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-16); }
}
.area-copy h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.area-copy p {
  color: var(--blue-100);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 56ch;
}
.area-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.area-map {
  background:
    radial-gradient(circle at 52% 42%, rgba(143, 182, 232, 0.16), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(143, 182, 232, 0.03));
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(143, 182, 232, 0.18);
}
.alaska-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f7f9fc;
  box-shadow: 0 20px 38px rgba(2, 11, 24, 0.20);
}
.alaska-map-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.25);
}
.fairbanks-placement {
  position: absolute;
  left: 58%;
  top: 31%;
  transform: translate(-18px, -18px);
}
.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold-500);
  border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(230, 184, 0, 0.24), 0 8px 18px rgba(6, 26, 61, 0.35);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 999px;
  border: 1px solid rgba(230, 184, 0, 0.55);
  animation: pulsePin 2.8s ease-out infinite;
}
.map-label {
  position: absolute;
  left: 28px;
  top: -36px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: max-content;
  max-width: 260px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 14px 28px rgba(6, 26, 61, 0.22);
}
.map-label::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 42px;
  width: 18px;
  height: 2px;
  background: var(--gold-500);
}
.map-label img {
  width: 42px;
  height: auto;
  flex: 0 0 auto;
}
.map-label strong {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.15;
  font-weight: 800;
}
.map-label span {
  display: block;
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}
.area-map figcaption {
  margin-top: var(--space-4);
  color: var(--blue-200);
  font-size: var(--text-sm);
  text-align: center;
}
@keyframes pulsePin {
  0% { transform: scale(0.75); opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Contact ---------- */
.contact-wrap { max-width: var(--content-default); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card:hover:not(.contact-card-static) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-700);
}
.contact-card-static { cursor: default; }
.contact-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--navy-800);
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.contact-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-900);
  word-break: break-word;
}

.contact-footnote {
  text-align: center;
  margin-top: var(--space-10);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-footnote strong { color: var(--navy-900); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--blue-100);
  padding-block: var(--space-12);
}
.footer-inner {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .footer-meta { grid-column: 1 / -1; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.footer-brand img { flex-shrink: 0; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-1);
}
.footer-sub {
  font-size: var(--text-sm);
  color: var(--blue-200);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.footer-contact a {
  color: #fff;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--gold-500); }
.fb-name { color: var(--blue-200); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  margin-top: var(--space-4);
  border-top: 1px solid rgba(143, 182, 232, 0.12);
  font-size: var(--text-xs);
  color: var(--blue-200);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .hero { min-height: 70vh; padding-block: var(--space-16); }
  .hero-lead { font-size: var(--text-base); }
  .header-inner { gap: var(--space-3); }
  .brand-logo { width: 48px; }
  .area-map { padding: var(--space-3); }
  .fairbanks-placement {
    left: 57%;
    top: 31%;
  }
  .map-label {
    left: -82px;
    top: 24px;
    max-width: 210px;
    padding: var(--space-2) var(--space-3);
  }
  .map-label::before {
    left: 78px;
    top: -18px;
    width: 2px;
    height: 18px;
  }
  .map-label img { width: 34px; }
}
