/* ======================================================
   COLORS from LOGO 
====================================================== */

:root {
    --medical-navy: #0F2A44;
    --clinical-blue: #2F5E9B;
    --sterile-sky: #76B3DA;

    --cool-slate: #747A85;
    --charcoal-ink: #1F2933;
    --warm-steel: #8C9098;
    --muted-indigo: #4B5A6E;

    --surgical-green: #3E7C6A;
    --soft-mint: #B9DCC9;

    --clinical-purple: #5A4A8B;
}


/* ======================================================
   FONT VARIABLES (TOP OF FILE)
====================================================== */

:root {
    --font-serif: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    --font-sans: "Roboto", Arial, sans-serif;

    --blue-dark: #061c33;
    --blue-primary: #0b2a4a;
    --white: #ffffff;
    --text-dark: #0f1f33;
}


/* ================= GLOBAL STYLES ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}
/* ======================================================
   TYPOGRAPHY RULES
====================================================== */

/* Headers use Palatino */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Body copy stays sans-serif */
p, li, span {
    font-family: var(--font-sans);
}
/* ================= NAVIGATION (ALL PAGES) ================= */

.navbar {
    background-color: var(--medical-navy); 
    padding: 18px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO = PALATINO */
.logo a {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.03em;
}

/* NAV LINKS = ROBOTO */ 
.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-sans);
    color:var(--white);
    font-size: 14px;
    font-weight: 500;


}

.nav-links li a:hover {
    opacity: 0.85;
}

/* NAV CTA */ 
.nav-cta {
    font-family: var(--font-sans);
    padding: 8px 16px;
    background-color: var(--muted-indigo);
    border: 1px solid #f3eeee;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* ================= HERO SECTION ================= */

.hero {
    position: relative;
    height: 85vh;
    background-image: url("images/home.jpg"); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 42, 74, 0.65);
}

.hero-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin-left: 8%;
    color: #ffffff;
}

/* HERO HEADER */ 
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color:#ffffff;
}
/* HERO TEXT */
.hero-content p {
    font-family: var(--font-sans);
    font-size: 17px;
    max-width: 700px;
    margin-bottom: 32px;
    color:#ffffff;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}
/* ======================================================
   BUTTONS (SHARED)
====================================================== */
.btn-primary {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--medical-navy);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
}

.btn-secondary {
    font-family: var(--font-sans);
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

/* ================= FOOTER ( ALL PAGES)  ================= */

.footer {
    background-color: #061c31;
    color: #ffffff;
    padding: 36px 0 16px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;

}

/* FOOTER HEADINGS */
.footer-column h4 {
    font-family: var(--font-serif);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/*FOOTER TEXT */
.footer-column p,
.footer-column ul li{
    font-family: var(--font-sans);
    font-size: 13px;
    max-width: 250px;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.85;
}

.footer-column ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}

/* ======================================================
   MOBILE RESPONSIVE STYLES
 
====================================================== */

/* ================= HAMBURGER MENU BUTTON ================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================= TABLET BREAKPOINT (768px - 1024px) ================= */
@media screen and (max-width: 1024px) {
    /* Navigation adjustments */
    .nav-links {
        gap: 18px;
    }
   
    .nav-links li a {
        font-size: 13px;
    }
   
    .nav-cta {
        padding: 7px 14px;
        font-size: 12px;
    }
   
    /* Hero adjustments */
    .hero-content h1 {
        font-size: 40px;
    }
   
    .hero-content p {
        font-size: 16px;
    }
   
    /* Footer grid adjustment */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ================= MOBILE BREAKPOINT (max-width: 768px) ================= */
@media screen and (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }
   
    /* Hide default navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: var(--medical-navy);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
   
    /* Show navigation when active */
    .nav-links.active {
        right: 0;
    }
   
    .nav-links li {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
   
    .nav-links li a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
        width: 100%;
    }
   
    .nav-cta {
        margin-top: 10px;
        display: inline-block;
        padding: 12px 20px;
        font-size: 14px;
    }
   
    /* Overlay for mobile menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
   
    .nav-overlay.active {
        display: block;
    }
   
    /* Hero section adjustments */
    .hero {
        height: 70vh;
        min-height: 500px;
    }
   
    .hero-content {
        margin-left: 5%;
        width: 90%;
    }
   
    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }
   
    .hero-content p {
        font-size: 15px;
        max-width: 100%;
    }
   
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
   
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
    }
   
    /* Footer adjustments */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
   
    .footer-column {
        text-align: left;
    }
   
    .footer-column p,
    .footer-column ul li {
        max-width: 100%;
    }
   
    .footer-bottom {
        padding: 0 20px;
        line-height: 1.8;
    }
}

