/* ================================================================
   Real Estate Lawyer for International Individuals
   Main Stylesheet — RealEstateLawyerCostadelSol.com
   Colours: Orange #D4611A | White #FFFFFF | Dark #1C1C1E
   ================================================================ */

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

:root {
  --orange:        #D4611A;
  --orange-hover:  #E8772E;
  --orange-pale:   #FFF3EC;
  --white:         #FFFFFF;
  --dark:          #1C1C1E;
  --gray:          #6B7280;
  --gray-light:    #F3F4F6;
  --border:        #E5E7EB;
  --wa-green:      #25D366;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { transition: color 0.2s, opacity 0.2s; }

/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */

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

section { padding: 80px 0; }
section .container { padding: 0 24px; }

/* ----------------------------------------------------------------
   HEADER
---------------------------------------------------------------- */

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

nav a:hover { color: var(--orange); }

nav a.btn-whatsapp {
  margin-left: 12px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  color: var(--white) !important;
}

nav.open a.btn-whatsapp {
  margin-left: 0;
  border-left: none;
  padding-left: 18px;
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.2s;
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--orange-hover); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 13px 27px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.45);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-whatsapp:hover { background: #1fbc5a; color: var(--white); }

.btn-submit {
  background: var(--orange);
  color: var(--white);
  padding: 15px 32px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--orange-hover); }

/* ----------------------------------------------------------------
   SECTION HEADINGS
---------------------------------------------------------------- */

.section-label {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 620px;
  line-height: 1.75;
}

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */

.hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(212,97,26,0.12) 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h1 span { color: var(--orange-hover); }

.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

/* ----------------------------------------------------------------
   TRUST BAR
---------------------------------------------------------------- */

.trust-bar {
  background: var(--orange);
  color: var(--white);
  padding: 20px 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.trust-item .icon { font-size: 20px; }

/* ----------------------------------------------------------------
   STATS
---------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.stat {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
}

/* ----------------------------------------------------------------
   CARDS
---------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.card-icon { font-size: 36px; margin-bottom: 16px; }

.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark);
}

.card p { color: var(--gray); font-size: 15px; line-height: 1.65; }

.card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.card a:hover { color: var(--orange-hover); }

/* ----------------------------------------------------------------
   TWO-COLUMN LAYOUT
---------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

.two-col-text h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.two-col-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.75;
}

.two-col-text ul {
  list-style: none;
  margin: 20px 0;
}

.two-col-text ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.two-col-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   SECTION VARIANTS
---------------------------------------------------------------- */

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.75); }

.section-orange {
  background: var(--orange);
  color: var(--white);
}

.section-orange .section-title { color: var(--white); }
.section-orange .section-subtitle { color: rgba(255,255,255,0.88); }

.section-light { background: var(--orange-pale); }

.section-gray { background: var(--gray-light); }

/* ----------------------------------------------------------------
   CTA SECTION
---------------------------------------------------------------- */

.cta-section {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   PROCESS STEPS
---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 32px 20px;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0 auto 20px;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 10px;
}

.step p { color: var(--gray); font-size: 14px; line-height: 1.65; }

/* ----------------------------------------------------------------
   CONTACT FORM
---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(212,97,26,0.12);
}

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

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contact-info-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }

.contact-info-item h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact-info-item p { font-size: 15px; }

.contact-info-item a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-item a:hover { color: var(--orange-hover); }

/* ----------------------------------------------------------------
   BLOG
---------------------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}

.blog-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 24px; }

.blog-tag {
  display: inline-block;
  background: var(--orange-pale);
  color: var(--orange);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

.blog-card h3 a:hover { color: var(--orange); }

.blog-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.read-more {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover { color: var(--orange-hover); }

/* ----------------------------------------------------------------
   ARTICLE / BLOG POST
---------------------------------------------------------------- */

.article-header {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
}

.article-header .container { max-width: 860px; }

.article-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.article-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.article-breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 44px 0 16px;
  color: var(--dark);
  line-height: 1.3;
}

.article-body p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #3a3a3a;
  font-size: 16px;
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.75;
  color: #3a3a3a;
}

.article-cta {
  background: var(--orange-pale);
  border-left: 4px solid var(--orange);
  padding: 28px 32px;
  border-radius: 0 8px 8px 0;
  margin: 36px 0;
}

.article-cta p { margin-bottom: 16px; color: var(--dark); }

.article-sidebar-cta {
  background: var(--dark);
  color: var(--white);
  border-radius: 10px;
  padding: 28px;
  margin-top: 40px;
}

.article-sidebar-cta h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 12px;
}

.article-sidebar-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ----------------------------------------------------------------
   PAGE HERO (for inner pages)
---------------------------------------------------------------- */

.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero .section-label { color: rgba(255,255,255,0.6); }

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   SERVICE PAGE
---------------------------------------------------------------- */

.service-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.service-block-icon { font-size: 48px; }

.service-block h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 12px;
}

.service-block p {
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.75;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */

footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
}

.footer-top {
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  filter: brightness(10);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 20px;
}

footer h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

footer ul { list-style: none; }

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

footer ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

footer ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ----------------------------------------------------------------
   PARTNERS SECTION
---------------------------------------------------------------- */

.partners-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 32px;
  flex: 1;
  min-width: 240px;
}

.partner-card h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin-bottom: 8px;
}

.partner-card p { color: var(--gray); font-size: 14px; line-height: 1.65; margin-bottom: 12px; }

.partner-card a {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.partner-card a:hover { color: var(--orange-hover); }

/* ----------------------------------------------------------------
   UTILITIES
---------------------------------------------------------------- */

.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .hero { padding: 60px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 32px; }
  .hero-image { display: none; }

  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .two-col img { height: 280px; }

  .contact-grid { grid-template-columns: 1fr; }
  .service-block-inner { grid-template-columns: 1fr; }

  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 30px; }
  .cta-section h2 { font-size: 28px; }
  .article-header h1 { font-size: 28px; }

  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header-inner { height: 64px; position: relative; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .trust-bar .container { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 26px; }
  .stat-number { font-size: 36px; }
  .hero-buttons { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   FAQ ACCORDION
---------------------------------------------------------------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] .faq-q::after { content: '−'; }

.faq-a {
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.75;
}

.faq-item:hover { border-color: var(--orange); }

