@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

/* ══════════════════════════════════════════
   NOETICA DIGITAL - DESIGN SYSTEM
══════════════════════════════════════════ */

:root {
    --primary:    #001B44;
    --accent:     #00C4CC;
    --secondary:  #0078D4;
    --bg:         #FFFFFF;
    --bg-alt:     #F4F6F9;
    --surface:    #FFFFFF;
    --border:     rgba(0, 27, 68, 0.09);
    --text-main:  #001B44;
    --text-muted: #64748B;
    --grad:       linear-gradient(135deg, #001B44 0%, #003a8c 100%);
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --shadow-sm:  0 2px 8px rgba(0,27,68,0.06);
    --shadow-md:  0 8px 24px rgba(0,27,68,0.10);
    --shadow-lg:  0 20px 48px rgba(0,27,68,0.14);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --glass:      rgba(255,255,255,0.96);
    --glass-border: rgba(0,27,68,0.08);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing:antialiased; }

html {
    background-color: var(--primary);
    overscroll-behavior-y: none;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family:'Outfit',sans-serif; font-weight:700; line-height:1.15; letter-spacing:-0.02em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent-text { color: var(--accent); }

/* ── LOGO ── */
.logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    height: 58px;
    width: 200px; /* Base width for logo container */
}
.logo-light, .logo-dark {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
}
.logo-light { opacity: 1; z-index: 2; filter: brightness(0) invert(1); }
.logo-dark  { opacity: 0; z-index: 1; }

/* When scrolled -> cross-fade logos */
header.scrolled .logo-light { opacity: 0; }
header.scrolled .logo-dark  { opacity: 1; }

/* Footer always uses the white logo */
.site-footer .logo-wrap { height: 54px; width: auto; }
.site-footer .logo-wrap .logo-dark  { opacity: 0 !important; }
.site-footer .logo-wrap .logo-light { opacity: 1 !important; height: 54px; position: static; }

/* Footer always uses the white logo */


/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--accent);
    color: #001B44;
    border-color: var(--accent);
}
.btn-primary:hover { background: #00adb5; border-color: #00adb5; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,196,204,0.4); }
.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.7);
    color: white;
}
.btn-outline:hover { background: white; color: var(--primary); border-color: white; transform: translateY(-2px); }
.nav-cta { padding: 10px 22px; font-size: 13px; }

/* ── HEADER ── */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: transparent;
    transition: var(--transition);
}
header.scrolled {
    padding: 12px 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 20px rgba(0,27,68,0.06);
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:32px; }
.nav-links { display:flex; gap:36px; align-items:center; }
.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--accent); }
header.scrolled .nav-links a { color: var(--text-main); }
header.scrolled .nav-links a:hover { color: var(--accent); }
header.scrolled .btn-outline { border-color: var(--accent); color: var(--accent); }
header.scrolled .btn-outline:hover { background: var(--accent); color: white; }



/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 72px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    z-index: 10000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 32px rgba(0,27,68,0.08);
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    gap: 6px;
    transition: var(--transition);
    width: 100%;
    height: 100%;
}
.mobile-bottom-nav a svg {
    width: 24px; height: 24px;
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-bottom-nav a.active {
    color: var(--accent);
}
.mobile-bottom-nav a.active svg {
    transform: translateY(-4px) scale(1.1);
}

/* ── HERO SECTION ── */
.hero {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px; /* Increased top padding to clear fixed header */
    background: var(--grad);
    background-image:
        linear-gradient(rgba(0,27,68,0.78), rgba(0,10,30,0.88)),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    z-index: 0;
    will-change: transform;
}
/* Canvas renders on top of bg image but behind text */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; text-align: left; }

/* ── SERVICES REVEAL (slides over sticky hero) ── */
#services-reveal-wrapper {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -12px 60px rgba(0,0,0,0.25);
    margin-top: -2px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    background: rgba(0,196,204,0.12);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0,196,204,0.3);
}
.hero h1 {
    font-size: clamp(40px, 5.5vw, 84px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
    letter-spacing: -0.03em;
}
.hero p {
    font-size: 19px;
    color: rgba(255,255,255,0.78);
    margin-bottom: 44px;
    max-width: 620px;
    line-height: 1.75;
    font-weight: 400;
}
.hero-btns { display:flex; gap:16px; flex-wrap:wrap; justify-content: flex-start; }

/* ── SECTIONS ── */
.section { padding: 110px 0; }
.services-section { background: var(--bg-alt); }

.section-head { text-align:center; max-width:680px; margin:0 auto 64px; }
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 17px; line-height: 1.7; }

