@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&display=swap');

/* specialty.css — shared styles for all Medworks specialty pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #1a1a2e; background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

:root {
  --red: #d42b1e;
  --red-dark: #b5200f;
  --navy: #0D0925;
  --navy-mid: #1a2340;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-gray: #e8e8e8;
  --mid-gray: #6b7280;
  --font-d: 'Poppins', sans-serif;
  --font-b: 'Poppins', sans-serif;
  --nav-h: 68px;
}

/* ── HERO ── */
.sp-hero {
  background: var(--navy);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 80px 64px;
  position: relative;
  overflow: hidden;
}
.sp-hero::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(30,45,80,0.45) 0%, transparent 70%);
  pointer-events: none;
}
.sp-hero-content { position: relative; z-index: 2; max-width: 720px; }
.sp-hero h1 {
  font-family: var(--font-d);
  font-size: 70px;
  font-weight: 900;
  color: #fff;
  line-height: 0.92;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.sp-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 34px;
}
.sp-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 30px;
  transition: background 0.2s;
}
.sp-hero-btn:hover { background: var(--red-dark); }

/* ── PAGE NAV ── */
.sp-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--light-gray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sp-nav ul {
  display: flex;
  list-style: none;
  padding: 0 80px;
  margin: 0;
  overflow-x: auto;
}
.sp-nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mid-gray);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.sp-nav ul li a:hover,
.sp-nav ul li a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.sp-nav ul li a svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; flex-shrink: 0;
}

/* ── ABOUT ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  scroll-margin-top: calc(var(--nav-h) + 56px);
}
.about-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #b8cfe0 0%, #8fafc8 100%);
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.about-badge {
  position: absolute;
  bottom: 28px; left: 28px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-d);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 18px;
}
.about-content {
  background: #fff;
  padding: 72px 64px 72px 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.section-label {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.about-content h2 {
  font-family: var(--font-d);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800; color: var(--navy);
  line-height: 1.1; text-transform: uppercase;
  margin-bottom: 26px;
}
.about-content p {
  font-size: 15px; line-height: 1.78;
  color: var(--mid-gray); margin-bottom: 16px;
}
.about-content p:last-child { margin-bottom: 0; }

/* ── SECTION COMMON ── */
.red-rule { width: 48px; height: 3px; background: var(--red); margin: 14px 0 18px; }

/* ── PRODUCTS ── */
#products {
  padding: 80px;
  background: var(--off-white);
  scroll-margin-top: calc(var(--nav-h) + 56px);
}
.section-header { margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-d);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 800; color: var(--navy);
  text-transform: uppercase; line-height: 1;
}
.section-header p {
  font-size: 15px; color: var(--mid-gray);
  max-width: 600px; line-height: 1.72;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--light-gray);
  border: 1px solid var(--light-gray);
}
.product-card {
  background: #fff;
  padding: 36px 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; transition: box-shadow 0.22s;
}
.product-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.09); z-index: 2; }
.product-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 3px;
  background: var(--red); transition: width 0.3s ease;
}
.product-card:hover::after { width: 100%; }
.product-tag {
  display: inline-flex;
  background: rgba(212,43,30,0.08);
  color: var(--red);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 10px; width: fit-content;
}
.product-card h3 {
  font-family: var(--font-d);
  font-size: 21px; font-weight: 700;
  color: var(--navy); text-transform: uppercase; line-height: 1.2;
}
.brand-name { font-size: 13px; font-weight: 600; color: var(--red); }
.product-card p { font-size: 14px; line-height: 1.68; color: var(--mid-gray); flex: 1; }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--light-gray); margin-top: 4px;
}
.product-card-footer span {
  font-size: 11px; color: #aaa;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.product-card-footer svg {
  width: 17px; height: 17px; color: var(--red);
  transition: transform 0.2s;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.product-card:hover .product-card-footer svg { transform: translateX(4px); }

/* ── BRANDS ── */
#brands {
  padding: 80px;
  background: #fff;
  scroll-margin-top: calc(var(--nav-h) + 56px);
}
.brands-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px; align-items: start;
}
.brands-left h2 {
  font-family: var(--font-d);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 800; font-style: italic;
  color: var(--navy); text-transform: uppercase; line-height: 1.1; margin-bottom: 16px;
}
.brands-left .red-rule { margin: 0 0 22px; }
.brands-left p { font-size: 14px; color: var(--mid-gray); line-height: 1.78; }
.brands-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--light-gray);
}
.brand-logo-cell {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; transition: background 0.2s; cursor: pointer;
  min-height: 120px;
}
.brand-logo-cell:hover { background: var(--off-white); }
.brand-logo-cell span {
  font-family: var(--font-d);
  font-size: 17px; font-weight: 800;
  color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.5px; text-align: center; line-height: 1.25;
}

