/* ==========================================
   CONCIERGE SERVICE USA — Design System & Styles
   ========================================== */

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

/* ---- Custom Properties ---- */
:root {
  /* Colors */
  --color-primary: #6B2D5B;
  --color-primary-dark: #522247;
  --color-primary-light: #8A4275;
  --color-gold: #C4A35A;
  --color-gold-light: #D4BA7A;
  --color-gold-dark: #A88A42;
  --color-bg-warm: #EDE5D8;
  --color-bg-warm-deep: #D9CEBD;
  --color-bg-light: #FAF7F2;
  --color-bg-white: #FFFFFF;
  --color-bg-gray: #F5F4F2;
  --color-text-dark: #2D2D2D;
  --color-text-medium: #555555;
  --color-text-light: #888888;
  --color-border: #E0D5C5;
  --color-border-light: #EDE8E0;
  --color-brand-dark: #38002A;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1201px;
  --container-padding: 2rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  background: none;
}

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-dark);
  margin-bottom: 3rem;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: var(--transition-base);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 45, 91, 0.3);
}

.btn-gold {
  display: inline-block;
  background-color: var(--color-gold);
  color: var(--color-text-dark);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-base);
  border: 2px solid var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold-dark);
  color: var(--color-bg-white);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 163, 90, 0.4);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  background: linear-gradient(135deg, #58003f 0%, #490038 55%, #3b002d 100%);
  color: var(--color-bg-white);
  padding: 1.1rem 0;
  text-align: center;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark), transparent);
  opacity: 0.65;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ---- Main Navigation ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  transition: var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--color-gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 auto;
  /* Center logo by default in flex if needed, but we have lang-switch now */
}

.logo-image {
  width: 160px;
  height: 160px;
  margin: -40px 0;
  /* Prevents the header from becoming too tall due to the logo's internal whitespace */
  object-fit: contain;
}

/* ---- Language Switcher ---- */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--color-bg-white);
}

.lang-btn.active {
  color: var(--color-gold-light);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-bg-warm-deep) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light), var(--color-gold));
  z-index: 3;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  align-items: stretch;
  min-height: 660px;
  max-width: 1800px;
  margin: 0 auto;
}

/* ---- Hero Content (left column) ---- */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 2.5rem 4.5rem var(--container-padding);
  animation: heroFadeUp 0.8s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-gold-dark);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1.24;
  color: var(--color-text-dark);
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.08rem;
  color: var(--color-text-medium);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.hero-link svg {
  transition: var(--transition-fast);
}

.hero-link:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
}

.hero-link:hover svg {
  transform: translateX(3px);
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.75rem;
}

.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--color-text-medium);
}

.hero-highlights svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-gold-dark);
}

/* ---- Hero Media (right column, bleeds to viewport edge) ---- */
.hero-media {
  position: relative;
  min-height: 420px;
}

.hero-media-frame {
  position: absolute;
  inset: 0;
  border-radius: 40px 0 0 40px;
  overflow: hidden;
  box-shadow: -24px 0 60px rgba(56, 0, 42, 0.2);
  animation: heroFadeScale 1s ease both;
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 2%;
}

.hero-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 0, 22, 0.32) 0%, rgba(30, 0, 22, 0) 22%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: -2rem;
  bottom: 2.5rem;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  max-width: 380px;
  animation: heroFadeUp 0.9s ease 0.15s both;
}

.hero-badge-avatars {
  display: flex;
  flex-shrink: 0;
}

.hero-badge-avatars img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--color-bg-white);
  box-shadow: var(--shadow-sm);
}

.hero-badge-avatars img:not(:first-child) {
  margin-left: -20px;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-badge-text strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-dark);
  line-height: 1.25;
}

.hero-badge-text span {
  font-size: 0.85rem;
  color: var(--color-text-medium);
  line-height: 1.45;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeScale {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
  padding: 5rem 0;
  background-color: var(--color-bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem 2.25rem;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.service-card:hover::after {
  width: 60px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-gold-dark);
  transition: var(--transition-base);
}

.service-card:hover .service-icon {
  background-color: var(--color-gold);
  color: var(--color-bg-white);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--color-text-medium);
  line-height: 1.55;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), max-height var(--transition-fast);
}

.service-more svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-more,
.service-card:focus-within .service-more,
.other-service-card:hover .service-more,
.other-service-card:focus-within .service-more {
  opacity: 1;
  transform: translateY(0);
  max-height: 2rem;
}

.service-more:hover svg {
  transform: translateX(3px);
}

/* ==========================================
   OTHER SERVICES — HOME TEASER
   ========================================== */
.other-services-teaser {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
}

