:root {
  --ink: #10191d;
  --slate: #27363c;
  --paper: #f6f5f0;
  --white: #fff;
  --gold: #e5b552;
  --line: #d7d9d5;
  --muted: #667277;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.topbar {
  background: var(--ink);
  color: #e9ece9;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: 10px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; }

header {
  background: rgba(246,245,240,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
nav {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: "Barlow Condensed";
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.7rem;
  line-height: .92;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.9rem;
  font-style: normal;
}
.brand span {
  display: block;
  font-family: "DM Sans";
  font-size: .6rem;
  letter-spacing: .18em;
  margin-top: 5px;
}
.links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.links a:not(.button):hover { color: #a2761c; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--gold);
  color: var(--ink);
  padding: 13px 19px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid var(--gold);
  transition: .2s;
  cursor: pointer;
}
.button:hover { background: #f1c868; transform: translateY(-2px); }
.button.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button.dark:hover { background: var(--slate); }
.button.outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.button.outline:hover { background: var(--white); color: var(--ink); }

.hero {
  color: white;
  min-height: 620px;
  display: grid;
  align-items: end;
  background: linear-gradient(90deg, rgba(10,18,21,.94) 0%,rgba(10,18,21,.75) 45%,rgba(10,18,21,.28)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=2000&q=85') center/cover;
}
.hero-inner { padding: 92px 0 74px; max-width: 820px; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow:before {
  content: "";
  display: block;
  width: 35px;
  border-top: 2px solid var(--gold);
}

h1,h2,h3 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 0; line-height: .92; }
h1 { font-size: clamp(3.3rem,8vw,6.4rem); letter-spacing: -.02em; margin: 20px 0 24px; }
h2 { font-size: clamp(2.5rem,5vw,4.3rem); }
h3 { font-size: 1.75rem; margin-bottom: 12px; }

.hero p { font-size: 1.08rem; max-width: 660px; line-height: 1.65; color: #e0e5e3; margin: 0 0 31px; }
.actions { display:flex; flex-wrap:wrap; gap:12px; }

section { padding: 94px 0; }
.intro {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 70px;
  align-items: start;
}
.body-copy, .intro p, .page-copy {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
  margin: 0;
}

.stats { display:flex; gap:20px; margin-top:34px; }
.stat { border-left:3px solid var(--gold); padding-left:14px; }
.stat strong { display:block; font-family:"Barlow Condensed"; font-size:2.35rem; line-height:.9; }
.stat span { font-size:.75rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); }

.services {
  background: var(--ink);
  color: white;
}
.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:25px;
  margin-bottom:42px;
}
.section-head p { max-width:470px; color:#b8c0bd; line-height:1.65; margin:0; }
.service-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid #445258;
  border-left:1px solid #445258;
}
.service {
  appearance:none;
  color:inherit;
  text-align:left;
  font:inherit;
  background:transparent;
  min-height:260px;
  padding:31px 27px;
  border:0;
  border-right:1px solid #445258;
  border-bottom:1px solid #445258;
  cursor:pointer;
  transition:.2s;
}
.service:hover,.service:focus-visible { background:#1e2b30; outline:0; }
.service:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.service:hover .learn-more { color: var(--gold); }
.icon { color: var(--gold); font-size: 2rem; margin-bottom: 28px; }
.service p { color:#bdc5c3; font-size:.91rem; line-height:1.65; margin:0; }
.learn-more {
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:20px;
  color:#fff;
  text-transform:uppercase;
  font-size:.69rem;
  font-weight:700;
  letter-spacing:.13em;
  transition:.2s;
}
.learn-more b { font-size:1.1rem; line-height:0; }

.reasons { display:grid; grid-template-columns:1fr 1fr; gap:70px; }
.reason-list { border-top:1px solid var(--line); }
.reason {
  padding:20px 0;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:45px 1fr;
  gap:12px;
}
.reason b {
  font-family:"Barlow Condensed";
  font-size:1.43rem;
  text-transform:uppercase;
  display:block;
  margin-bottom:4px;
}
.reason p { color:var(--muted); margin:0; font-size:.91rem; line-height:1.5; }
.number { color:#ae7d1a; font-weight:700; font-size:.8rem; padding-top:5px; }

.environment {
  background:#dce1dc;
  padding:0;
  display:grid;
  grid-template-columns:1fr 1fr;
}
.environment .image {
  min-height:470px;
  background:url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1300&q=85') center/cover;
}
.environment .content {
  display:flex;
  align-items:center;
  padding:72px max(40px, calc((100vw - 1160px)/2));
  padding-right:9vw;
}
.environment p { margin:22px 0 30px; color:#556167; line-height:1.7; }

.contact { background:var(--gold); }
.contact-inner { display:flex; align-items:center; justify-content:space-between; gap:30px; }
.contact h2 { max-width:600px; }
.email { display:block; margin-top:16px; font-weight:700; border-bottom:1px solid var(--ink); width:max-content; }

footer {
  background:var(--ink);
  color:#c8cfcc;
  padding:30px 0;
  font-size:.77rem;
}
footer .wrap { display:flex; justify-content:space-between; gap:20px; }
footer b { color:white; letter-spacing:.07em; }

.page-hero {
  background: linear-gradient(90deg, rgba(10,18,21,.92) 0%,rgba(10,18,21,.7) 50%,rgba(10,18,21,.3)), url('https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: white;
  min-height: 420px;
  display:flex;
  align-items:flex-end;
}
.services-page-hero {
  background: linear-gradient(90deg, rgba(10,18,21,.92) 0%,rgba(10,18,21,.7) 50%,rgba(10,18,21,.3)), url('images/services-fire-doors.png') center/cover;
}
.contact-page-hero {
  background: linear-gradient(90deg, rgba(10,18,21,.92) 0%,rgba(10,18,21,.7) 50%,rgba(10,18,21,.3)), url('https://upload.wikimedia.org/wikipedia/commons/b/b4/Fire_door_red.jpg') center/cover;
}
.page-hero-inner { padding: 80px 0 70px; } 
.page-hero p { color:#dfe5e3; max-width:600px; }

.page-section { padding: 80px 0; }
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 12px 30px rgba(16,25,29,.04);
}

.service-list {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
}
.service-card .icon { margin-bottom: 18px; }
.service-card p { color: var(--muted); line-height:1.6; margin: 0 0 18px; }
.service-card .button { margin-top: 8px; }

.quote-layout {
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items:start;
}
.quote-company-name {
  font-size: clamp(1.15rem, 3vw, 2.8rem);
  white-space: nowrap;
}
.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.field-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.field-full { grid-column:1 / -1; }
label { font-weight:700; letter-spacing:.04em; text-transform:uppercase; font-size:.72rem; }
input, select, textarea {
  width:100%;
  border:1px solid var(--line);
  background:#f7f7f5;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 16px;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(229,181,82,.15);
}
textarea { min-height:160px; resize:vertical; }

@media (max-width:900px) {
  .topbar .wrap { justify-content:space-between; }
  .topbar span:last-child { display:none; }
  nav { gap: 16px; }
  .intro, .reasons, .environment, .quote-layout { grid-template-columns:1fr; gap:35px; }
  .service-grid { grid-template-columns:1fr 1fr; }
  .service-list { grid-template-columns:1fr; }
  .environment .image { min-height:300px; }
  .environment .content { padding:40px 20px; }
  section { padding:60px 0; }
  .contact-inner { align-items:start; flex-direction:column; }
  h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
  h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
  .button { padding: 12px 16px; font-size: .75rem; min-height: 44px; }
  .eyebrow { font-size: .7rem; }
  .hero-inner { padding: 60px 0 50px; }
  .hero p { font-size: 1rem; }
  .detail-panel { padding: 34px 22px; }
}

@media (max-width:640px) {
  .wrap { width: min(calc(100% - 24px), 1160px); padding: 0 12px; }
  nav { min-height: 60px; flex-wrap: wrap; }
  .brand { font-size: 1.35rem; gap: 11px; }
  .brand-mark { width: 42px; height: 42px; font-size: 1.55rem; }
  .brand span { font-size: .52rem; margin-top: 4px; }
  
  .topbar { font-size: .7rem; padding: 8px 0; }
  .topbar .wrap { gap: 10px; flex-wrap: wrap; }
  .topbar span { display: inline-block; }
  
  section { padding: 48px 0; }
  h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
  h3 { font-size: 1.2rem; }
  
  .hero { min-height: 500px; }
  .hero-inner { padding: 40px 0 35px; max-width: 100%; }
  .hero p { font-size: .95rem; margin-bottom: 20px; line-height: 1.6; }
  
  .actions { gap: 8px; }
  .button { padding: 11px 14px; font-size: .7rem; min-height: 44px; }
  
  .intro p, .body-copy, .page-copy { font-size: .95rem; }
  .stats { flex-direction: column; gap: 16px; }
  .stat { border-left: 3px solid var(--gold); padding-left: 12px; }
  .stat strong { font-size: 1.8rem; }
  .stat span { font-size: .65rem; }
  
  .service-grid { grid-template-columns: 1fr; border-left: none; }
  .service { 
    min-height: auto; 
    padding: 24px 20px;
    border-left: none;
    border-right: none;
  }
  .icon { margin-bottom: 16px; }
  
  .service-list { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 20px; }
  
  .reason { gap: 8px; }
  .reason b { font-size: 1.2rem; }
  .reason p { font-size: .85rem; }
  
  .environment { 
    display: flex;
    flex-direction: column;
  }
  .environment .image { min-height: 250px; }
  .environment .content { 
    padding: 40px 20px;
    order: -1;
  }
  
  .contact { padding: 60px 0; }
  .contact-inner { gap: 20px; }
  .contact h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
  .contact-form { padding: 24px 16px; }
  
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .field { margin-bottom: 14px; }
  label { font-size: .65rem; }
  input, select, textarea { padding: 12px 12px; font-size: 16px; }
  textarea { min-height: 120px; }
  
  .page-hero { min-height: 350px; }
  .page-hero-inner { padding: 50px 0 40px; }
  .page-hero p { font-size: .9rem; }
  
  .page-section { padding: 50px 0; }
  .quote-layout { grid-template-columns: 1fr; gap: 24px; }
  
  .detail-panel { padding: 24px 18px; }
  .detail-panel h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
  .detail-list { grid-template-columns: 1fr; gap: 0; }
  .detail-list div { padding: 12px 14px; font-size: .8rem; }
  
  .carousel-controls { gap: 8px; flex-wrap: wrap; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
  .carousel-counter { font-size: .75rem; }
  
  .reason-list { border-top: none; }
  .reason { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .reason:first-child { padding-top: 0; }
  
  footer .wrap { flex-direction: column; gap: 12px; }
  footer { padding: 24px 0; }
  footer b { font-size: .75rem; }
}

@media (max-width:480px) {
  .wrap { width: calc(100% - 20px); }
  nav { min-height: 56px; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.4rem; }
  
  .hero { min-height: 450px; }
  .hero-inner { padding: 30px 0 25px; }
  .eyebrow { font-size: .65rem; gap: 8px; }
  .eyebrow:before { width: 25px; }
  
  h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
  h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
  section { padding: 40px 0; }
  
  .page-hero { min-height: 300px; }
  .page-hero-inner { padding: 40px 0 30px; }
  
  .section-head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .section-head p { max-width: 100%; }
  
  .carousel-controls { justify-content: space-between; }
  .carousel-nav { gap: 8px; }
}

@media (max-width:380px) {
  .wrap { width: calc(100% - 16px); }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .button { padding: 10px 12px; font-size: .65rem; }
  .actions { gap: 6px; }
  .hero-inner { padding: 20px 0 20px; }
}