/* ── CONTACT ── */
#contact {
  background: var(--navy);
  padding: 80px;
  scroll-margin-top: calc(var(--nav-h) + 56px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-left .section-label { color: rgba(255,255,255,0.45); }
.contact-left h2 {
  font-family: var(--font-d);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; color: #fff;
  text-transform: uppercase; line-height: 1.05; margin-bottom: 14px;
}
.contact-left > p {
  font-size: 14px; color: rgba(255,255,255,0.55);
  line-height: 1.75; margin-bottom: 36px;
}

/* Product Support Features */
.support-features h3 {
  font-family: var(--font-d);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px;
}
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.feature-item-icon svg {
  width: 30px; height: 30px;
  stroke: rgba(255,255,255,0.22); fill: none;
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.feature-item-text strong {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; margin-bottom: 4px;
}
.feature-item-text p {
  font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.6; margin: 0;
}

/* Contact Form */
.contact-form-wrap { display: flex; flex-direction: column; gap: 0; }
.cf-title {
  font-family: var(--font-d);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800; font-style: italic;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cf-rule {
  width: 48px; height: 3px;
  background: var(--red);
  margin: 0 auto 32px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-b);
  font-size: 14px; padding: 13px 16px;
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); font-size: 13px; }
.form-group select { color: rgba(255,255,255,0.6); }
.form-group select option { background: var(--navy); color: #fff; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px;
  flex-shrink: 0; accent-color: var(--red);
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  padding: 0;
}
.form-check label {
  font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.6;
  font-weight: 400;
}
.form-check label a { color: var(--red); text-decoration: underline; }
.submit-btn {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px;
  background: var(--red); color: #fff;
  font-family: var(--font-b);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 32px; border: none; cursor: pointer;
  transition: background 0.2s; margin-left: auto;
  border-radius: 30px;
}
.submit-btn:hover { background: var(--red-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 900px) {
  .sp-hero, #products, #brands, #contact { padding-left: 40px; padding-right: 40px; }
  .sp-nav ul { padding: 0 24px; }
  #about { grid-template-columns: 1fr; }
  .about-image { min-height: 300px; }
  .about-content { padding: 48px 40px; }
  .contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp-hero { padding: 120px 24px 48px; }
  .sp-hero h1 { font-size: 45px; }
  #products, #brands, #contact { padding: 50px 24px; }
  .about-content { padding: 40px 24px; }
  .sp-nav ul { padding: 0 12px; }
  .sp-nav ul li a { padding: 15px 12px; font-size: 13px; }
  .products-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE HEADING SIZING ── */
@media (max-width: 640px) {
  .sp-hero h1 { font-size: 45px; }
  .section-header h2 { font-size: clamp(24px, 6.4vw, 34px); }
  .about-content h2 { font-size: clamp(23px, 6vw, 32px); }
  .brands-left h2 { font-size: clamp(23px, 6vw, 32px); }
  .contact-left h2 { font-size: clamp(22px, 5.8vw, 30px); }
  .cf-title { font-size: clamp(19px, 5vw, 26px); }
}

/* -- MOBILE RESPONSIVE FIXES -- */
.brand-logo-cell img { width: auto; max-width: 82%; max-height: 60px; object-fit: contain; }
@media (min-width: 641px) { .sp-hero h1 { font-size: 70px; } }
@media (max-width: 900px) { .brand-logo-cell img { max-height: 54px; } }
@media (max-width: 640px) {
  .brand-logo-cell { padding: 24px 16px; min-height: 96px; }
  .brand-logo-cell img { max-height: 48px; }
  .section-header h2, .about-content h2, .brands-left h2, .contact-left h2 { font-size: clamp(24px, 6vw, 32px); }
  .cf-title { font-size: clamp(20px, 5vw, 27px); }
  .sp-hero-btn, .submit-btn { padding: 12px 24px; font-size: 12px; gap: 8px; line-height: 1.3; max-width: 100%; justify-content: center; text-align: center; }
}