.other-services-teaser-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.other-services-teaser-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.teaser-icon {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--color-gold-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-dark);
}

.teaser-icon svg {
  width: 18px;
  height: 18px;
}

.other-services-teaser .section-title {
  margin-bottom: 0.75rem;
}

.other-services-teaser .section-subtitle {
  margin-bottom: 2.25rem;
}

/* ==========================================
   OTHER SERVICES — FULL GRID (dedicated page)
   ========================================== */
.other-services {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
}

.other-services .section-title {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-medium);
  max-width: 560px;
  margin: 0 auto 3rem;
}

.other-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.other-service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.other-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.other-service-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.other-service-card p {
  font-size: 0.88rem;
  color: var(--color-text-medium);
  line-height: 1.55;
  text-align: center;
}

/* ==========================================
   CTA BANNER
   ========================================== */
.banner-cta {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 7.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
}

.banner-cta::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.banner-cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.1) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.banner-cta .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.banner-cta h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-bg-white);
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
}

.team-header {
  margin-bottom: 0.5rem;
}

.team-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.team-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin-top: 0.75rem;
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.team-members {
  display: flex;
  gap: 2rem;
}

.team-member {
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  flex: 0 0 auto;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-member.active .member-photo {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(107, 45, 91, 0.15);
}

.member-photo {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--color-gold);
  margin: 0 auto 0.75rem;
  transition: var(--transition-base);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-member h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.15rem;
}

.team-member .role {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 0;
}

.team-read-more {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.team-read-more:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}


/* Team Detail Card */
.team-detail {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-slow);
}

.team-detail-header {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  align-items: flex-start;
}

.detail-photo {
  width: 155px;
  height: 175px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-border-light);
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}

.detail-info ul li {
  font-size: 0.88rem;
  color: var(--color-text-medium);
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.detail-info li::before {
  content: '◆';
  color: var(--color-gold);
  font-size: 0.45rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.detail-info li.group-header {
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 0.5rem;
}

.detail-info li.group-header:first-child {
  margin-top: 0;
}

.detail-info li.sub-item {
  padding-left: 0.9rem;
}

.team-detail-quote {
  padding: 0 2rem 2rem;
}

.team-detail-quote blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-text-medium);
  padding: 1rem 1.25rem;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-gold);
  line-height: 1.55;
}

/* ==========================================
   TEAM STORY SECTION
   ========================================== */
.team-story {
  padding: 5rem 0;
  background-color: var(--color-bg-white);
}

.story-row {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.story-row:last-child {
  margin-bottom: 0;
}

.story-row--reverse {
  flex-direction: row-reverse;
}

.story-photo {
  flex: 0 0 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.story-text {
  flex: 1;
  min-width: 0;
}

.story-text h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1.25rem;
}

.story-text p {
  font-size: 0.98rem;
  color: var(--color-text-medium);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.story-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.story-signature span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.story-signature .usa {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85em;
  letter-spacing: 0.12em;
  color: var(--color-gold-dark);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
  padding: 5rem 0;
  background: var(--color-bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition-base);
}

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

.testimonial-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-size: 0.88rem;
  color: var(--color-text-medium);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: var(--color-gold);
  font-size: 1rem;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-gold);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: #490038;
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-col-logo {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-image {
  width: 200px;
  height: 200px;
  margin: -40px 0;
}

.footer-desc {
  max-width: 400px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  /* Improved legibility */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: left;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h5 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-gold-light);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-grid ul li {
  margin-bottom: 0.75rem;
}

.footer-grid ul a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-fast);
}

.footer-grid ul a:hover {
  color: var(--color-gold-light);
  padding-left: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-item a {
  color: rgba(255, 255, 255, 0.75);
}

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

.contact-item svg {
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-bg-white);
  transition: var(--transition-base);
}

.social-links a:hover {
  background-color: var(--color-gold-light);
  color: var(--color-brand-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   PUBLICAÇÕES SECTION
   ========================================== */
.publicacoes {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-warm) 100%);
}

.publicacoes-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.75rem;
}

.publicacoes-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}

.publicacoes-header p {
  font-size: 1rem;
  color: var(--color-text-medium);
  max-width: 520px;
  margin: 0 auto;
}

.publicacoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pub-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

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

.pub-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(107, 45, 91, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  width: fit-content;
}

.pub-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.pub-card p {
  font-size: 0.85rem;
  color: var(--color-text-medium);
  line-height: 1.6;
  flex: 1;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  transition: var(--transition-fast);
}

.pub-link:hover {
  color: var(--color-gold-dark);
  gap: 0.6rem;
}

.pub-link svg {
  transition: transform var(--transition-fast);
}

.pub-link:hover svg {
  transform: translateX(3px);
}

