/* =============================================
   32 PEARLS DENTAL CARE — STYLESHEET
   Author: Paramvir Tiwana
   Palette:
     Teal:   #3EBFC2  (primary brand)
     Bronze: #B17F2B  (accent)
     White:  #ffffff  (background)
     Dark:   #1a2530  (text)
     Soft:   #f5f4f0  (light bg sections)
     Claude AI Helped with improving my comments. 
============================================= */


/* =============================================
   PHOSPHOR ICONS — GLOBAL SIZING
   Icons are <i class="ph ph-xxx"></i>; size with font-size
============================================= */
.ph, .ph-bold, .ph-fill, .ph-duotone, .ph-thin, .ph-light {
  display: inline-block;
  line-height: 1;
  vertical-align: -0.125em; /* nudges icon to sit on text baseline */
}

/* Buttons: inline icon with a small gap after it */
.btn i { margin-right: 0.5rem; font-size: 1.1em; }

/* Card "learn more" arrow: tight spacing, shifts on hover */
.card-link i {
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}
.card-link:hover i { transform: translateX(4px); }

/* =============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   Define once, reuse everywhere.
   Change a variable here → updates whole site.
============================================= */
:root {
  --teal:        #3EBFC2;
  --teal-dark:   #2fa0a3;
  --teal-light:  #d6f4f5;
  --bronze:      #B17F2B;
  --bronze-dark: #8f6420;
  --white:       #ffffff;
  --soft-bg:     #f7f9f9;
  --dark:        #1a2530;
  --mid:         #4a5a65;
  --light-text:  #7a8e98;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Typography */
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Sizing */
  --max-width: 1160px;
  --radius:    10px;
  --radius-lg: 18px;
}


/* =============================================
   RESET & BASE STYLES
   Normalize browser defaults for consistency
============================================= */

/* Box-sizing: include padding/border in element dimensions */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling when navigating to anchors */
html {
  scroll-behavior: smooth;
}

/* Base body styles */
body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

/* Remove bullet points from all lists by default */
ul {
  list-style: none;
}

/* Remove default link decoration; inherit color */
a {
  text-decoration: none;
  color: inherit;
}

/* Images are responsive by default */
img {
  max-width: 100%;
  display: block;
}

/* Italic is used for style text */
em {
  font-style: italic;
}


/* =============================================
   UTILITY: CONTAINER
   Centers content with a max-width and padding
============================================= */
.container {
  max-width: var(--max-width);
  margin-inline: auto;      /* center horizontally */
  padding-inline: var(--space-md); /* left/right breathing room */
}


/* =============================================
   UTILITY: BUTTONS
   Two styles: primary (white on teal) and ghost
============================================= */

/* Shared button base styles */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;          /* fully rounded pill shape */
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

/* Primary: solid teal fill */
.btn-primary {
  background-color: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--teal-dark);
  transform: translateY(-2px); /* subtle lift on hover */
}

/* Ghost: transparent with white border (used on dark hero) */
.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-ghost:hover {
  background-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Bronze: solid bronze fill (used in appointment banner) */
.btn-bronze {
  background-color: var(--bronze);
  color: var(--white);
  font-size: 1rem;
  padding: 1rem 2.5rem;
}
.btn-bronze:hover {
  background-color: var(--bronze-dark);
  transform: translateY(-2px);
}


/* =============================================
   SITE HEADER & NAVIGATION
   Fixed position so it stays at top on scroll
============================================= */
.site-header {
  position: fixed;          /* stays visible while scrolling */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;             /* above all other content */
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); /* frosted glass blur effect */
  border-bottom: 1px solid rgba(62, 191, 194, 0.15);
}

/* Inner flex row: logo on left, nav on right */
.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- LOGO ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Logo image — sized to fit the header bar */
.logo-img {
  height: 90px;        /* keeps the header compact so page headings stay visible */
  width: auto;         /* keeps the original proportions */
  display: block;
}

