/* healthcare-pharma.css
   Premium, modern layout for Healthcare & Pharma.
   Replace images: logo-placeholder.png, hero-healthcare-1600.jpg
*/

/* BRAND VARIABLES - tweak these to match your brand */
:root{
  --bg-1: #f5f9ff;
  --bg-2: #eef6ff;
  --brand-900: #072a52;
  --brand-600: #0b6ad9;
  --accent: #0b6ad9;
  --muted: #58707f;
  --card: #ffffff;
  --glass: rgba(255,255,255,0.65);
  --glass-strong: rgba(255,255,255,0.85);
  --radius: 14px;
  --container: 1200px;
  --gap: 24px;
  --header-height: 84px; /* fallback; JS will override */
  --shadow-1: 0 10px 30px rgba(8,40,71,0.06);
}

/* ============================================================================
   HEADER – Clean, Compact, Responsive
============================================================================ */
.header {
    width: 100%;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    height: 75px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
}

/* ============================================================================
   NAVIGATION MENU
============================================================================ */
.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #002D62;
    padding: 8px 0;
    transition: 0.25s;
}

.navbar ul li a:hover {
    color: #0096FF;
}

/* ============================================================================
   STABLE DROPDOWN (DESKTOP)
============================================================================ */
.dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 55px;
    left: 0;
    width: 250px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.dropdown:hover .mega-menu,
.dropdown.hover-active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    height: 25px;
}

.mega-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #002D62;
    margin-bottom: 10px;
}

.mega-menu a {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #002D62;
    text-decoration: none;
    transition: 0.2s ease;
}

.mega-menu a:hover {
    color: #0096FF;
    padding-left: 5px;
}

/* ============================================================================
   MOBILE MENU ICON
============================================================================ */
.mobile-menu-icon {
    display: none;
    font-size: 32px;
    cursor: pointer;
}

/* ============================================================================
   MOBILE RESPONSIVE
============================================================================ */
@media (max-width: 900px) {

    .mobile-menu-icon {
        display: block;
    }

    .navbar .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        padding: 20px 0;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s ease;
    }

    .nav-links.nav-active {
        max-height: 700px;
        opacity: 1;
        pointer-events: auto;
        border-bottom: 1px solid #eee;
    }

    .dropdown:hover .mega-menu {
        display: none;
    }

    .dropdown.open .mega-menu {
        display: block !important;
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto;
        padding: 12px 20px;
        background: #f4f8ff;
        border-radius: 10px;
        box-shadow: none;
    }
}


/* Reset & base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,var(--bg-1),var(--bg-2));
  color:var(--brand-900);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.55;
  padding-top: var(--header-height); /* prevents header overlap */
}

/* container */
.container { width:90%; max-width:var(--container); margin:0 auto; }

/* header */
.site-header{
  position:fixed; top:0; left:0; right:0;
  z-index:9999;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(6px);
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  border-bottom: 1px solid rgba(10,40,80,0.03);
}

.site-header.scrolled {
  background: var(--card);
  box-shadow: var(--shadow-1);
  transform: translateY(0);
}

.header-inner {
  display:flex; align-items:center; gap:18px;
  height: var(--header-height); padding:10px 18px;
}

/* brand */
.brand { display:inline-flex; align-items:center; text-decoration:none; }
.brand .logo { height:40px; display:block; }

/* nav - desktop */
.main-nav { margin-left:14px; }
.main-nav ul {
  list-style:none; display:flex; gap:28px; margin:0; padding:0; align-items:center;
}
.main-nav a {
  color:var(--brand-900); text-decoration:none; font-weight:600; font-size:15px; padding:8px 6px;
  border-radius:8px; transition: color 160ms, background 160ms;
}
.main-nav a:hover, .main-nav a.active { color:var(--accent); }

/* header actions */
.header-actions { margin-left:auto; display:flex; align-items:center; gap:12px; }

/* buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; border-radius:10px; padding:10px 16px; font-weight:700; font-size:14px; text-decoration:none; cursor:pointer; }
.btn-primary { background: linear-gradient(180deg,var(--brand-600), #094fb6); color:#fff; box-shadow: 0 8px 20px rgba(11,106,217,0.12); }
.btn-secondary { background: #fff; color:var(--brand-600); border:1px solid rgba(11,106,217,0.08); }
.btn-outline { background:transparent; color:var(--brand-900); border:1px solid rgba(8,40,71,0.06); }
.btn-ghost { background:transparent; color:var(--brand-900); border:0; padding:8px 10px; }

/* hamburger */
.hamburger { display:none; background:none; border:0; padding:8px; margin-left:8px; cursor:pointer; }
.hamburger-box{ width:28px; height:18px; display:inline-block; position:relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width:28px; height:2px; background:var(--brand-900); display:block; position:absolute; left:0; border-radius:2px; transition: transform 180ms ease;
}
.hamburger-inner { top:50%; transform:translateY(-50%); }
.hamburger-inner::before { content:""; top:-8px; }
.hamburger-inner::after { content:""; top:8px; }

