/*
Theme Name: OnCall HR & IT Services
Theme URI: https://oncallhrit.in
Author: Antigravity AI
Author URI: https://antigravity.google
Description: Premium Custom Theme for OnCall HR and IT Solutions.
Version: 1.1.1
Text Domain: oncall-hr-it
*/

/* --- Design Variables --- */
:root {
    --primary-color: #0f172a;
    /* Dark Indigo */
    --secondary-color: #2563eb;
    /* Professional Blue */
    --accent-color: #0ea5e9;
    /* Sky Blue Accent */
    --success-color: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: rgba(226, 232, 240, 0.8);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Layout --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    display: block;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    color: var(--primary-color);
}

.section-divider {
    height: 4px;
    width: 60px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Header & Navigation --- */
.site-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-branding {
    flex-shrink: 0;
    max-width: 280px;
}

.site-branding img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-title-home {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    padding: 8px 0;
    display: inline-block;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn--header {
    padding: 10px 24px;
    font-size: 13px;
    background: var(--primary-color);
    color: white;
}

.btn--header:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* --- Hamburger Menu Style --- */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::after,
.hamburger-inner::before {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 4px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner::before {
    content: "";
    top: -8px;
}

.hamburger-inner::after {
    content: "";
    bottom: -8px;
}

body.is-menu-open .hamburger-inner {
    background: transparent;
}

body.is-menu-open .hamburger-inner::before {
    transform: rotate(45deg);
    top: 0;
    background: white;
}

body.is-menu-open .hamburger-inner::after {
    transform: rotate(-45deg);
    bottom: 0;
    background: white;
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1005;
}

body.is-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* --- Shared Mobile/Tablet Styles (< 1024px) --- */
@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: var(--primary-color);
        padding: 120px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1008;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    body.is-menu-open .main-navigation {
        right: 0;
    }

    .main-navigation ul {
        display: flex !important;
        /* Force display when in drawer */
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-navigation a:hover {
        color: var(--accent-color);
        padding-left: 5px;
    }

    .desktop-only {
        display: none;
    }

    .header-right {
        gap: 15px;
    }
}

/* Small Devices Fine Tuning */
@media (max-width: 767px) {
    .site-header {
        height: 70px;
    }

    .logo-text {
        font-size: 22px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-btns {
        flex-direction: column;
    }
}

/* --- Button Styling --- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    cursor: pointer;
}

.btn--primary {
    background: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn--outline {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn--outline:hover {
    background: var(--bg-white);
    color: var(--secondary-color);
}

/* --- Hero Banner (Fold 1) --- */
.home-hero {
    margin-top: 0;
    height: 100vh;
    width: 100%;
}

.main-hero-slider {
    height: 100%;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}

.swiper-slide-active .hero-image {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    max-width: 800px;
}

.hero-tagline {
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease backwards;
}

.hero-content h1 {
    font-size: 68px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* Slider Controls */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 1;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 12px;
    background: var(--accent-color);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

/* --- What We Do (Fold 2) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    padding: 48px 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-radius: 20px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--secondary-color);
    color: white;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 20px;
    color: var(--primary-color);
    min-height: 50px;
    /* Ensure alignment for multi-line titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

/* Ensure Font Awesome displays correctly */
.fas,
.fab,
.fa-solid,
.fa-brands {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.learn-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Latest Services Slider (Fold 3) --- */
.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-controls>div {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls>div:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-thumb {
    height: 240px;
    overflow: hidden;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-thumb img {
    transform: scale(1.1);
}

.service-details {
    padding: 24px;
}

.service-details h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.event-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.service-card:hover .event-meta {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.event-meta i {
    font-size: 14px;
}

.service-card:hover .event-meta i {
    color: white;
}

.meta-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.meta-value {
    font-weight: 600;
}

.service-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.btn--small {
    padding: 10px 20px;
    font-size: 12px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 100px 0 40px;
}

.footer-container {
    text-align: center;
}

.site-info p {
    margin-bottom: 20px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Page Hero --- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.page-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Contact Page --- */
.contact-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-card p,
.contact-card a {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.form-container h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 28px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group.row {
    display: flex;
    gap: 20px;
}

.contact-form .col {
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.map-section {
    line-height: 0;
}

/* --- About Page --- */
.about-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image-stack {
    flex: 1;
    position: relative;
}

.about-image-stack .main-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.experience-badge .years {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.about-content {
    flex: 1.2;
}

.lead-text {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.mission-vision {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mv-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.mv-item .icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.mv-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Masonry Gallery --- */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    color: white;
    padding: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content i {
    font-size: 32px;
    margin-bottom: 10px;
}

.overlay-content h3 {
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .masonry-grid {
        column-count: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 991px) {
    .about-flex {
        flex-direction: column;
        gap: 80px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .site-header {
        height: 70px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .main-navigation ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }
}