/* Italic part of logo text (Dental Care) */
.logo-text em {
  color: var(--teal);
  font-weight: normal;
}

/* ---- DESKTOP NAV ---- */
.primary-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  color: var(--mid);
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

/* Hover and active states */
.nav-link:hover,
.nav-link.active {
  color: var(--teal);
  background-color: var(--teal-light);
}

/* "Book an Appointment" nav item — bronze pill, matches the appointment banner button */
.nav-link.cta-nav {
  background-color: var(--bronze);
  color: var(--white);
}
.nav-link.cta-nav:hover {
  background-color: var(--bronze-dark);
  transform: translateY(-1px);
}
/* Keep bronze (not teal) when active on the schedule page */
.nav-link.cta-nav.active {
  background-color: var(--bronze-dark);
  color: var(--white);
}

/* ---- HAMBURGER TOGGLE (mobile only) ---- */
.nav-toggle {
  display: none; /* hidden on desktop; shown via media query */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Each bar of the hamburger icon */
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* =============================================
   HERO SECTION
   Full-viewport banner with image + text overlay
============================================= */
.hero {
  position: relative;
  min-height: 100vh;             /* full viewport — cinematic feel */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark); /* fallback color while video loads */
}

/* YouTube iframe wrapper — fills the entire hero section */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;          /* prevents clicks interrupting navigation */
  overflow: hidden;
}

/* Iframe scaled to always cover full area regardless of aspect ratio */
.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;   /* 16/9 × 100vh */
  height: 56.25vw;   /* 9/16 × 100vw */
  min-width: 100%;
  min-height: 100%;
  border: 0;
}

/* Semi-transparent dark overlay for text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 40, 45, 0.55) 0%,
    rgba(10, 40, 45, 0.35) 60%,
    rgba(10, 40, 45, 0.65) 100%
  );
  z-index: 1;
}

/* Hero text — sits above video (z:0), overlay (z:1), wave (z:2) */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 2rem var(--space-md) 5rem;
  max-width: 860px;
  width: 100%;
}

/* Small label above the main title */
.hero-eyebrow {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.9rem;
}

/* Main headline */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.5vw, 5rem); /* scales with screen width */
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  overflow-wrap: break-word;
}

/* Italic portion of title */
.hero-title em {
  font-weight: normal;
  color: rgba(255,255,255,0.88);
}

/* Subtitle sentence below the title */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

/* CTA button row */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap; /* stacks on very small screens */
}

/* Decorative wave that blends hero into white background */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0; /* removes any extra gap below SVG */
}

.hero-wave svg {
  width: 100%;
  height: 60px;
}


/* =============================================
   TAGLINE STRIP
   A short centered italic statement
============================================= */
.tagline-strip {
  padding: var(--space-md) 0 var(--space-sm);
  background-color: var(--white);
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  text-align: center;
  color: var(--mid);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Bronze accent words within the tagline */
.tagline .accent {
  color: var(--bronze);
  font-style: italic;
}


/* =============================================
   TRUST STRIP
   Icon + headline + blurb x3, with vertical dividers
============================================= */
.trust-strip {
  padding: var(--space-sm) 0 var(--space-md);
  background-color: var(--white);
  border-top: 1px solid rgba(62, 191, 194, 0.08);
  border-bottom: 1px solid rgba(62, 191, 194, 0.08);
}

.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.trust-item {
  flex: 1;
  text-align: center;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.trust-icon {
  font-size: 3rem;
  color: var(--teal);
  line-height: 1;
}

/* Give each icon a unique accent */
.trust-item:nth-child(3) .trust-icon { color: var(--bronze); }
.trust-item:nth-child(5) .trust-icon { color: var(--teal-dark); }

.trust-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.trust-text {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.55;
  max-width: 28ch;
}

.trust-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(62, 191, 194, 0.35),
    transparent
  );
  flex-shrink: 0;
}


