/* =========================================================
   SANG PHARMA — Enterprise Pharmacy UI
   Shared stylesheet for index.html, aboutus.html, contact.html
   ========================================================= */

:root {
    /* Brand */
    --navy-900: #0a2540;
    --navy-800: #0f3557;
    --navy-700: #174a75;
    --green-700: #237a33;
    --green-600: #2f8f3a;
    --green-500: #46ac46;
    --blue-600: #2c76a6;
    --blue-500: #3c8cbb;

    /* Neutrals */
    --ink: #0f1b2a;
    --text: #344254;
    --muted: #5b6878;
    --border: #e2e8ef;
    --border-strong: #cfd8e3;
    --surface: #ffffff;
    --surface-alt: #f4f7fa;
    --surface-tint: #eef6f0;

    /* System */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 27, 42, .06);
    --shadow: 0 4px 16px rgba(15, 27, 42, .07);
    --shadow-lg: 0 12px 32px rgba(15, 27, 42, .10);
    --container: 1240px;
    --gutter: 24px;
    --header-h: 76px;
    --font: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy-700); }
strong, b { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 2px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------------------------------------------------------
   Top utility bar
   --------------------------------------------------------- */
.topbar {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}
.topbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    min-height: 38px;
}
.topbar a, .topbar span { color: rgba(255, 255, 255, .78); display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--green-500); font-size: 12px; }

/* ---------------------------------------------------------
   Header / navigation
   --------------------------------------------------------- */
header#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
}
header#header.scrolled { box-shadow: var(--shadow); }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo { display: flex; align-items: center; cursor: pointer; }
.logo img { height: 56px; width: auto; }

nav#nav ul { list-style: none; display: flex; align-items: center; gap: 8px; }

nav#nav a {
    display: block;
    position: relative;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    border-radius: var(--radius-sm);
}
nav#nav a::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: -17px;
    height: 3px;
    background: var(--green-600);
    transform: scaleX(0);
    transition: transform .25s ease;
}
nav#nav a:hover { color: var(--green-700); background: var(--surface-alt); }
nav#nav a.active { color: var(--green-700); }
nav#nav a.active::after { transform: scaleX(1); }

.mobile-menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: #1b6328; color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn i { font-size: 13px; }

/* ---------------------------------------------------------
   Sections & headings
   --------------------------------------------------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-tight { padding: 64px 0; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -.01em;
}
.section-head h2::after {
    content: '';
    display: block;
    width: 48px; height: 3px;
    margin-top: 18px;
    background: var(--green-600);
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 18px; font-size: 17px; color: var(--muted); }

/* ---------------------------------------------------------
   Home hero
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: #f1f1f1 url('../img/banner/banner4.png') right center / cover no-repeat;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 38%, rgba(255,255,255,0) 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 600px; padding: 72px 0; }

.hero h1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green-700);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.hero h1::before { content: ''; width: 32px; height: 2px; background: var(--green-600); }
.hero h2 {
    font-size: 50px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -.02em;
    margin-bottom: 22px;
}
.hero p { font-size: 18px; color: var(--text); margin-bottom: 34px; }

/* ---------------------------------------------------------
   Inner page hero
   --------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 96px 0 88px;
    color: #fff;
    background-color: var(--navy-800);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,37,64,.92) 0%, rgba(10,37,64,.75) 45%, rgba(10,37,64,.25) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
    max-width: 640px;
}
.page-hero h1::after {
    content: '';
    display: block;
    width: 48px; height: 3px;
    margin-top: 20px;
    background: var(--green-500);
}
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    list-style: none;
    font-size: 14px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,.45); }
.breadcrumb [aria-current] { color: #fff; font-weight: 500; }

.page-hero--about { background-image: url('../img/banner/bg_aboutus4.jpg'); background-position: center 30%; }
.page-hero--contact { background-image: url('../img/banner/bg_lh2.png'); background-position: right center; }

/* ---------------------------------------------------------
   Cards: services (home)
   --------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.service-card::before {
    content: '';
    position: absolute; top: -1px; left: -1px; right: -1px;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--green-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.icon-tile {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    background: var(--surface-tint);
    color: var(--green-700);
    font-size: 22px;
    margin-bottom: 24px;
}
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; line-height: 1.35; }
.service-card p { font-size: 15.5px; color: var(--muted); }

/* ---------------------------------------------------------
   Home: welcome / about split
   --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.media-stack { position: relative; padding: 0 64px 64px 0; }
.media-stack .media-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    background: var(--surface-alt);
}
.media-stack .media-main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack .media-sub {
    position: absolute; right: 0; bottom: 0;
    width: 46%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 6px solid var(--surface);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}
.media-stack .media-sub img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 {
    font-size: 34px; font-weight: 700; color: var(--navy-900); line-height: 1.25; margin-bottom: 20px;
}
.about-text h2::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 18px; background: var(--green-600); }
.about-text > p { font-size: 16.5px; color: var(--text); margin-bottom: 24px; }

.check-list { list-style: none; margin-bottom: 32px; }
.check-list li {
    position: relative;
    padding: 12px 0 12px 36px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0; top: 14px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    color: #fff;
    background: var(--green-600);
    border-radius: 50%;
}

/* ---------------------------------------------------------
   Partners slider
   --------------------------------------------------------- */
