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

/* ═══════════════════════════════════════════════════════════════
   CURE GALAXY DIAGNOSTICS — COMPONENTS.CSS
   Mobile-First | Fully Responsive | Production-Quality
   Breakpoints: 320 | 375 | 480 | 640 | 768 | 1024 | 1280 | 1440 | 1920 | 2560px
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --primary:       #D49A2A;
  --primary-dark:  #B8851E;
  --secondary:     #E58A17;
  --accent:        #B3131B;
  --bg:            #FAF7F2;
  --white:         #ffffff;
  --text-dark:     #222222;
  --text-mid:      #3D3328;
  --text-light:    #7A6A58;
  --border:        #EDE5D8;
  --grad1:         linear-gradient(135deg, #7A4A00 0%, #D49A2A 55%, #E58A17 100%);
  --shadow:        0 10px 40px rgba(212,154,42,0.14);
  --shadow-hover:  0 20px 60px rgba(212,154,42,0.26);

  /* Responsive tokens */
  --nav-h:    64px;
  --pad-x:    clamp(1rem, 5vw, 5%);
}

/* ── GLOBAL RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; }

/* ════════════════════════════════════════════════
   NAVIGATION — MOBILE FIRST
   ════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  transition: box-shadow .3s ease, background .3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 24px rgba(212,154,42,0.18);
  background: rgba(255,255,255,0.99);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  max-width: calc(100% - 80px);
}

.nav-logo .logo-img {
  height: clamp(30px, 5vw, 42px);
  width: auto;
  max-width: clamp(90px, 15vw, 120px);
  object-fit: contain;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.logo-img-footer {
  filter: brightness(0) invert(1);
  opacity: .9;
}

.nav-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 1.05rem);
  color: var(--text-dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo span small {
  display: block;
  font-size: clamp(0.55rem, 1vw, 0.65rem);
  font-weight: 400;
  color: var(--text-light);
}

/* Desktop Links (hidden on mobile) */
.nav-links {
  display: none;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  font-weight: 500;
  color: var(--text-mid);
  transition: color .25s;
  position: relative;
  white-space: nowrap;
}

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

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

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

/* CTA Button (hidden on mobile) */
.nav-cta {
  display: none;
  background: var(--grad1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: clamp(8px, 1.2vw, 10px) clamp(14px, 2vw, 22px);
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,154,42,.40);
}

/* Hamburger Button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: none;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
  outline: none;
}

.hamburger:hover {
  background: rgba(212,154,42,0.08);
}

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

/* Hamburger → X animation */
nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px var(--pad-x) 18px;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  z-index: 998;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

nav.open .nav-mobile-drawer { display: flex; }

.nav-mobile-drawer li { list-style: none; }

.nav-mobile-drawer a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: clamp(0.88rem, 2.5vw, 0.95rem);
  font-weight: 500;
  color: var(--text-mid);
  transition: all .2s;
  min-height: 48px;
}

.nav-mobile-drawer a:hover,
.nav-mobile-drawer a.active {
  background: #FFF8EC;
  color: var(--primary);
}

.nav-mobile-drawer .drawer-cta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--grad1);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: clamp(0.88rem, 2.5vw, 0.92rem);
  min-height: 52px;
}

/* ════════════════════════════════════════════════
   PAGE HERO — Inner pages (About / Services / Contact)
   ════════════════════════════════════════════════ */
.page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0 var(--pad-x);
}

.page-hero .hero-breadcrumb { margin-bottom: 18px; }

.page-hero .hero-breadcrumb ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  justify-content: center;
  gap: 4px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-hero .hero-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.74rem, 1.5vw, 0.82rem);
  color: rgba(255,255,255,.7) !important;
  font-weight: 500;
}

.page-hero .hero-breadcrumb li::after {
  content: '›';
  font-size: 1rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}

.page-hero .hero-breadcrumb li:last-child { color: #fff !important; font-weight: 700; }
.page-hero .hero-breadcrumb li:last-child::after { display: none; }

.page-hero .hero-breadcrumb a {
  color: rgba(255,255,255,.7) !important;
  text-decoration: none !important;
  transition: color .2s;
}

.page-hero .hero-breadcrumb a:hover { color: #fff !important; }

/* ════════════════════════════════════════════════
   FOOTER — MOBILE FIRST (1 col → 4 col)
   ════════════════════════════════════════════════ */
footer {
  background: #0D0D0D;
  color: rgba(255,255,255,.75);
  padding: clamp(2rem, 5vw, 2.5rem) var(--pad-x) clamp(1rem, 3vw, 1.5rem);
}

.footer-grid {
  display: grid;
  /* Mobile: brand top, links side-by-side, contact full-width bottom */
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "brand brand"
    "links services"
    "contact contact";
  gap: clamp(1.25rem, 3.5vw, 1.75rem);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.footer-brand  { grid-area: brand; }
.footer-col:nth-child(2) { grid-area: links; }
.footer-col:nth-child(3) { grid-area: services; }
.footer-col:nth-child(4) { grid-area: contact; }

.footer-brand p {
  font-size: clamp(.78rem, 1.5vw, .88rem);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 340px;
}

.footer-brand .nav-logo span { color: #fff; }

.footer-col h4 {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(.82rem, 1.5vw, .95rem);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: clamp(.76rem, 1.3vw, .85rem);
  transition: color .2s;
  line-height: 1.55;
}

.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: clamp(.7rem, 1.2vw, .82rem);
}

.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }

/* ════════════════════════════════════════════════
   SHARED SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════ */

/* ── 375px: Small mobile ── */
@media (min-width: 375px) {
  .nav-logo span { font-size: 0.82rem; }
}

/* ── 480px: larger mobile — gap tweak only (2-col already set) ── */
@media (min-width: 480px) {
  .footer-grid { gap: 1.75rem; }
}

/* ── 768px: Tablet — show nav links, 3-col footer ── */
@media (min-width: 768px) {
  :root { --nav-h: 72px; }

  .nav-logo .logo-img { height: 42px; }
  .nav-logo span { font-size: 1rem; }

  .nav-links { display: flex; }
  .nav-cta   { display: flex; }
  .hamburger { display: none; }
  .nav-mobile-drawer { display: none !important; }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: none;
    gap: clamp(1.5rem, 3vw, 2rem);
  }
  /* Reset named areas for desktop — browser auto-places cells */
  .footer-brand,
  .footer-col:nth-child(2),
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) { grid-area: auto; }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── 1024px: Laptop — 4-col footer ── */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2rem, 3vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }
}

/* ── 1440px: Large Desktop ── */
@media (min-width: 1440px) {
  :root { --pad-x: clamp(4%, 6vw, 7%); }

  .nav-cta { padding: 10px 22px; font-size: .88rem; }
}

/* ── 1920px: Full HD ── */
@media (min-width: 1920px) {
  :root { --pad-x: clamp(6%, 10vw, 10%); }
}

/* ── 2560px: Ultra-Wide ── */
@media (min-width: 2560px) {
  :root {
    --nav-h:  80px;
    --pad-x:  clamp(10%, 15vw, 15%);
  }

  .nav-logo .logo-img { height: 52px; }
  .nav-logo span { font-size: 1.2rem; }
}