/* =============================================
   CARDS SECTION
   Three equal cards in a horizontal grid
============================================= */
.cards-section {
  padding: var(--space-md) 0 var(--space-lg);
  background-color: var(--soft-bg);
}

/* Small uppercase label above cards */
.section-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-md);
}

/* Three-column grid on desktop */
.card-grid {
  display: flex;
  gap: 1.75rem;
  align-items: stretch; /* equal height cards */
}

/* Individual card */
.card {
  flex: 1;                    /* each card takes equal space */
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(62,191,194,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Lift effect when hovering a card */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(62,191,194,0.18);
}

/* Featured (middle) card — teal background */
.card--featured {
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border-color: transparent;
}

.card--featured .card-title,
.card--featured .card-text {
  color: var(--white);
}

/* Icon container at top of card — now a colored rounded badge */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card-icon--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.card-icon--bronze {
  background: rgba(177, 127, 43, 0.12);
  color: var(--bronze);
}

.card-icon--light {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

/* Gentle idle animation — icon breathes slightly */
.card:hover .card-icon {
  transform: translateY(-2px) scale(1.04);
}
.card-icon {
  transition: transform 0.3s ease;
}

/* Card heading */
.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark);
  line-height: 1.3;
}

/* Card description text */
.card-text {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1; /* pushes link to bottom */
}

/* "Learn more" style arrow link at bottom of card */
.card-link {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: bold;
  letter-spacing: 0.03em;
  transition: color 0.2s, letter-spacing 0.2s;
}

/* Light version of card link for the featured (teal) card */
.card-link--light {
  color: rgba(255,255,255,0.9);
}

.card-link:hover {
  letter-spacing: 0.07em; /* subtle spread on hover */
  color: var(--bronze);
}

.card-link--light:hover {
  color: var(--white);
}


/* =============================================
   APPOINTMENT BANNER
   Full-width teal section with bold CTA
============================================= */
.appt-banner {
  background: linear-gradient(135deg, #0d6b6e, var(--teal));
  padding: var(--space-lg) 0;
  color: var(--white);
}

/* Flex row: text left, button right */
.appt-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap; /* stacks on mobile */
}

.appt-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.appt-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.2;
}

/* =============================================
   SITE FOOTER
   Full-width dark footer with three columns
============================================= */
.site-footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.75);
}

/* Three-column grid in footer body */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  align-items: center;   /* vertically align all three columns */
}

/* Footer brand column — logo + tagline centered */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center logo and tagline horizontally */
  text-align: center;
  gap: 0.5rem;
}

/* Footer logo */
.footer-logo-img {
  height: 110px;
  width: auto;
  border-radius: 20px;
  display: block;
}

/* Practice name in footer */
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

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

/* Tagline under logo */
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-align: center;
}

/* Footer nav list — vertically stacked */
.footer-nav ul {
  display: flex;
  flex-direction: column;
   align-items: center;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--teal);
}

/* Footer contact block */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

/* Teal icons in front of each contact line */
.footer-contact i {
  color: var(--teal);
  margin-right: 0.4rem;
  transition: color 0.2s;
}

/* On hover, the link text turns teal — flip the icon to white so it stays visible */
.footer-contact-link:hover i {
  color: var(--white);
}

/* Row of circular social icons */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social:hover {
  background-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* Bottom bar: copyright */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.25rem var(--space-md);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}


