/*
Theme Name: Eblana Coming Soon
Theme URI: https://eblanaassociates.com
Author: Eblana Associates
Description: Tema Coming Soon oficial de Eblana Associates.
Version: 3.0
Text Domain: eblana-coming-soon
*/

/* =============================================
   GOOGLE FONTS — loaded via functions.php
   Cormorant Garamond (display) + Montserrat (body)
   ============================================= */

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* =============================================
   NAVBAR — siempre oscuro, elegante
   ============================================= */
.navbar-cs {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 68px;
    padding: 0 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* WordPress admin bar — el navbar fijo se posiciona debajo de la admin bar.
   WordPress aplica margin-top:32px al <html> automáticamente; ese offset
   ya suma con el margin-top:68px de los heroes, por eso NO se anula. */
.admin-bar .navbar-cs { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .navbar-cs { top: 46px; }
}

/* Base top offset para elementos que empiezan la página */
.cst-page-start { margin-top: 68px; }
.navbar-cs.transparent {
    background: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0));
}
.navbar-cs.solid {
    background: #111;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.navbar-cs .logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.nav-links {
    display: flex;
    gap: 38px;
    list-style: none;
}
.nav-links a {
    font-size: 9.5px;
    font-weight: 300;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(245,242,237,0.65);
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links li.active a { color: #f5f2ed; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block; width: 22px; height: 1px;
    background: #f5f2ed;
}

@media (max-width: 768px) {
    .navbar-cs { padding: 0 20px; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        background: #0d0d0d;
        padding: 28px 24px;
        gap: 22px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 11px; color: rgba(245,242,237,0.75); }
}

/* =============================================
   FRONT PAGE — Coming Soon
   ============================================= */
.cs-wrap {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
}
.cs-bg {
    position: absolute; inset: 0;
    background: url('images/hero.jpg') center center / cover no-repeat;
    filter: brightness(0.38);
    transform: scale(1.06);
    animation: csZoom 24s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
@keyframes csZoom {
    0%   { transform: scale(1.06); filter: brightness(0.28); }
    100% { transform: scale(1.00); filter: brightness(0.40); }
}
.cs-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, transparent 38%),
        linear-gradient(to top,    rgba(0,0,0,0.62) 0%, transparent 44%);
}

/* Content centered */
.cs-content {
    position: relative; z-index: 10;
    height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 0 40px;
    gap: 0;
}

/* Tres puntos pulsantes — waiting */
.cs-waiting {
    display: flex;
    gap: 10px;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}
.cs-waiting span {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(245,242,237,0.35);
    animation: pulse 2.4s ease-in-out infinite;
}
.cs-waiting span:nth-child(2) { animation-delay: 0.4s; }
.cs-waiting span:nth-child(3) { animation-delay: 0.8s; }
@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.85); }
    50%       { opacity: 1;   transform: scale(1.15); }
}

.cs-eyebrow {
    font-size: 8.5px;
    font-weight: 300;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    color: rgba(245,242,237,0.42);
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp 1.4s cubic-bezier(0.22,1,0.36,1) 0.6s forwards;
}
.cs-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(22px, 3.2vw, 46px);
    line-height: 1.22;
    letter-spacing: 0.02em;
    color: #f5f2ed;
    max-width: 620px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1.6s cubic-bezier(0.22,1,0.36,1) 0.9s forwards;
}

/* Línea horizontal delgada */
.cs-divider {
    width: 0;
    height: 1px;
    background: rgba(245,242,237,0.22);
    margin-bottom: 28px;
    animation: growLine 1.4s cubic-bezier(0.77,0,0.175,1) 1.4s forwards;
}
@keyframes growLine {
    from { width: 0; opacity: 0; }
    to   { width: 44px; opacity: 1; }
}

.cs-sub {
    font-size: 8px;
    font-weight: 200;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(245,242,237,0.32);
    opacity: 0;
    animation: fadeUp 1.2s ease 1.6s forwards;
}

.cs-footer {
    position: absolute;
    bottom: 32px; left: 52px; right: 52px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    animation: fadeIn 1.2s ease 1.9s forwards;
}
.cs-footer-note, .cs-footer-link {
    font-size: 8.5px;
    font-weight: 200;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245,242,237,0.28);
    transition: color 0.3s;
}
.cs-footer-link:hover { color: rgba(245,242,237,0.7); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 600px) {
    .cs-footer { left: 24px; right: 24px; bottom: 24px; flex-direction: column; gap: 6px; align-items: center; }
    .cs-headline { font-size: clamp(22px, 7vw, 34px); }
}

/* =============================================
   SECTION LABEL — barra gris Eblana
   ============================================= */