/* open state transforms handled by JS via .open class on mobile menu */

/* mobile menu (overlay) */
.mobile-menu {
  position:fixed; inset:0; background: linear-gradient(180deg, rgba(5,18,34,0.6), rgba(5,18,34,0.6)); display:none; z-index:9998;
  align-items:flex-start; justify-content:center; padding:48px 24px;
}
.mobile-menu.open { display:flex; }
.mobile-menu-inner {
  width:100%; max-width:400px; background:var(--card); border-radius:12px; padding:20px; box-shadow:var(--shadow-1); position:relative;
}
.mobile-menu-inner ul { list-style:none; padding:0; margin:8px 0 0 0; display:flex; flex-direction:column; gap:12px; }
.mobile-menu-inner a { text-decoration:none; color:var(--brand-900); font-weight:600; font-size:16px; padding:8px; display:block; }
.mobile-close { position:absolute; right:12px; top:8px; border:0; background:none; font-size:28px; cursor:pointer; }

/* HERO */
.hero { display:grid; grid-template-columns: 1fr 480px; gap:36px; align-items:center; padding:56px 0 36px; }
.eyebrow { display:inline-block; color:var(--accent); background: rgba(11,106,217,0.06); padding:6px 10px; border-radius:8px; font-weight:700; margin-bottom:14px; font-size:13px; }
h1 { font-size:42px; margin:8px 0 16px; line-height:1.02; color:var(--brand-900); font-weight:800; }
.subhead { color:var(--muted); font-size:18px; margin-bottom:22px; max-width:720px; }

/* hero ctas */
.hero-ctas { display:flex; gap:12px; margin-bottom:22px; }
.hero-highlights { display:flex; gap:18px; margin-top:16px; }
.hl { background: rgba(11,106,217,0.04); padding:10px 14px; border-radius:10px; display:flex; flex-direction:column; gap:6px; width:135px; }
.hl strong { font-size:18px; color:var(--brand-600); display:block; }
.hl span { color:var(--muted); font-size:13px; }

/* media card */
.media-card { width:100%; max-width:480px; margin-left:auto; }
.media-frame { border-radius:16px; overflow:hidden; box-shadow: 0 28px 50px rgba(8,40,71,0.08); border: 1px solid rgba(11,106,217,0.04); background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2)); }
.media-frame img { display:block; width:100%; height:auto; object-fit:cover; transform: scale(1); transition: transform 350ms ease; }
.media-frame:hover img { transform:scale(1.03); }
.media-caption { margin-top:10px; color:var(--muted); font-size:13px; text-align:center; }

/* overview card */
.overview-card { display:flex; gap:18px; padding:20px; align-items:center; }
.overview-left { flex:1; }
.overview-right { min-width:220px; }
.stats { list-style:none; padding:0; margin:0; display:flex; gap:10px; flex-direction:column; }
.stats li { background: linear-gradient(180deg, rgba(11,106,217,0.03), rgba(11,106,217,0.01)); padding:10px 12px; border-radius:10px; }
.stats strong { display:block; color:var(--brand-600); font-size:14px; }

/* 3-column layout */
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; margin:18px 0 0; }
.card { background:var(--card); border-radius:var(--radius); padding:18px; box-shadow: 0 8px 30px rgba(8,40,71,0.04); transition: transform 220ms ease, box-shadow 220ms ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(8,40,71,0.06); }

/* solutions grid */
.section-title { font-size:20px; margin-bottom:12px; color:var(--brand-900); font-weight:700; }
.solutions-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:18px; margin-top:12px; }
.solution { display:flex; gap:12px; align-items:flex-start; }
.solution .icon { font-size:28px; width:46px; height:46px; display:flex; align-items:center; justify-content:center; background: linear-gradient(180deg, rgba(11,106,217,0.06), rgba(11,106,217,0.02)); border-radius:10px; }

/* case card */
.case-card { padding:20px; }

/* CTA */
.cta-section { padding:18px 0 48px; }
.cta { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.cta-actions { display:flex; gap:12px; align-items:center; }

/* footer */
.site-footer { padding:28px 0; }
.footer-inner { display:flex; align-items:center; gap:18px; justify-content:space-between; }

/* small */
.small { color:var(--muted); font-size:13px; }

/* responsive adjustments */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 380px; }
  .media-card { max-width:380px; }
}

