/* ==========================================================================
   DreamHealthSecure — shared stylesheet
   Design tokens live here as CSS custom properties so every page (and every
   inline Tailwind utility that needs a custom color) pulls from one source.
   ========================================================================== */

   :root {
    /* Palette — premium healthcare neutrals with a calm trust accent */
    --ivory: #f7f5f1;         /* page background */
    --card: #ffffff;          /* card surfaces */
    --wine: #246b73;          /* primary accent */
    --wine-dark: #174b52;     /* primary accent, hover/active */
    --wine-tint: #e5f1f2;     /* pale accent for badges/backgrounds */
    --gold: #b8863b;          /* secondary accent */
    --gold-tint: #f4ead8;     /* pale gold for badges/backgrounds */
    --rose: #8b5264;          /* tertiary accent (category variety) */
    --brass: #89734b;         /* quaternary accent (category variety) */
    --ink: #1f2f34;           /* primary text */
    --slate: #607074;         /* secondary/muted text */
    --line: #dde6e5;          /* hairline borders */
    --line-soft: #e9efed;
  
    --font-display: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;
  
    --radius-lg: 1.25rem;
    --radius-md: 0.85rem;
    --radius-sm: 0.5rem;
  
    --shadow-soft: 0 2px 8px rgba(31, 47, 52, 0.05), 0 16px 36px rgba(31, 47, 52, 0.07);
    --shadow-lift: 0 10px 24px rgba(31, 47, 52, 0.10), 0 24px 54px rgba(31, 47, 52, 0.12);
  }
  
  * {
    scroll-behavior: smooth;
  }
  
  @media (prefers-reduced-motion: reduce) {
    * {
      scroll-behavior: auto;
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
    }
  }
  
  html, body {
    background-color: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
  }
  
  h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
  }
  
  /* Focus visibility for keyboard users */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--wine);
    outline-offset: 2px;
  }
  
  /* ---------- Reusable components ---------- */
  
  .card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line-soft);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  
  .card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
  }
  
  .accent-bar {
    height: 4px;
    width: 2.5rem;
    border-radius: 999px;
    background: var(--wine);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-primary:hover {
    background: linear-gradient(135deg, var(--wine-dark) 0%, #123f45 100%);
    transform: translateY(-1px);
  }
  
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-secondary:hover {
    border-color: var(--wine);
    background: var(--wine-tint);
  }
  
  .eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--wine);
  }
  
  /* ---------- Header / nav ---------- */
  
  .site-header {
    background: rgba(247, 245, 241, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
  }
  
  .nav-link {
    color: var(--ink);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
  }
  
  .nav-link.active {
    color: var(--wine);
  }
  
  .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--wine);
    border-radius: 999px;
  }
  
  .nav-link:hover {
    color: var(--wine);
  }
  
  #mobile-menu {
    transition: max-height 0.3s ease, opacity 0.25s ease;
    overflow: hidden;
  }
  
  #mobile-menu.closed {
    max-height: 0;
    opacity: 0;
  }
  
  #mobile-menu.open {
    max-height: 32rem;
    opacity: 1;
  }
  
  /* ---------- Hero ---------- */
  
  .hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--wine-tint);
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(18, 43, 48, 0.84) 0%, rgba(18, 43, 48, 0.58) 46%, rgba(18, 43, 48, 0.18) 78%);
  }
  
  .quick-check-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
  }

  .section-soft {
    background: linear-gradient(135deg, rgba(229, 241, 242, 0.82) 0%, rgba(244, 234, 216, 0.62) 100%);
  }

  .content-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line-soft);
  }

  .image-card img {
    transition: transform 0.35s ease;
  }

  .image-card:hover img {
    transform: scale(1.03);
  }

  .icon-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: var(--wine-tint);
    color: var(--wine);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* ---------- Scroll reveal ---------- */
  
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
    }
  }
  
  /* ---------- Category top-accent variants ---------- */
  
  .accent-wine { background: var(--wine); }
  .accent-gold { background: var(--gold); }
  .accent-rose { background: var(--rose); }
  .accent-brass { background: var(--brass); }
  
  .top-accent {
    height: 5px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }
  
  /* ---------- FAQ accordion ---------- */
  
  .faq-item .faq-icon {
    transition: transform 0.25s ease;
  }
  
  .faq-item.open .faq-icon {
    transform: rotate(45deg);
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .faq-item.open .faq-answer {
    max-height: 24rem;
  }
  
  /* ---------- Form elements ---------- */
  
  .form-input {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink);
    transition: border-color 0.2s ease;
  }
  
  .form-input:focus {
    border-color: var(--wine);
  }
  
  .form-input.invalid {
    border-color: #b3413b;
  }
  
  .field-error {
    color: #b3413b;
    font-size: 0.8rem;
  }
  
  /* ---------- Quote finder result ---------- */
  
  .result-panel {
    border: 1.5px dashed var(--gold);
    background: var(--gold-tint);
    border-radius: var(--radius-lg);
  }
  
  /* ---------- Footer ---------- */
  
  .site-footer {
    background: var(--ink);
    color: #f1ece4;
  }
  
  .site-footer a {
    color: #d9cfc6;
  }
  
  .site-footer a:hover {
    color: #ffffff;
  }
  
  .social-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  
  .social-icon:hover {
    background: var(--wine);
    border-color: var(--wine);
  }


  /* Hide Scrollbar */
html,
body{
    overflow-x: hidden;
    scrollbar-width: none;      
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar{
    display: none;              
}