.section-label {
    background: rgb(95,109,112);
    margin-top: 68px;
    color: #fff;
    padding: 22px 52px;
    font-size: 9.5px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
@media (max-width: 768px) { .section-label { padding: 18px 20px; } }

/* =============================================
   PAGE BANNER
   ============================================= */
.page-banner {
    height: 520px; width: 100%;
    background-size: cover; background-position: center;
    position: relative;
}
.page-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,0.62));
    display: flex; align-items: flex-end;
    padding: 44px 56px;
}
.page-banner-sub {
    font-size: 9px; font-weight: 200;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin-bottom: 10px;
}
.page-banner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4.2vw, 58px);
    font-weight: 300; color: #fff;
    letter-spacing: 0.015em; line-height: 1.1;
}
@media (max-width: 768px) {
    .page-banner { height: 280px; }
    .page-banner-overlay { padding: 24px; }
}

/* =============================================
   PROJECT / EXPERTISE GRID  (fondo negro como Eblana)
   ============================================= */
.grid-wrap {
    display: flex; flex-wrap: wrap;
    background: #000;
}
.grid-item {
    position: relative;
    width: 50%;
    height: 52vw; max-height: 520px;
    overflow: hidden;
    background: #111;
}
.grid-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 0.9s ease;
}
.grid-item:hover img { filter: grayscale(0%); transform: scale(1.04); }
.grid-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.62));
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 28px 32px;
    border: 1px solid rgba(255,255,255,0.04);
}
.grid-item-label {
    font-size: 9px; font-weight: 200;
    letter-spacing: 0.26em; text-transform: uppercase;
    color: rgba(255,255,255,0.45); margin-bottom: 7px;
}
.grid-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 300; color: #fff;
    line-height: 1.15;
}
.grid-item--third { width: 33.333%; }
@media (max-width: 900px) { .grid-item--third { width: 50%; } }
@media (max-width: 640px) {
    .grid-item { width: 100%; height: 64vw; max-height: 340px; }
    .grid-item--third { width: 100%; }
}

/* =============================================
   SINGLE PROJECT / EXPERTISE
   ============================================= */
.single-hero {
    height: 560px; width: 100%;
    background-size: cover; background-position: center;
    position: relative; margin-top: 68px;
}
.single-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,0.7));
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 48px 60px; color: #fff;
}
.single-hero-address {
    font-size: 9.5px; font-weight: 200;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(255,255,255,0.48); margin-bottom: 12px;
}
.single-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 5vw, 68px);
    font-weight: 300; line-height: 1.08;
}

/* Contenido del single — blanco Eblana */
.single-content-wrap {
    max-width: 740px; margin: 0 auto;
    padding: 76px 24px 100px;
}
.single-content-wrap p,
.single-content-wrap li {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    color: rgb(150,150,150);
    line-height: 190%;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .single-hero { height: 300px; margin-top: 68px; }
    .single-hero-overlay { padding: 28px 24px; }
    .single-content-wrap { padding: 44px 20px 64px; }
    .single-content-wrap p { font-size: 16px; }
}

/* =============================================
   GALLERY (Fotorama)
   ============================================= */
