/* ========================================
   LexEbrium Design System
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --navy: #0B1D3A;
  --royal: #1A3A6B;
  --gold: #C9A84C;
  --gold-light: #d4b86a;
  --cream: #FAFAF7;
  --white: #FFFFFF;
  --gray-100: #F5F5F2;
  --gray-200: #E8E8E3;
  --gray-300: #D1D1CC;
  --gray-600: #6B6B66;
  --gray-700: #4A4A46;
  --gray-800: #2D2D2A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-width: 1200px;
  --header-height: 72px;

  --shadow-sm: 0 1px 3px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 16px rgba(11,29,58,0.10);
  --shadow-lg: 0 8px 32px rgba(11,29,58,0.14);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }

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

section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 48px;
}

.section-center {
  text-align: center;
}

.section-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- Sticky Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(11,29,58,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-lex { color: var(--gold); }
.logo-ebrium { color: var(--white); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 50%, #1e4a80 100%);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,58,107,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 3.5rem;
  line-height: 1.15;
}

.hero h1 .text-gold {
  display: inline;
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  text-align: center;
}

.trust-badge .number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.trust-badge .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Subpage Hero (narrower) */
.hero-sub {
  min-height: 50vh;
}

.hero-sub .hero-content {
  max-width: 800px;
}

.hero-sub h1 {
  font-size: 2.8rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb .sep { color: rgba(255,255,255,0.3); }

.breadcrumb .current { color: var(--gold); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--royal);
  border-color: var(--royal);
  transform: translateY(-1px);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--gold);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  color: var(--navy);
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 10px;
}

/* --- Stats / Navy Section --- */
.section-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: var(--white);
}

.section-navy h2 {
  color: var(--white);
}

.section-navy .section-desc {
  color: rgba(255,255,255,0.65);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* --- Offices / European Reach --- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.office-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.office-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.office-flag {
  font-size: 2rem;
  margin-bottom: 12px;
}

.office-city {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
}

.office-country {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--gray-800);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.rodo-notice {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.contact-info h3 {
  margin-bottom: 16px;
}

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

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-detail p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-detail strong {
  color: var(--navy);
}

/* --- Services List (subpages) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.services-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(201,168,76,0.3);
}

.service-card .card-icon {
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Process Timeline --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gray-200);
}

.timeline-step {
  text-align: center;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--gold);
}

.timeline-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--royal);
}

.faq-answer {
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Regulations Timeline --- */
.reg-timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.reg-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.reg-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 24px;
}

.reg-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.reg-item .reg-date {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.reg-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.reg-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Target Audience Cards --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.audience-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.audience-card .card-icon {
  margin: 0 auto 20px;
}

.audience-card ul {
  text-align: left;
  margin-top: 12px;
}

.audience-card li {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 4px 0 4px 20px;
  position: relative;
}

.audience-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* --- Section with cream background --- */
.section-cream {
  background: var(--cream);
}

/* --- Introduction section --- */
.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(26,58,107,0.06));
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
  text-align: left;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-cities span {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .offices-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  section { padding: 64px 0; }

  /* Header mobile */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(11,29,58,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 24px;
    width: 100%;
    font-size: 1rem;
  }

  .nav-links a::after { display: none; }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero { min-height: 80vh; }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub h1 { font-size: 2rem; }
  .trust-badges { gap: 32px; }

  /* Grids */
  .card-grid,
  .services-grid,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .timeline::before { display: none; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .container { padding: 0 16px; }

  section { padding: 48px 0; }

  .hero { min-height: 70vh; padding-top: calc(var(--header-height) + 20px); }
  .hero h1 { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-badges {
    gap: 24px;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .stat-number { font-size: 2.2rem; }
}
