/* ============================================================
   MARBELLA LAWYER — Global Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:   #0a1628;
  --gold:   #c9a84c;
  --gold-lt:#e2c47a;
  --dark:   #111827;
  --mid:    #374151;
  --light:  #f9fafb;
  --white:  #ffffff;
  --red:    #b91c1c;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,.15);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.6rem,4vw,2.4rem); }
h3 { font-size: clamp(1.2rem,3vw,1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--mid); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: .85rem;
  padding: 8px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--gold); font-weight: 600; }
.topbar a:hover { color: var(--gold-lt); }

/* ── NAVIGATION ── */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
}
.logo span { color: var(--gold); }
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
nav ul a {
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: color .2s;
}
nav ul a:hover,
nav ul a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f55 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><path d="M0 60L60 0" stroke="rgba(201,168,76,.07)" stroke-width="1"/></svg>') repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #cbd5e1; font-size: 1.15rem; max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-lt); color: var(--navy); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat { border-left: 3px solid var(--gold); padding-left: 16px; }
.stat strong { display: block; font-size: 2rem; color: var(--gold); font-family: var(--font-serif); }
.stat span { font-size: .85rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }

/* ── URGENT BANNER ── */
.urgent-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-weight: 600;
  font-size: 1rem;
}
.urgent-banner a { color: var(--white); text-decoration: underline; }

/* ── SECTIONS ── */
section { padding: 80px 0; }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-intro { color: var(--mid); font-size: 1.1rem; max-width: 640px; margin-bottom: 48px; }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p, .bg-navy li { color: #cbd5e1; }
.bg-navy .section-label { color: var(--gold); }

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: .95rem; margin-bottom: 16px; }
.service-card a.link-arrow {
  color: var(--gold);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card a.link-arrow:hover { color: var(--navy); }

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 28px;
}
.why-item { padding: 28px; background: rgba(255,255,255,.05); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); }
.why-item .icon { font-size: 2rem; margin-bottom: 14px; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, #a8853a 100%);
  color: var(--navy);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--navy); margin-bottom: 12px; }
.cta-band p { color: rgba(10,22,40,.75); font-size: 1.1rem; margin-bottom: 32px; }
.cta-band .btn-primary { background: var(--navy); color: var(--gold); }
.cta-band .btn-primary:hover { background: #0f2040; }
.cta-phones { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--gold);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: 700;
}
.phone-pill:hover { background: #0f2040; color: var(--gold-lt); }

/* ── PROCESS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 0;
  position: relative;
}
.step {
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}
.step h4 { margin-bottom: 8px; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
details {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}
summary {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}
summary::after { content: '+'; font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 14px; margin-bottom: 0; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  opacity: .2;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}
.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial p { font-size: .95rem; margin-bottom: 16px; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: .9rem; }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media(max-width:768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; margin-top: 24px; }
.contact-info-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-list .ci-icon {
  width: 42px;
  height: 42px;
  background: rgba(201,168,76,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .9rem; }
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: #6b7280; margin-top: 10px; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 64px 0 0;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #94a3b8; font-size: .9rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
}
.footer-disclaimer {
  font-size: .78rem;
  color: #64748b;
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--light);
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: .85rem;
  color: var(--mid);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 8px; color: #9ca3af; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f55 100%);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><path d="M0 60L60 0" stroke="rgba(201,168,76,.07)" stroke-width="1"/></svg>') repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: #cbd5e1; font-size: 1.1rem; max-width: 640px; margin-bottom: 28px; }

/* ── SIDEBAR LAYOUT ── */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}
@media(max-width:900px) { .content-sidebar { grid-template-columns: 1fr; } }
.sticky-card {
  position: sticky;
  top: 90px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.sticky-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.sticky-card p { font-size: .9rem; margin-bottom: 20px; }
.sticky-phone {
  display: block;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.sticky-phone:hover { background: var(--gold-lt); color: var(--navy); }
.emergency-note {
  text-align: center;
  font-size: .82rem;
  color: var(--red);
  font-weight: 600;
}

/* ── CONTENT PROSE ── */
.prose h2 { margin: 40px 0 14px; font-size: 1.7rem; }
.prose h3 { margin: 30px 0 10px; font-size: 1.3rem; }
.prose p  { color: var(--mid); margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { color: var(--mid); margin-bottom: 8px; }
.prose .highlight-box {
  background: rgba(201,168,76,.08);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.prose .highlight-box p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.prose th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-size: .9rem; }
.prose td { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; font-size: .95rem; color: var(--mid); }
.prose tr:nth-child(even) td { background: var(--light); }

/* ── BADGES ── */
.badge-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light);
  border: 1px solid #e5e7eb;
  border-radius: 40px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.badge .icon { color: var(--gold); }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  nav ul { gap: 16px; }
}
@media(max-width:480px) {
  nav ul { display: none; }
  .topbar .container { flex-direction: column; text-align: center; }
}
