/* ========================================
   LivsKraft Healthcare - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #199A8E;
    --primary-dark: #15776d;
    --secondary-color: #E74C5C;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    --white: #ffffff;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.min-h-screen {
    min-height: 100vh;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-grow {
    flex: 1 1 0%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.header-fixed {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header-fixed.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--gray-100);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.header-fixed.scrolled .nav-content {
    padding: 0.5rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    width: 260px;
    height: 65px;
    object-fit: contain;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.header-fixed.scrolled .logo {
    width: 240px;
    height: 60px;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    color: var(--gray-700);
    cursor: pointer;
    border: none;
    background: transparent;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link span {
    position: relative;
    z-index: 10;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: 9999px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover span,
.nav-link.active span {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(25, 154, 142, 0.3), rgba(21, 119, 109, 0.3));
    border-radius: 9999px;
    filter: blur(24px);
}

/* Services Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.nav-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 18rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item span {
    position: relative;
    z-index: 10;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: linear-gradient(to right, rgba(25, 154, 142, 0.1), rgba(21, 119, 109, 0.1));
    color: var(--primary-color);
}

.dropdown-item.active {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: 0.75rem;
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 154, 142, 0.5);
}

.hamburger {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger-line {
    display: block;
    position: absolute;
    height: 2px;
    width: 1.25rem;
    background: currentColor;
    transition: all 0.3s ease-in-out;
}

.hamburger-line:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger-line:nth-child(2) {
    transform: translateY(0);
}

.hamburger-line:nth-child(3) {
    transform: translateY(6px);
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Navigation */
.nav-mobile {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

@media (min-width: 1024px) {
    .nav-mobile {
        display: none;
    }
}

.nav-mobile.open {
    max-height: 800px;
    opacity: 1;
}

.mobile-menu-content {
    padding: 1rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    margin-top: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    color: var(--gray-700);
    text-align: left;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--white);
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link span {
    position: relative;
    z-index: 10;
}

.mobile-arrow {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.6;
}

/* Mobile Services Menu */
.mobile-services-wrapper {
    margin-bottom: 0.5rem;
}

.mobile-services-arrow {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.mobile-services-wrapper.open .mobile-services-arrow {
    transform: rotate(90deg);
}

.mobile-services-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.mobile-services-wrapper.open .mobile-services-menu {
    max-height: 384px;
    opacity: 1;
}

.mobile-service-link {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.mobile-service-link:hover,
.mobile-service-link.active {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.mobile-service-link.active {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: linear-gradient(to bottom, var(--gray-900), var(--black));
    color: var(--white);
}

.footer-content {
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .footer-content {
        padding: 4rem 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 3rem;
    }
}

.footer-col {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .footer-about {
        grid-column: span 3;
    }

    .footer-col:nth-child(2) {
        grid-column: span 2;
    }

    .footer-col:nth-child(3) {
        grid-column: span 3;
    }

    .footer-contact {
        grid-column: span 4;
    }
}

.footer-logo-wrapper {
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: auto;
    height: 3.5rem;
}

.footer-description {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(25, 154, 142, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 154, 142, 0.3);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    color: var(--white);
    margin: auto;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

@media (min-width: 640px) {
    .footer-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .footer-links li {
        margin-bottom: 0.75rem;
    }
}

.footer-links a {
    color: var(--gray-400);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(25, 154, 142, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
}

.contact-label {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.contact-value {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
}

@media (min-width: 640px) {
    .footer-bottom {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .copyright {
        margin-bottom: 0;
    }
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .certifications {
        gap: 1.5rem;
    }
}

.certification-badge {
    display: flex;
    align-items: center;
}

.cert-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(25, 154, 142, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.cert-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color);
}

.certification-badge span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Page content padding for non-home pages */
.page-content {
    padding-top: 90px;
}

/* Home hero section with proper header spacing */
.home-hero {
    padding-top: 90px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
