/* Absonic Engineering Co. — shared stylesheet */

:root {
  --navy: #0b3350;
  --steel: #145374;
  --ice: #2ea3c7;
  --ice-light: #eaf6fa;
  --charcoal: #24303a;
  --bg: #f5f8f9;
  --text: #1c2b36;
  --muted: #5b6b76;
  --white: #ffffff;
  --border: #dfe7eb;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(11, 51, 80, 0.08);
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--ice); color: var(--white); }
.btn-primary:hover { background: #268fb0; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--steel); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
}
.brand span {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ice);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.88;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--ice); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 90px 24px 70px;
  text-align: center;
}
.hero.small { padding: 60px 24px 50px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(46, 163, 199, 0.18);
  color: var(--ice);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto 18px;
  line-height: 1.2;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 660px;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px;
  gap: 20px;
  text-align: center;
}
.stat-num { font-size: 30px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-tight { padding: 50px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-eyebrow {
  color: var(--ice);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.section-header h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--navy); }
.section-navy .section-header h2 { color: var(--white); }
.section-header p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.section-navy .section-header p { color: rgba(255,255,255,0.75); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--ice-light);
  color: var(--ice);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { margin-top: 12px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card ul li { margin-bottom: 6px; }

.photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* image placeholder blocks — swap for real <img> when photos are supplied */
.img-placeholder {
  background: linear-gradient(135deg, var(--ice-light), var(--border));
  border: 1px dashed #9db3bd;
  border-radius: var(--radius);
  color: var(--steel);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  min-height: 200px;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split h2 { color: var(--navy); font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 44px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--white);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { color: var(--navy); font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Client / project grid ---------- */
.client-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.client-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.client-card h4 { color: var(--navy); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.client-card span { color: var(--muted); font-size: 13.5px; }

/* ---------- Hospital carousel ---------- */
.carousel-viewport {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation-name: carousel-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.carousel-viewport:hover .carousel-track {
  animation-play-state: paused;
}
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.carousel-card {
  flex: 0 0 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.carousel-card h4 { color: var(--navy); font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.carousel-card span { color: var(--muted); font-size: 13px; }
.carousel-photo {
  flex: 0 0 320px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
}
@media (max-width: 600px) {
  .carousel-card { flex-basis: 230px; }
  .carousel-photo { flex-basis: 240px; height: 170px; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--steel), var(--navy));
  color: var(--white);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { color: var(--navy); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { color: var(--muted); font-size: 14.5px; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--ice);
  background: var(--white);
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 54px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--ice); }
.footer-brand p { font-size: 14px; margin-top: 12px; color: rgba(255,255,255,0.6); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Whatsapp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  background: var(--ice-light);
  color: var(--steel);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta > a.btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
