/* ===========================
   EXPAT LAWYER SPAIN - STYLES
   Warm, friendly, trustworthy
   =========================== */

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

:root {
  --primary: #E8652A;
  --primary-dark: #C94F1A;
  --secondary: #2A5C8F;
  --secondary-dark: #1A3F66;
  --accent: #F5A623;
  --bg: #FAFAF8;
  --card-bg: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #666;
  --border: #E8E4DC;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* HEADER */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
}
.logo strong { color: var(--primary); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; color: var(--text-light); font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--primary); }
.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #2A5C8F 0%, #1A3F66 50%, #E8652A 150%);
  color: white;
  padding: 80px 0 70px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 36px;
}

/* SEARCH BOX */
.search-box {
  display: flex;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 20px;
  background: white;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  flex-wrap: wrap;
}
.search-box select {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}
.btn-search {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-search:hover { background: var(--primary-dark); }

.hero-trust {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* STATS BAR */
.stats-bar {
  background: var(--secondary);
  color: white;
  padding: 24px 0;
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat span { font-size: 0.85rem; opacity: 0.85; }

/* SPECIALTIES */
.specialties {
  padding: 72px 0 60px;
  text-align: center;
}
.specialties h2, .listings h2, .why-us h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}
.section-sub {
  color: var(--text-light);
  margin-bottom: 40px;
}
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.specialty-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.specialty-card span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.specialty-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* LISTINGS */
.listings {
  padding: 60px 0;
  background: #F3F1ED;
  text-align: center;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}
.lawyer-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lawyer-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.lawyer-card.featured { border-color: var(--accent); border-width: 2px; }

.card-top { display: flex; align-items: flex-start; gap: 14px; }
.lawyer-avatar {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.lawyer-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.firm { font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }
.specialty-tag { font-size: 0.8rem; color: var(--primary); font-weight: 500; }

.badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}
.featured-badge { background: #FFF3D0; color: #8A6000; }

.lawyer-bio { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags span {
  background: #F0EDE8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text);
}
.btn-contact {
  display: inline-block;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
  margin-top: auto;
}
.btn-contact:hover { background: var(--secondary-dark); }

/* BASIC LISTINGS */
.lawyer-card.basic { opacity: 0.75; }
.basic-avatar { background: linear-gradient(135deg, #aaa, #ccc) !important; }
.basic-cta { margin-top: auto; }
.basic-cta p { font-size: 0.8rem; color: var(--text-light); font-style: italic; padding: 8px 0; border-top: 1px solid var(--border); }

.no-results { padding: 40px; color: var(--text-light); font-size: 1rem; }
.no-results a { color: var(--primary); }

/* WHY US */
.why-us { padding: 72px 0; text-align: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.why-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  font-size: 2rem;
}
.why-card h3 { font-size: 1rem; font-weight: 600; margin: 12px 0 8px; color: var(--secondary); }
.why-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }

/* CONTACT FORM */
.contact-section { padding: 72px 0; background: #F3F1ED; }
.contact-box {
  background: white;
  border-radius: 16px;
  padding: 48px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.contact-box h2 { font-size: 1.8rem; color: var(--secondary); margin-bottom: 10px; }
.contact-box > p { color: var(--text-light); margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--primary); }
.btn-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--primary-dark); }
.form-success { text-align: center; padding: 24px; color: #2D7A4F; font-weight: 500; }

/* LIST YOUR FIRM */
.list-firm {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: white;
  padding: 72px 0;
}
.list-firm-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.list-firm h2 { font-size: 2rem; margin-bottom: 12px; }
.list-firm p { opacity: 0.9; margin-bottom: 20px; }
.list-firm ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list-firm ul li { font-size: 0.95rem; opacity: 0.9; }
.list-firm-cta { text-align: center; flex-shrink: 0; }
.price-label { font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.price-sub { font-size: 0.9rem; opacity: 0.75; margin-bottom: 20px; }
.btn-list {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-list:hover { opacity: 0.9; }

/* FOOTER */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; }
footer .logo { color: white; }
footer p { font-size: 0.875rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-small { font-size: 0.75rem; opacity: 0.5; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.9rem; }
  .search-box { flex-direction: column; }
  nav { gap: 16px; }
  nav a:not(.btn-nav) { display: none; }
  .list-firm-inner { flex-direction: column; text-align: center; }
  .contact-box { padding: 32px 24px; }
  .header-inner { padding: 14px 16px; }
}