/* ================= SMALL MOBILE BREAKPOINT (max-width: 480px) ================= */
@media screen and (max-width: 480px) {
    /* Logo adjustment */
    .logo a {
        font-size: 16px;
    }
   
    /* Navigation container */
    .nav-container {
        width: 95%;
        padding: 0 10px;
    }
   
    /* Mobile menu width */
    .nav-links {
        width: 85%;
        max-width: 280px;
    }
   
    /* Hero adjustments */
    .hero {
        height: 65vh;
        min-height: 450px;
    }
   
    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }
   
    .hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }
   
    .btn-primary,
    .btn-secondary {
        padding: 12px 18px;
        font-size: 14px;
    }
   
    /* Footer adjustments */
    .footer {
        padding: 28px 0 12px;
    }
   
    .footer-container {
        width: 95%;
    }
   
    .footer-column h4 {
        font-size: 11px;
        margin-bottom: 8px;
    }
   
    .footer-column p,
    .footer-column ul li,
    .footer-column ul li a {
        font-size: 13px;
    }
   
    .footer-bottom {
        font-size: 11px;
        margin-top: 16px;
    }
}

/* ================= LANDSCAPE MODE MOBILE FIX ================= */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0;
    }
   
    .hero-content h1 {
        font-size: 28px;
    }
   
    .hero-content p {
        font-size: 14px;
    }
}

/* ================= TOUCH DEVICE IMPROVEMENTS ================= */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-links li a {
        padding: 18px 0;
    }
   
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
    }
   
    /* Remove hover effects on touch devices */
    .nav-links li a:hover,
    .footer-column ul li a:hover {
        opacity: 1;
    }
}


/* ============================================
   SOPHISTICATED LEGAL DISCLAIMER BAR
============================================ */

.legal-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease-in-out;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.legal-content {
  flex: 1;
}

.legal-content p {
  font-size: 11px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 6px 0;
}

.legal-content strong {
  color: #111827;
  font-weight: 600;
}

.legal-links {
  font-size: 11px;
}

.legal-links a {
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links .sep {
  margin: 0 8px;
  color: #d1d5db;
}

/* Close Button */
.legal-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.legal-close:hover {
  color: #111827;
}

/* Hide animation when closed */
.legal-bar.hidden {
  transform: translateY(100%);
}

/* Mobile */
@media (max-width: 768px) {
  .legal-container {
    gap: 10px;
  }
}


/* ================= DROPDOWN STYLES ================= */

.has-dropdown {
    position: relative; /* Anchor for the dropdown menu */
}

/* The actual menu */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Sits directly below the nav item */
    left: 0;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Show on hover */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown link styling */
.dropdown-menu li a {
    color: var(--medical-navy) !important; /* Text needs to be dark on white bg */
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f4f7fa;
    color: var(--clinical-blue) !important;
}

/* Small arrow tweak */
.dropdown-trigger small {
    font-size: 9px;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.7;
}

/* ================= MOBILE DROPDOWN TWEAKS ================= */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static; /* Stack it naturally in the mobile drawer */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05); /* Slight contrast on dark mobile bg */
        padding-left: 15px;
    }
    
    .dropdown-menu li a {
        color: var(--white) !important;
        padding: 12px 0;
    }
}