/*
Theme Name: Match Creative Premium
Theme URI: https://matchcreative.es
Author: Match Creative
Description: Ultra-premium Dark Theme for Match Creative Agency. Designed for high impact, high conversion.
Version: 1.0.0
Text Domain: matchcreative
*/

/* =========================================================================
   MATCH CREATIVE - ULTRA PREMIUM DARK AGENCY
   Style: Immersive Dark Theme, Bento Box, Glassmorphism, Micro-interactions
   ========================================================================= */

:root {
    /* Color Palette - Premium Dark */
    --bg-base: #030407; /* Super deep black/blue */
    --bg-surface: #0A0D14; /* Slightly lighter for cards */
    --bg-glass: rgba(15, 20, 31, 0.4);
    
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    
    /* The Brand Green accent mentioned by user */
    --accent-color: #ADED7F; /* Vibrant Lime/Mint Green */
    --accent-hover: #96DF60;
    --accent-glow: rgba(173, 237, 127, 0.2);
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(173, 237, 127, 0.4);
    
    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Metrics */
    --container-max: 1320px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --trans-fast: 0.3s var(--ease-out);
    --trans-slow: 0.8s var(--ease-out);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; background-color: var(--bg-base); }
body { background-color: var(--bg-base); color: var(--text-primary); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

/* Base Graphic Noise Overlay */
.noise-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03; pointer-events: none; z-index: 9999;
}
.glow-bg {
    position: fixed; top: -20vh; left: 20vw; width: 60vw; height: 60vh;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.5; filter: blur(100px); pointer-events: none; z-index: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; color: var(--text-primary); letter-spacing: -0.02em; }
p { color: var(--text-muted); }
a { color: var(--text-primary); text-decoration: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 5%; position: relative; z-index: 1; }
.text-accent { color: var(--accent-color); }
.text-italic { font-style: italic; font-weight: 600; }
.text-center { text-align: center; }

/* BUTTONS & BADGES */
.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 2rem;
    font-family: var(--font-body); font-size: 1rem; font-weight: 500; border-radius: 100px;
    transition: var(--trans-fast); cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn-large { padding: 1.25rem 2.5rem; font-size: 1.125rem; }
.btn-primary { background-color: var(--accent-color); color: var(--bg-base); font-weight: 700; }
.btn-primary:hover { background-color: var(--text-primary); transform: translateY(-2px); box-shadow: 0 10px 25px var(--accent-glow); }
.btn-outline { background-color: transparent; border-color: var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--text-primary); background-color: rgba(255,255,255,0.05); }
.btn-full { width: 100%; }

.circle-btn {
    width: 50px; height: 50px; border-radius: 50%; background-color: var(--accent-color); color: var(--bg-base);
    display: flex; align-items: center; justify-content: center; transition: var(--trans-fast);
}
.circle-btn svg { width: 24px; height: 24px; }
.circle-btn:hover { transform: scale(1.1); background-color: var(--text-primary); }
.circle-btn.light { background-color: var(--border-light); color: var(--text-primary); }
.circle-btn.light:hover { background-color: var(--accent-color); color: var(--bg-base); }

.badge {
    display: inline-block; padding: 0.5rem 1rem; background-color: var(--bg-glass); border: 1px solid var(--border-light);
    color: var(--accent-color); font-size: 0.75rem; font-weight: 600; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
}

/* NAVIGATION */
.navbar { position: fixed; top: 20px; left: 0; width: 100%; z-index: 100; display: flex; justify-content: center; transition: var(--trans-slow); }
.navbar.scrolled { top: 0; }
.navbar.scrolled .nav-container { 
    width: 100%; max-width: 100%; border-radius: 0; top: 0;
    background: rgba(3, 4, 7, 0.95); border-bottom: 1px solid var(--border-light);
    padding: 1rem 5%;
}
.navbar.scrolled .brand-logo { filter: invert(1) brightness(1.5); }
.nav-container {
    background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-light);
    border-radius: 100px; padding: 0.75rem 1rem 0.75rem 2rem; display: flex; justify-content: space-between;
    transition: var(--trans-slow);
    align-items: center; width: 90%; max-width: 1200px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.brand-logo { max-height: 35px; width: auto; display: block; }
