/* ===== CSS Variables (Design Tokens) ===== */
:root {
  --bg: hsl(165, 35%, 12%);
  --fg: hsl(0, 0%, 98%);
  --card: hsl(165, 30%, 15%);
  --card-fg: hsl(0, 0%, 98%);
  --secondary: hsl(165, 30%, 18%);
  --secondary-fg: hsl(0, 0%, 95%);
  --muted: hsl(165, 25%, 20%);
  --muted-fg: hsl(0, 0%, 80%);
  --accent: hsl(45, 95%, 52%);
  --accent-fg: hsl(165, 40%, 8%);
  --border: hsl(165, 20%, 28%);
  --primary: hsl(45, 90%, 50%);
  --primary-fg: hsl(165, 40%, 8%);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 0.25rem;
  --container: 72rem;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--fg);
  background: transparent;
}
.btn-outline:hover { background: hsla(0,0%,100%,0.05); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-white-outline {
  border: 1px solid hsla(0,0%,100%,0.2);
  color: #fff;
}
.btn-white-outline:hover { background: hsla(0,0%,100%,0.1); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(165, 35%, 12%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(165, 20%, 28%, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
@media (min-width: 768px) { .header-inner { height: 6rem; } }

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon img { height: 3.5rem; width: auto; }
@media (min-width: 768px) { .logo-icon img { height: 4rem; } }
@media (min-width: 1024px) { .logo-icon img { height: 4.5rem; } }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.2;
}
@media (min-width: 768px) { .logo-name { font-size: 1.5rem; } }
@media (min-width: 1024px) { .logo-name { font-size: 1.6rem; } }
.logo-subtitle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.125rem;
  max-width: 90%;
}
@media (min-width: 768px) { .logo-subtitle { gap: 0.5rem; margin-top: 0.25rem; } }
.logo-line {
  width: 1rem;
  height: 1px;
  background: hsla(0,0%,100%,0.5);
}
@media (min-width: 768px) { .logo-line { width: 1.5rem; } }
.logo-advogados {
  font-size: 8px;
  font-weight: 500;
  color: hsla(45, 95%, 52%, 0.8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 768px) { .logo-advogados { font-size: 10px; letter-spacing: 0.3em; } }

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link:hover, .nav-link.active { color: var(--fg); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-icon { width: 16px; height: 16px; transition: transform 0.2s; }
.dropdown.open .dropdown-icon { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  z-index: 50;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu > div, .dropdown-menu {
  min-width: 14rem;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: all 0.2s;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
}
.dropdown-menu a:first-child {
  border-top: 1px solid var(--border);
  border-radius: 0.5rem 0.5rem 0 0;
}
.dropdown-menu a:last-child { border-radius: 0 0 0.5rem 0.5rem; }
.dropdown-menu a:hover { color: var(--fg); background: var(--muted); }

/* Mobile */
.mobile-menu-btn { display: block; padding: 0.5rem; }
.mobile-menu-btn i { width: 24px; height: 24px; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

.mobile-dropdown-menu { display: none; padding-left: 1rem; margin-top: 0.5rem; }
.mobile-dropdown.open .mobile-dropdown-menu { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-dropdown-menu a { font-size: 0.875rem; color: var(--muted-fg); padding: 0.25rem 0; }
.mobile-dropdown-menu a:hover { color: var(--fg); }

/* ===== Footer ===== */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo img { height: 3rem; width: auto; }
.footer-logo-name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--primary); display: block; }
.footer-logo-sub { font-size: 0.75rem; color: var(--muted-fg); letter-spacing: 0.15em; text-transform: uppercase; display: block; }
.footer-tagline { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; max-width: 20rem; }
.footer-heading { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; color: var(--primary); }
.footer-links li + li { margin-top: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.footer-contact li + li { margin-top: 0.75rem; }
.footer-contact a { transition: color 0.2s; }
.footer-contact a:hover { color: var(--primary); }
.footer-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.25rem; color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom-links { display: flex; gap: 1rem; font-size: 0.75rem; color: hsla(0,0%,100%,0.4); }
.footer-bottom-links a:hover { color: var(--muted-fg); }

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.floating-whatsapp:hover { transform: scale(1.1); }

/* ===== Sections ===== */
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 5rem 0; } }

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .section-heading { font-size: 2.25rem; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 90vh; } }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: hsla(135, 33%, 13%, 0.65);
}
.hero-content {
  position: relative;
  z-index: 20;
  padding: 3rem 0;
  max-width: 42rem;
}
.hero-title {
  font-size: 1.875rem;
  color: var(--accent);
  line-height: 1.1;
  animation: fadeIn 0.8s ease-out;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--fg);
  animation: slideUp 0.8s ease-out 0.1s both;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: slideUp 0.8s ease-out 0.2s both;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* ===== Page Hero ===== */
.page-hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
@media (min-width: 768px) { .page-hero { padding: 7rem 0; } }
.page-hero.with-bg { min-height: 500px; display: flex; align-items: center; }
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: hsla(135, 33%, 13%, 0.6);
}
.page-hero:not(.with-bg) { background: var(--secondary); }
.page-hero-content { position: relative; z-index: 10; }
.page-hero h1 {
  font-size: 2.25rem;
  max-width: 56rem;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero.with-bg h1 { color: var(--accent); }
.page-hero-desc {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 32rem;
}
.page-hero.with-bg .page-hero-desc { color: hsla(0,0%,100%,0.9); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  color: var(--muted-fg);
}
.page-hero.with-bg .breadcrumb { color: hsla(0,0%,100%,0.7); }
.breadcrumb a:hover { color: var(--fg); }
.page-hero.with-bg .breadcrumb a:hover { color: #fff; }
.breadcrumb .current { color: var(--accent); font-weight: 500; }

/* ===== Trust Indicators ===== */
.trust-bar {
  padding: 1.5rem 0;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .trust-grid { gap: 2.5rem; } }
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-item i { color: var(--accent); width: 16px; height: 16px; }

/* ===== Areas Grid ===== */
.areas-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(4, 1fr); } }

.area-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.5s, box-shadow 0.5s;
  text-decoration: none;
}
.area-card:hover { transform: translateY(-0.5rem); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); }
.area-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.area-card:hover img { transform: scale(1.1); }
.area-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
}
.area-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.area-card-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsla(45, 95%, 52%, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.area-card-icon i { width: 24px; height: 24px; color: var(--accent-fg); }
.area-card-content {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
}
.area-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.area-card:hover .area-card-content h3 { color: var(--accent); }
.area-card-content p {
  color: hsla(0,0%,100%,0.9);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.area-card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}
.area-card-link i { width: 16px; height: 16px; transition: transform 0.3s; }
.area-card:hover .area-card-link i { transform: translateX(0.5rem); }

/* ===== CTA Section ===== */
.cta-section {
  padding: 2.5rem 0;
  background: hsla(214, 100%, 90%, 0.36);
  text-align: center;
}
@media (min-width: 768px) { .cta-section { padding: 3.5rem 0; } }
.cta-section h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
@media (min-width: 768px) { .cta-section h2 { font-size: 2rem; } }
.cta-section .cta-desc { color: hsla(0,0%,100%,0.7); font-size: 1rem; max-width: 32rem; margin: 0 auto 1.5rem; }
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }
.cta-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: hsla(0,0%,100%,0.6);
  font-size: 0.8125rem;
}
@media (min-width: 640px) { .cta-indicators { flex-direction: row; gap: 1.5rem; } }
.cta-indicators i { width: 14px; height: 14px; }

