/* ==========================================================================
   Lineika BG — Medical Transport Website
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-primary: #0066CC;
    --color-primary-dark: #004C99;
    --color-primary-light: #E8F2FF;
    --color-accent: #DC2626;
    --color-accent-dark: #B91C1C;
    --color-white: #FFFFFF;
    --color-bg: #F8FAFC;
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-border: #E2E8F0;
    --color-success: #16A34A;

    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --container-max: 1200px;
    --header-height: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --transition: .3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--color-primary); color: var(--color-white);
    padding: .5rem 1rem; border-radius: var(--radius-sm);
    z-index: 10000; font-weight: 600;
}
.skip-link:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.section-header p { font-size: 1.1rem; color: var(--color-text-light); max-width: 600px; margin: 0 auto; }
.section-label {
    display: inline-block; font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--color-primary); margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.75rem; font-size: 1rem; font-weight: 600;
    border-radius: var(--radius-sm); border: 2px solid transparent;
    cursor: pointer; transition: all var(--transition); text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--color-white); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220,38,38,.3); }
.btn-outline { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); transform: translateY(-2px); }
.btn-blue { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn-blue:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* ---------- Logo ---------- */
.logo-img { height: 50px; max-height: 50px; width: auto; max-width: 180px; object-fit: contain; }
.logo-text-mobile {
    display: none; font-size: 1.05rem; font-weight: 800; color: var(--color-primary);
    letter-spacing: -.02em; line-height: 1.1;
}
.logo-text-mobile span { color: var(--color-accent); }
.footer-logo-img { height: 50px; width: auto; object-fit: contain; filter: brightness(1.1); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border); z-index: 1000;
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.3rem; font-weight: 800; color: var(--color-text); z-index: 1001;
}
.logo:hover { color: var(--color-text); }
.logo-accent { color: var(--color-primary); }

.nav-list { display: flex; gap: 2rem; }
.nav-link { position: relative; font-weight: 500; color: var(--color-text); padding: .25rem 0; }
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--color-primary); transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-cta { padding: .55rem 1.25rem; font-size: .9rem; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 32px; background: none; border: none; cursor: pointer; z-index: 1001; padding: 0;
}
.hamburger-line { display: block; width: 24px; height: 2px; background: var(--color-text); transition: all var(--transition); border-radius: 2px; }
.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }
.nav-overlay.active { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #003D7A 0%, #0066CC 50%, #0080FF 100%);
    color: var(--color-white); overflow: hidden; padding-top: var(--header-height);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.05) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-image-side {
    position: absolute; top: 0; right: 0; width: 45%; height: 100%; z-index: 1; overflow: hidden;
}
.hero-image-side::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #0066CC 0%, rgba(0,102,204,.6) 30%, transparent 70%);
    z-index: 2;
}
.hero-image-side img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-pattern {
    position: absolute; top: 0; right: 0; width: 50%; height: 100%; opacity: .06; pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.5) 40px, rgba(255,255,255,.5) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.5) 40px, rgba(255,255,255,.5) 41px);
}

.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 3rem 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
    padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-badge-dot { width: 8px; height: 8px; background: #22C55E; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 500; opacity: .9; margin-bottom: 1rem; }
.hero-text { font-size: 1.05rem; opacity: .85; line-height: 1.7; margin-bottom: 2rem; max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; }
.hero-stat span { font-size: .85rem; opacity: .7; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 2rem; transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-primary); }
.service-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); background: var(--color-primary-light); color: var(--color-primary); margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; color: var(--color-text-light); line-height: 1.6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; background: var(--color-primary-light); box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-image-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), #D4E8FF);
    color: var(--color-primary); text-align: center; padding: 2rem;
}
.about-image-placeholder svg { margin-bottom: 1rem; }
.about-image-placeholder span { font-size: .9rem; font-weight: 500; opacity: .7; }