/* =============================================
   RESPONSIVE STYLES — TABLET & MOBILE
   Breakpoint: 768px and below
============================================= */
@media (max-width: 768px) {

  /* ---- NAVIGATION ---- */

  /* Show the hamburger toggle button */
  .nav-toggle {
    display: flex;
  }

  /* Hide nav links by default on mobile */
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;           /* drops below the header */
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem var(--space-md) 1.5rem;
    border-bottom: 1px solid rgba(62,191,194,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

  /* Show nav when .nav-open class is toggled by JS */
  .primary-nav.nav-open {
    display: block;
  }

  /* Stack nav links vertically */
  .primary-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.6rem 1rem;
  }

  /* ---- HERO ---- */
  .hero {
    min-height: 90vh;
  }

  /* ---- CARDS ---- */

  /* Stack cards vertically on mobile */
  .card-grid {
    flex-direction: column;
  }

  /* ---- APPOINTMENT BANNER ---- */

  /* Stack text and button on mobile */
  .appt-inner {
    flex-direction: column;
    text-align: center;
  }

  /* ---- TRUST INDICATORS ---- */

  /* Stack trust items vertically */
  .trust-grid {
    flex-direction: column;
    gap: var(--space-md);
  }

  .trust-item {
    max-width: 100%;
  }

  /* Flip the vertical divider to a thin horizontal line on mobile */
  .trust-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(62, 191, 194, 0.35),
      transparent
    );
  }

  /* ---- FOOTER ---- */

  /* Footer — stacked vertically and centered */
  .footer-grid {
  display: flex;
  flex-direction: column;   /* stack columns on top of each other */
  align-items: center;      /* center everything horizontally */
  text-align: center;       /* center all text */
  gap: var(--space-md);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

  /* Center-align contact block on mobile */
  .footer-contact {
    text-align: center;
    color: inherit;
    text-decoration: none;
  }

  .footer-contact a:hover {
  text-decoration: underline;
  }
}


/* =============================================
   RESPONSIVE STYLES — SMALL MOBILE
   Breakpoint: 480px and below
============================================= */
@media (max-width: 480px) {

  /* Tighten hero button layout */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Full-width buttons on small phones */
  .btn {
    width: 100%;
    text-align: center;
    max-width: 280px;
  }
}

/*===============================================================================================================================================*/

/* =============================================
   ABOUT PAGE CSS STYLES
   Scoped classes used only on about.html
============================================= */

/* -----------------------------------------------
   PAGE HERO — about page variant
   Shorter than homepage hero; teal gradient bg
----------------------------------------------- */
.about-hero {
  position: relative;
  padding-top: 160px;   /* clears fixed header so the h1 isn't hidden */
  padding-bottom: 2.5rem;
  background: linear-gradient(135deg, #0d6b6e 0%, var(--teal) 60%, #3EBFC2cc 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.about-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: bold;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.about-hero-title em {
  font-weight: normal;
  color: rgba(255,255,255,0.85);
}

.about-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

/* Wave transition at bottom of hero */
.about-hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  z-index: 2;
}

.about-hero-wave svg {
  width: 100%;
  height: 60px;
}


/* -----------------------------------------------
   SECTION SHARED STYLES
----------------------------------------------- */
.section-eyebrow {
  font-size: 2.25rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}


/* -----------------------------------------------
   PROCEDURES SECTION
----------------------------------------------- */
.procedures-section {
  background-color: var(--soft-bg);
  padding: var(--space-md) 0 var(--space-md);
}

.procedures-section .container {
  text-align: center;
}

/* Category section (one block per category, holds a label + a grid of cards) */
.procedure-category {
  margin-bottom: 2.5rem;
  text-align: left;            /* anchor the label pill to the left edge of the grid */
}

.procedure-category:last-child {
  margin-bottom: 0;
}

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.15rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.category-label i {
  font-size: 1.1rem;
  color: var(--teal);
  line-height: 1;
}

/* Hide a whole category section when nothing in it matches the filter/search */
.procedure-category.is-hidden {
  display: none;
}

/* Procedure card grid — auto-fit so 3-4 fit per row on desktop */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* Individual procedure card */
.proc-card {
  position: relative;          /* anchors the category tag to the card */
  background: var(--white);
  border: 1px solid rgba(62,191,194,0.18);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.65rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

/* Category eyebrow badge — sits over the top-right corner of the image */
.proc-card-tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  background-color: rgba(26, 37, 48, 0.78);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* On the teal "featured" cards, switch to a bronze tag for contrast */
.proc-card--featured .proc-card-tag {
  background-color: var(--bronze);
}

.proc-card:hover {
  box-shadow: 0 10px 30px rgba(62,191,194,0.15);
  transform: translateY(-3px);
}

/* Rounded card image */
.proc-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.proc-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  padding: 0 0.4rem;
}