/* ── SERVICE CARDS GRID ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.svc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,196,204,0.2);
}
.svc-icon-wrap {
    width: 80px;
    height: 80px;
    background: #f0f6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,27,68,0.06);
    overflow: hidden;
}
.svc-icon-wrap img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}
.svc-card:hover .svc-icon-wrap { background: #e8f4fd; transform: scale(1.06); }
.svc-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}
.svc-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}
.read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    padding-bottom: 2px;
}
.svc-card:hover .read-more { border-bottom-color: var(--accent); color: var(--primary); }

/* ── NEWSLETTER BAR ── */
.newsletter-bar {
    background: var(--grad);
    padding: 80px 0;
    color: white;
}
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}
.newsletter-bar h2 { font-size: 30px; margin-bottom: 10px; }
.newsletter-bar p { opacity: 0.75; font-size: 16px; max-width: 500px; }
.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 380px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    outline: none;
    min-width: 200px;
    font-family: 'Inter', sans-serif;
}

/* ── FOOTER ── */
.site-footer {
    background: #050E24;
    color: white;
    padding: 90px 0 50px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 60px;
}
.footer-brand p {
    margin-top: 20px;
    opacity: 0.55;
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4;
    font-size: 13px;
}

/* ── SHARED SERVICE PAGE STYLES ── */
.svc-hero {
    padding: 160px 0 90px;
    background-image:
        linear-gradient(rgba(0,27,68,0.83), rgba(0,10,30,0.9)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}
.svc-hero-inner { display:grid; grid-template-columns:1.2fr 0.8fr; gap:80px; align-items:center; }
.svc-hero-img { display:none; /* Hide image if centered layout requested */ 
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 520px;
    margin-left: auto;
}
.svc-hero-img img { width:100%; height:auto; display:block; transition: transform 0.8s ease; }
.svc-hero-img:hover img { transform: scale(1.04); }
.svc-logo-badge { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.svc-logo-badge img { height:52px; width:auto; }
.svc-section { padding: 100px 0; }
.svc-section:nth-child(even) { background: var(--bg-alt); }
.detail-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    border-top: 3px solid transparent;
}
.detail-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-top-color: var(--accent); }
.detail-card h4 { font-size:17px; margin-bottom:10px; }
.detail-card p { color:var(--text-muted); font-size:14px; line-height:1.65; }
.check-list { list-style:none; margin-top:16px; }
.check-list li { display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; font-size:15px; }
.check-list li::before { content:'✦'; color:var(--accent); flex-shrink:0; margin-top:2px; }
.svc-logos { display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.svc-logos img { height:32px; width:auto; object-fit:contain; }
.svc-cta-bar {
    background: var(--accent);
    color: var(--primary);
    padding: 80px 0;
    text-align: center;
}
.svc-cta-bar h2 { font-size:36px; margin-bottom:14px; }
.svc-cta-bar p { opacity:0.8; max-width:560px; margin:0 auto 36px; font-size:17px; }

/* ── CHAT TRIGGER ── */
.chat-trigger {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #003a8c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 8px 24px rgba(0,27,68,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(0,196,204,0.4);
}
.chat-trigger:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(0,27,68,0.5); }
.chat-trigger.hidden-trigger { opacity: 0; visibility: hidden; transform: scale(0.8) translateY(20px); pointer-events: none; }

/* ── CHAT WINDOW ── */
.chat-window {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px; max-width: 100%;
    height: 100vh; max-height: none;
    background: white;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(0,27,68,0.15);
    display: flex; flex-direction: column;
    overflow: hidden; z-index: 1001;
    opacity: 0; visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}
.chat-window.open { opacity:1; visibility:visible; transform:translateX(0); pointer-events:all; }
.chat-header { background:var(--grad); padding:20px 24px; color:white; display:flex; align-items:center; gap:12px; }
.chat-header h4 { margin:0; font-size:15px; }
.chat-body { flex:1; padding:20px; overflow-y:auto; background:var(--bg-alt); display:flex; flex-direction:column; gap:12px; }
.chat-msg { max-width:82%; padding:12px 16px; border-radius:16px; font-size:14px; line-height:1.5; }
.msg-ai { background:white; align-self:flex-start; border-bottom-left-radius:4px; box-shadow:var(--shadow-sm); }
.msg-user { background:var(--primary); color:white; align-self:flex-end; border-bottom-right-radius:4px; }
.chat-footer { padding:16px; border-top:1px solid var(--border); display:flex; gap:10px; }
.chat-input { flex:1; border:1px solid var(--border); padding:10px 16px; border-radius:100px; outline:none; font-size:14px; }
.chat-input:focus { border-color:var(--accent); }
.chat-send { background:var(--accent); color:white; border:none; width:38px; height:38px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; }