.logo-text-fallback { display: none; font-size: 1.25rem; font-family: var(--font-heading); font-weight: 800; color: var(--text-primary); }

.nav-links { display: flex; gap: 2rem; }
.nav-item { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: var(--trans-fast); }
.nav-item:hover { color: var(--text-primary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background-color: var(--text-primary); }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; padding-top: 15vh; }
.hero-content { max-width: 1000px; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bg-glass); border: 1px solid var(--border-light);
    padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.875rem; font-weight: 500; margin-bottom: 3rem; backdrop-filter: blur(10px);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--accent-color); box-shadow: 0 0 10px var(--accent-color); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
.hero-title { font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 2rem; }
.hero-desc { font-size: clamp(1.125rem, 2vw, 1.5rem); color: var(--text-muted); max-width: 700px; margin: 0 auto 3.5rem; }
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; }

.hero-visual { margin-top: 5rem; width: 100%; height: 50vh; position: relative; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: saturate(0); }
.visual-gradient-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, var(--bg-base) 0%, transparent 50%, var(--bg-base) 100%); }

/* BENTO BOX SECTION */
.bento-section { padding: 4rem 0 8rem; }
.section-top { margin-bottom: 4rem; }
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.section-subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(280px, auto); gap: 1.5rem; }
.bento-item { border-radius: var(--radius-xl); padding: 3rem; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: var(--trans-slow); }
.glass-panel { background: var(--bg-surface); border: 1px solid var(--border-light); }
.glass-panel:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); }
.dark-gradient { background: linear-gradient(135deg, var(--bg-surface) 0%, #000 100%); }
.image-panel { padding: 0; border: 1px solid var(--border-light); }
.image-panel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.2); transition: var(--trans-slow); }
.image-panel:hover img { filter: grayscale(0%); transform: scale(1.05); }
.panel-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 3rem; }
.panel-overlay h3 { font-size: 4rem; color: var(--accent-color); margin-bottom: 0; line-height: 1; }
.panel-overlay p { font-size: 1.25rem; font-weight: 600; color: #FFF; line-height: 1.1; margin-top: 5px; }
.span-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; }
.bento-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 2rem; display: block; }
.stat-value { font-family: var(--font-heading); font-size: 4.5rem; font-weight: 800; line-height: 1; margin-bottom: 1rem; display: block; color: var(--accent-color); }
.bento-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.bento-desc { color: var(--text-muted); font-size: 1.125rem; }
.bento-bg-icon { position: absolute; bottom: -20px; right: -20px; opacity: 0.05; color: #FFF; }
.bento-bg-icon svg { width: 300px; height: 300px; }

/* SERVICES TRACK */
.services { padding: 8rem 0; background-color: var(--bg-surface); position: relative;}
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.125rem; color: var(--text-primary); border-bottom: 1px solid var(--accent-color); padding-bottom: 4px; }
.link-arrow span { color: var(--accent-color); transition: transform 0.3s; }
.link-arrow:hover span { transform: translateX(5px); }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; }
.services-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4rem; }
.service-card { background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2.5rem; transition: var(--trans-slow); }
.service-card:hover { border-color: var(--accent-color); background-color: rgba(173, 237, 127, 0.02); }
.sc-header { display: flex; justify-content: space-between; margin-bottom: 3rem; align-items: flex-start; }
.sc-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.03); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sc-num { font-family: var(--font-heading); font-weight: 800; color: var(--text-muted); font-size: 1.25rem; opacity: 0.5; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* TICKER */
.ticker-wrapper { padding: 4rem 0; overflow: hidden; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 25s linear infinite; }
.ticker-item { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; padding: 0 3rem; }
.outline-text { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3); }
.ticker-sep { font-size: 2rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* NEWS / INSIGHTS (Premium Cards & Rows) */
.news { padding: 8rem 0; }
/* Row Style (Home Page) */
.news-list { margin-top: 4rem; border-top: 1px solid var(--border-light); }
.news-row { display: grid; grid-template-columns: 200px 1fr 60px; gap: 3rem; padding: 3rem 0; border-bottom: 1px solid var(--border-light); align-items: center; transition: background-color var(--trans-fast); }
.news-row:hover { background-color: rgba(255,255,255,0.02); }
.news-row:hover .nr-content a { color: var(--accent-color); }
.news-row:hover .circle-btn { background-color: var(--accent-color); color: var(--bg-base); border-color: transparent;}
.nr-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.nr-tag { font-weight: 600; color: var(--accent-color); font-size: 0.875rem; text-transform: uppercase;}
.nr-date { color: var(--text-muted); font-size: 0.875rem; }
.nr-content h3 { font-size: 2rem; font-weight: 600; }
.nr-content a { transition: color var(--trans-fast); }

/* Grid Style (Blog Page) */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
.news-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-light); transition: var(--trans-slow); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.news-img { width: 100%; height: 250px; overflow: hidden; position: relative; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--trans-slow); filter: grayscale(100%); }
.news-card:hover .news-img img { filter: grayscale(0%); transform: scale(1.05); }
.news-body { padding: 2.5rem; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; gap: 1rem; }
.nc-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 1rem; }
.nc-tag { color: var(--accent-color); }
.news-card h3 { font-size: 1.5rem; line-height: 1.3; font-family: var(--font-heading); color: var(--text-primary); }
.news-card h3 a { color: inherit; }
.news-card a::after { content: ''; position: absolute; inset: 0; }