.proc-card-sub {
  font-size: 0.85rem;
  color: var(--light-text);
  line-height: 1.5;
  text-align: center;
  padding: 0 0.5rem;
}

/* Featured (teal accent) procedure card */
.proc-card--featured {
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  border-color: transparent;
  color: var(--white);
}

.proc-card--featured .proc-card-name,
.proc-card--featured .proc-card-sub {
  color: var(--white);
}

.proc-card--featured .proc-card-sub {
  color: rgba(255,255,255,0.8);
}


/* -----------------------------------------------
   EQUIPMENT SECTION
----------------------------------------------- */
.equipment-section {
  background-color: var(--soft-bg);
  padding: var(--space-md) 0 var(--space-lg);
}

.equipment-section .container {
  text-align: center;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.equip-card {
  background: var(--white);
  border: 1px solid rgba(62,191,194,0.15);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.65rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.equip-card:hover {
  box-shadow: 0 10px 30px rgba(62,191,194,0.15);
  transform: translateY(-3px);
}

.equip-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.equip-icon {
  width: 48px;
  height: 48px;
  background-color: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equip-icon svg {
  width: 26px;
  height: 26px;
}

.equip-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  text-align: center;
  padding: 0 0.4rem;
}

.equip-desc {
  font-size: 0.85rem;
  color: var(--light-text);
  text-align: center;
  line-height: 1.5;
  padding: 0 0.5rem;
}


/* -----------------------------------------------
   ABOUT PAGE — RESPONSIVE OVERRIDES
   (proc/equip grids use CSS Grid auto-fit, so they
    re-flow automatically — only edge cases here.)
----------------------------------------------- */
@media (max-width: 768px) {

  .proc-list-section .container {
    grid-template-columns: 1fr;
  }

  .proc-list-image {
    order: -1;  /* image above list on mobile */
  }
}


/* -----------------------------------------------
   ABOUT PAGE — UTILITY HELPER CLASSES
----------------------------------------------- */

/* Lead-in paragraph that sits beneath a .section-eyebrow heading */
.section-intro {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.75rem;
}

/* Centered section intro (used in procedures & equipment sections) */
.section-intro--center {
  margin-inline: auto;
  text-align: center;
}

/* Inline body link — teal with underline */
.inline-link {
  color: var(--teal);
  text-decoration: underline;
}

.inline-link:hover {
  color: var(--teal-dark);
}

/* Proc list contact note */
.proc-list-contact {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Footer contact clickable links */
.footer-contact-link {
  color: inherit;
}

.footer-contact-link:hover {
  color: var(--teal);
}


/* -----------------------------------------------
   ABOUT PAGE — FILTER & SEARCH BAR
   Search input + category chips above the cards
----------------------------------------------- */
.service-filter {
  margin: 1.5rem auto 2rem;
  max-width: 900px;
}

.service-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.service-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-text);
  font-size: 1.1rem;
  pointer-events: none;
}

.service-search {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--white);
  border: 1px solid rgba(62,191,194,0.25);
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-search:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(62,191,194,0.18);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--mid);
  background-color: var(--white);
  border: 1px solid rgba(62,191,194,0.25);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  background-color: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal);
}

.filter-chip.active {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* Empty-state shown when no cards match the search/filter */
.service-empty {
  display: none;
  text-align: center;
  color: var(--light-text);
  font-size: 1rem;
  padding: 2rem 1rem;
}

.service-empty.is-visible {
  display: block;
}

/* Hide non-matching cards via JS-toggled class */
.proc-card.is-hidden {
  display: none;
}