@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --primary: #18739c;
  --dark: #082533;
  --hover: #104a64;
  --gold: #c9a227;
  --gold-light: #d4b64c;
  --gold-subtle: rgba(201, 162, 39, 0.08);
  --gold-glow: rgba(201, 162, 39, 0.3);
  --bg: #ffffff;
  --bg-light: #f9f9f9;
  --bg-warm: #fdfbf7;
  --text: #333333;
  --text-light: #666666;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-gold: 0 8px 30px rgba(201, 162, 39, 0.25);

  --transition: 0.3s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 0;
  line-height: 1.2;
  color: var(--dark);
}

a {
  color: var(--primary);
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* Heading Utilities */
.heading-xl {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: 2.25rem;
  font-weight: 600;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 600;
}

.heading-sm {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  padding: 20px 40px;
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.header .hamburger {
  display: none;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo-left {
  max-width: 180px;
  max-height: 120px;
}

.logo-right {
  max-height: 200px;
}

/* Logo Definition (styled text version) */
.logo-definition {
  text-align: left;
  border-left: 2px solid var(--gold);
  padding-left: var(--space-md);
}

.logo-definition .logo-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  display: block;
  letter-spacing: 0.05em;
}

.logo-definition .logo-subtitle {
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.25rem;
}

.logo-definition p {
  font-size: 0.8rem;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

/* Navigation */
.nav-wrapper {
  background-color: var(--bg);
  padding: 15px 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 48px;
  min-height: 48px;
  overflow: visible;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.nav-links a {
  padding: 0.5rem 0;
  display: inline-block;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-links a.active {
  color: var(--dark);
  border-bottom-color: var(--gold);
}

/* Sub-menu (services page) */
.sub-menu {
  text-align: center;
  padding: 20px 0;
  background-color: var(--bg-light);
  margin-bottom: 40px;
}

.sub-menu a {
  margin: 0 15px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition);
}

.sub-menu a:hover {
  color: var(--gold);
}

/* Service Sections (services page) */
.service-section {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: 0;
  border-bottom: none;
  border-radius: 16px;
  transition: background-color 0.3s ease;
}

.service-section:nth-child(odd) {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.service-section:nth-child(even) {
  flex-direction: row-reverse;
  background: var(--bg);
}

.service-section:last-child {
  margin-bottom: 0;
}

.service-icon {
  flex-shrink: 0;
}

.service-icon img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.service-section:hover .service-icon img {
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.service-text h2 {
  position: relative;
  display: inline-block;
}

.service-text h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
}

.service-text p {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .service-section,
  .service-section:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
  }

  .service-section:nth-child(odd) {
    background: var(--bg-warm);
  }

  .service-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .service-icon img {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 600px) {
  .service-icon img {
    width: 140px;
    height: 140px;
  }
}

/* Utility: Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Card Components */
.card {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.card-gold {
  border: none;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.card-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 12px 12px 0 0;
}

.card-gold:hover {
  box-shadow: var(--shadow-gold);
}

/* Button Variations */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  min-height: 52px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--hover) 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(24, 115, 156, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 115, 156, 0.4);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
  border: none;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
  color: var(--dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--dark);
  border: none;
}

.btn-ghost:hover {
  color: var(--gold);
  background-color: var(--gold-subtle);
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.slide-up {
  opacity: 0;
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-in-right {
  animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.py-1 { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-2 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-3 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-4 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-5 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

.px-1 { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.px-2 { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-3 { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-4 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-5 { padding-left: var(--space-xl); padding-right: var(--space-xl); }

/* Pull Quote */
.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--dark);
  border-left: 4px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--bg-light);
}

.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

/* Figure/Image */
.figure {
  margin: var(--space-lg) 0;
  text-align: center;
}

.figure img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.article-content ul {
  font-size: 1.1rem;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.article-content li {
  margin-bottom: var(--space-sm);
}

/* Text Utilities */
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Layout Utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Homepage Hero */
.flex-message {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--dark) !important;
  color: white;
  font-size: 1.1rem;
}

.flex-message p {
  color: white;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-image {
  flex: 2 1 500px;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  max-height: 400px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage Service Cards */
a.card {
  text-decoration: none;
  display: block;
}

a.card .service-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a.card:hover .service-icon {
  transform: scale(1.1);
}

a.card h3 {
  margin-bottom: 0;
  transition: color var(--transition);
}

a.card:hover h3 {
  color: var(--gold);
}

/* Section Separation & Visual Rhythm (VICI-TAX-25) */
.section-alt {
  background-color: var(--bg-warm);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
}

.section-divider {
  position: relative;
  padding-top: var(--space-xl);
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-accent-bar {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
  margin: 0 auto var(--space-md);
}

/* Gold background section */
.section-gold {
  background: linear-gradient(135deg, var(--gold-subtle) 0%, rgba(201, 162, 39, 0.03) 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

/* Decorative corner accent */
.corner-accent {
  position: relative;
}

.corner-accent::before,
.corner-accent::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.4;
}

.corner-accent::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.corner-accent::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* Contact Form Styles (VICI-TAX-29) */
.contact-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 2px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  padding: var(--space-lg);
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item-value {
  font-weight: 500;
  color: var(--dark);
}

.contact-form {
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--primary) 100%);
  border-radius: 16px 16px 0 0;
}

.contact-form h1 {
  margin-bottom: var(--space-xs);
}

.form-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #ccc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.recaptcha-wrapper {
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
}

.contact-form .btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 1.1rem 2rem;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-info {
    text-align: center;
    padding: var(--space-md);
  }

  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: var(--space-lg) var(--space-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .header {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-md);
    justify-content: space-between;
    overflow: visible;
  }

  .header .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
  }

  .logo-left {
    max-width: 140px;
    max-height: 90px;
  }

  .logo-definition .logo-title {
    font-size: 1.25rem;
  }

  .logo-definition .logo-subtitle,
  .logo-definition p {
    font-size: 0.75rem;
  }

  .nav-wrapper {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 99;
  }

  .nav-wrapper .hamburger {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--bg);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .nav-links.open {
    display: flex;
    max-height: 400px;
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    padding: var(--space-sm);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
  }

  .nav-links.open a {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links.open a:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.2s; }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    background-color: var(--gold-subtle);
  }

  .sub-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: var(--space-sm);
  }

  .sub-menu a {
    margin: 0;
    font-size: 0.95rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .heading-xl { font-size: 2.25rem; }
  .heading-lg { font-size: 1.75rem; }
  .heading-md { font-size: 1.25rem; }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .flex-message,
  .hero-image {
    flex: none;
  }

  .hero-image {
    height: 300px;
  }
}

/* Phone */
@media (max-width: 600px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    gap: var(--space-xs);
  }

  .logo-left {
    max-width: 120px;
    max-height: 80px;
  }

  .logo-right,
  .logo-definition {
    display: none;
  }

  .nav-links a {
    padding: var(--space-sm) var(--space-md);
  }

  .sub-menu a {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .heading-xl { font-size: 1.75rem; }
  .heading-lg { font-size: 1.5rem; }

  .flex-message,
  .hero-image {
    width: 100%;
    min-width: 0;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  max-width: 120px;
  border-radius: 8px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.1rem;
  margin: 0;
}

.footer-brand .dba {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-latin {
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.9rem;
  border-left: 2px solid var(--gold);
  padding-left: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-contact h4,
.footer-nav h4 {
  color: white;
  font-size: 1rem;
  margin: 0 0 var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-contact h4::after,
.footer-nav h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-contact-icon {
  color: var(--gold);
  font-size: 1rem;
  min-width: 20px;
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-contact-text a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-text a:hover {
  color: var(--gold);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: var(--space-xs);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--gold);
  padding-left: var(--space-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

.footer-license {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }

  .footer-latin {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--gold);
    padding-top: var(--space-sm);
  }

  .footer-contact h4::after,
  .footer-nav h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact,
  .footer-nav {
    text-align: center;
  }

  .footer-contact-item {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}
