/* ==========================================================================
   Advanced IP Limited — styles.css
   Sections: Tokens · Reset · Base · Header/Nav · Hero · Trust strip ·
             Sections · Services · Approach · Contact · Form · Footer ·
             Responsive · Chat widget · A11y
   ========================================================================== */

/* Tokens
   ------------------------------------------------------------------------ */
:root {
  --navy: #2D3748;
  --navy-mid: #3A4660;
  --navy-light: #4A5568;
  --steel: #4A5568;
  --electric: #F5A623;
  --electric-dim: rgba(245, 166, 35, 0.12);
  --electric-glow: rgba(245, 166, 35, 0.25);
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --muted: #8A97A8;
  --text: #C8CDD6;
  --border: rgba(245, 166, 35, 0.22);
  --danger: #E53E3E;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* Reset
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base
   ------------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

ul, ol { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font: inherit; }

/* Header / Nav
   ------------------------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(45, 55, 72, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
}

.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}

.nav-logo img { height: 70px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--electric) !important;
  border: 1px solid var(--electric);
  padding: 6px 16px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--electric) !important;
  color: var(--navy) !important;
}

/* Hero
   ------------------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 2rem;
}

.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 180, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-wordmark {
  display: flex; align-items: center; justify-content: flex-end;
  position: relative; z-index: 1;
}

.hero-wordmark svg {
  width: 100%;
  max-width: 480px;
  opacity: 0.18;
  user-select: none;
  pointer-events: none;
}

.wordmark-primary,
.wordmark-accent {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 68px;
  letter-spacing: -2px;
}

.wordmark-primary { fill: var(--text); }
.wordmark-accent { fill: var(--electric); }

.wordmark-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 3px;
  fill: var(--text);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--electric);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--electric);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: normal;
  color: var(--electric);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--electric);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--white); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

/* Trust strip
   ------------------------------------------------------------------------ */
.trust-strip {
  padding: 1.5rem 2.5rem;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}

.trust-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-items {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}

.trust-item {
  font-size: 13px;
  color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}

.trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--electric);
  flex-shrink: 0;
}

/* Sections (generic)
   ------------------------------------------------------------------------ */
section { padding: 5rem 2.5rem; }

.section-inner { max-width: 1080px; margin: 0 auto; }

.section-tinted { background: var(--navy-mid); }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--electric);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* Services
   ------------------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
}

.service-card {
  background: var(--navy);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background 0.2s;
}

.service-card:hover { background: var(--navy-mid); }

.service-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.25rem;
  color: var(--electric);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.service-tags {
  margin-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 6px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--electric);
  background: var(--electric-dim);
  border: 0.5px solid rgba(245, 166, 35, 0.3);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* Approach
   ------------------------------------------------------------------------ */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.approach-steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex; gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--border);
}

.step:first-child { border-top: 0.5px solid var(--border); }

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--electric);
  min-width: 28px;
  padding-top: 3px;
}

.step h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.approach-aside {
  background: var(--navy);
  border: 0.5px solid var(--border);
  padding: 2rem;
}

.aside-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--electric);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.stat-row {
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--border);
}

.stat-row:last-child { border-bottom: none; }

.stat-num {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  font-family: var(--mono);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* About
   ------------------------------------------------------------------------ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.principle {
  border: 0.5px solid var(--border);
  padding: 1.75rem 1.5rem;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--electric);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.principle h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.principle p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-footer-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 0.5px solid var(--border);
  padding-top: 1.25rem;
}

/* Contact
   ------------------------------------------------------------------------ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 32px; height: 32px;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--electric);
}

.contact-detail-text { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.contact-detail-text strong { color: var(--white); font-weight: 500; display: block; margin-bottom: 2px; }
.contact-detail-text address { font-style: normal; }

.contact-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover { color: var(--white); }

/* Form
   ------------------------------------------------------------------------ */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: var(--navy-mid);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus { border-color: var(--electric); }

select { appearance: none; -webkit-appearance: none; cursor: pointer; }

textarea { resize: vertical; min-height: 110px; }

.form-submit { margin-top: 0.5rem; }

