/* ============================================================
   Blue Whale Enterprises — Shared Stylesheet
   Two divisions: Fire & Safety  |  Doors
   ============================================================ */

:root {
  /* Brand */
  --navy: #0a2540;
  --navy-deep: #061a30;
  --blue: #0077b6;
  --blue-light: #48cae4;
  --blue-soft: #e6f4fb;

  /* Division accents */
  --fire: #e63946;
  --fire-soft: #fdeaec;
  --door: #b07d4f;
  --door-deep: #8a5a2b;
  --door-soft: #f6efe7;

  /* Neutrals */
  --ink: #11203a;
  --body: #475569;
  --muted: #7a899c;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --bg-dark: #0a2540;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, .06);
  --shadow: 0 14px 40px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
  --maxw: 1180px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow.fire { color: var(--fire); }
.eyebrow.door { color: var(--door-deep); }

.lead { font-size: 1.12rem; color: var(--body); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 700; font-size: .98rem; padding: 14px 26px; border-radius: 50px;
  border: 2px solid transparent; transition: .22s ease; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-fire { background: var(--fire); color: #fff; }
.btn-fire:hover { background: #c42c39; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-door { background: var(--door-deep); color: #fff; }
.btn-door:hover { background: #6f4621; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep); color: #cfe0ee; font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 18px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.topbar a { color: #cfe0ee; }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-left span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center; color: #fff; font-size: 1.35rem; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand .logo-text { line-height: 1.1; }
.brand .logo-text b { display: block; color: var(--navy); font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.brand .logo-text small { color: var(--muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 10px 15px; font-weight: 600; font-size: .95rem; color: var(--ink);
  border-radius: 8px; transition: .18s;
}
.menu a:hover { background: var(--blue-soft); color: var(--blue); }
.menu a.active { color: var(--blue); }
.nav-cta { margin-left: 10px; }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0a2540 0%, #0c3a63 55%, #0077b6 130%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(72,202,228,.22), transparent 45%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 .hl { color: var(--blue-light); }
.hero p { color: #d4e4f1; font-size: 1.15rem; max-width: 600px; margin-top: 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.stats { display: flex; gap: 44px; margin-top: 54px; flex-wrap: wrap; }
.stats .stat b { display: block; font-size: 2.2rem; color: #fff; font-weight: 800; }
.stats .stat span { color: #b9d3e6; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Division split cards (home) ---------- */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.div-card {
  position: relative; border-radius: var(--radius); overflow: hidden; padding: 40px;
  color: #fff; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); transition: .25s;
}
.div-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.div-card.fire { background: linear-gradient(160deg, #b32430 0%, #e63946 100%); }
.div-card.door { background: linear-gradient(160deg, #6f4621 0%, #b07d4f 100%); }
.div-card .dc-icon { font-size: 2.6rem; margin-bottom: auto; }
.div-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.div-card p { color: rgba(255,255,255,.9); margin-bottom: 18px; }
.div-card .dc-link { font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Feature / card grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .22s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .c-icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px; background: var(--blue-soft);
}
.card.fire .c-icon { background: var(--fire-soft); }
.card.door .c-icon { background: var(--door-soft); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--body); font-size: .96rem; margin-bottom: 0; }

/* Product card (doors) */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .22s; box-shadow: var(--shadow-sm);
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product .p-top {
  height: 150px; display: grid; place-items: center; font-size: 3rem;
  background: linear-gradient(135deg, var(--door-soft), #efe2d2);
}
.product.frd .p-top { background: linear-gradient(135deg, var(--fire-soft), #f8d7da); }
.product.win .p-top { background: linear-gradient(135deg, var(--blue-soft), #d4eefb); }
.product .p-body { padding: 24px; }
.product h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product p { font-size: .92rem; margin-bottom: 14px; }
.product .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.product .tag {
  font-size: .74rem; font-weight: 600; color: var(--door-deep);
  background: var(--door-soft); padding: 4px 11px; border-radius: 50px;
}
.product.frd .tag { color: var(--fire); background: var(--fire-soft); }
.product.win .tag { color: var(--blue); background: var(--blue-soft); }

/* ---------- Split content (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split .visual {
  border-radius: var(--radius); min-height: 380px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--navy), var(--blue)); position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff; text-align: center; padding: 30px;
}
.split .visual.fire { background: linear-gradient(135deg, #b32430, var(--fire)); }
.split .visual.door { background: linear-gradient(135deg, var(--door-deep), var(--door)); }
.split .visual .big-emoji { font-size: 5rem; }

.tick { list-style: none; margin: 18px 0; }
.tick li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.tick li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: var(--blue); color: #fff; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800;
}
.tick.fire li::before { background: var(--fire); }
.tick.door li::before { background: var(--door-deep); }

/* ---------- Industries strip ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 18px; text-align: center; transition: .2s;
}
.ind:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ind .i-emoji { font-size: 1.9rem; margin-bottom: 10px; }
.ind b { display: block; color: var(--ink); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
  border-radius: 20px; padding: 56px 40px; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #d4e4f1; max-width: 540px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0c3a63 100%); color: #fff;
  padding: 70px 0; position: relative; overflow: hidden;
}
.page-hero.fire { background: linear-gradient(135deg, #7c1923 0%, #e63946 120%); }
.page-hero.door { background: linear-gradient(135deg, #5a3a1c 0%, #b07d4f 120%); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e0ebf4; max-width: 620px; margin-top: 14px; font-size: 1.1rem; }
.crumb { font-size: .85rem; color: #a8c4da; margin-bottom: 16px; }
.crumb a:hover { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.info-block { display: flex; gap: 16px; margin-bottom: 24px; }
.info-block .ib-icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--blue-soft);
  display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.info-block b { display: block; color: var(--ink); margin-bottom: 3px; }
.info-block span, .info-block a { color: var(--body); font-size: .95rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: var(--bg-alt); transition: .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #aebfd0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer a { color: #aebfd0; display: block; padding: 5px 0; font-size: .92rem; transition: .15s; }
.footer a:hover { color: var(--blue-light); }
.footer .f-brand .brand { margin-bottom: 16px; }
.footer .f-brand .logo-text b { color: #fff; }
.footer .f-brand p { font-size: .92rem; color: #93a7bb; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: #8298ad;
}
.footer-bottom a { display: inline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .visual { min-height: 260px; order: -1; }
}
@media (max-width: 720px) {
  .menu {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 14px 24px 24px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: .3s; z-index: 55;
  }
  .menu.open { transform: translateY(0); }
  .menu a { padding: 13px 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .burger { display: flex; }
  .divisions { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar .tb-right { display: none; }
  .section { padding: 60px 0; }
  .stats { gap: 28px; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .ind-grid, .footer-grid { grid-template-columns: 1fr; }
}