/* ===== Team ===== */
.team-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }

.team-card {
  background: var(--bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card:hover { border-color: hsla(45, 95%, 52%, 0.3); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3); }
.team-photo {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}
.team-card:hover .team-photo { border-color: hsla(45, 95%, 52%, 0.4); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--font-serif); font-weight: 700; font-size: 0.875rem; margin-bottom: 0.25rem; }
.team-card .team-role { color: var(--accent); font-weight: 600; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.team-card .team-specialty { color: var(--muted-fg); font-size: 0.6875rem; min-height: 2rem; }
.team-card .team-email { color: var(--muted-fg); font-size: 0.6875rem; margin-top: auto; padding-top: 0.5rem; transition: color 0.2s; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.team-card .team-email:hover { color: var(--accent); }

/* ===== Contact Form ===== */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.5rem; }
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 8rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: hsla(45, 95%, 52%, 0.3); }

/* ===== Accordion ===== */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 1rem;
}
.accordion-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  transition: background 0.2s;
  text-align: left;
}
.accordion-trigger:hover { background: hsla(165, 30%, 18%, 0.5); }
.accordion-trigger .trigger-left { display: flex; align-items: center; gap: 0.75rem; }
.accordion-trigger .trigger-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: hsla(45, 95%, 52%, 0.1);
}
.accordion-trigger .trigger-icon i { width: 20px; height: 20px; color: var(--accent); }
.accordion-trigger .chevron { width: 20px; height: 20px; transition: transform 0.2s; }
.accordion-item.open .accordion-trigger .chevron { transform: rotate(180deg); }
.accordion-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
}
.accordion-item.open .accordion-content { display: block; }

