/* ==========================================================
   Hellerman Industries — styles
   Colors live in :root. Change --gold / --navy to rebrand.
   ========================================================== */
:root {
  --navy: #0b1426;
  --navy-2: #111d35;
  --navy-3: #18264a;
  --ink: #1b2233;
  --text: #4a5468;
  --line: #e6e2d8;
  --cream: #f7f4ee;
  --white: #ffffff;
  --gold: #c9a54c;
  --gold-2: #e0c47a;
  --gold-dark: #a9862f;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(11, 20, 38, .35);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.gold { color: var(--gold); }
.muted { color: #8a93a6; }
.small { font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(201, 165, 76, .8); }
.btn-gold:hover { background: linear-gradient(135deg, #ead291, var(--gold-2)); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-outline { border-color: rgba(201,165,76,.6); color: var(--gold-2); }
.btn-outline:hover { background: rgba(201,165,76,.12); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 20, 38, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-text { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
.brand-text em { font-style: normal; color: var(--gold); }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu { position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); display: none; flex-direction: column; padding: 12px 20px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-menu.open { display: flex; }
.nav-menu a { color: #d6dbe6; text-decoration: none; padding: 12px 4px; font-weight: 500; }
.nav-menu a:hover { color: var(--gold-2); }
.nav-menu .btn { margin-top: 8px; color: var(--navy); padding: 12px 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background:
  radial-gradient(900px 500px at 85% 10%, rgba(201,165,76,.16), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(40,70,140,.35), transparent 60%),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #c9d0dd; padding: 48px 0 40px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: .45em; }
.lead { font-size: 1.1rem; color: #bcc5d6; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.photo-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); outline: 1px solid rgba(201,165,76,.5); outline-offset: 10px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-badge { position: absolute; left: -10px; bottom: 28px; display: flex; align-items: center; gap: 12px; background: var(--white); color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.3; }
.badge-mono { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.facts li { background: rgba(11,20,38,.75); padding: 18px 16px; }
.facts strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.25rem; }
.facts span { font-size: .84rem; color: #97a1b5; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-dark { background: var(--navy); color: #bcc5d6; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-tint { background: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 44px; }

/* About */
.about-grid { display: grid; gap: 24px; }
.about-copy p { font-size: 1.05rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold-dark); margin-top: 8px; }

/* Placeholder styling — easy to spot, still looks intentional */
.ph { border: 1.5px dashed var(--gold); background: rgba(201,165,76,.08); border-radius: 12px; padding: 14px 16px; color: #7a6527; font-size: .95rem !important; }

/* Company cards */
.cards { display: grid; gap: 20px; }
.card { background: linear-gradient(180deg, var(--navy-3), var(--navy-2)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(201,165,76,.5); }
.card p { color: #aab3c5; }
.card .btn { margin-top: auto; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.card-mono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; border: 1px solid rgba(201,165,76,.55); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.card-kicker { font-size: .8rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--gold) !important; font-weight: 600; margin-top: -4px; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(201,165,76,.14); color: var(--gold-2); border: 1px solid rgba(201,165,76,.35); }
.status-live { background: rgba(72,187,120,.14); color: #7fdba6; border-color: rgba(72,187,120,.4); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; background: var(--white); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--navy); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: .9rem; }
.stat.ph { padding: 24px 18px; }
.stat.ph strong { color: var(--gold-dark); }

/* Testimonials */
.quotes { display: grid; gap: 20px; }
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 10px 30px -18px rgba(11,20,38,.25); position: relative; display: flex; flex-direction: column; }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: var(--gold); position: absolute; top: 12px; right: 22px; opacity: .45; }
.quote blockquote { margin: 0 0 20px; color: var(--ink); font-size: 1.02rem; }
.quote figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; font-size: .88rem; }
.quote figcaption strong { color: var(--ink); font-size: .98rem; }
.source-note { margin-top: 24px; font-size: .85rem; color: #8a93a6; }
.source-note a { color: var(--gold-dark); }

/* Forms */
.two-col { display: grid; gap: 24px; }
.form-card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px 26px; scroll-margin-top: 90px; }
.form-card h3 { margin-top: 14px; font-size: 1.6rem; font-family: var(--serif); }
.form-light { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.form-light h3 { margin-top: 0; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; }
.field-row { display: flex; flex-direction: column; gap: 0; }
label { font-size: .85rem; font-weight: 600; color: #d6dbe6; }
label small { font-weight: 400; color: #8a93a6; }
.form-light label { color: var(--ink); }
input, select, textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--white); width: 100%; transition: border-color .2s, box-shadow .2s; }
select option { color: var(--ink); }
.form-light input, .form-light select, .form-light textarea { background: #fbfaf7; border-color: var(--line); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,165,76,.25); }
input.invalid { border-color: #e26d6d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: #5fbf8a; }
.form-msg.err { color: #e26d6d; }
.js-form button[disabled] { opacity: .6; cursor: wait; }

/* Contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.contact-list a, .contact-list span:last-child { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold-dark); }
.ci { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-dark) !important; font-weight: 600 !important; }

/* Footer */
.site-footer { background: #070d1a; color: #8a93a6; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer a { display: block; text-decoration: none; padding: 4px 0; color: #aab3c5; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .brand { display: inline-flex; margin-bottom: 12px; color: var(--white); }
.social { display: inline-flex !important; align-items: center; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; font-size: .85rem; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .field-row { flex-direction: row; gap: 14px; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; background: none; padding: 0; border: 0; }
  .nav-menu a { padding: 0; font-size: .95rem; }
  .nav-menu .btn { margin: 0; }
  .hero { padding: 88px 0 56px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .about-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; }
  .cards, .quotes { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section { padding: 110px 0; }
  .form-card { padding: 38px 34px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Refinements ---------- */
h1, h2, h3, .stat strong, .facts strong { font-variant-numeric: lining-nums; }
.stat.ph { border: 1.5px dashed var(--gold); background: rgba(201,165,76,.06); }
.quote { padding-top: 64px; }
.quote::before { top: 14px; left: 26px; right: auto; font-size: 4rem; opacity: .7; }
.hero-photo { max-width: 340px; }
.photo-badge { left: 12px; bottom: 20px; }
@media (min-width: 960px) {
  .hero-photo { max-width: 420px; }
  .photo-badge { left: -18px; bottom: 28px; }
}
.h-sub { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.nav-menu a { white-space: nowrap; }
.btn { text-wrap: balance; text-align: center; }
/* Between 960 and 1079px the full menu doesn't fit; keep the hamburger */
@media (min-width: 960px) and (max-width: 1079px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); display: none; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 4px; }
  .nav-menu .btn { margin-top: 8px; padding: 12px 18px; }
}