@media (max-width: 900px) {
  .main-nav { display:none; }
  .hamburger { display:inline-block; }
  .hero { grid-template-columns: 1fr; gap:18px; padding:44px 0; }
  .media-card { margin-left:0; }
  .grid-3 { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .overview-card { flex-direction:column; align-items:flex-start; }
  .header-inner { padding:10px 14px; }
}

/* accessibility focus */
a:focus, button:focus { outline: 3px solid rgba(11,106,217,0.14); outline-offset:3px; border-radius:8px; }

/* Make both hero CTAs blue */
.hero-ctas .btn,
.cta-actions .btn {
    background: linear-gradient(180deg, #0b6ad9, #094fb6);
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(11,106,217,0.18);
    border-radius: 10px;
}

/* Hover effect */
.hero-ctas .btn:hover,
.cta-actions .btn:hover {
    background: linear-gradient(180deg, #0a5ec5, #0848a6);
}

/* Center the 3-column section */
.section.container.grid-3,
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;

    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
    width: 100%;          /* ✅ FULL WIDTH */
    max-width: 1200px;    /* ✅ CONTROLLED LAYOUT */
}

/* ===== Mobile responsiveness patch - paste at end of your CSS ===== */

/* Make the container fluid on small screens */
@media (max-width: 1024px) {
  :root {
    --container-max: 980px;
  }
  .container { width: 94%; max-width: var(--container-max); }

  /* Header: smaller height and compact spacing */
  .header-inner { height: auto; padding: 10px 14px; gap: 12px; }
  .brand .logo { height: 34px; }

  /* Show hamburger if hidden */
  .main-nav { display: none !important; } /* desktop nav hidden */
  .hamburger { display: inline-flex !important; }

  /* Hero: change to two columns (if still space) */
  .hero { grid-template-columns: 1fr 320px; gap:20px; padding:36px 0; }
  .hero-copy h1 { font-size: 34px; line-height:1.06; }
  .lead, .subhead { font-size: 15px; }

  /* CTAs should wrap */
  .hero-ctas { flex-wrap:wrap; gap:10px; }
  .hero-ctas .btn { padding:10px 14px; font-size:14px; }

  /* Make stat boxes readable */
  .hl { width:120px; font-size:13px; padding:10px; }
}

/* Tablet and small phones: stack columns into single column */
@media (max-width: 768px) {
  /* Hero becomes single column */
  .hero { grid-template-columns: 1fr; gap:16px; padding:28px 0; }
  .hero-right { order: 2; display:block; margin:0 auto; max-width: 100%; }
  .hero-left { order:1; }

  /* Headline smaller */
  .hero-copy h1, h1 { font-size:26px; line-height:1.06; }

  /* Ensure hero image scales and remains visible */
  .media-frame img, .hero-image-bg, .hero-image-card img { width:100% !important; height:auto !important; max-width:640px; display:block; }

  /* Cards and grids stack vertically */
  .grid-3 { grid-template-columns: 1fr !important; gap:16px; margin: 12px auto; }
  .solutions-grid { grid-template-columns: 1fr !important; gap:14px; }

  /* Case study improved stacking */
  .case-card .case-grid { grid-template-columns: 1fr !important; gap:16px; }
  .case-card .case-accent { display:none; } /* hide vertical accent on phones */

  /* Smaller paddings on cards for mobile */
  .card, .case-card, .overview-card { padding:14px; border-radius:12px; }

  /* CTA area: buttons full width */
  .cta .cta-actions, .case-cta, .hero-ctas { flex-direction: column; align-items:stretch; }
  .cta .btn, .case-cta .btn, .hero-ctas .btn { width:100%; justify-content:center; }

  /* Footer smaller */
  .footer-inner { flex-direction:column; gap:12px; align-items:flex-start; padding: 18px 0; }

  /* Reduce font sizes for long paragraphs */
  p, li { font-size: 15px; }
}

/* Very small phones - reduce headline and spacing */
@media (max-width: 420px) {
  body { padding-top: calc(var(--header-height) + 4px); } /* ensure header won't overlap */
  .header-inner { padding:8px 12px; }
  .brand .logo { height:30px; }
  .hero-copy h1 { font-size:22px; }
  .lead, .subhead { font-size:14px; }
  .btn { font-size:14px; padding:10px 12px; }
  .hl { width:100px; font-size:12px; padding:8px; }
  .media-frame { border-radius:12px; }
}

/* Accessibility: increase tap target for buttons */
@media (max-width: 900px) {
  .btn { min-height:44px; padding-top:12px; padding-bottom:12px; }
}

/* Ensure images never overflow viewport */
img { max-width:100%; height:auto; display:block; }

/* Ensure modals/menus cover the viewport fully on mobile */
.mobile-menu.open { display:flex !important; }

/* Prevent hero overlap due to fixed header — defensive override */
.hero, .hero-section, .page-content { margin-top: 0 !important; padding-top: 16px !important; }

/* Optional: reduce box-shadow intensity on mobile for performance */
@media (max-width: 768px) {
  .card, .case-card, .media-frame { box-shadow: 0 10px 20px rgba(8,40,71,0.05); }
}

/* Final small tweak: stack header actions neatly */
.header-actions { gap:8px; align-items:center; }

/* If you want quick debugging style visible only on mobile devices:
   uncomment to see boundaries during testing */
/*
@media (max-width: 768px) {
  * { outline: 0.5px dashed rgba(255,0,0,0.05); }
}
*/

/* Healthcare Hero Image */
.hero-media {
  width: 100%;
  max-width: 420px;
  height: 260px;
  border-radius: 14px;

  background-image: url("Healthcare.png");
  background-size: cover;
  background-position: center;

  box-shadow: 0 18px 48px rgba(9,30,66,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-media {
    height: 180px;
    max-width: 100%;
  }
}