/* ===== Quote Band ===== */
.quote-band {
  padding: 6rem 0;
  background: hsl(135, 33%, 13%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-mark { font-family: var(--font-serif); font-size: 4.5rem; color: var(--accent); opacity: 0.6; margin-bottom: 2rem; line-height: 1; }
.quote-text { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; max-width: 56rem; margin: 0 auto 2.5rem; line-height: 1.4; font-weight: 300; }
@media (min-width: 768px) { .quote-text { font-size: 1.875rem; } }
.quote-author { color: var(--accent); font-weight: 600; font-size: 1.125rem; }
.quote-role { color: hsla(0,0%,100%,0.5); font-size: 0.875rem; }

/* ===== Utility ===== */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-fg); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Storytelling Section ===== */
.storytelling-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .storytelling-grid { grid-template-columns: repeat(2, 1fr); } }
.storytelling-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 220px;
}
@media (min-width: 768px) { .storytelling-img { min-height: 280px; } }
.storytelling-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.storytelling-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, hsla(165, 35%, 12%, 0.9), hsla(165, 35%, 12%, 0.3), transparent); }
.storytelling-img-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; font-family: var(--font-serif); font-size: 1.125rem; color: var(--fg); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.storytelling-text-block {
  border-radius: 1rem;
  background: hsla(165, 30%, 18%, 0.3);
  border: 1px solid hsla(165, 20%, 28%, 0.3);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.storytelling-text-block p { font-size: 1rem; color: var(--muted-fg); line-height: 1.7; }
.storytelling-highlight {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsla(45, 95%, 52%, 0.2);
  background: linear-gradient(to right, hsla(45, 95%, 52%, 0.1), hsla(45, 95%, 52%, 0.05), hsla(45, 95%, 52%, 0.1));
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.storytelling-highlight-icon {
  flex-shrink: 0;
  padding: 0.625rem;
  border-radius: 0.75rem;
  background: hsla(45, 95%, 52%, 0.15);
}
.storytelling-highlight-icon i { width: 24px; height: 24px; color: var(--accent); }
.storytelling-highlight p { font-family: var(--font-serif); font-size: 1.125rem; color: var(--fg); line-height: 1.5; }
@media (min-width: 768px) { .storytelling-highlight p { font-size: 1.375rem; } }

/* ===== Contact Banner ===== */
.contact-banner {
  background: hsla(45, 95%, 52%, 0.1);
  border-bottom: 1px solid hsla(45, 95%, 52%, 0.2);
  padding: 1rem 0;
}
.contact-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .contact-banner-inner { flex-direction: row; } }
.contact-banner-left { display: flex; align-items: center; gap: 1rem; }
.pulse-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.pulse-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* ===== Publication Card ===== */
.pub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
}
.pub-card:hover { border-color: hsla(45, 95%, 52%, 0.3); transform: translateY(-2px); }
.pub-card-img { height: 12rem; overflow: hidden; }
.pub-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pub-card:hover .pub-card-img img { transform: scale(1.05); }
.pub-card-body { padding: 1.5rem; }
.pub-card-cat { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.pub-card-title { font-family: var(--font-serif); font-size: 1.125rem; margin-bottom: 0.5rem; line-height: 1.3; }
.pub-card-excerpt { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-card-date { font-size: 0.75rem; color: var(--muted-fg); margin-top: 1rem; }

/* ===== Misc ===== */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: hsla(45, 95%, 52%, 0.1);
}
.icon-box i { width: 24px; height: 24px; color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge-accent {
  background: hsla(45, 95%, 52%, 0.2);
  border: 1px solid hsla(45, 95%, 52%, 0.4);
  color: var(--accent);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-fg);
}
.check-list li + li { margin-top: 0.75rem; }
.check-list i { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 0.125rem; }

.border-l-accent {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

/* Two column info grid */
.info-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-item i { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.info-item h4 { font-family: var(--font-sans); font-weight: 500; margin-bottom: 0.25rem; }
.info-item p, .info-item a { font-size: 0.875rem; color: var(--muted-fg); }
.info-item a:hover { color: var(--fg); }
