/* ===== Poppins (self-hosted) ===== */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/Poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Poppins-700.woff2') format('woff2'); }

:root {
  --teal: #009FA6; --teal-dark: #005379; --navy: #1D3D5A; --orange: #FF5E13;
  --blue: #009DFF; --cyan: #4CD3E3; --bg: #F9F9FF; --surface: #FFFFFF;
  --text: #1F1F1F; --muted: #4D4D4D; --radius: 5px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--teal); }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.2; font-weight: 500; }
p { margin-bottom: 1rem; color: var(--muted); font-weight: 300; }
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Buttons */
.btn { display: inline-block; padding: 13px 28px; border-radius: var(--radius); font-weight: 500; font-size: 14px; letter-spacing: 1px; cursor: pointer; border: 0; transition: background .25s, color .25s, border-color .25s; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border: 1px solid #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, position .3s; }
.site-header.scrolled { position: fixed; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo img { height: 44px; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: #fff; font-size: 14px; font-weight: 400; }
.nav a:hover, .nav a.active { color: var(--orange); }
.nav .btn-teal { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #fff; }

/* Hero carousel */
.hero-slider { position: relative; height: 94vh; min-height: 560px; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide.active .hero-bg { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(29,61,90,.92) 0%, rgba(29,61,90,.72) 45%, rgba(29,61,90,.25) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 400; letter-spacing: 1px; max-width: 660px; }
.hero-content h1 .hl { color: var(--cyan); font-weight: 600; }
.hero-content p { color: #D5E3EE; font-size: 1.15rem; font-weight: 300; max-width: 540px; margin: 18px 0 30px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s; }
.hero-dot.active { background: var(--teal); width: 26px; border-radius: 5px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(29,61,90,.4); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: background .3s; }
.hero-arrow:hover { background: var(--teal); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* Page banner (subpages) */
.page-banner { position: relative; padding: 180px 0 90px; background-size: cover; background-position: center; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(29,61,90,.9), rgba(29,61,90,.6)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; }
.page-banner .subhead { color: #D5E3EE; font-weight: 300; font-size: 1.1rem; margin-top: 8px; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 12px; font-size: 14px; align-items: center; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: rgba(255,255,255,.5); }
.breadcrumb .current { color: #fff; }

/* Sections */
.section { padding: 76px 0; }
.section.alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 2.1rem; }
.section-title p { margin-top: 8px; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 8px; padding: 38px 28px; text-align: center; box-shadow: 0 4px 18px rgba(29,61,90,.08); border-top: 3px solid var(--teal); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(29,61,90,.14); }
.card h3 { font-size: 1.25rem; margin: 10px 0; }
.card .accent { color: var(--orange); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.card p { margin-bottom: 0; }

/* Counters */
.counter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.counter-num { font-size: 3rem; font-weight: 700; color: var(--teal); }
.counter-label { color: var(--muted); font-weight: 300; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.portfolio-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 18px rgba(29,61,90,.08); }
.portfolio-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px 8px 0 0; transition: transform .4s; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .body { padding: 1.25rem; }
.portfolio-item h3 { font-size: 1.2rem; color: var(--navy); }
.portfolio-item .tag { color: var(--orange); font-size: .85rem; font-weight: 500; }

/* Forms */
form { display: grid; gap: .75rem; max-width: 560px; }
form label { font-weight: 500; font-size: .9rem; color: var(--navy); }
input, textarea, select { padding: .7rem .9rem; border: 1px solid #d5ddeb; border-radius: var(--radius); font: inherit; font-weight: 300; background: #fff; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); border-color: transparent; }
button[type="submit"] { background: var(--teal); color: #fff; border: 0; padding: .8rem; border-radius: var(--radius); font: inherit; font-weight: 500; letter-spacing: 1px; cursor: pointer; transition: background .25s; }
button[type="submit"]:hover { background: var(--teal-dark); }
.form-message { margin-top: 1rem; font-size: .9rem; color: var(--teal); }

/* Contact form layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.phone-row { display: flex; gap: .5rem; }
.phone-row select { max-width: 200px; flex-shrink: 0; }
.phone-row input { flex: 1; }

/* Wizard */
.step { display: none; }
.step.active { display: block; }
.progress { display: flex; gap: .5rem; margin-bottom: 2rem; }
.progress .seg { flex: 1; height: 6px; background: #e0e0e0; border-radius: 3px; }
.progress .seg.done { background: var(--teal); }
.progress .seg.current { background: var(--orange); }
.wizard-nav { display: flex; gap: 1rem; justify-content: space-between; margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: #e3ecf5; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem 0; flex-wrap: wrap; }
.footer-logo { height: 40px; margin-bottom: 1rem; }
.site-footer h3 { color: #fff; margin-bottom: .75rem; font-size: 1.1rem; }
.site-footer li { margin-bottom: .5rem; font-weight: 300; }
.site-footer a { color: var(--cyan); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #c3d2e2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0; text-align: center; font-size: .85rem; color: #9fb3c8; }

/* Motion: scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* View transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* Responsive */
@media (max-width: 1000px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1.25rem; gap: 1rem; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-arrow { display: none; }
  .counter-row { grid-template-columns: 1fr; }
  .page-banner { padding: 140px 0 70px; }
  .contact-grid { grid-template-columns: 1fr; }
  .phone-row { flex-direction: column; }
  .phone-row select { max-width: none; }
}