/* =========================================================
   Constein Group — global stylesheet
   ========================================================= */

:root {
  --navy-900: #040e1a;
  --navy-800: #081a2c;
  --navy-700: #0d2740;
  --navy-600: #14375a;
  --navy-500: #1d4a73;
  --navy-100: #e6edf5;
  --navy-050: #f2f5f9;
  --accent: #c08a2a;
  --accent-dark: #9c701f;
  --text-main: #17212c;
  --text-muted: #4c5967;
  --white: #ffffff;
  --border: #dde5ec;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(4, 14, 26, 0.1);
  --shadow-lg: 0 20px 50px rgba(4, 14, 26, 0.2);
  --max-width: 1180px;
  --font-heading: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --transition-fast: 0.18s ease;
  --transition-med: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
a:hover, a:focus { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--navy-050); }
.section-navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.section-navy h2, .section-navy p, .section-navy h3 { color: var(--white); }

.section-head { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent {
  background: var(--accent);
  color: var(--navy-900);
}
.btn-accent:hover { background: var(--accent-dark); color: var(--white); box-shadow: 0 10px 24px rgba(192, 138, 42, 0.35); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-900); }
.btn-block { width: 100%; justify-content: center; }

/* =========================
   Header / Navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition-med);
}
.site-header.scrolled { box-shadow: 0 12px 30px rgba(4, 14, 26, 0.35); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 24px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}
.logo:hover { opacity: 0.85; color: var(--white); }
.logo span { color: var(--accent); }

.main-nav { flex: 1; }
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  color: #cfdcea;
  border-radius: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.has-dropdown .dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-med), transform var(--transition-med), visibility var(--transition-med);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cfdcea;
  font-weight: 500;
}
.dropdown li a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--white);
  transition: all 0.2s ease;
}

/* =========================
   Hero
   ========================= */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  padding: 88px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1, .hero p { color: var(--white); }
.hero .eyebrow {
  display: inline-block;
  background: rgba(201, 151, 46, 0.18);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 1.15rem; color: #d7e3ef; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  max-width: 480px;
}
.hero-stats div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--accent); font-family: var(--font-heading); }
.hero-stats span { font-size: 0.82rem; color: #cfdcea; }

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 32px;
}
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5edf5;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li .tick {
  color: var(--accent);
  font-weight: 700;
}

/* Page header for interior pages */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1, .page-hero p { color: var(--white); }
.breadcrumbs { font-size: 0.85rem; color: #b9cadd; margin-bottom: 12px; }
.breadcrumbs a { color: #b9cadd; }
.breadcrumbs a:hover { color: var(--accent); }

/* =========================
   Cards / grids
   ========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.card ul { padding-left: 18px; color: var(--text-muted); margin: 0; }
.card-link { font-weight: 700; display: inline-block; margin-top: 8px; }

.service-card { text-align: left; }

.subservice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.subservice-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.subservice-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-500);
}
.subservice-list h3 { margin-bottom: 6px; }
.subservice-list h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.process-steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.process-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: transform var(--transition-fast);
}
.process-steps li:hover::before { transform: scale(1.08); }

.value-list { list-style: none; margin: 0; padding: 0; }
.value-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  padding-left: 30px;
  position: relative;
}
.value-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); margin: 0; }

/* =========================
   Contact / form
   ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy-900);
  font-size: 0.92rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--navy-050);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--navy-500);
  outline-offset: 1px;
  background: var(--white);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }

.contact-info-list { list-style: none; margin: 0 0 32px; padding: 0; }
.contact-info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--navy-900);
  color: #c7d5e3;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer h3, .site-footer h4 { color: var(--white); }
.site-footer h4 { font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #c7d5e3; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; color: #c7d5e3; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 0.85rem;
  color: #90a2b5;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #90a2b5; }

/* =========================
   Utilities
   ========================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.badge {
  display: inline-block;
  background: var(--navy-100);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Scroll-reveal: fades/slides elements in once they enter the viewport (see js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1.in-view { transition-delay: 0.06s; }
.reveal-2.in-view { transition-delay: 0.12s; }
.reveal-3.in-view { transition-delay: 0.18s; }
.reveal-4.in-view { transition-delay: 0.24s; }
.reveal-5.in-view { transition-delay: 0.3s; }
.reveal-6.in-view { transition-delay: 0.36s; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .contact-grid, .footer-grid, .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    padding: 12px 24px 24px;
  }
  .site-header.nav-open .main-nav > ul { flex-direction: column; }
  .site-header.nav-open .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 4px;
    display: block;
  }
  .site-header.nav-open .header-cta {
    display: inline-flex;
    margin: 16px 24px 20px;
  }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2, .contact-grid, .footer-grid, .process-steps, .form-two { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .section { padding: 52px 0; }
}