.gallery-section { padding: 0 0 80px; background: #fafafa; }

/* =============================================
   TEXT PAGE WRAP — blanco elegante
   ============================================= */
.text-page-wrap {
    max-width: 740px; margin: 0 auto;
    padding: 76px 24px 100px;
}
.text-page-wrap h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 300; color: #111;
    margin-bottom: 36px;
    letter-spacing: 0.01em; line-height: 1.18;
}
.text-page-wrap p,
.text-page-wrap .para1 {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    color: rgb(150,150,150);
    line-height: 190%;
    margin-bottom: 20px;
}
.text-page-wrap strong,
.text-page-wrap b { color: #1a1a1a; font-weight: 600; }
.text-page-wrap a { color: #1a1a1a; border-bottom: 1px solid rgba(0,0,0,0.14); transition: border-color 0.3s; }
.text-page-wrap a:hover { border-color: #1a1a1a; }
@media (max-width: 768px) {
    .text-page-wrap p { font-size: 16px; }
    .text-page-wrap { padding: 48px 20px 64px; }
}

/* =============================================
   CAREER — fondo gris Eblana
   ============================================= */
.career-body {
    background: rgb(95,109,112);
    padding: 72px 0 88px;
}
.career-body .text-page-wrap h2 { color: #fff; }
.career-body .text-page-wrap p,
.career-body .text-page-wrap .para1 { color: rgba(255,255,255,0.72); }
.career-body .text-page-wrap strong { color: #fff; }

/* =============================================
   BUTTON
   ============================================= */
.cst-btn {
    display: inline-block;
    padding: 12px 36px;
    border: 1px solid rgba(255,255,255,0.32);
    font-family: 'Montserrat', sans-serif;
    font-size: 8.5px; font-weight: 300;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: #fff;
    transition: background 0.3s, border-color 0.3s;
}
.cst-btn:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.65);
    color: #fff;
}
.cst-btn.dark {
    border-color: rgba(0,0,0,0.22); color: #1a1a1a;
}
.cst-btn.dark:hover {
    background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.55); color: #111;
}

/* =============================================
   CONTACTS
   ============================================= */
.contacts-intro {
    max-width: 660px; margin: 0 auto;
    padding: 76px 24px 52px;
    text-align: center;
}
.contacts-intro p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px; font-weight: 300;
    color: rgb(140,140,140);
    line-height: 1.95;
    text-align: justify; text-justify: inter-word;
}

.offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e0e0e0;
}
.office-card { background: #fff; overflow: hidden; }
.office-img {
    height: 300px;
    background-size: cover; background-position: center;
    filter: grayscale(85%);
    transition: filter 0.7s ease;
}
.office-card:hover .office-img { filter: grayscale(0%); }
.office-info { padding: 36px 44px 44px; }
.office-city {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px; font-weight: 300;
    color: #111; margin-bottom: 14px;
    letter-spacing: 0.01em;
}
.office-address,
.office-phone {
    font-family: 'Cairo', sans-serif;
    font-size: 13.5px; font-weight: 300;
    color: rgb(150,150,150); line-height: 1.85;
}
.office-phone { margin: 4px 0 20px; letter-spacing: 0.05em; }
.office-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cst-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 8.5px; font-weight: 300;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: rgb(110,110,110);
    background: rgba(150,150,150,0.1);
    border-radius: 20px;
    padding: 7px 18px;
    transition: background 0.3s, color 0.3s;
}
.cst-tag:hover { background: rgba(0,0,0,0.07); color: #111; }
@media (max-width: 768px) {
    .offices-grid { grid-template-columns: 1fr; }
    .office-img { height: 210px; }
    .office-info { padding: 28px 20px 36px; }
}

/* =============================================
   PARTNERS
   ============================================= */
.partners-text {
    max-width: 680px; margin: 0 auto;
    padding: 72px 24px 48px;
    text-align: center;
}
.partners-text p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px; font-weight: 300;
    color: rgb(140,140,140);
    line-height: 1.95;
    text-align: justify; text-justify: inter-word;
}
.partners-text strong { color: #1a1a1a; font-weight: 600; }

.partners-grid {
    display: flex; flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 40px 96px;
    background: #fff;
}
.partner-card {
    display: flex; align-items: center; justify-content: center;
    width: 200px; height: 118px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    padding: 24px;
    transition: box-shadow 0.35s, transform 0.35s;
}
.partner-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transform: translateY(-4px);
}
.partner-card img {
    max-width: 100%; max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%); opacity: 0.45;
    transition: filter 0.45s, opacity 0.45s;
}
.partner-card:hover img { filter: grayscale(0%); opacity: 1; }
@media (max-width: 600px) {
    .partner-card { width: 142px; height: 88px; }
    .partners-grid { gap: 14px; padding: 0 16px 64px; }
}

/* =============================================
   FOOTER — blanco elegante como Eblana
   ============================================= */
.site-footer-full {
    background: #fff;
    border-top: 1px solid rgb(220,220,220);
    padding: 72px 52px 0;
    margin-top: 0;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgb(226,226,226);
}
.footer-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: #111; margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
    font-family: 'Cairo', sans-serif;
    font-size: 14px; font-weight: 300;
    color: rgb(150,150,150); line-height: 2.15;
}
.footer-col ul li a { color: rgb(150,150,150); transition: color 0.3s; }
.footer-col ul li a:hover { color: #111; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0 26px;
    flex-wrap: wrap; gap: 12px;
}
.footer-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px; font-weight: 300;
    color: rgb(160,160,160); letter-spacing: 0.06em;
}
.footer-copy a { color: rgb(160,160,160); transition: color 0.3s; }
.footer-copy a:hover { color: #111; }
.footer-social { display: flex; gap: 18px; }
.footer-social a {
    color: rgb(175,175,175);
    transition: color 0.3s;
    display: flex; align-items: center;
}
.footer-social a:hover { color: #111; }

@media (max-width: 900px) {
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer-full { padding: 52px 24px 0; }
}
@media (max-width: 560px) {
    .footer-columns { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =============================================
   FADE IN ON SCROLL
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.95s ease, transform 0.95s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