.partners-slider {
    position: relative;
    overflow: hidden;
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.partners-slider:active { cursor: grabbing; }
.slider-track { display: flex; gap: 20px; user-select: none; will-change: transform; padding: 6px 0; }

.partner-card {
    flex-shrink: 0;
    width: 200px; height: 112px;
    display: flex; align-items: center; justify-content: center;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.partner-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.partner-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.partner-logo img {
    max-height: 64px; max-width: 100%; width: auto; object-fit: contain;
    pointer-events: none;
}

/* ---------------------------------------------------------
   About page
   --------------------------------------------------------- */
.lead-block {
    display: grid; grid-template-columns: 4px 1fr; gap: 32px;
    max-width: 980px;
}
.lead-block::before { content: ''; background: var(--green-600); border-radius: 2px; }
.lead-block p { font-size: 17px; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.lead-block p:first-child { font-size: 20px; line-height: 1.6; color: var(--navy-900); font-weight: 500; }
.lead-block p:last-child { margin-bottom: 0; }
.lead-block strong { color: var(--green-700); }

.stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat { padding: 36px 32px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat i { color: var(--green-700); font-size: 20px; margin-bottom: 18px; display: block; }
.stat .stat-number { font-size: 34px; font-weight: 700; color: var(--navy-900); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 8px; }
.stat .stat-text { font-size: 15px; color: var(--muted); }

.solution-feature {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
    padding: 48px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 72px;
}
.solution-feature img { max-height: 380px; width: auto; margin: 0 auto; }
.solution-feature h3 { font-size: 26px; font-weight: 700; color: var(--navy-900); margin-bottom: 14px; }
.solution-feature p { font-size: 17px; color: var(--text); }

.service-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    padding: 56px 0;
    border-top: 1px solid var(--border);
}
.service-row:first-of-type { border-top: 0; padding-top: 0; }
.service-row:last-child { padding-bottom: 0; }
.service-row.reverse .service-media { order: 2; }

.service-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-alt); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.service-body h3 {
    display: flex; align-items: center; gap: 14px;
    font-size: 24px; font-weight: 700; color: var(--navy-900); line-height: 1.3;
    margin-bottom: 22px;
}
.service-body h3 .icon-tile { margin: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 19px; }

.tick-list { list-style: none; display: grid; gap: 2px; }
.tick-list li {
    position: relative;
    padding: 9px 0 9px 30px;
    color: var(--text);
    font-size: 16px;
}
.tick-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; left: 0; top: 10px;
    font-size: 13px;
    color: var(--green-600);
}

.network { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.network .section-head { margin-bottom: 0; }
.network-media {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.network-media img { width: 100%; max-height: 420px; object-fit: contain; }

.mission { background: var(--navy-900); color: rgba(255,255,255,.85); }
.mission .section-head h2 { color: #fff; }
.mission .section-head h2::after { background: var(--green-500); }
.mission-quote {
    font-size: 24px; line-height: 1.5; font-weight: 600; color: #fff;
    padding: 28px 32px;
    border-left: 3px solid var(--green-500);
    background: rgba(255,255,255,.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 32px;
}
.mission-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; font-size: 17px; line-height: 1.8; }
.mission-body b { color: #fff; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel + .panel { margin-top: 24px; }
.panel-head {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}
.panel-head .icon-tile { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 18px; }
.panel-head h2 { font-size: 19px; font-weight: 700; color: var(--navy-900); line-height: 1.35; }
.panel-head .en { display: block; font-size: 14px; font-weight: 400; font-style: italic; color: var(--muted); margin-top: 2px; }
.panel-body { padding: 24px 28px 28px; }
.panel-body p { margin-bottom: 12px; }
.panel-body .en { font-style: italic; color: var(--muted); }

.panel--alert .panel-head { background: #fff6f4; border-bottom-color: #f6dcd6; }
.panel--alert .panel-head .icon-tile { background: #fde8e3; color: #b3381f; }

.info-list { list-style: none; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.info-list li {
    display: grid; grid-template-columns: 220px 1fr; gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    font-size: 15px;
}
.info-list li:first-child { border-top: 0; }
.info-list .label { color: var(--muted); font-weight: 500; }
.info-list .label i { color: var(--green-700); width: 18px; margin-right: 6px; }
.info-list .value { color: var(--ink); font-weight: 600; }
.info-list .value a { color: var(--ink); }
.info-list .value a:hover { color: var(--green-700); }

.care-center {
    margin-top: 24px; padding: 10px 16px;
    text-align: center;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--navy-800);
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
}

.office-card {
    display: flex; gap: 18px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.office-card + .office-card { margin-top: 16px; }
.office-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.office-card .icon-tile { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 18px; }
.office-card h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.office-card p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.office-card p a { color: var(--muted); }
.office-card p a:hover { color: var(--green-700); }
.office-card.primary { border-left: 3px solid var(--green-600); }

.map-frame {
    margin-top: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
footer.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: 15px; }
.footer-main {
    display: grid; grid-template-columns: 2fr 1fr; gap: 48px;
    padding: 64px 0 48px;
}
.footer-brand h3 { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .02em; margin-bottom: 20px; line-height: 1.45; }
.footer-info { list-style: none; display: grid; gap: 12px; }
.footer-info li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.footer-info i { color: var(--green-500); margin-top: 5px; font-size: 14px; }
.footer-info a { color: rgba(255,255,255,.72); }
.footer-info a:hover { color: #fff; }

.footer-nav h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,.72); }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0;
    font-size: 13.5px;
    color: rgba(255,255,255,.55);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .split, .network { gap: 48px; }
    .contact-layout { grid-template-columns: 1fr; }
    .info-list li { grid-template-columns: 200px 1fr; }
}

@media (max-width: 860px) {
    :root { --header-h: 68px; }

    .topbar .container { justify-content: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
    .topbar .hide-sm { display: none; }

    .logo img { height: 48px; }
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

    nav#nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 8px var(--gutter) 16px;
    }
    nav#nav.active { display: block; }
    nav#nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    nav#nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
    nav#nav li:last-child a { border-bottom: 0; }
    nav#nav a::after { display: none; }
    nav#nav a.active { box-shadow: inset 3px 0 0 var(--green-600); padding-left: 14px; }

    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .section-head h2, .about-text h2 { font-size: 28px; }

    .hero { min-height: 0; background-position: 70% center; }
    .hero::before { background: rgba(255,255,255,.88); }
    .hero-content { padding: 64px 0; }
    .hero h2 { font-size: 36px; }
    .hero p { font-size: 16.5px; }

    .page-hero { padding: 64px 0 56px; }
    .page-hero::before { background: rgba(10,37,64,.82); }
    .page-hero h1 { font-size: 32px; }

    .card-grid, .split, .network, .solution-feature, .service-row, .mission-body, .footer-main { grid-template-columns: 1fr; }
    .split { gap: 40px; }
    .media-stack { padding: 0 40px 40px 0; max-width: 560px; }

    .solution-feature { padding: 28px; gap: 28px; margin-bottom: 48px; }
    .service-row { gap: 28px; padding: 40px 0; }
    .service-row.reverse .service-media { order: 0; }
    .service-body h3 { font-size: 21px; }
    .mission-quote { font-size: 19px; padding: 20px 22px; }
    .mission-body { gap: 16px; }

    .lead-block { grid-template-columns: 3px 1fr; gap: 20px; }
    .lead-block p:first-child { font-size: 18px; }

    .partner-card { width: 150px; height: 88px; padding: 12px 16px; }
    .partner-logo img { max-height: 48px; }

    .footer-main { gap: 36px; padding: 48px 0 36px; }
}

@media (max-width: 560px) {
    :root { --gutter: 16px; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-left: 0; padding: 26px 22px; }
    .stat + .stat { border-top: 1px solid var(--border); }
    .stat .stat-number { font-size: 28px; }
    .hero h2 { font-size: 30px; }
    .page-hero h1 { font-size: 28px; }
    .service-card { padding: 28px 22px; }
    .panel-head, .panel-body { padding-left: 20px; padding-right: 20px; }
    .info-list li { grid-template-columns: 1fr; gap: 2px; }
    .map-frame iframe { height: 320px; }
    .btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------
   Motion & interaction
   --------------------------------------------------------- */
:root { --ease-out: cubic-bezier(.22, .61, .36, 1); }

/* Scroll reveal (classes added by main.js, so no-JS stays visible) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.reveal-left  { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.reveal-zoom  { transform: scale(.96); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-content > *,
.page-hero .container > * { animation: fadeUp .8s var(--ease-out) both; }
.hero-content > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
.hero h1::before { transform-origin: left; animation: lineGrow .6s .3s var(--ease-out) both; }
.page-hero h1::after { transform-origin: left; animation: lineGrow .6s .5s var(--ease-out) both; }

/* Section heading underline grows when revealed */
.section-head.reveal h2::after,
.about-text.reveal h2::after { transform: scaleX(0); transition: transform .6s .25s var(--ease-out); }
.section-head.reveal h2::after { transform-origin: left; }
.section-head.center.reveal h2::after { transform-origin: center; }
.about-text.reveal h2::after { transform-origin: left; }
.section-head.is-visible h2::after,
.about-text.is-visible h2::after { transform: scaleX(1); }

/* Buttons */
.btn { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn i { transition: transform .25s var(--ease-out); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(35, 122, 51, .25); }

/* Nav */
nav#nav a { transition: color .2s ease, background .2s ease; }
.header-content { transition: height .25s var(--ease-out); }
.logo img { transition: height .25s var(--ease-out), transform .25s ease; }
header#header.scrolled .header-content { height: 64px; }
header#header.scrolled .logo img { height: 46px; }
.logo:hover img { transform: scale(1.04); }

/* Icon tiles */
.icon-tile { transition: background .25s ease, color .25s ease, transform .35s var(--ease-out); }
.service-card:hover .icon-tile,
.office-card:hover .icon-tile { background: var(--green-700); color: #fff; transform: translateY(-2px); }
.panel--alert:hover .panel-head .icon-tile { background: #b3381f; color: #fff; }

/* Images */
.media-stack .media-main img,
.media-stack .media-sub img,
.service-media img { transition: transform .8s var(--ease-out); }
.media-stack:hover .media-main img { transform: scale(1.04); }
.media-stack .media-sub { transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.media-stack:hover .media-sub { transform: translate(-6px, -6px); }
.service-row:hover .service-media img { transform: scale(1.05); }
.network-media img, .solution-feature img { transition: transform .6s var(--ease-out); }
.network-media:hover img, .solution-feature:hover img { transform: scale(1.02); }

/* Lists */
.check-list li, .tick-list li { transition: transform .25s var(--ease-out), color .2s ease; }
.check-list li:hover, .tick-list li:hover { transform: translateX(4px); color: var(--ink); }

/* Stats */
.stat { transition: background .25s ease; }
.stat:hover { background: var(--surface-alt); }
.stat i { transition: transform .35s var(--ease-out); }
.stat:hover i { transform: translateY(-3px) scale(1.1); }

/* Partners */
.partner-card { transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out); }
.partner-card:hover { transform: translateY(-4px); }
.partner-logo img { transition: transform .3s var(--ease-out); }
.partner-card:hover .partner-logo img { transform: scale(1.06); }

/* Contact */
.panel { transition: box-shadow .25s ease, border-color .25s ease; }
.panel:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.info-list li { transition: background .2s ease; }
.info-list li:hover { background: var(--surface-alt); }
.office-card { transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out); }
.office-card:hover { transform: translateX(4px); }

/* Footer links */
.footer-nav a, .footer-info a { transition: color .2s ease, padding-left .2s ease; }
.footer-nav a:hover { padding-left: 4px; }

/* Back to top */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 900;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius);
    background: var(--navy-800); color: #fff;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s ease, transform .3s var(--ease-out), visibility .3s, background .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--green-700); }

/* Mobile menu slide */
@media (max-width: 860px) {
    nav#nav.active { animation: fadeUp .25s var(--ease-out) both; }
    header#header.scrolled .header-content { height: var(--header-h); }
    header#header.scrolled .logo img { height: 48px; }
}

/* Touch devices: no hover lifts */
@media (hover: none) {
    .service-card:hover, .partner-card:hover, .office-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
