/*
Theme Name: Glacias AI
Theme URI: https://glacias.ai
Description: Custom theme for Glacias AI — Exclusive European Retargeting
Version: 1.0.0
Author: Glacias AI GmbH
Text Domain: glacias
*/

/* Reset & Base Styles */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --navy:#0B1F3A;
  --navy2:#071528;
  --accent:#2E86C1;
  --yellow:#FFD000;
  --light:#F5F7FA;
  --white:#FFFFFF;
  --gray:#6B7B8D;
  --gray2:#8C9BAA;
  --border:#E2EAF0;
  --text:#1A2A3A;
}

body{
  font-family:'DM Sans',sans-serif;
  color:var(--text);
  background:var(--white);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  max-width:100vw
}

html{
  overflow-x:hidden;
  max-width:100vw
}

h1,h2,h3,h4{font-family:'Playfair Display',serif}

/* Utility Classes */
.section-label{
  font-size:11px;
  font-weight:700;
  color:var(--accent);
  letter-spacing:1.4px;
  text-transform:uppercase;
  margin-bottom:14px;
  display:block
}
.section-label.light{color:var(--yellow)}

/* Buttons */
.btn-primary{
  background:var(--navy);
  color:white;
  padding:14px 32px;
  border-radius:3px;
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  display:inline-block;
  transition:background .2s
}
.btn-primary:hover{background:var(--accent)}

.btn-yellow{
  background:var(--yellow);
  color:var(--navy);
  padding:14px 36px;
  border-radius:3px;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  display:inline-block;
  transition:opacity .2s
}
.btn-yellow:hover{opacity:0.9}

.btn-outline{
  background:transparent;
  color:var(--navy);
  padding:14px 32px;
  border-radius:3px;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  border:1.5px solid var(--border);
  transition:all .2s;
  display:inline-block
}
.btn-outline:hover{
  border-color:var(--accent);
  color:var(--accent)
}

.btn-ghost{
  background:transparent;
  color:rgba(255,255,255,0.75);
  padding:14px 32px;
  border-radius:3px;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  border:1.5px solid rgba(255,255,255,0.2);
  transition:all .2s;
  display:inline-block
}
.btn-ghost:hover{
  border-color:rgba(255,255,255,0.5);
  color:white
}

.btn-ghost-dark{
  background:transparent;
  color:rgba(255,255,255,0.6);
  padding:14px 32px;
  border-radius:3px;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  border:1.5px solid rgba(255,255,255,0.15);
  transition:all .2s;
  display:inline-block
}
.btn-ghost-dark:hover{
  border-color:rgba(255,255,255,0.4);
  color:white
}

/* Navigation */
nav{
  background:var(--white);
  border-bottom:1px solid var(--border);
  padding:0 min(64px, 5vw);
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:66px;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 1px 8px rgba(0,0,0,0.05)
}

.nav-logo{
  font-family:'Playfair Display',serif;
  font-size:21px;
  font-weight:700;
  color:var(--navy);
  letter-spacing:-0.5px;
  text-decoration:none
}
.nav-logo span{color:var(--yellow)}

.nav-links{
  display:flex;
  gap:32px;
  list-style:none
}
.nav-links a{
  text-decoration:none;
  color:var(--gray);
  font-size:14px;
  font-weight:500;
  transition:color .2s
}
.nav-links a:hover{color:var(--navy)}

.nav-cta{
  background:var(--yellow);
  color:var(--navy);
  padding:10px 24px;
  border-radius:3px;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  transition:opacity .2s
}
.nav-cta:hover{opacity:0.9}

/* Hero Section */
.hero{
  position:relative;
  min-height:580px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--navy)
}

.hero-bg-placeholder{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#0B1F3A 0%,#1A3A5C 60%,#0B1F3A 100%)
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to right,rgba(11,31,58,0.96) 50%,rgba(11,31,58,0.6) 100%);
  z-index:1
}

.hero-content{
  position:relative;
  z-index:3;
  padding:80px min(64px, 5vw);
  max-width:1140px;
  margin:0 auto;
  width:100%
}

.hero-eyebrow{
  font-size:11px;
  font-weight:700;
  color:var(--yellow);
  letter-spacing:1.4px;
  text-transform:uppercase;
  margin-bottom:20px;
  display:block
}

.hero h1{
  font-size:54px;
  line-height:1.05;
  color:white;
  margin-bottom:20px;
  font-weight:700;
  max-width:720px
}
.hero h1 em{
  color:var(--yellow);
  font-style:normal
}

.hero-sub{
  font-size:18px;
  color:rgba(255,255,255,0.7);
  line-height:1.7;
  margin-bottom:40px;
  font-weight:300;
  max-width:600px
}
.hero-sub strong{
  color:white;
  font-weight:500
}

.hero-btns{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:52px
}

