/* =====================================================
   CGS Medical — Shared Stylesheet
   OTMedia by Reality Distortion
   ===================================================== */

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

:root {
  --navy:        #1D2B3A;
  --navy-dark:   #141E29;
  --coral:       #E86F6F;
  --coral-hover: #d45f5f;
  --coral-light: rgba(232, 111, 111, 0.1);
  --cream:       #FAF8F4;
  --light:       #F2F0EC;
  --white:       #FFFFFF;
  --muted:       #8A939E;
  --border:      rgba(29, 43, 58, 0.1);
  --shadow-sm:   0 2px 12px rgba(29, 43, 58, 0.07);
  --shadow-md:   0 8px 32px rgba(29, 43, 58, 0.12);
  --shadow-lg:   0 20px 60px rgba(29, 43, 58, 0.15);
  --radius:      16px;
  --radius-sm:   10px;
  --ease:        cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

main { padding-top: 72px; }

/* ── NAVIGATION ────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img { height: 38px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--coral); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(29, 43, 58, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--coral);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 111, 111, 0.3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
}

.nav-mobile-menu a {
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile-menu a:hover { color: var(--coral); }

.nav-mobile-menu a.btn-mobile {
  margin-top: 1rem;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  border: none;
}

/* ── FOOTER ────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-logo p {
  font-size: 0.85rem;
  line-height: 1.75;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--coral); }

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.86rem;
  font-weight: 300;
}

.footer-contact-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
}

.footer-contact-row a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-row a:hover { color: var(--coral); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.76rem;
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(255,255,255,0.3);
}

/* ── SHARED COMPONENTS ─────────────────────────────── */

.section-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}

.section-title em { font-style: italic; color: var(--coral); }

.section-sub {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
}

.coral-line {
  width: 38px;
  height: 3px;
  background: var(--coral);
  border-radius: 3px;
  margin: 1.25rem 0;
}

.coral-line.centered { margin: 1.25rem auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(29, 43, 58, 0.22);
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 43, 58, 0.3);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232, 111, 111, 0.3);
}
.btn-coral:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 111, 111, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* Icon Box */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coral-light);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-box svg { width: 24px; height: 24px; color: var(--coral); }

/* Animate on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}

.animate { animation: fadeUp 0.7s var(--ease) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

/* ── CONTACT STRIP (shared across pages) ───────────── */
.contact-strip {
  background: var(--white);
  padding: 5rem 2rem;
}

.contact-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-strip-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(232,111,111,0.3);
}

.contact-card .icon-box { margin: 0 0 1.25rem; }
.icon-box.round { border-radius: 50%; }

.contact-card-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.contact-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.contact-card-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-options { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