/* MEGA FOOTER */
.mega-footer { padding: 6rem 0 0; background: #000; position: relative; overflow: hidden;}
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; margin-bottom: 6rem; }
.mf-left h2 { font-size: clamp(3rem, 5vw, 4.5rem); margin: 2rem 0; }
.mf-desc { font-size: 1.25rem; max-width: 400px; margin-bottom: 4rem; }
.mf-contact-info { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 4rem; }
.big-link { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; transition: color var(--trans-fast); }
.big-link:hover { color: var(--accent-color); }
.mf-socials { display: flex; gap: 1rem; }
.social-cir { width: 50px; height: 50px; border: 1px solid var(--border-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; transition: var(--trans-fast); }
.social-cir:hover { background-color: var(--accent-color); color: #000; border-color: transparent; }

.modern-form { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.form-group.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
input, select, textarea { width: 100%; padding: 1.25rem; background-color: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; transition: border var(--trans-fast); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-color); }
.terms { font-size: 0.75rem; text-align: center; color: var(--text-muted); }

.mf-bottom { display: flex; justify-content: space-between; align-items: center; padding: 2rem 0; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.875rem; }
.mf-legal { display: flex; gap: 2rem; }
.mf-legal a { color: var(--text-muted); transition: color var(--trans-fast); }
.mf-legal a:hover { color: var(--text-primary); }

.footer-logo-link { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.footer-logo { max-height: 40px; }

/* ANIMATIONS */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity 1.5s var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal-fade.active { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr; }
    .span-2, .span-row-2 { grid-column: span 1; grid-row: span 1; }
    .image-panel { height: 300px; }
    .services-track { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .news-row { grid-template-columns: 150px 1fr 50px; gap: 2rem; }
    .mf-grid { grid-template-columns: 1fr; gap: 4rem; }
}
@media (max-width: 768px) {
    .nav-links, .nav-action { display: none; }
    .menu-toggle { display: flex; }
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .services-track { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-row { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; position: relative;}
    .nr-action { position: absolute; top: 2rem; right: 0; }
    .mf-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    .mf-legal { flex-wrap: wrap; justify-content: center; }
    .form-group.row { grid-template-columns: 1fr; }
}