/* ── FORMS ── */
.form-group { margin-bottom: 22px; }
.form-label { display:block; margin-bottom:8px; font-weight:600; font-size:14px; color:var(--primary); }
.form-control {
    width:100%; padding:13px 18px;
    border-radius: var(--radius-sm);
    border:1px solid var(--border);
    background:#fafbfc; font-size:15px;
    transition:var(--transition); font-family:'Inter',sans-serif;
}
.form-control:focus { border-color:var(--accent); background:white; box-shadow:0 0 0 3px rgba(0,196,204,0.12); outline:none; }
.contact-layout { display:grid; grid-template-columns:1.2fr 0.8fr; gap:80px; align-items:start; }
#map { height:350px; border-radius:var(--radius-md); border:1px solid var(--border); }

/* ── PRICING ── */
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.price-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-md); padding:40px 32px;
    transition:var(--transition); position:relative;
}
.price-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); }
.price-card.popular { border-color:var(--accent); border-width:2px; }
.popular-badge {
    position:absolute; top:-14px; left:50%; transform:translateX(-50%);
    background:var(--accent); color:var(--primary);
    font-size:11px; font-weight:800; letter-spacing:2px;
    padding:5px 18px; border-radius:100px;
}
.price { font-size:42px; font-weight:900; font-family:'Outfit',sans-serif; margin:20px 0; }
.price span { font-size:16px; font-weight:400; color:var(--text-muted); }
.feature-list { list-style:none; margin:24px 0 32px; }
.feature-list li { padding:10px 0; border-bottom:1px solid var(--border); font-size:14px; color:var(--text-muted); display:flex; align-items:center; gap:10px; }
.feature-list li::before { content:'✓'; color:var(--accent); font-weight:900; }


/* ── HERO CSS CLASSES (replaces inline styles) ── */
.hero-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-content-centered {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.hero-h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-p {
    font-size: 20px;
    max-width: 850px;
    margin: 0 auto 40px;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    text-align: center;
}
.hero-btns-centered {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-btn {
    padding: 16px 36px;
    font-size: 16px;
}

/* ── SERVICE SHOWCASE (homepage) ── */
.svc-showcase { padding: 80px 0; }
.svc-showcase:nth-child(even) { background: var(--bg-alt); }
.svc-showcase-inner {
    display: grid;
    grid-template-columns: 4fr 5.5fr;
    gap: 72px;
    align-items: center;
}
.svc-showcase-inner.reverse { direction: rtl; }
.svc-showcase-inner.reverse > * { direction: ltr; }
.svc-showcase-content h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 16px; }
.svc-showcase-content p  { color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.svc-showcase-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}
.svc-showcase-visual { overflow: hidden; border-radius: var(--radius-lg); }

.svc-showcase-content .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Service logo badge in visual overlay */
.svc-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.svc-visual-badge img { height: 28px; width: auto; }
.svc-visual-badge span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #001B44;
}

/* Scroll-triggered animation */
.slide-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-in.visible {
  opacity: 1;
  transform: none;
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-in-left.visible {
  opacity: 1;
  transform: none;
}
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-in-right.visible {
  opacity: 1;
  transform: none;
}

/* Crop baked-in bezels from AI-generated pictures without cropping top/bottom */
.crop-ai-borders {
  width: 104% !important;
  max-width: 104% !important;
  margin-left: -2% !important;
}

/* ── RESPONSIVE GRID (Auto-Adjusting) ── */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */

/* ── 768px (Mobile) ── */
@media (max-width: 768px) {
    /* Layout */
    body { padding-bottom: 72px; }
    .mobile-bottom-nav { display: flex; }
    .nav-links { display: none; }
    .nav-cta { display: none; } 

    /* Chat window expansion for mobile */
    .chat-window { right: 12px; left: 12px; width: auto; max-height: 75vh; bottom: 100px; }
    .chat-trigger { bottom: 96px; right: 20px; width: 50px; height: 50px; }
}

header.scrolled .logo-name { color: var(--primary) !important; }