.pub-cta {
  text-align: center;
  padding-top: 1rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid items */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.19s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.26s;
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 0.33s;
}

.reveal-stagger.visible>*:nth-child(6) {
  transition-delay: 0.40s;
}

.reveal-stagger.visible>*:nth-child(7) {
  transition-delay: 0.47s;
}

.reveal-stagger.visible>*:nth-child(8) {
  transition-delay: 0.54s;
}

.reveal-stagger.visible>*:nth-child(9) {
  transition-delay: 0.60s;
}

.reveal-stagger.visible>*:nth-child(10) {
  transition-delay: 0.66s;
}

.reveal-stagger.visible>*:nth-child(11) {
  transition-delay: 0.72s;
}

.reveal-stagger.visible>*:nth-child(12) {
  transition-delay: 0.78s;
}

.reveal-stagger.visible>*:nth-child(13) {
  transition-delay: 0.84s;
}

.reveal-stagger.visible>*:nth-child(14) {
  transition-delay: 0.90s;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* Fade transition for team detail */
.team-detail.fade-out {
  opacity: 0.4;
  transform: scale(0.98);
}

.team-detail.fade-in {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .other-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-photo {
    flex-basis: 260px;
  }

  .hero-inner {
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    min-height: 560px;
  }

  .hero-content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-media-frame {
    border-radius: 28px 0 0 28px;
  }

  .hero-badge {
    max-width: 260px;
    padding: 0.85rem 1.1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-content {
    grid-template-columns: 1fr;
  }

  .team-members {
    justify-content: center;
  }

  .publicacoes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ==========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    order: 1;
    min-height: auto;
  }

  .hero-media-frame {
    position: relative;
    inset: auto;
    height: 340px;
    border-radius: 0 0 32px 32px;
    box-shadow: none;
  }

  .hero-badge {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    width: calc(100% - 2.5rem);
    margin: -2.25rem auto 0;
  }

  .hero-content {
    order: 2;
    padding: 2.5rem var(--container-padding) 3rem;
    text-align: center;
    align-items: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-content .btn-primary {
    margin: 0 auto;
  }

  .hero-highlights {
    text-align: left;
    max-width: 340px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .other-services-grid {
    grid-template-columns: 1fr;
  }

  .other-services-teaser-icons {
    flex-wrap: wrap;
  }

  .story-row,
  .story-row--reverse {
    flex-direction: column;
    gap: 1.75rem;
    text-align: center;
    margin-bottom: 3rem;
  }

  .story-photo {
    flex-basis: auto;
    width: 100%;
    max-width: 320px;
  }

  .story-photo img {
    height: 320px;
  }

  .story-signature {
    justify-content: center;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-header h2 {
    text-align: center;
  }

  .team-header h2::after {
    margin: 0.75rem auto 0;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .publicacoes-grid {
    grid-template-columns: 1fr;
  }

  .publicacoes-header h2 {
    font-size: 1.6rem;
  }
}

/* ==========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ========================================== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-media-frame {
    height: 280px;
  }

  .hero-badge {
    width: calc(100% - 1.5rem);
    padding: 0.75rem 1rem;
    gap: 0.7rem;
  }

  .hero-badge-avatars img {
    width: 30px;
    height: 30px;
  }

  .hero-badge-text strong {
    font-size: 0.85rem;
  }

  .hero-badge-text span {
    font-size: 0.72rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-members {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .banner-cta {
    padding: 3.5rem 0 5.5rem;
  }

  .banner-cta h2 {
    font-size: 1.5rem;
  }

  .team-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-info li {
    justify-content: center;
  }
}

/* ==========================================
   PLACEHOLDER AVATARS
   ========================================== */
.placeholder-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-gold-light) 50%, var(--color-bg-warm-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.detail-photo .placeholder-avatar {
  font-size: 2.5rem;
}

/* ==========================================
   REVIEW FORM
   ========================================== */
.review-form-container {
  max-width: 600px;
  margin: 3rem auto 0;
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.review-form-container h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(196, 163, 90, 0.2);
}

/* Star Rating CSS */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
  align-items: center;
}

.star-rating input {
  /* Visually hidden but accessible */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.star-rating label {
  cursor: pointer;
  font-size: 2rem;
  color: #ccc;
  transition: color 0.2s ease;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: var(--color-gold, #C4A35A);
}

.mobile-menu-btn {
  display: none;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    z-index: 100;
  }

  .main-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #490038;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    transition: right 0.35s ease;
    z-index: 90;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    gap: 1.5rem;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }
}

.hero-badge-avatars img[src*="Andrea"] {
  transform: scale(1.15);
  object-position: center top;
}