/* ============================================================
   Hamilton Medical Innovations / ModestyWrap - Site Stylesheet
   ============================================================ */

:root {
  --navy: #102a44;
  --navy-light: #1c3f63;
  --teal: #1c92a3;
  --teal-dark: #157584;
  --bg-light: #f4f7f9;
  --bg-white: #ffffff;
  --text-body: #3d4a58;
  --text-muted: #6b7a89;
  --border-soft: #e3e9ee;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-soft: 0 10px 30px rgba(16, 42, 68, 0.08);
  --shadow-card: 0 4px 18px rgba(16, 42, 68, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 16px; }

.eyebrow-rule {
  width: 64px;
  height: 3px;
  background: var(--teal);
  border: none;
  margin: 18px 0 24px;
}

.eyebrow-rule.center { margin-left: auto; margin-right: auto; }

.text-teal { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--sans);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-light); box-shadow: var(--shadow-soft); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover { background: var(--teal-dark); box-shadow: var(--shadow-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.site-header .logo img { height: 52px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.main-nav .btn,
.main-nav a.btn {
  padding: 11px 22px;
  font-size: 0.88rem;
  color: #fff;
  border-bottom: none;
}

.main-nav a.btn-navy:hover { color: #fff; background: var(--navy-light); }
.main-nav a.btn-teal:hover { color: #fff; background: var(--teal-dark); }
.main-nav a.btn-outline-navy:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-light) url('../assets/hero-home-plain.png') right center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244,247,249,0.97) 0%, rgba(244,247,249,0.90) 40%, rgba(244,247,249,0.35) 65%, rgba(244,247,249,0.08) 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: block;
  min-height: 620px;
}

.hero-copy { padding: 70px 0; max-width: 600px; }

.hero-copy h1 { margin-bottom: 20px; }

.hero-copy p.lede {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-tight { padding: 64px 0; }

.section-alt { background: var(--bg-light); }

.section-navy {
  background: var(--navy);
  color: #dfe7ee;
}
.section-navy h2, .section-navy h3 { color: #fff; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Feeling Safe quote block ---------- */
.feeling-safe {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.feeling-safe .lines h2 {
  font-size: 2rem;
  margin-bottom: 4px;
}
.feeling-safe .lines h2:last-of-type { color: var(--teal); }
.feeling-safe .body-copy { margin-top: 28px; font-size: 1.05rem; }
.feeling-safe .body-copy strong { color: var(--teal-dark); }

/* ---------- Introducing product block ---------- */
.intro-product { text-align: center; }
.intro-product img.product-photo {
  max-width: 640px;
  margin: 0 auto 36px;
  border-radius: 14px;
}
.intro-product .desc {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.icon-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.icon-item { text-align: center; }

.icon-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--teal);
  font-size: 1.7rem;
}

.icon-item span { font-size: 0.92rem; color: var(--text-body); font-weight: 500; }

/* ---------- Feature grid (solutions) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.feature-card .icon-circle { background: var(--bg-light); }

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* ---------- Split image/text ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img { border-radius: 16px; box-shadow: var(--shadow-soft); }

.split.reverse .split-image { order: 2; }
.split.reverse .split-copy { order: 1; }

.split-copy p { color: var(--text-body); }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; }
.cta-banner .eyebrow-rule { margin-left: auto; margin-right: auto; }
.cta-banner p { max-width: 640px; margin: 0 auto 32px; font-size: 1.05rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-light);
  padding: 64px 0 32px;
  text-align: center;
}

.site-footer .footer-logo img { height: 60px; margin: 0 auto 12px; }

.site-footer .tagline {
  font-style: italic;
  color: var(--teal-dark);
  margin-bottom: 26px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0 0 30px;
  flex-wrap: wrap;
}

.footer-nav li { display: flex; align-items: center; }

.footer-nav a {
  font-weight: 600;
  color: var(--navy);
  padding: 4px 18px;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--teal); }

.footer-nav li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 16px;
  background: var(--teal);
  opacity: 0.5;
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Product page ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-item { text-align: center; }
.stat-item .icon-circle { background: var(--bg-light); }
.stat-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.stat-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.spec-table th {
  background: var(--teal);
  color: #fff;
  text-align: left;
  padding: 14px 20px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.spec-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 40%;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.spec-table tr:last-child td { border-bottom: none; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.benefit-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.benefit-card .icon-circle {
  flex: none;
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  margin: 0;
}

.benefit-card h4 { margin-bottom: 6px; font-size: 1rem; }
.benefit-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.applications-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  text-align: center;
}

.applications-row .icon-circle { width: 64px; height: 64px; font-size: 1.4rem; }
.applications-row span { font-size: 0.82rem; color: var(--text-body); font-weight: 500; }

.size-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.size-card {
  background: #fff;
  border: 2px solid var(--border-soft);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}

.size-card .size-letter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-family: var(--serif);
}

.size-card h4 { margin-bottom: 6px; }
.size-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ---------- Our Story page ---------- */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  align-items: start;
}

.story-layout img { border-radius: 16px; position: sticky; top: 110px; }

.story-copy h3 { margin-top: 34px; }
.story-copy p { color: var(--text-body); }

.signature {
  font-family: "Pinyon Script", "Brush Script MT", cursive;
  font-size: 2.1rem;
  color: var(--teal-dark);
  margin: 30px 0 4px;
}

.signature-title { font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.signature-role { color: var(--text-muted); font-style: italic; margin-bottom: 28px; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-info-list { list-style: none; padding: 0; margin: 30px 0; }
.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}
.contact-info-list li:first-child { border-top: none; }

.contact-info-list .icon-circle {
  width: 44px; height: 44px; font-size: 1.1rem; margin: 0; flex: none;
}

.contact-info-list h4 { margin: 0 0 2px; font-size: 0.95rem; color: var(--navy); }
.contact-info-list p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

.contact-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 44px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.field label .req { color: var(--teal); }

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-body);
  background: #fbfcfd;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.field textarea { min-height: 130px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.checkbox-row input { margin-top: 3px; }

.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-success {
  display: none;
  background: #eaf7f4;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Hover glow (cards) ---------- */
.feature-card,
.benefit-card,
.size-card,
.contact-form-card,
.contact-info-list li,
.spec-table,
.stat-item {
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
  position: relative;
}

.feature-card:hover,
.benefit-card:hover,
.size-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 46px 6px rgba(28, 146, 163, 0.22), 0 14px 30px rgba(16, 42, 68, 0.10);
}

.contact-form-card:hover {
  box-shadow: 0 0 60px 10px rgba(28, 146, 163, 0.18), var(--shadow-soft);
}

.contact-info-list li:hover {
  background: rgba(28, 146, 163, 0.05);
  box-shadow: 0 0 30px 4px rgba(28, 146, 163, 0.14);
  border-radius: 12px;
}

.size-card:hover { border-color: var(--teal); }

.icon-circle { transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease; }

.icon-item:hover .icon-circle,
.stat-item:hover .icon-circle,
.feature-card:hover .icon-circle,
.benefit-card:hover .icon-circle {
  box-shadow: 0 0 24px 6px rgba(28, 146, 163, 0.35);
  background: #eaf7f4;
  transform: scale(1.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }

  .hero { background-image: none; }
  .hero-copy { padding: 40px 0; max-width: 100%; }

  .split, .story-layout, .contact-layout, .product-hero { grid-template-columns: 1fr; }
  .split.reverse .split-image, .split.reverse .split-copy { order: initial; }
  .story-layout img { position: static; }

  .icon-row { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .applications-row { grid-template-columns: repeat(4, 1fr); }
  .size-cards { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .main-nav { display: none; width: 100%; }
  .main-nav.nav-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
  }
  .main-nav.nav-open ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
  }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .icon-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .applications-row { grid-template-columns: repeat(3, 1fr); }
  section { padding: 60px 0; }
  .contact-form-card { padding: 28px; }
}
