:root {
  --navy: #0b1f33;
  --navy-soft: #17324d;
  --gold: #d7a329;
  --gold-soft: #f3dfaa;
  --cream: #f7f4ec;
  --white: #ffffff;
  --text: #263646;
  --muted: #667789;
  --line: #dce3e9;
  --success: #17785b;
  --danger: #b42318;
  --warning: #9a6700;
  --shadow: 0 24px 60px rgba(9, 31, 51, 0.12);
  --radius: 22px;
  --container: min(1180px, calc(100% - 40px));
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 92px 0; }
.section--soft { background: var(--cream); }
.section--dark { background: var(--navy); color: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}
h1 { max-width: 850px; margin-bottom: 24px; font-size: clamp(2.6rem, 7vw, 5.3rem); letter-spacing: -.045em; }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
h3 { margin-bottom: 12px; font-size: 1.35rem; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.topbar { background: var(--navy); color: #d8e2ec; font-size: .86rem; }
.topbar__inner { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 18px; }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(11,31,51,.08);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
}
.navbar { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 900; letter-spacing: -.03em; }
.brand__mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--gold); color: var(--navy); font-family: Georgia,serif; font-size: 1.15rem; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text small { margin-top: 5px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--navy); font-size: .91rem; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.btn, .nav__cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 23px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn--gold, .nav__cta { background: var(--gold); color: var(--navy); box-shadow: 0 12px 28px rgba(215,163,41,.23); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--outline { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn:hover, .nav__cta:hover { transform: translateY(-2px); }
.menu-toggle { display: none; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 13px; background: var(--navy); color: var(--white); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; }
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 104px;
  background: radial-gradient(circle at 84% 20%, rgba(215,163,41,.24), transparent 25%), linear-gradient(135deg,#0b1f33 0%,#173b59 58%,#0d263d 100%);
  color: var(--white);
}
.hero h1, .hero h2, .section--dark h2, .section--dark h3 { color: var(--white); }
.hero .lead, .section--dark p { color: #c9d6e2; }
.hero__grid { display: grid; align-items: center; gap: 66px; grid-template-columns: 1.2fr .8fr; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 34px;
  background: linear-gradient(160deg,rgba(255,255,255,.16),rgba(255,255,255,.04)), radial-gradient(circle at 30% 25%,rgba(215,163,41,.5),transparent 27%);
  box-shadow: var(--shadow);
}
.hero-card__content { position: absolute; right: 24px; bottom: 24px; left: 24px; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; padding: 22px; background: rgba(7,24,39,.78); backdrop-filter: blur(13px); }
.hero-card__content strong { display: block; margin-bottom: 7px; color: var(--gold-soft); font-family: Georgia,serif; font-size: 1.35rem; }
.hero-card__pattern { position: absolute; inset: 40px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.hero-card__pattern::before, .hero-card__pattern::after { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.hero-card__pattern::before { inset: 50px; }
.hero-card__pattern::after { inset: 100px; background: rgba(215,163,41,.32); }
.stats { position: relative; z-index: 2; margin-top: -42px; }
.stats__grid { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); grid-template-columns: repeat(4,1fr); }
.stat { padding: 27px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 3px; color: var(--navy); font-family: Georgia,serif; font-size: 2rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-heading p { max-width: 540px; margin-bottom: 0; color: var(--muted); }
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
.service-card, .content-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.service-card { min-height: 310px; }
.service-card:hover, .content-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card__number { display: inline-grid; width: 48px; height: 48px; margin-bottom: 42px; place-items: center; border-radius: 15px; background: var(--cream); color: var(--gold); font-weight: 900; }
.service-card p, .content-card p { color: var(--muted); }
.service-card a, .content-card a { display: inline-flex; margin-top: 12px; color: var(--navy); font-weight: 800; }
.split { display: grid; align-items: center; gap: 70px; grid-template-columns: repeat(2,1fr); }
.visual-panel { position: relative; min-height: 510px; overflow: hidden; border-radius: 34px; background: linear-gradient(145deg,rgba(215,163,41,.88),rgba(215,163,41,.18)),var(--navy); box-shadow: var(--shadow); }
.visual-panel::before, .visual-panel::after { position: absolute; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; content: ""; }
.visual-panel::before { width: 360px; height: 360px; right: -60px; top: -80px; }
.visual-panel::after { width: 260px; height: 260px; left: -80px; bottom: -70px; }
.visual-panel__label { position: absolute; right: 24px; bottom: 24px; left: 24px; border-radius: 22px; padding: 24px; background: var(--white); }
.check-list { display: grid; gap: 14px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--navy); content: "✓"; font-size: .8rem; font-weight: 900; }
.page-hero { padding: 84px 0; background: radial-gradient(circle at 85% 10%,rgba(215,163,41,.3),transparent 22%),var(--navy); color: var(--white); }
.page-hero h1 { margin-bottom: 15px; color: var(--white); font-size: clamp(2.7rem,6vw,4.6rem); }
.page-hero p { max-width: 720px; margin-bottom: 0; color: #c9d6e2; font-size: 1.1rem; }
.values-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
.value-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.value-card strong { display: block; margin-bottom: 13px; color: var(--gold); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.gallery-grid { display: grid; gap: 18px; grid-template-columns: repeat(3,1fr); }
.gallery-item { min-height: 250px; display: flex; align-items: end; border-radius: var(--radius); padding: 22px; color: var(--white); background: linear-gradient(145deg,rgba(215,163,41,.74),rgba(11,31,51,.95)); }
.gallery-item:nth-child(2n) { background: linear-gradient(145deg,#173b59,#0b1f33); }
.gallery-item h3 { margin: 0; color: var(--white); }
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
.team-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.team-card__portrait { display:grid; min-height: 240px; place-items:center; background:linear-gradient(145deg,var(--gold-soft),var(--navy-soft)); color:var(--white); font-family:Georgia,serif; font-size:3rem; }
.team-card__body { padding: 24px; }
.team-card__body p { color: var(--muted); margin-bottom: 0; }
.faq { display: grid; gap: 13px; max-width: 850px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; background: var(--white); }
.faq summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.faq details p { margin: 14px 0 0; color: var(--muted); }
.form-shell, .application-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; background: var(--white); box-shadow: var(--shadow); }
.application-layout { display: grid; align-items: start; gap: 38px; grid-template-columns: .65fr 1.35fr; }
.application-aside { position: sticky; top: 122px; border-radius: var(--radius); padding: 31px; background: var(--navy); color: var(--white); }
.application-aside h2, .application-aside h3 { color: var(--white); }
.application-aside p, .application-aside li { color: #c9d6e2; }
.form-section { margin-bottom: 38px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { margin-bottom: 24px; padding-bottom: 0; border-bottom: 0; }
.form-section__title { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.form-section__number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 900; }
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2,1fr); }
.field--full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 8px; color: var(--navy); font-size: .9rem; font-weight: 800; }
.required { color: var(--danger); }
input, select, textarea { width: 100%; border: 1px solid #cad5df; border-radius: 13px; padding: 13px 15px; background: var(--white); color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,163,41,.15); }
textarea { min-height: 140px; resize: vertical; }
.help { margin-top: 7px; color: var(--muted); font-size: .8rem; }
.alert { margin-bottom: 22px; border-radius: 13px; padding: 14px 16px; font-weight: 700; }
.alert--success { background: #e8f7f1; color: var(--success); }
.alert--error { background: #feeceb; color: var(--danger); }
.contact-grid { display:grid; gap:38px; grid-template-columns:.8fr 1.2fr; align-items:start; }
.contact-list { display:grid; gap:16px; margin:0; padding:0; list-style:none; }
.contact-list li { border:1px solid var(--line); border-radius:15px; padding:18px; background:var(--white); }
.cta { padding: 74px 0; background: var(--navy); color: var(--white); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 720px; margin-bottom: 0; color: var(--white); }
.site-footer { padding: 74px 0 26px; background: #071724; color: #b8c6d3; }
.footer-grid { display: grid; gap: 42px; grid-template-columns: 1.35fr .7fr .8fr 1fr; }
.site-footer h3 { margin-bottom: 18px; color: var(--white); font-family: inherit; font-size: 1rem; }
.site-footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { display: flex; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); align-items: center; justify-content: space-between; gap: 18px; font-size: .86rem; }
.newsletter { display: flex; margin-top: 17px; }
.newsletter input { border: 0; border-radius: 12px 0 0 12px; }
.newsletter button { border: 0; border-radius: 0 12px 12px 0; padding: 0 18px; background: var(--gold); color: var(--navy); cursor: pointer; font-weight: 900; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:16px; background:var(--white); }
table { width:100%; border-collapse:collapse; }
th, td { padding:14px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:var(--cream); color:var(--navy); font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; }
.admin-shell { min-height:100vh; background:var(--cream); }
.admin-header { background:var(--navy); color:var(--white); }
.admin-header__inner { display:flex; min-height:72px; align-items:center; justify-content:space-between; gap:20px; }
.admin-header a { color:var(--white); }
.admin-grid { display:grid; gap:22px; grid-template-columns:repeat(4,1fr); margin-bottom:30px; }
.metric { border:1px solid var(--line); border-radius:18px; padding:24px; background:var(--white); }
.metric strong { display:block; color:var(--navy); font-family:Georgia,serif; font-size:2rem; }
.tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.tabs a { border-radius:999px; padding:10px 16px; background:var(--white); font-weight:800; }
.tabs a.active { background:var(--gold); }
@media (max-width:980px) {
  .topbar { display:none; }
  .menu-toggle { display:grid; }
  .nav { position:fixed; inset:82px 0 auto; display:none; max-height:calc(100vh - 82px); overflow-y:auto; align-items:stretch; padding:26px 20px 32px; background:var(--white); box-shadow:var(--shadow); flex-direction:column; }
  .nav.is-open { display:flex; }
  .nav__cta { width:100%; }
  .hero__grid, .split, .application-layout, .contact-grid { grid-template-columns:1fr; }
  .hero-card { min-height:330px; }
  .stats__grid { grid-template-columns:repeat(2,1fr); }
  .card-grid, .values-grid, .gallery-grid, .team-grid { grid-template-columns:repeat(2,1fr); }
  .application-aside { position:static; }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
  .admin-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:650px) {
  :root { --container:min(100% - 26px,1180px); }
  .section { padding:68px 0; }
  .navbar { min-height:72px; }
  .nav { inset:72px 0 auto; }
  .brand__text small { display:none; }
  .hero { padding:78px 0 74px; }
  .hero__grid { gap:38px; }
  .stats { margin-top:-22px; }
  .stats__grid, .card-grid, .values-grid, .gallery-grid, .team-grid, .form-grid, .footer-grid, .admin-grid { grid-template-columns:1fr; }
  .stat { border-right:0; border-bottom:1px solid var(--line); }
  .stat:last-child { border-bottom:0; }
  .section-heading, .cta__inner, .footer-bottom { align-items:flex-start; flex-direction:column; }
  .application-form, .form-shell { padding:24px; }
  .field--full { grid-column:auto; }
}


/* Commerce and high-density responsive improvements */
.nav { flex-wrap: wrap; justify-content: flex-end; }
.service-card form { margin-bottom: 0; }
@media (min-width: 1200px) {
  .navbar { min-height: 92px; }
  .nav { row-gap: 8px; }
  .hero { min-height: 690px; display: flex; align-items: center; }
  .page-hero { min-height: 360px; display: flex; align-items: center; }
}
@media (max-width: 1100px) {
  .nav { gap: 15px; }
  .nav a { font-size: .84rem; }
}
@media (max-width: 980px) {
  .nav a { width: 100%; padding: 9px 4px; font-size: 1rem; }
  .nav { gap: 4px; }
  .table-wrap { border-radius: 12px; }
}
@media (max-width: 650px) {
  h1 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.65rem); }
  .page-hero { padding: 62px 0; }
  .hero-card { min-height: 280px; }
  .btn { width: 100%; }
  .hero__actions { display: grid; }
  th, td { min-width: 135px; padding: 12px; }
  input, select, textarea { font-size: 16px; }
}


iframe, video { max-width: 100%; }
.employee-nav { display:flex; gap:10px; flex-wrap:wrap; }
@media (max-width:650px) {
  .gallery-grid { grid-template-columns:1fr; }
  .admin-header__inner { align-items:flex-start; flex-direction:column; padding:15px 0; }
  .admin-header__inner > div { display:flex; gap:8px; flex-wrap:wrap; }
}


/* Installation and content polish */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
pre, code {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
}
pre {
  padding: 16px;
  background: #071724;
  color: #e7eef5;
}
.content-card,
.service-card,
.form-shell,
.metric,
.value-card,
.team-card {
  height: 100%;
}
.navbar {
  position: relative;
}
.site-footer .brand__text small {
  color: #9fb0bf;
}
@media (max-width: 1180px) {
  .navbar {
    min-height: 78px;
  }
  .nav {
    max-width: 780px;
  }
}
@media (max-width: 980px) {
  .nav {
    z-index: 1200;
    border-top: 1px solid var(--line);
  }
  .nav a,
  .nav__cta {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
@media (max-width: 650px) {
  body {
    overflow-x: hidden;
  }
  .container {
    width: min(100% - 24px, 1180px);
  }
  .topbar {
    display: none;
  }
  .brand__mark {
    width: 40px;
    height: 40px;
  }
  .brand__text {
    font-size: .94rem;
  }
  .hero {
    padding-top: 68px;
  }
  .hero-card {
    min-height: 240px;
  }
  .stats__grid {
    box-shadow: 0 14px 35px rgba(9,31,51,.12);
  }
  .section-heading {
    margin-bottom: 30px;
  }
  .service-card,
  .content-card,
  .value-card,
  .form-shell,
  .application-form {
    padding: 22px;
  }
  .footer-grid {
    gap: 30px;
  }
  .newsletter {
    width: 100%;
  }
  .newsletter input {
    min-width: 0;
  }
}