.hero-logos-label{
  font-size:11px;
  color:rgba(255,255,255,0.35);
  font-weight:500;
  letter-spacing:0.8px;
  text-transform:uppercase;
  margin-bottom:14px
}

.hero-logos{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center
}

.hero-logo-pill{
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.12);
  padding:8px 18px;
  border-radius:3px;
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,0.8)
}
.hero-logo-pill.highlight{
  background:rgba(255,208,0,0.12);
  border-color:rgba(255,208,0,0.3);
  color:var(--yellow)
}

/* Stats Bar */
.stats-bar{
  background:var(--yellow);
  padding:20px min(64px, 5vw);
  display:flex;
  gap:0;
  justify-content:center
}

.stat-bar-item{
  flex:1;
  max-width:220px;
  text-align:center;
  border-right:1px solid rgba(0,0,0,0.1);
  padding:0 32px
}
.stat-bar-item:last-child{border-right:none}

.stat-bar-num{
  font-family:'Playfair Display',serif;
  font-size:32px;
  font-weight:700;
  color:var(--navy);
  line-height:1
}

.stat-bar-lbl{
  font-size:12px;
  color:rgba(0,0,0,0.55);
  margin-top:4px;
  font-weight:500
}

/* Footer */
footer{
  background:var(--navy2);
  padding:28px min(64px, 5vw);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid rgba(255,255,255,0.06)
}

.footer-logo{
  font-family:'Playfair Display',serif;
  font-size:18px;
  font-weight:700;
  color:white;
  text-decoration:none
}
.footer-logo span{color:var(--yellow)}

.footer-links{display:flex;gap:24px}
.footer-links a{
  font-size:13px;
  color:rgba(255,255,255,0.35);
  text-decoration:none
}

.footer-copy{
  font-size:12px;
  color:rgba(255,255,255,0.2)
}

/* WordPress Integration */
.site-header{}
.site-main{}
.site-footer{}

/* Language Switcher */
.lang-switcher{
  display:flex;
  gap:8px;
  align-items:center
}
.lang-switcher a{
  padding:6px 12px;
  border-radius:3px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  color:var(--gray);
  border:1px solid var(--border);
  transition:all .2s
}
.lang-switcher a.current{
  background:var(--navy);
  color:white;
  border-color:var(--navy)
}
.lang-switcher a:hover{
  border-color:var(--accent);
  color:var(--accent)
}
/* ===========================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
   =========================================== */

/* Mobile-First Media Queries */

