/* SCL Door Entry Systems — brand tokens & base styles (design 14: Heavyweight Caps)
   Mobile-first: base rules are the phone layout; the single @media (min-width: 760px) block adds the desktop grid. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/archivo-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/archivo-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/archivo-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/archivo-800.woff2') format('woff2'); }

:root {
  --scl-navy: #13263F;        /* primary brand colour */
  --scl-amber: #F6A41F;       /* accent — rules, CTAs, highlights */
  --scl-ink: #1C2A3A;         /* body text */
  --scl-grey: #4B5563;        /* secondary text on light */
  --scl-grey-on-navy: #AFBBCB;/* secondary text on navy */
  --scl-bg: #FFFFFF;
  --scl-bg-alt: #F7F8FA;
  --scl-line: #E3E6EA;
  --scl-navy-deep: #0E1C30;   /* contact band, slightly darker than navy */
  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --call-bar-h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--scl-ink);
  background: var(--scl-bg);
  line-height: 1.6;
  padding-bottom: calc(var(--call-bar-h) + env(safe-area-inset-bottom, 0px)); /* room for the fixed mobile call bar */
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--font-body); font-weight: 800; color: var(--scl-navy); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 7vw, 54px); }
h2 { font-size: clamp(24px, 5vw, 34px); }
p { margin: 0 0 16px; }
a { color: var(--scl-navy); }
img { max-width: 100%; height: auto; }
ul { padding-left: 20px; }
.lead { font-size: 17px; max-width: 680px; }
.small { font-size: 14px; color: var(--scl-grey); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--scl-amber); color: var(--scl-navy); padding: 8px 12px; font-weight: 700; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--scl-navy); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-header .brand { display: block; line-height: 0; }
.site-header img.logo { height: 30px; width: auto; display: block; } /* 30px tall ≈ 246px wide — above the 140px minimum */
.site-nav { display: none; }
.site-header .header-call { display: none; } /* phones use the hamburger + bottom call bar */
.menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin: 0; background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.menu-btn span { display: block; height: 3px; width: 24px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn:focus-visible { outline: 3px solid var(--scl-amber); outline-offset: 2px; }
.site-header.open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.site-header.open .site-nav {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--scl-navy); border-top: 1px solid rgba(255,255,255,.12); padding: 8px 16px 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.site-header.open .site-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-header.open .site-nav .nav-call { border: 0; margin-top: 12px; background: var(--scl-amber); color: var(--scl-navy); border-radius: 8px; text-align: center; padding: 14px; }
.call-btn {
  background: var(--scl-amber); color: var(--scl-navy); text-decoration: none;
  font-weight: 800; letter-spacing: 0.04em; padding: 12px 18px; border-radius: 8px;
  white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; font-family: inherit; font-size: 15px; cursor: pointer;
}
.call-btn:hover { filter: brightness(1.06); }
.call-btn:focus-visible, .ghost-btn:focus-visible, .call-bar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.call-btn-label { display: none; } /* "Call " prefix only shows when there's room */
.call-btn-lg { font-size: 17px; padding: 14px 22px; }
.ghost-btn {
  color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 8px;
  border: 2px solid var(--scl-grey-on-navy); min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.ghost-btn:hover { border-color: #fff; }

/* Hero */
.hero { background: var(--scl-navy); color: #fff; padding: 48px 0 56px; }
.hero h1 { color: #fff; }
.hero .accent-rule { width: 120px; height: 6px; background: var(--scl-amber); margin: 20px 0; }
.hero p { color: var(--scl-grey-on-navy); font-size: 18px; max-width: 620px; margin: 0 0 26px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-row .call-btn, .cta-row .ghost-btn { width: 100%; }
.hero .hero-note { font-size: 14px; margin: 24px 0 0; }

/* Photos */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.map-card { margin: 0; }
.coverage-map { width: 100%; height: auto; display: block; border-radius: 14px; border-bottom: 6px solid var(--scl-amber); }
.side-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; border-bottom: 6px solid var(--scl-amber); }

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--scl-bg-alt); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.24em; color: var(--scl-grey); text-transform: uppercase; margin-bottom: 10px; }
.kicker-light { color: var(--scl-grey-on-navy); }

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.card { border: 1px solid var(--scl-line); border-radius: 12px; background: #fff; padding: 22px 20px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--scl-grey); font-size: 15px; }
.card .tick { width: 34px; height: 5px; background: var(--scl-amber); margin-bottom: 16px; }

/* Brands */
.brand-list { list-style: none; padding: 0; margin: 20px 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-list li { border-left: 5px solid var(--scl-amber); background: #fff; border-radius: 6px; padding: 10px 16px; font-weight: 700; color: var(--scl-navy); border-top: 1px solid var(--scl-line); border-right: 1px solid var(--scl-line); border-bottom: 1px solid var(--scl-line); }

/* Letting agents block */
.agents-block { background: var(--scl-navy); color: #fff; border-radius: 16px; padding: 28px 20px; }
.agents-block h2, .agents-block .kicker { color: #fff; }
.agents-block .kicker { color: var(--scl-grey-on-navy); }
.agents-block .lead { color: var(--scl-grey-on-navy); }
.check-list { list-style: none; padding: 0; margin: 20px 0 24px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #fff; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 5px; background: var(--scl-amber); }
.check-list strong { color: #fff; }
.agents-block .call-btn { white-space: normal; text-align: center; width: 100%; }

/* Coverage strip */
.coverage { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.coverage span { border: 1px solid var(--scl-line); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 14px; color: var(--scl-navy); background: #fff; }
.area-list { margin: 24px 0 0; padding: 0; list-style: none; }
.area-list li { padding: 12px 0; border-top: 1px solid var(--scl-line); color: var(--scl-grey); font-size: 15px; }
.area-list strong { color: var(--scl-navy); }

/* FAQ */
.faq { margin: 24px 0 0; max-width: 760px; }
.faq dt { font-weight: 800; color: var(--scl-navy); font-size: 18px; padding-top: 18px; border-top: 1px solid var(--scl-line); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd { margin: 8px 0 18px; color: var(--scl-grey); }
.trademark-note { margin-top: 8px; }

/* Legal page */
.legal-page { padding: 48px 0 64px; }
.legal-page h1 { font-size: clamp(28px, 6vw, 40px); }
.legal-page h2 { font-size: 20px; margin-top: 32px; }
.legal-page p, .legal-page li { max-width: 720px; color: var(--scl-ink); }
.legal-page .meta { color: var(--scl-grey); font-size: 14px; }

/* Contact */
.contact { background: var(--scl-navy-deep); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: var(--scl-grey-on-navy); }
.contact a { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact .big-tel { display: inline-block; font-size: clamp(30px, 9vw, 46px); font-weight: 800; color: var(--scl-amber); text-decoration: none; letter-spacing: 0.02em; margin: 4px 0 14px; line-height: 1.1; }
.wa-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.quote-form { background: #fff; color: var(--scl-ink); border-radius: 16px; padding: 24px 20px; }
.quote-form h3 { font-size: 22px; margin-bottom: 6px; }
.quote-form .form-intro { color: var(--scl-grey); font-size: 15px; margin-bottom: 18px; }
.quote-form a { color: var(--scl-navy); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--scl-navy); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--scl-ink);
  border: 1px solid #C9CFD6; border-radius: 8px; background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--scl-amber); outline-offset: 1px; border-color: var(--scl-navy); }
.botcheck { display: none !important; }
.submit-btn { width: 100%; margin-top: 4px; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; font-size: 15px; color: var(--scl-grey); }
.form-status.ok { color: #0F6E3F; }
.form-status.err { color: #B42318; }
.form-small { margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--scl-navy); color: var(--scl-grey-on-navy); padding: 44px 0 36px; text-align: center; }
.site-footer img.logo { height: 72px; width: auto; margin: 0 auto 18px; display: block; }
.site-footer a { color: #fff; }
.site-footer .footer-tel a { font-size: 22px; font-weight: 800; text-decoration: none; }
.site-footer .legal { font-size: 12px; margin-top: 22px; }
.site-footer .legal-links { margin-top: 6px; }
.site-footer .legal-links a { color: var(--scl-grey-on-navy); }

/* Fixed mobile call bar */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--call-bar-h) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center;
  background: var(--scl-amber); color: var(--scl-navy); font-weight: 800; font-size: 18px; letter-spacing: 0.04em;
  text-decoration: none; box-shadow: 0 -2px 10px rgba(0,0,0,.18);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Desktop */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; gap: 24px; }
  .site-header img.logo { height: 42px; }
  .menu-btn { display: none; }
  .site-header .header-call { display: inline-flex; }
  .site-nav, .site-header.open .site-nav { display: flex; flex-direction: row; position: static; gap: 22px; margin-left: auto; background: none; border: 0; padding: 0; box-shadow: none; }
  .site-nav .nav-call, .site-header.open .site-nav .nav-call { display: none; }
  .site-nav a, .site-header.open .site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; border: 0; }
  .site-nav a:hover { color: var(--scl-amber); }
  .call-btn-label { display: inline; white-space: pre; }
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: 3fr 2fr; gap: 56px; }
  .hero-photo { aspect-ratio: 9 / 10; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-reverse > figure { order: -1; }
  .side-photo { aspect-ratio: 1 / 1; }
  .cta-row { flex-direction: row; align-items: center; gap: 16px; }
  .cta-row .call-btn, .cta-row .ghost-btn { width: auto; }
  section { padding: 64px 0; }
  .grid { gap: 20px; margin-top: 28px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 26px 24px; }
  .agents-block { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .agents-block > p { grid-column: 1 / -1; margin: 0; }
  .agents-block .call-btn { width: auto; }
  .check-list { margin-top: 8px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .quote-form { padding: 32px; }
  .submit-btn { width: auto; }
  .site-footer img.logo { height: 80px; }
}
