/* ========================================
   MILANI IMMIGRATION - MODERN DESIGN 2025
   ======================================== */

:root {
  --navy-950: #0B1830;
  --navy-900: #0F2044;
  --navy-800: #152C58;
  --navy-700: #1E3A6B;
  --navy-600: #2A4A80;
  --primary: #0B1830;
  --primary-light: #152C58;
  --accent: #B7935A;
  --accent-light: #D9BE8F;
  --gold: #B7935A;
  --gold-light: #D9BE8F;
  --gold-dim: rgba(183, 147, 90, 0.35);
  --cream: #F6F2E9;
  --cream-dim: #EDE7D8;
  --white: #FFFFFF;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #5C6472;
  --gray-800: #0B1830;
  --gradient-hero: radial-gradient(ellipse at 80% -10%, rgba(42, 74, 128, 0.55), transparent 55%), linear-gradient(160deg, #0B1830 0%, #0F2044 55%, #152C58 100%);
  --gradient-accent: linear-gradient(135deg, #B7935A 0%, #D9BE8F 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.12);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #161B22;
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 24, 48, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(183, 147, 90, 0.2);
  transition: all 0.3s ease;
}

.header-scrolled {
  background: rgba(11, 24, 48, 0.98);
  box-shadow: 0 8px 30px rgba(11, 24, 48, 0.3);
  border-bottom-color: rgba(183, 147, 90, 0.35);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-logo-img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav a:hover {
  color: var(--white);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.nav-jobs {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
}

.nav-jobs::after {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-selector {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
  border-radius: var(--radius-xl);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--white);
}

.lang-btn img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('imagempontehpn.jpg') center 35% / cover no-repeat;
  opacity: 0.22;
  filter: saturate(1.2) brightness(0.95);
  pointer-events: none;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 30%, rgba(42, 74, 128, 0.45) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(183, 147, 90, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-xl);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(183, 147, 90, 0.3);
}

.hero-badge::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(246, 242, 233, 0.82);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(183, 147, 90, 0.2);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.stat-number span {
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(246, 242, 233, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #0B1830;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 10px 25px rgba(183, 147, 90, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(183, 147, 90, 0.5);
  color: #0B1830;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  border: 1px solid rgba(183, 147, 90, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(183, 147, 90, 0.15);
  border-color: var(--gold-light);
}

.hero-card {
  background: rgba(15, 32, 68, 0.7);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(183, 147, 90, 0.28);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(183, 147, 90, 0.12);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.hero-card-flag {
  width: 52px;
  height: 34px;
  background: url('a-bandeira-da-irlanda.avif') center/cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.hero-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero-card p {
  color: rgba(246, 242, 233, 0.75);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.hero-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-card-features li {
  color: rgba(246, 242, 233, 0.9);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-card-features li::before {
  content: '✓';
  color: var(--gold-light);
  font-weight: bold;
}

/* ========================================
   SECTIONS GENERAL
   ======================================== */

.section {
  padding: 6rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title .highlight {
  color: var(--accent);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(210, 159, 47, 0.12), rgba(210, 159, 47, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ========================================
   ABOUT SECTION - SPOTLIGHT ON FABIANO MILANI
   ======================================== */

.about {
  background: var(--white);
  padding: 5.5rem 0;
  position: relative;
}

.about-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.15fr;
  gap: 2.75rem;
  align-items: stretch;
}

/* --- COLUMN 1: INTRO --- */
.about-col-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.about-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.about-main-title {
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about-main-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 2rem;
  text-align: justify;
}

.about-main-desc strong {
  color: var(--primary);
  font-weight: 700;
}

.about-link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  width: fit-content;
  transition: all 0.25s ease;
}

.about-link-action:hover {
  color: var(--accent);
  border-bottom-color: var(--primary);
}

.about-link-arrow {
  transition: transform 0.25s ease;
  stroke: currentColor;
}

.about-link-action:hover .about-link-arrow {
  transform: translateX(4px);
}

/* --- COLUMN 2: SOLICITOR SPOTLIGHT CARD --- */
.about-col-profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.solicitor-card {
  width: 100%;
  max-width: 320px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(11, 24, 48, 0.08);
  box-shadow: 0 12px 30px rgba(11, 24, 48, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.solicitor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 24, 48, 0.12);
  border-color: rgba(183, 147, 90, 0.25);
}

.solicitor-photo-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f6;
  position: relative;
}

.solicitor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.solicitor-card:hover .solicitor-photo {
  transform: scale(1.03);
}

.solicitor-details {
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--white);
}

.solicitor-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.solicitor-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 0;
}

.solicitor-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #0A66C2;
  color: #FFFFFF;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.solicitor-linkedin:hover {
  background: #004182;
  transform: scale(1.1);
}

.solicitor-title {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
  margin: 0;
}

/* --- COLUMN 3: QUALIFICATIONS & CREDENTIALS --- */
.about-col-credentials {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.credentials-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.credentials-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin: 0;
}

.law-society-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.law-society-logo {
  width: 92px;
  height: auto;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.law-society-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.law-society-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-top: 3px;
}

.ls-line1 {
  font-family: 'Montserrat', serif, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.ls-line2 {
  font-family: 'Montserrat', serif, sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--gray-600);
}

.credentials-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  text-align: justify;
}

.credentials-desc strong,
.credentials-desc em {
  color: var(--primary);
  font-weight: 700;
}

.certificate-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.certificate-box:hover {
  border-color: rgba(183, 147, 90, 0.4);
  background: #FFFFFF;
}

.cert-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(183, 147, 90, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-details {
  display: flex;
  flex-direction: column;
}

.cert-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.cert-authority {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 2px;
}

/* --- RESPONSIVENESS FOR ABOUT SHOWCASE --- */
@media (max-width: 1024px) {
  .about-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    max-width: 620px;
    margin: 0 auto;
  }

  .about-col-intro {
    text-align: left;
  }

  .about-col-profile {
    order: 2;
  }

  .about-col-credentials {
    order: 3;
  }

  .solicitor-card {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .hero-card {
    max-width: 100% !important;
    padding: 1.5rem 1.15rem !important;
  }

  .about {
    padding: 3.5rem 0;
    overflow-x: hidden;
  }

  .about-showcase-grid {
    gap: 2.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-col {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-main-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .about-main-desc {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .solicitor-card {
    max-width: 310px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .credentials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .credentials-title {
    font-size: 1.15rem;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }

  .law-society-badge {
    flex-shrink: 0;
  }

  .credentials-desc {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .certificate-box {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    box-sizing: border-box;
  }

  .cert-name {
    font-size: 0.85rem;
  }

  .cert-authority {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .about-main-title {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .credentials-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .law-society-badge {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    align-self: flex-start;
  }

  .law-society-text {
    text-align: left;
    margin-top: 0;
  }

  .header-content {
    padding: 0.6rem 0.85rem !important;
  }

  .header-logo-img {
    height: 34px !important;
    max-width: 140px !important;
  }

  .language-selector {
    padding: 0.15rem;
    gap: 0.25rem;
  }

  .lang-btn {
    padding: 0.25rem 0.4rem;
  }
}

/* ========================================
   JOBS & DASHBOARD LAYOUT GRIDS
   ======================================== */

.jobs-search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: end;
}

.jobs-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ========================================
   PROCESS SECTION
   ======================================== */

.process {
  background: var(--primary);
  color: var(--white);
}

.process .section-title {
  color: var(--white);
}

.process .section-description {
  color: rgba(255, 255, 255, 0.7);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.process-card {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.process-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
}

.process-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.process-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
  background: var(--gray-50);
}

.testimonials-carousel {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  width: 100%;
}

.testimonial-card img {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(183, 147, 90, 0.2);
  border-bottom: 1px solid rgba(183, 147, 90, 0.2);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('imagempontehpn.jpg') center/cover;
  opacity: 0.08;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content h2 .highlight {
  color: var(--accent-light);
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(246, 242, 233, 0.85);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--navy-950);
  color: var(--white);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(183, 147, 90, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .jobs-search-grid,
  .jobs-layout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .header-content {
    padding: 0.75rem 1rem !important;
  }

  .logo img {
    max-width: 165px !important;
    height: auto !important;
  }

  .hero-content {
    padding: 0 1rem !important;
  }

  .hero-card {
    max-width: 100% !important;
    padding: 1.5rem 1.15rem !important;
    box-sizing: border-box !important;
  }

  .container {
    padding: 0 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  /* --- DIFFERENTIALS (Nossos Diferenciais) --- */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* --- O QUE FAZEMOS --- */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .service-card {
    flex-direction: column;
  }

  /* --- ALL inline grids inside sections become single column --- */
  #diferenciais [style*="grid-template-columns"],
  #services [style*="grid-template-columns"],
  #process [style*="grid-template-columns"],
  .section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* --- QUEM SOMOS TEAM --- */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team member flex rows */
  [style*="display: flex"][style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  [style*="flex: 0 1 20%"],
  [style*="flex: 0 1 25%"],
  [style*="flex: 0 1 30%"] {
    flex: 0 1 80% !important;
    max-width: 280px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  /* CTA section */
  .cta-grid {
    grid-template-columns: 1fr !important;
  }

  /* Container padding */
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* Process cards single column on small phones */
  .process-card {
    padding: 1.5rem 1rem;
  }

  /* O que fazemos images */
  .service-img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
  }

  /* Features cards */
  .feature-card {
    padding: 1.25rem;
  }
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ========================================
   DASHBOARD / LOGIN
   ======================================== */

.language-selector-dashboard {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
  border-radius: var(--radius-xl);
  z-index: 100;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  background: var(--gradient-hero);
}

.dashboard-aside {
  color: #f6f8fc;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--white);
}

.login-card,
.admin-card {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 2rem 1.8rem 1.9rem;
  box-shadow: 0 16px 40px rgba(24, 46, 91, 0.18);
  border: 1px solid #dde7ff;
}

.login-card h1,
.admin-card h1 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.login-card p,
.admin-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.2rem;
}

.input,
.select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid #c9d5f0;
  font-family: inherit;
  font-size: 0.9rem;
}

.input:focus,
.select:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.form-row .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group .input,
.form-group .select {
  margin-top: auto;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--primary);
}

.helper-text {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 0.2rem;
}

.error-text {
  font-size: 0.8rem;
  color: #d93025;
  margin-bottom: 0.8rem;
  display: none;
}

.error-text.visible {
  display: block;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-meta {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.jobs-mini-list {
  margin-top: 1.2rem;
  max-height: 180px;
  overflow: auto;
  border-top: 1px solid #ecf0fb;
  padding-top: 0.7rem;
}

.jobs-mini-list li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 0.15rem 0;
  display: flex;
  justify-content: space-between;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0 0.4rem;
  background: #ecf2ff;
  color: var(--primary);
}

/* Dashboard RESPONSIVE */
@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-aside {
    padding: 2.5rem 1.8rem 2rem;
    margin-top: 2rem;
  }

  .dashboard-main {
    padding: 2rem 1.6rem 3rem;
    background: transparent;
  }
}

@media (max-width: 768px) {
  .dashboard-aside {
    padding: 1.5rem;
    text-align: center;
  }

  .dashboard-main {
    padding: 1.5rem;
  }

  .login-card,
  .admin-card {
    padding: 1.5rem;
  }
  
  .dashboard-shell .form-row {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
}


/* === PREVIEW: About com fundo azul e detalhes dourados (remover este bloco para voltar ao branco) === */
.about {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(42, 74, 128, 0.55), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(183, 147, 90, 0.12), transparent 45%),
    linear-gradient(160deg, #0B1830 0%, #0F2044 55%, #152C58 100%);
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
.about::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.about .container { position: relative; z-index: 1; }
.about-main-title,
.credentials-title { color: #FFFFFF; }
.about-main-desc,
.credentials-desc { color: rgba(246, 242, 233, 0.82); }
.about-main-desc strong,
.credentials-desc strong,
.credentials-desc em { color: var(--gold-light); }
.about .solicitor-card {
  border: 1px solid rgba(183, 147, 90, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(183, 147, 90, 0.08);
}
.about .certificate-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(183, 147, 90, 0.4);
}
.about .certificate-box:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--gold);
}
.about .cert-name { color: #FFFFFF; }
.about .cert-authority { color: var(--gold-light); }
.about .cert-icon-wrapper { background: rgba(183, 147, 90, 0.2); }
/* === FIM PREVIEW === */


/* === PREVIEW 2: secoes invertidas (azul <-> branco). Apagar este bloco para desfazer === */
:root {
  --blue-bg: radial-gradient(ellipse at 85% 0%, rgba(42, 74, 128, 0.55), transparent 55%), radial-gradient(circle at 10% 100%, rgba(183, 147, 90, 0.12), transparent 45%), linear-gradient(160deg, #0B1830 0%, #0F2044 55%, #152C58 100%);
  --grid-lines: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 64px), repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 64px);
}
#services, #testimonials { position: relative; overflow: hidden; }
#services::before, #testimonials::before { content: ''; position: absolute; inset: 0; background-image: var(--grid-lines); pointer-events: none; }
#services::after, #testimonials::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
#services .container, #testimonials .container { position: relative; z-index: 1; }
#diferenciais, #process { position: relative; }
#diferenciais::after, #process::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* --- DIFFERENTIALS: agora branco, cards azuis --- */
#diferenciais { background: #FFFFFF !important; }
#diferenciais .section-title span:first-child { color: var(--primary) !important; }
#diferenciais .container > div:last-child > div {
  background: linear-gradient(160deg, #0B1830 0%, #152C58 100%) !important;
  border: 1px solid rgba(183, 147, 90, 0.5);
  box-shadow: 0 14px 35px rgba(11, 24, 48, 0.25) !important;
}
#diferenciais h3 { color: #FFFFFF !important; }
#diferenciais p { color: rgba(246, 242, 233, 0.85) !important; }
#diferenciais p strong { color: var(--gold-light); }

/* --- SERVICES: agora azul --- */
#services { background: var(--blue-bg) !important; }
#services .section-title { color: #FFFFFF; }
#services .container > div:not(.section-header) > div {
  background: #FFFFFF;
  border: 1px solid rgba(183, 147, 90, 0.5);
  border-radius: 14px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
#services .container > div:not(.section-header) > div:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4); }
#services h3 { color: #000000 !important; }
#services h3 span { color: #000000; }
#services p { color: #1a1a1a !important; text-align: justify !important; text-justify: inter-word; hyphens: auto; }

/* --- PROCESS: agora branco, cards azuis --- */
.process { background: #FFFFFF; color: var(--primary); }
.process .section-title { color: var(--primary); }
.process .section-description { color: var(--gray-600); }
.process-card {
  background: linear-gradient(160deg, #0B1830 0%, #152C58 100%);
  border: 1px solid rgba(183, 147, 90, 0.5);
  box-shadow: 0 14px 35px rgba(11, 24, 48, 0.25);
}
.process-card h3 { color: #FFFFFF; }
.process-card p { color: rgba(246, 242, 233, 0.85); }
.process-card p strong { color: var(--gold-light); }
.process-number { color: var(--primary); }

/* --- TESTIMONIALS: agora azul --- */
.testimonials { background: var(--blue-bg); }
.testimonials .section-title { color: #FFFFFF; }
.testimonials .section-description { color: rgba(246, 242, 233, 0.8); }
.testimonial-card { background: #FFFFFF; border: 1px solid rgba(183, 147, 90, 0.5); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35); }
.testimonial-btn { background: transparent; border-color: var(--gold); color: var(--gold-light); }
.testimonial-btn:hover { background: var(--gold); color: var(--primary); }
.testimonial-dot { background: rgba(255, 255, 255, 0.3); }
.testimonial-dot.active { background: var(--gold); }
/* === FIM PREVIEW 2 === */


/* Differentials: estrela centralizada em medalhão dourado acima do título */
#diferenciais .container > div:last-child > div > div:first-child {
  position: static !important;
  width: 38px;
  height: 38px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(183, 147, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  color: var(--gold-light) !important;
}
#diferenciais .container > div:last-child > div > div:first-child svg { width: 16px; height: 16px; }

.testimonial-card { padding: 3px; }