.btn-submit {
  width: 100%;
  background: var(--electric);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-submit:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-success {
  background: rgba(0, 180, 216, 0.08);
  border: 0.5px solid var(--electric);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
}

.form-success[hidden] { display: none; }

.form-success-icon {
  margin: 0 auto 1rem;
  color: var(--electric);
}

.form-success-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-success p { color: var(--white); font-size: 0.9rem; }

/* Footer
   ------------------------------------------------------------------------ */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.footer-links {
  display: flex; gap: 1.5rem;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

/* Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 700px) {
  .site-nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  section { padding: 3.5rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 3rem; grid-template-columns: 1fr; }
  .trust-strip { padding: 1.25rem; }
  .approach-grid, .contact-wrap, .form-row { grid-template-columns: 1fr; gap: 2rem; }
  .principles { grid-template-columns: 1fr; gap: 1rem; }
  .site-footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: flex-start; }
}

/* Chat widget
   ------------------------------------------------------------------------ */
#aip-chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

#aip-chat-bubble[hidden] { display: none; }

#aip-chat-window {
  width: 360px;
  background: var(--navy);
  border: 0.5px solid rgba(245, 166, 35, 0.35);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  max-height: 520px;
}

#aip-chat-window.open { display: flex; }

.aip-chat-header {
  background: var(--navy-mid);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 0.5px solid rgba(245, 166, 35, 0.2);
}

.aip-chat-header-left { display: flex; align-items: center; gap: 10px; }

.aip-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--electric);
  font-family: var(--mono);
}

.aip-header-text { line-height: 1.2; }
.aip-header-name { font-size: 13px; font-weight: 600; color: var(--white); font-family: var(--sans); }
.aip-header-status { font-size: 11px; color: var(--muted); font-family: var(--sans); display: flex; align-items: center; gap: 5px; }
.aip-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--electric); flex-shrink: 0; }

#aip-close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px; line-height: 1;
  padding: 4px; transition: color 0.2s;
}
#aip-close-btn:hover { color: var(--white); }

#aip-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 280px; max-height: 340px;
  scrollbar-width: thin; scrollbar-color: rgba(245, 166, 35, 0.2) transparent;
}

.aip-msg {
  max-width: 85%; font-size: 13.5px; line-height: 1.55;
  font-family: var(--sans); border-radius: 10px; padding: 9px 13px;
}

.aip-msg.bot {
  background: var(--navy-mid); color: var(--text); align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.aip-msg.user {
  background: var(--electric); color: var(--navy); align-self: flex-end;
  font-weight: 500; border-bottom-right-radius: 3px;
}

.aip-typing {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; background: var(--navy-mid);
  border-radius: 10px; border-bottom-left-radius: 3px;
  align-self: flex-start;
}

.aip-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--electric);
  display: inline-block; animation: aip-bounce 1.2s infinite;
}
.aip-typing span:nth-child(2) { animation-delay: 0.2s; }
.aip-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aip-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.aip-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 12px;
}

.aip-suggestion {
  font-size: 12px; font-family: var(--sans);
  background: rgba(245, 166, 35, 0.1); color: var(--electric);
  border: 0.5px solid rgba(245, 166, 35, 0.35);
  border-radius: 20px; padding: 5px 12px;
  cursor: pointer; transition: background 0.2s;
  white-space: nowrap;
}
.aip-suggestion:hover { background: rgba(245, 166, 35, 0.2); }

.aip-input-row {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 0.5px solid rgba(245, 166, 35, 0.15);
  background: var(--navy);
}

#aip-input {
  flex: 1; background: var(--navy-mid); border: 0.5px solid rgba(245, 166, 35, 0.25);
  border-radius: 8px; color: var(--white); font-family: var(--sans);
  font-size: 13px; padding: 9px 12px; outline: none;
  transition: border-color 0.2s;
  height: 38px; line-height: 1.4;
}
#aip-input:focus { border-color: var(--electric); }
#aip-input::placeholder { color: var(--muted); }

#aip-send-btn {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--electric); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s, transform 0.15s; flex-shrink: 0;
}
#aip-send-btn:hover { opacity: 0.9; transform: scale(1.05); }
#aip-send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

#aip-toggle-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--electric); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
#aip-toggle-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(245, 166, 35, 0.55); }

.aip-notif-badge {
  position: absolute; top: -3px; right: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--navy);
  font-size: 9px; color: var(--white); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
}

#aip-toggle-wrap { position: relative; }

/* A11y / motion
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
