@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #123520;
  --bg-secondary: #1C452C;
  --bg-light: #F4F1E8;
  --bg-light-alt: #EDE8DC;
  --gold: #D4A92C;
  --gold-light: #DFBA3F;
  --gold-dark: #B08C1F;
  --burgundy: #5C1A1A;
  --burgundy-light: #7a2e2e;
  --text-light: #EDE8DC;
  --text-dark: #123520;
  --text-carbon: #1A1A1A;
  --text-muted: #8C8779;
  --border-subtle: rgba(212, 169, 44, 0.15);
  --border-gold: rgba(212, 169, 44, 0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
  --shadow-gold: 0 4px 20px rgba(212,169,44,0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-elegant: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Playfair Display', 'Didot', 'Georgia', serif;
  --font-body: 'EB Garamond', 'Source Serif Pro', 'Georgia', serif;
  --font-ui: 'Cormorant Garamond', 'Georgia', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home {
  background-color: var(--bg-primary);
}

body.inner-page {
  background-color: var(--bg-primary);
}

body.light-section {
  background-color: var(--bg-light);
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--gold-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

::selection {
  background-color: var(--gold);
  color: var(--bg-primary);
}

/* ═══════════════════════════════════════════
   PAGE TRANSITION OVERLAY
   ═══════════════════════════════════════════ */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition-elegant);
}

body.home .navbar {
  background: transparent;
}

body.home .navbar.scrolled {
  background: rgba(18, 53, 32, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

body.inner-page .navbar {
  background: rgba(18, 53, 32, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand svg {
  width: 48px;
  height: 48px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-brand-sub {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.3rem 0;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--gold);
  padding: 0.6rem 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  transition: var(--transition-smooth);
  display: block;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(18, 53, 32, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
  letter-spacing: 0.05em;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(18,53,32,0.82) 0%, rgba(28,69,44,0.75) 50%, rgba(18,53,32,0.85) 100%),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=80') center center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(18,53,32,0.4) 70%, rgba(18,53,32,0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-monogram {
  opacity: 0;
  transform: scale(0.8);
  margin-bottom: 2rem;
}

.hero-monogram svg {
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-light);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.hero-scroll span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--gold);
  padding: 0.9rem 2.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  padding: 0.9rem 2.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(237, 232, 220, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-dark {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-light);
  background: var(--bg-primary);
  padding: 0.9rem 2.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-dark:hover {
  background: var(--bg-secondary);
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background: var(--bg-primary);
  color: var(--text-light);
}

.section-secondary {
  background: var(--bg-secondary);
  color: var(--text-light);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-burgundy {
  background: var(--burgundy);
  color: var(--text-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  max-width: 100%;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-dark .section-title,
.section-secondary .section-title {
  color: var(--text-light);
}

.section-light .section-title {
  color: var(--text-dark);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-subtitle,
.section-secondary .section-subtitle {
  color: var(--text-muted);
}

.section-light .section-subtitle {
  color: var(--text-muted);
}

.gold-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.gold-line-left {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════
   INNER PAGE HERO (smaller)
   ═══════════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, rgba(18,53,32,0.95) 50%, var(--bg-primary) 100%);
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(28,69,44,0.3) 0%, rgba(18,53,32,0.8) 100%);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
  max-width: 500px;
  margin: 0 auto;
}

.page-hero .gold-line {
  margin: 1.5rem auto;
}

.page-hero-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-hero-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  padding-bottom: 0.3rem;
}

.page-hero-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.page-hero-nav a:hover {
  color: var(--gold);
}

.page-hero-nav a:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════
   COUNTERS SECTION
   ═══════════════════════════════════════════ */
.counters {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-item {
  padding: 1.5rem;
}

.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-text {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   PHILOSOPHY / QUOTE
   ═══════════════════════════════════════════ */
.philosophy {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  position: relative;
}

.philosophy-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -3rem;
  left: -1rem;
  line-height: 1;
}

.philosophy-attribution {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.philosophy-decoration {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto 0;
}

/* ═══════════════════════════════════════════
   PRACTICE AREAS GRID
   ═══════════════════════════════════════════ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.area-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition-elegant);
  overflow: hidden;
  cursor: pointer;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.area-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(212,169,44,0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.area-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.area-card:hover::before {
  opacity: 1;
}

.area-card:hover::after {
  opacity: 1;
}

.area-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--gold);
  transition: var(--transition-smooth);
}

.area-card:hover .area-icon {
  transform: scale(1.1);
}

.area-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.area-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Areas page large cards */
.areas-grid-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.area-card-large {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 3rem;
  transition: var(--transition-elegant);
  overflow: hidden;
}

.area-card-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.area-card-large:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.area-card-large:hover::before {
  transform: scaleX(1);
}

.area-card-large .area-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
}

.area-card-large .area-name {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.area-card-large .area-desc {
  font-size: 1rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-elegant);
  cursor: pointer;
  border: 1px solid transparent;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) sepia(10%) contrast(1.1);
  transition: var(--transition-elegant);
}

.team-card:hover .team-photo img {
  filter: grayscale(40%) sepia(5%) contrast(1.05);
  transform: scale(1.03);
}

.team-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(18,53,32,0.9), transparent);
  pointer-events: none;
}

.team-info {
  padding: 1.5rem;
  background: var(--bg-primary);
  text-align: center;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.team-role {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.team-specialty {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Team page full grid */
.team-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-full-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-elegant);
  border: 1px solid transparent;
  background: var(--bg-primary);
}

.team-full-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.team-full-card .team-photo {
  aspect-ratio: 3/4;
}

.team-full-card .team-photo img {
  filter: grayscale(70%) sepia(8%);
}

.team-full-card:hover .team-photo img {
  filter: grayscale(30%) sepia(3%);
}

.team-full-bio {
  padding: 1.5rem;
}

.team-full-bio .team-name {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.team-full-bio .team-role {
  margin-bottom: 0.5rem;
}

.team-full-bio .team-bio-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.8rem;
}

/* Team filter */
.team-filter {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.team-filter-btn {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.team-filter-btn:hover,
.team-filter-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,169,44,0.05);
}

/* ═══════════════════════════════════════════
   CASES / TESTIMONIALS
   ═══════════════════════════════════════════ */
.cases-carousel {
  max-width: 900px;
  margin: 0 auto;
}

.case-slide {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 3rem;
  text-align: center;
}

.case-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.case-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  text-align: center;
  padding: 2rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.testimonial-position {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.3rem;
}

/* Cases detail page */
.cases-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.case-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  transition: var(--transition-elegant);
}

.case-detail:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.case-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-detail-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.case-detail-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

.case-detail-section {
  margin-top: 0.5rem;
}

.case-detail-section h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.case-detail-section p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.case-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.case-stat-box {
  text-align: center;
  padding: 3rem;
  border: 1px solid var(--border-gold);
  width: 100%;
}

.case-stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.case-stat-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Swiper custom styles */
.swiper-button-next,
.swiper-button-prev {
  color: var(--gold) !important;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

.swiper-pagination-bullet {
  background: var(--gold) !important;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section.burgundy {
  background: var(--burgundy);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(237,232,220,0.7);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   TIMELINE (La Firma)
   ═══════════════════════════════════════════ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-elegant);
}

.timeline-content:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 5px var(--gold);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.timeline-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   VALUES
   ═══════════════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-light);
  transition: var(--transition-elegant);
}

.value-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--gold);
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.value-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-light);
  background: rgba(28,69,44,0.5);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: var(--transition-smooth);
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212,169,44,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9A227' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-light);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-info-panel {
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  background: rgba(28,69,44,0.3);
}

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

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-info-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.contact-info-value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-map {
  margin-top: 3rem;
  width: 100%;
  height: 300px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map-placeholder {
  text-align: center;
  padding: 2rem;
}

.contact-map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.contact-map-placeholder p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand svg {
  width: 40px;
  height: 40px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════
   DECORATIVE
   ═══════════════════════════════════════════ */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.ornament-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

.section-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A227' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   SWIPER OVERRIDES
   ═══════════════════════════════════════════ */
.swiper {
  padding-bottom: 3rem !important;
}

.swiper-wrapper {
  align-items: stretch;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .areas-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid,
  .team-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-detail {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-cta-desktop {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    letter-spacing: 0.06em;
  }
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .areas-grid {
    grid-template-columns: 1fr;
  }
  .areas-grid-large {
    grid-template-columns: 1fr;
  }
  .team-grid,
  .team-full-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .timeline::before {
    left: 1.5rem;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
  }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 3rem);
    margin-left: 3rem;
    text-align: left;
  }
  .timeline-dot {
    left: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 4rem 0;
  }
  .case-slide {
    padding: 2rem 1.5rem;
  }
  .case-detail {
    padding: 2rem 1.5rem;
  }
  .page-hero-nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }
  .nav-brand-name {
    font-size: 0.9rem;
  }
  .counters-grid {
    grid-template-columns: 1fr;
  }
}