.about-content h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 1.25rem; }
.about-content p { color: var(--color-text-light); margin-bottom: 1rem; line-height: 1.7; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.about-feature { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .95rem; }
.about-feature svg { flex-shrink: 0; color: var(--color-success); }

/* ---------- Why Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.why-card {
    text-align: center; padding: 2.5rem 1.5rem; background: var(--color-white);
    border-radius: var(--radius); border: 1px solid var(--color-border); transition: all var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon {
    width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); margin: 0 auto 1.25rem;
}
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.why-card p { font-size: .9rem; color: var(--color-text-light); }

/* ---------- CTA Banner ---------- */
.cta-banner { background: linear-gradient(135deg, #003D7A, #0066CC); color: var(--color-white); padding: 4rem 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; margin-bottom: .75rem; }
.cta-banner p { font-size: 1.1rem; opacity: .85; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.cta-phone {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.15); padding: .6rem 1.25rem; border-radius: var(--radius-sm);
    font-size: 1.1rem; font-weight: 700; color: var(--color-white);
}
.cta-phone:hover { background: rgba(255,255,255,.25); color: var(--color-white); }

/* ---------- Social Homes ---------- */
.social-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center;
}
.social-image {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.social-image img {
    width: 100%; height: auto; display: block;
}
.social-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 1.25rem;
}
.social-content p {
    color: var(--color-text-light); margin-bottom: 1rem; line-height: 1.7;
}
.social-highlight {
    color: var(--color-text); font-weight: 600; font-style: italic;
    border-left: 3px solid var(--color-primary); padding-left: 1rem; margin: 1.5rem 0;
}
.social-content .btn { margin-top: .5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 1rem; }
.contact-info > p { color: var(--color-text-light); margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon {
    flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: var(--color-primary-light); color: var(--color-primary); border-radius: var(--radius-sm);
}
.contact-item-text h3 { font-size: 1rem; font-weight: 600; margin-bottom: .15rem; }
.contact-item-text p, .contact-item-text a { color: var(--color-text-light); font-size: .95rem; }
.contact-item-text a:hover { color: var(--color-primary); }
.contact-cta { margin-top: 2rem; }

.contact-form-wrapper {
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm);
}
.contact-form-wrapper h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: .75rem 1rem; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem;
    transition: border-color var(--transition); background: var(--color-bg);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,102,204,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ---------- Footer ---------- */
.site-footer { background: #0F172A; color: #CBD5E1; padding: 4rem 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo .logo-text { color: var(--color-white); }
.footer-desc { font-size: .9rem; line-height: 1.6; opacity: .7; }
.site-footer h3 { color: var(--color-white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul li a { color: #94A3B8; font-size: .9rem; transition: color var(--transition); }
.site-footer ul li a:hover { color: var(--color-white); }
.footer-contact ul li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #94A3B8; }
.footer-contact svg { flex-shrink: 0; opacity: .5; }
.footer-bottom { text-align: center; padding: 1.5rem 0; font-size: .85rem; opacity: .5; }

/* ---------- Sticky Mobile Call Button ---------- */
.mobile-call-btn {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-accent); color: var(--color-white); padding: 1rem;
    text-align: center; font-size: 1rem; font-weight: 700; z-index: 999;
    align-items: center; justify-content: center; gap: .5rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.mobile-call-btn:hover { color: var(--color-white); background: var(--color-accent-dark); }

/* ---------- Animations ---------- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-image-side { width: 40%; opacity: .4; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; max-height: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--color-white); padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
        box-shadow: var(--shadow-lg); transition: right var(--transition); z-index: 1000; overflow-y: auto;
    }
    .main-nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { display: block; padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); }
    .nav-link::after { display: none; }
    .header-cta { display: none; }

    .hero { min-height: auto; padding-top: calc(var(--header-height) + 2rem); padding-bottom: 3rem; }
    .hero-image-side { display: none; }
    .logo-img { height: 44px; max-height: 44px; max-width: 160px; }
    .logo-text-mobile { display: inline; }
    .social-grid { grid-template-columns: 1fr; }
    .social-image { order: -1; max-height: 500px; overflow: hidden; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat strong { font-size: 1.35rem; }
    .services-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .mobile-call-btn { display: flex; }
    .site-footer { padding-bottom: 4.5rem; }
    .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .logo-img { height: 40px; max-height: 40px; max-width: 150px; }
    .social-image { max-height: 400px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .why-grid { grid-template-columns: 1fr; }
    .cta-phones { flex-direction: column; align-items: center; }
    .contact-form-wrapper { padding: 1.5rem; }
    .about-image { aspect-ratio: 16/10; }
    .footer-logo-img { height: 50px; }
}
