/* =========================================
   InsightTech Communications - Static CSS
   ========================================= */

/* Variables */
:root {
    --primary-orange: #F38B1C;
    --primary-orange-hover: #e07a12;
    --dark-bg: #1A1A1A;
    --dark-card: #27272A;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;

    --text-dark: #111827;
    --text-light: #F9FAFB;
    --text-muted: #4B5563;
    --text-muted-dark: #A1A1AA;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-btn: 8px;

    --transition: 0.3s ease;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-muted);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-white {
    color: var(--white) !important;
}

.highlight-text {
    color: var(--primary-orange);
}

.highlight-text-orange {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 139, 28, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo-image {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-orange);
}

/* In the original image the header has dark text items, but it implies a sticky white header or it's over a light background. 
   Wait, the image shows the nav is white text over the hero image, but let's check the original screenshot.
   Screenshot shows logo is dark text, nav is dark text. The hero gradient starts below or is light at top.
   Actually, the screenshot shows the header has a white background. Let's fix that.
*/
.site-header {
    background-color: var(--white);
    position: sticky;
    /* Make it sticky */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.logo-title,
.nav-link,
.phone-link {
    color: var(--text-dark);
}

.nav-link {
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary-orange);
}

.header-contact {
    display: none;
}

@media (min-width: 992px) {
    .header-contact {
        display: block;
    }
}

.phone-link {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
}

.phone-link i {
    color: var(--primary-orange);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-interior {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-dark);
    cursor: pointer;
    margin-bottom: 40px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-contact {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.mobile-phone-link {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Section Shared */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* The Lovable target has a strong orange-to-transparent multi-gradient */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(243, 139, 28, 0.9) 0%, rgba(243, 139, 28, 0.7) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    padding-bottom: 20px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title .highlight-text {
    color: #FFD494;
    /* slightly lighter orange/yellow for contrast on orange bg */
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    background-color: var(--light-bg);
}

.section-intro {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.about-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(243, 139, 28, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.about-icon {
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.about-card-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.about-card-text {
    font-size: 0.95rem;
}

.accreditation-showcase {
    background: linear-gradient(135deg, var(--white) 0%, #FFF5ED 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(243, 139, 28, 0.08);
    border: 1px solid rgba(243, 139, 28, 0.15);
    margin-top: 20px;
    text-align: center;
}

.accreditation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.accreditation-icon-main {
    font-size: 2rem;
    color: var(--primary-orange);
    background: rgba(243, 139, 28, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.accreditation-header h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 0;
}

.accreditation-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.accreditation-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 576px) {
    .accreditation-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .accreditation-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.acc-card {
    background: var(--white);
    padding: 24px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-orange);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.acc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(243, 139, 28, 0.15);
}

.acc-badge {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.acc-number {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: monospace;
    font-weight: 600;
}

/* Services Section */
.services-section {
    background-color: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background-color: var(--dark-card);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 139, 28, 0.3);
}

.service-icon {
    font-size: 1.75rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.service-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-text {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
}

.corporate-card {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .corporate-card {
        grid-column: span 1;
    }
}

.services-footer-text {
    text-align: center;
    color: var(--text-muted-dark);
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(243, 139, 28, 0.15);
    border-color: rgba(243, 139, 28, 0.3);
}

.gallery-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--light-bg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-content {
    padding: 20px;
    text-align: center;
    background-color: var(--white);
    border-top: 3px solid var(--primary-orange);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-icon-wrapper {
    display: none;
}

.gallery-icon {
    display: none;
}

.gallery-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #CC6A00 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Decorative elements for the background */
.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    pointer-events: none;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-subtitle {
    color: #FFD494;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info-block {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-info-block:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-block-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-person {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-person:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.25rem;
    color: #FFD494;
    margin-top: 4px;
}

.person-name {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.person-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: var(--white);
    font-weight: 500;
}

.contact-link:hover {
    color: #FFD494;
}

/* Footer */
.site-footer {
    background-color: var(--dark-card);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted-dark);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-intro {
        font-size: 1rem;
    }
}

/* Lightbox Utility */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    /* Sharper edges for a frame look */
    border: 8px solid var(--white);
    /* White frame */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(243, 139, 28, 0.2);
    /* Deep shadow + subtle orange glow */
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-orange);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -30px;
        right: 10px;
        font-size: 1.5rem;
    }
}