/* ==========================================================================
   Axiom Medical Solutions (AMS) — Global Stylesheet
   ========================================================================== */

:root {
  /* Palette derived from the AMS logo: deep navy, electric blue, silver */
  --ams-navy: #0a1530;
  --ams-blue: #0d3f8f;
  --ams-teal: #1576f0;        /* primary accent (electric blue) */
  --ams-teal-dark: #0a5bc4;   /* darker electric blue */
  --ams-silver: #c5cfdb;
  --ams-light: #eef3fa;
  --ams-gray: #5b6b7d;
  --ams-border: #dbe4ee;
  --ams-white: #ffffff;
  --ams-text: #16243a;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 18px 48px rgba(11, 37, 69, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ams-text);
  line-height: 1.65;
  background: var(--ams-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ams-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { color: var(--ams-navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section { padding: 80px 0; }
.section--light { background: var(--ams-light); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--ams-gray); font-size: 1.1rem; margin-top: 12px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ams-teal-dark);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--ams-teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ams-teal-dark); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline { background: #fff; color: var(--ams-blue); border-color: var(--ams-border); }
.btn--outline:hover { border-color: var(--ams-teal); color: var(--ams-teal-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ams-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ams-blue), var(--ams-teal));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
/* Logo image variant (drop your logo at images/logo.png) */
.brand__logo {
  height: 52px;
  width: auto;
  border-radius: 10px;
  display: block;
}
.site-footer .brand__logo { height: 56px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; color: var(--ams-navy); font-size: 1.05rem; }
.brand__tag { font-size: 0.72rem; color: var(--ams-gray); letter-spacing: 0.04em; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  color: var(--ams-text);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav__links a:hover { background: var(--ams-light); text-decoration: none; }
.nav__links a.active { color: var(--ams-teal-dark); font-weight: 700; }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ams-navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--ams-navy) 0%, var(--ams-blue) 55%, var(--ams-teal-dark) 130%);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(19,168,158,0.35), transparent 70%);
  border-radius: 50%;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; margin: 20px 0 32px; color: rgba(255,255,255,0.9); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero__logo {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; margin-bottom: 14px; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hero__stat .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero__stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ---------- Cards / Features ---------- */
.grid { display: grid; gap: 28px; }
.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: #fff;
  border: 1px solid var(--ams-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ams-light);
  color: var(--ams-teal-dark);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ams-gray); }

/* ---------- About blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split p { color: var(--ams-gray); margin-bottom: 16px; }
.media-box {
  background: linear-gradient(135deg, var(--ams-light), #fff);
  border: 1px solid var(--ams-border);
  border-radius: var(--radius);
  min-height: 340px;
  display: grid;
  place-items: center;
  color: var(--ams-gray);
  text-align: center;
  padding: 24px;
}
.image-card {
  border: 1px solid var(--ams-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 0;
  min-height: 340px;
  overflow: hidden;
}
.image-card img {
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  width: 100%;
}
.list-check { list-style: none; margin: 12px 0; }
.list-check li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--ams-text);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  background: var(--ams-teal);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--ams-navy); color: #fff; padding: 56px 0; }
.stats-band .num { font-size: 2.6rem; font-weight: 800; color: #fff; }
.stats-band .label { color: rgba(255,255,255,0.75); }
.stats-band .grid { text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ams-teal-dark), var(--ams-blue));
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 14px auto 28px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ams-navy); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ams-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ams-teal);
  box-shadow: 0 0 0 3px rgba(19,168,158,0.15);
}
.form-note { font-size: 0.85rem; color: var(--ams-gray); margin-top: 8px; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--ams-teal-dark); }
.form-status.err { color: #c0392b; }

.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .ico {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ams-light);
  color: var(--ams-teal-dark);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.info-item h4 { color: var(--ams-navy); margin-bottom: 2px; }
.info-item p { color: var(--ams-gray); margin: 0; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--ams-navy), var(--ams-blue));
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.page-banner h1 { color: #fff; }
.page-banner p { color: rgba(255,255,255,0.85); margin-top: 12px; font-size: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ams-navy); color: rgba(255,255,255,0.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 72px 0; }
  .hero__card { max-width: 640px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.55rem; }
  .btn {
    min-height: 48px;
    padding: 12px 22px;
    text-align: center;
  }
  .site-header { position: sticky; }
  .nav { height: 68px; }
  .brand {
    min-width: 0;
    gap: 10px;
  }
  .brand__logo {
    flex: 0 0 auto;
    height: 44px;
    border-radius: 8px;
  }
  .brand__text {
    min-width: 0;
    max-width: calc(100vw - 126px);
  }
  .brand__name {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand__tag { font-size: 0.68rem; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--ams-border);
    padding: 12px 18px 20px;
    gap: 6px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    display: block;
    padding: 13px 12px;
  }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; }
  .hero {
    padding: 56px 0;
  }
  .hero::after {
    right: -180px;
    top: -180px;
  }
  .hero__grid { gap: 34px; }
  .hero p {
    font-size: 1.05rem;
    margin: 18px 0 26px;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__card {
    padding: 18px;
  }
  .hero__logo {
    margin-bottom: 18px;
  }
  .hero__stats {
    gap: 14px;
  }
  .hero__stat .num { font-size: 1.7rem; }
  .card {
    padding: 24px;
  }
  .media-box {
    min-height: 260px;
  }
  .image-card,
  .image-card img {
    min-height: 260px;
  }
  .contact-grid { gap: 34px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .form-group textarea { min-height: 150px; }
  .info-item {
    align-items: flex-start;
    gap: 12px;
  }
  .info-item .ico {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .page-banner {
    padding: 48px 0;
  }
  .cta-band {
    padding: 56px 0;
  }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .site-footer .brand__logo { height: 48px; }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.85rem; }
  .brand__logo { height: 40px; }
  .brand__name { font-size: 0.92rem; }
  .brand__tag { font-size: 0.64rem; }
  .hero {
    padding: 46px 0;
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .stats-band .grid {
    gap: 22px;
  }
  .stats-band .num {
    font-size: 2.2rem;
  }
}