/* Tablet & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    /* Navigation */
    nav { padding: 0 32px; }
    
    /* Hero */
    .hero-content { padding: 60px 32px; }
    .hero h1 { font-size: 42px; }
    .hero-img-note { right: 20px; }
    
    /* Stats Bar */
    .stats-bar { padding: 16px 32px; }
    .stat-bar-item { padding: 0 16px; max-width: none; }
    
    /* Sections */
    .pillars, .for-networks, .inventory, .products, .ai-section, .hiw, .case, .cross-sell { 
        padding: 60px 32px; 
    }
    
    /* Grids */
    .for-networks-inner, .ai-inner, .case-inner { gap: 60px; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation - Mobile Menu */
    nav {
        flex-wrap: wrap;
        padding: 0 20px;
        height: auto;
        min-height: 66px;
    }
    .nav-links { 
        display: none; /* Hide on mobile - add hamburger menu later */
    }
    .nav-logo { font-size: 18px; }
    .nav-cta { 
        padding: 8px 16px; 
        font-size: 13px; 
    }
    
    /* Hero - Mobile Optimized */
    .hero { min-height: 480px; }
    .hero-content { 
        padding: 40px 20px; 
        text-align: center;
    }
    .hero h1 { 
        font-size: 32px; 
        line-height: 1.1; 
        margin-bottom: 16px;
    }
    .hero-sub { 
        font-size: 16px; 
        margin-bottom: 32px; 
    }
    .hero-btns { 
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
        margin-bottom: 40px;
    }
    .hero-img-note { display: none; }
    .hero-logos { justify-content: center; }
    
    /* Stats Bar - Stacked on Mobile */
    .stats-bar { 
        flex-direction: column; 
        padding: 20px;
        gap: 16px;
    }
    .stat-bar-item { 
        border-right: none; 
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 16px 0;
    }
    .stat-bar-item:last-child { border-bottom: none; }
    
    /* Founder - Stacked */
    .founder-inner { 
        grid-template-columns: 1fr; 
        min-height: auto;
    }
    .founder-photo { 
        border-right: none; 
        border-bottom: 1px solid var(--border);
    }
    .founder-text { padding: 40px 20px; }
    .photo-placeholder { min-height: 300px; }
    
    /* Three Pillars - Single Column */
    .pillars-grid { 
        grid-template-columns: 1fr; 
        gap: 16px;
    }
    .pillar { 
        padding: 32px 24px; 
        border-top: none;
        border-left: 4px solid var(--navy);
    }
    .pillar.active { 
        border-left-color: var(--yellow);
    }
    
    /* For Networks - Stacked */
    .for-networks-inner { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    /* Inventory Cards - Single Column */
    .inv-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    /* Products - Simplified Mobile Layout */
    .product-row { 
        grid-template-columns: 1fr; 
        gap: 8px; 
    }
    .product-label { 
        border-top: 4px solid var(--yellow);
        border-left: none;
    }
    
    /* AI Section - Stacked */
    .ai-inner { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    /* How It Works - 2x2 Grid on Mobile */
    .hiw-steps { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .hiw-step { 
        border-right: 1px solid var(--border); 
        border-bottom: 1px solid var(--border);
    }
    .hiw-step:nth-child(2n) { border-right: none; }
    .hiw-step:nth-child(n+3) { border-bottom: none; }
    
    /* GDPR - Stacked */
    .gdpr { 
        flex-direction: column; 
        gap: 24px; 
        padding: 24px 20px; 
    }
    
    /* Case Study - Stacked */
    .case-inner { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .case-stats { gap: 8px; }
    
    /* Cross Sell - Single Column */
    .cross-sell-grid { 
        grid-template-columns: 1fr; 
        gap: 12px; 
    }
    
    /* Trusted By - Stacked Pills */
    .logo-strip { 
        flex-direction: column; 
        align-items: center; 
        gap: 8px; 
    }
    
    /* Final CTA */
    .final-cta { padding: 60px 20px; }
    .final-cta h2 { font-size: 32px; }
    .final-btns { 
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
    }
    
    /* Footer */
    footer { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
        padding: 24px 20px; 
    }
    .footer-links { 
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 16px; 
    }
    
    /* Typography - Mobile Adjustments */
    .section-label { font-size: 10px; }
    h2 { font-size: 28px !important; }
    h3 { font-size: 20px !important; }
    .pillar h3, .product-label h3 { font-size: 18px !important; }
    p { font-size: 14px; }
    .hero-sub, .founder-text p { font-size: 15px; }
    
    /* Buttons - Mobile Optimized */
    .btn-primary, .btn-yellow, .btn-ghost, .btn-ghost-dark { 
        padding: 12px 24px; 
        font-size: 14px; 
        width: 100%; 
        max-width: 280px; 
        text-align: center; 
    }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Extra small optimizations */
    .hero h1 { font-size: 28px; }
    .hero-sub { font-size: 14px; }
    .final-cta h2 { font-size: 28px; }
    .final-cta p { font-size: 16px; }
    
    /* How It Works - Single Column */
    .hiw-steps { 
        grid-template-columns: 1fr; 
    }
    .hiw-step { 
        border-right: none; 
        border-bottom: 1px solid var(--border); 
    }
    .hiw-step:last-child { border-bottom: none; }
    
    /* Padding Adjustments */
    .pillars, .for-networks, .inventory, .products, .ai-section, .hiw, .case, .cross-sell { 
        padding: 40px 16px; 
    }
    .founder-text { padding: 32px 16px; }
}

/* Desktop Enhancements (min-width: 1200px) */
@media (min-width: 1200px) {
    /* Larger containers for big screens */
    .pillars-inner, .for-networks-inner, .inventory-inner, 
    .products-inner, .ai-inner, .hiw-inner, .case-inner, 
    .cross-sell-inner { 
        max-width: 1200px; 
    }
    
    /* Better typography scaling */
    .hero h1 { font-size: 58px; }
    .pillars-header h2, .inventory-header h2, .products-header h2, 
    .for-networks h2, .ai-left h2 { 
        font-size: 42px; 
    }
    
    /* Enhanced spacing */
    .pillars, .for-networks, .inventory, .products, 
    .ai-section, .hiw, .case { 
        padding: 100px 64px; 
    }
    
    /* Hover Effects */
    .pillar:hover { 
        transform: translateY(-4px); 
        transition: transform 0.3s ease; 
    }
    .inv-card:hover, .cs-card:hover { 
        transform: translateY(-2px); 
        box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
        transition: all 0.3s ease; 
    }
    .network-benefit:hover { 
        background: rgba(255,255,255,0.08); 
        transition: background 0.3s ease; 
    }
}

/* Print Styles */
@media print {
    .hero-img-note, .inv-img-note, .photo-placeholder-label { display: none; }
    .hero { background: white !important; color: black !important; }
    .hero h1, .hero-sub { color: black !important; }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp icons and graphics */
    .hero-logo-pill, .pillar-num, .stat-bar-num { 
        -webkit-font-smoothing: antialiased; 
        -moz-osx-font-smoothing: grayscale; 
    }
}
