/*
Theme Name: CTL Waiting Page V2
Description: A minimalist, high-end 'Luminous & Architectural' landing page.
Author: CTL Theme
Version: 2.0
*/
:root {
    --bg-white: #ffffff;
    --bg-grey: #f5f5f7;
    --text-black: #0a0a0a;
    --text-grey: #555555;
    --accent-blue: #d7eaff;
    --accent-blue-hover: #b5d9ff;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Subtle concrete texture overlay using css gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--bg-grey) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    height: 180px;
    width: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 0 8rem;
    text-align: center;
    background: url('assets/lab-background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

/* Subtle white overlay so the black text remains readable and it feels luminous */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    color: var(--text-black);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--text-grey);
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
}

.highlight {
    color: var(--text-black);
    font-weight: 500;
    position: relative;
    display: inline-block;
    margin-top: 2rem;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease;
}

.hero-section:hover .highlight::after,
.visible .highlight::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Services Grid */
.services-preview {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    padding: 4rem 5% 4rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .services-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        padding: 6rem 5% 2rem;
    }
}

.service-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-bottom var(--transition-fast);
}

.service-col:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.04);
    border-bottom: 2px solid var(--accent-blue);
}

.icon-wrapper {
    width: 240px;
    height: 240px;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.85); /* Industrial precision */
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.service-col:hover .icon-wrapper img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.service-col h3 {
    font-size: 1.15rem;
    letter-spacing: 1px;
    color: var(--text-black);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0 8rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.btn-main {
    display: inline-block;
    background-color: var(--text-black);
    color: var(--bg-white);
    padding: 1.25rem 3.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--text-black);
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-blue);
    z-index: 0;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-main:hover::before {
    width: 100%;
}

.btn-main:hover {
    color: var(--text-black);
    border-color: var(--accent-blue);
}

.btn-main span {
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--text-grey);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    color: var(--text-black);
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-blue);
    color: var(--text-black);
    border-color: var(--accent-blue);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 0;
    }
    .hero-section {
        padding: 8rem 0 4rem;
        background-attachment: scroll;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .cta-section {
        padding: 3rem 0 6rem;
    }
    .icon-wrapper {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }
}
