/* Core Resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica', sans-serif; color: #fff; background-color: #000; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    z-index: 10;
}
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: bold; font-size: 0.9rem; }

/* Logo Styling */
.logo img {
    height: 30px; /* Adjust this height to match the agency's slim look */
    width: auto;  /* Keeps the aspect ratio perfect */
    display: block;
    filter: invert(100) invert(1); /* Forces a black logo to appear white  when you change invert to brigtness (0)*/
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.7;
}

/* Ensure the navbar items stay vertically centered with the logo */
.navbar {
    display: flex;
    align-items: center; /* This centers the logo and nav links vertically */
    justify-content: space-between;
    padding: 30px 50px;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: transparent;
} 


/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://nypost.com/wp-content/uploads/sites/2/2014/11/the_new_new_york.jpg?resize=1536,1024&quality=75&strip=all') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 50px;
}
.hero-content h1 {
    font-family: serif; /* Replace with a bold serif like 'Playfair Display' */
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    max-width: 800px;
}


/* Service Grid Footer */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    bottom: 0;
    width: 100%;
}
.grid-item {
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.grid-item h3 { font-size: 1rem; margin-bottom: 5px; }
.grid-item p { font-size: 0.8rem; color: #ccc; }
.grid-item span { display: block; margin-top: 15px; font-size: 0.7rem; color: #888; }

.info-section {
    display: flex;
    min-height: 100vh;
    background-color: #000; /* Matching the dark aesthetic */
    align-items: center;
}

.info-image, .info-text {
    flex: 1; /* Gives each side exactly 50% width */
    height: 100vh;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the area without stretching */
    filter: grayscale(100%); /* Replicates the black-and-white photo style */
}

.info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 8%; /* Large padding for an editorial "breathing" feel */
}

.info-text h2 {
    font-family: serif;
    font-size: 4rem;
    margin-bottom: 2rem;
}

.info-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #efefef;
    max-width: 500px;
}

/* Mobile Responsive: Stack them on top of each other */
@media (max-width: 768px) {
    .info-section { flex-direction: column; }
    .info-image, .info-text { height: auto; }
}

.services-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    background-color: #000;
    color: #fff;
    padding: 60px 40px;
    border-top: 1px solid #333;
}

.service-item {
    padding: 40px;
    border-left: 1px solid #333; /* Vertical lines */
    border-bottom: 1px solid #333; /* Horizontal lines */
    min-height: 300px;
}

/* Remove left border for the first item in every row to keep it clean */
.service-item:nth-child(3n+1) {
    border-left: none;
}

/* Main Header Styling */
.main-header h2 {
    font-family: serif;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
}

.main-header p {
    font-size: 1.1rem;
    max-width: 250px;
}

/* Individual Service Styling */
.service-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 60px; /* Large gap before text as seen in image */
}

.service-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #999; /* Dimmer text for description */
}

/* Responsive for Tablets/Phones */
@media (max-width: 900px) {
    .services-section { grid-template-columns: 1fr; }
    .service-item { border-left: none; }
}

.join-team-section {
    height: 100vh; /* Full screen height */
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://candt-com-production-cms.imgix.net/images/Screen-Shot-2019-10-15-at-10.34.55-AM.png?w=2000&sat=-100&invert=false&bri=0&auto=compress%2Cenhance%2Cformat&dpr=1&ixlib=react-9.10.0') no-repeat center center;
    background-size: cover;
    filter: grayscale(100%); /* Black and white effect */
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.join-content {
    max-width: 500px;
    color: #fff;
    z-index: 2;
}

.join-content h1 {
    font-family: serif; /* Use a bold serif font like 'Playfair Display' */
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.join-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.cta-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cta-link:hover {
    border-bottom-color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .join-team-section { height: 70vh; padding: 0 5%; }
}


.contact-footer {
    background-color: #000;
    color: #fff;
    padding: 80px 50px;
    font-family: 'Helvetica', sans-serif; /* For the sans-serif parts */
}

.footer-header h1 {
    font-family: serif; /* Matches the 'Get in Touch' elegant style */
    font-size: 4rem;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* First column is slightly wider */
    gap: 30px;
}

.footer-col {
    border-top: 1px solid #333;
    padding-top: 25px;
}

.footer-col h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.footer-col address, 
.footer-col a {
    font-style: normal;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    display: block;
}

.footer-col a:hover {
    text-decoration: underline;
}

.careers-link {
    font-weight: bold;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-header h1 { font-size: 2.5rem; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}


/* Position the hero relatively so the bottom nav pins to it */
.hero-section {
    position: relative; 
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    background: rgba(0, 0, 0, 0.0); /* Semi-transparent black */
    backdrop-filter: blur(0px); /* 2026 Modern glass effect */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tile {
    padding: 30px 40px;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-tile:last-child { border-right: none; }

.nav-tile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tile-label {
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.tile-desc {
    font-size: 0.75rem;
    color: #ccc;
    margin-bottom: 15px;
}

.tile-num {
    font-size: 0.7rem;
    color: #888;
    margin-top: auto; /* Pushes number to the very bottom of the tile */
}

/* Responsive: Hide or stack on small screens */
@media (max-width: 800px) {
    .hero-bottom-nav { grid-template-columns: repeat(2, 1fr); }
}


/* --- NEW INTERACTION STYLES 2026 --- */

/* State before the user scrolls to the section */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none; /* Prevents clicking things before they appear */
}

/* State triggered by JavaScript when section enters the screen */
.is-visible {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
}

/* Navbar look when scrolling down */
.navbar-scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    padding: 15px 50px !important;
    backdrop-filter: blur(10px); /* Modern glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* --- HOVER & TRANSITION DEFS --- */

/* 1. Service Grid Hover (The 01, 02, 03 blocks) */
.nav-tile, .service-item {
    transition: background 0.2s ease, transform 0.4s cubic-bezier(0.2, 3, 0.3, 5);
    cursor: pointer;
}

.nav-tile:hover, .service-item:hover {
    background: rgba(255, 255, 255, 0.05); /* Subtle glow */
    transform: translateY(-5px); /* Gentle lift */
}

/* 2. Text Link Hover (The editorial style) */
.info-text p, .footer-col a {
    transition: opacity 0.3s ease, color 0.3s ease;
}

.info-text p:hover {
    color: #ffffff;
    opacity: 1;
}

/* 3. Ensure the Reveal doesn't block Hovers */
.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* CRITICAL: This allows clicking/hovering after reveal */
}
