/* Havas Broadcast — Client Portal Styles */
:root {
  --bg-deep: #050a12;
  --bg-primary: #0a1220;
  --bg-elevated: #0f1a2c;
  --bg-card: #132238;
  --bg-card-hover: #1a2d47;
  --blue-bright: #1a8cff;
  --blue-mid: #0070e0;
  --blue-glow: #3aa0ff;
  --blue-dark: #004a99;
  --silver: #c8d0dc;
  --silver-bright: #e8eef6;
  --white: #f5f8fc;
  --text-primary: #eef2f8;
  --text-secondary: #a0aec0;
  --text-muted: #6b7a90;
  --border: rgba(26, 140, 255, 0.15);
  --border-strong: rgba(26, 140, 255, 0.35);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(26,140,255,0.18);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --container: 1120px;
  --header-h: 76px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-glow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--silver-bright); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(5,10,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.header.scrolled {
  background: rgba(5,10,18,0.96);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; }
.logo-badge {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue-glow); background: rgba(26,140,255,0.12);
  border: 1px solid var(--border-strong); padding: 4px 10px; border-radius: 100px;
}
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block; padding: 9px 14px; color: var(--text-secondary);
  font-weight: 500; font-size: 0.92rem; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(26,140,255,0.08); }
.nav-link.cta-nav {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: var(--white); margin-left: 6px; font-weight: 600;
}
.nav-link.cta-nav:hover {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-glow));
  color: var(--white); box-shadow: 0 4px 18px rgba(26,140,255,0.35);
}
.mobile-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: none; cursor: pointer; padding: 10px;
}
.mobile-toggle span {
  display: block; width: 20px; height: 2px; background: var(--silver); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 50px) 0 70px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26,140,255,0.2), transparent),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(0,74,153,0.12), transparent),
    var(--bg-deep);
  z-index: -1;
}
.hero-content { text-align: center; max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 7px 16px;
  background: rgba(26,140,255,0.1); border: 1px solid var(--border-strong);
  border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  color: var(--blue-glow); letter-spacing: 0.03em; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px; color: var(--white);
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue-glow) 0%, #7ec8ff 50%, var(--silver-bright) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: var(--white); box-shadow: 0 4px 18px rgba(26,140,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 26px rgba(26,140,255,0.45); color: var(--white);
}
.btn-secondary {
  background: transparent; color: var(--silver-bright); border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(26,140,255,0.1); border-color: var(--blue-bright); color: var(--white);
}
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-submit { width: 100%; padding: 15px; font-size: 1rem; }

/* Sections */
.section { padding: 90px 0; position: relative; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue-glow); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700; letter-spacing: -0.025em; color: var(--white);
  margin-bottom: 14px; line-height: 1.2;
}
.section-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; }

/* Cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-glow);
}
.card h3 { font-size: 1.15rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* Contact */
.contact-section { background: var(--bg-primary); }
.contact-wrapper {
  display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 40px; align-items: start;
}
.contact-form {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 500; color: var(--silver); margin-bottom: 7px;
}
.required { color: var(--blue-glow); }
.form-group input,
.form-group textarea {
  width: 100%; padding: 13px 15px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(26,140,255,0.2);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.consent-group { margin-bottom: 22px; }
.consent-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5;
}
.consent-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border: 2px solid var(--border-strong); border-radius: 4px;
  background: var(--bg-card); position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.consent-label input:checked + .checkmark {
  background: var(--blue-bright); border-color: var(--blue-bright);
}
.consent-label input:checked + .checkmark::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-text a { color: var(--blue-glow); text-decoration: underline; text-underline-offset: 2px; }

.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-block {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.info-block h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.info-block p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.55; }
.info-block a { color: var(--blue-glow); font-weight: 500; }

.form-success { text-align: center; padding: 36px 16px; }
.form-success h3 { color: var(--blue-glow); margin-bottom: 10px; font-size: 1.3rem; }
.form-success p { color: var(--text-secondary); }

/* Footer */
.footer {
  background: #03070e; border-top: 1px solid var(--border); padding: 56px 0 28px;
}
.footer-top {
  display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 14px; opacity: 0.9; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.footer-links { display: flex; gap: 56px; }
.footer-col h5 {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--silver); margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--blue-glow); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .mobile-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(5,10,18,0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 16px;
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 14px; }
  .nav-link.cta-nav { margin-left: 0; margin-top: 6px; text-align: center; }
  .logo-img { height: 40px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); padding-bottom: 50px; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
}
