/* ================================================
   apnaPR — Shared Design System
   Cinematic Dark Theme (Bebas Neue / Inter)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand Colors */
  --navy:        #000000; /* Pure Black for backgrounds */
  --dark-alt:    #0B1320; /* Deep navy */
  --blue:        #0d6efd; /* Electric Royal Blue */
  --blue-hover:  #0a58ca;
  --text-main:   #f8fafc;
  --text-muted:  #94a3b8;
  --border:      rgba(255,255,255,0.1);
  
  /* UI Elements */
  --radius:      0px; /* Sharper edges in this design */
  --tr:          all .3s cubic-bezier(.4,0,.2,1);
  
  /* Typography */
  --font-h:      'Bebas Neue', sans-serif;
  --font-b:      'Inter', sans-serif;
  --max-w:       1200px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{background:var(--navy);color:var(--text-main);font-family:var(--font-b);line-height:1.65;overflow-x:hidden}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{display:block;max-width:100%; height:auto;}
input,select,textarea,button{font-family:inherit;outline:none;border:none}
::selection{background:var(--blue);color:#fff}
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:var(--navy)}
::-webkit-scrollbar-thumb{background:#334155;}
::-webkit-scrollbar-thumb:hover{background:var(--blue)}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-h); color: #fff; line-height: 1; letter-spacing: 1px; font-weight: 400; }
.text-blue { color: var(--blue); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-family: var(--font-b); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--tr); white-space: nowrap; border-radius: 4px; }
.btn-p { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-p:hover { background: var(--blue-hover); border-color: var(--blue-hover); transform: translateY(-2px); }
.btn-g { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-g:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ── Section & Dark Mode Utilities ── */
.section { padding: 96px 0; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.section.alt { background: var(--dark-alt); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Reveal Animations ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-l.show { opacity: 1; transform: translateX(0); }
.reveal-r { opacity: 0; transform: translateX(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-r.show { opacity: 1; transform: translateX(0); }

/* ================================================
   NAVBAR
   ================================================ */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px; transition: var(--tr); background: rgba(0,0,0,0.9); border-bottom: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); }
.nav-wrap { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 40px; }
.logo img { mix-blend-mode: screen; height: 50px; width: auto; filter: contrast(1.2); }

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: .85rem; font-weight: 500; color: #cbd5e1; transition: var(--tr); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--tr); }

/* ================================================
   FOOTER
   ================================================ */
footer { background: #000; color: #fff; padding-top: 80px; border-top: 1px solid var(--border); }
.footer-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer-brand .logo img { mix-blend-mode: screen; margin-bottom: 16px; height: 50px; filter: contrast(1.2); }
.footer-brand p { font-size: .95rem; color: #cbd5e1; line-height: 1.7; max-width: 300px; margin-bottom: 24px; }
.footer-col h5 { font-size: .95rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; font-family: var(--font-h); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .9rem; color: #cbd5e1; transition: var(--tr); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ── Responsive ── */
@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:992px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media(max-width:768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 30, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    animation: menuSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .nav-links.open a {
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
  }
  .nav-links.open a:last-child {
    border-bottom: none;
  }
  .nav-links.open a:hover {
    color: var(--blue);
    padding-left: 24px;
  }
  .hamburger {
    display: flex;
    cursor: pointer;
  }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Mobile Layout & Typography Overrides (<576px) ── */
@media(max-width:576px) {
  html { font-size: 14px; }
  
  /* Prevent large typography overflow */
  h1, .ch1-content h1, .insights-hero-text h1, .sol-hero h1, .os-hero-content h1, .faq-hero-text h1, .contact-hero-text h1 {
    font-size: 3rem !important;
    line-height: 1.0 !important;
  }
  h2, .ch2-text h2, .ch3a-content h2, .ch3b-text h2, .ch5-content h2, .cta-content h2, .os-split-text h2, .os-map-text h2, .contact-info-left h2, .form-left h2 {
    font-size: 2.2rem !important;
    line-height: 1.0 !important;
  }
  
  /* Stack buttons in hero action rows */
  .ch1-actions, .os-hero-content .actions, .sol-hero .actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .ch1-actions .btn, .os-hero-content .actions .btn, .sol-hero .actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Adjust section padding for mobile */
  .section {
    padding: 48px 0 !important;
  }
}
