/**
 * Intellect Management Group — Main Stylesheet
 * Premium UAE corporate design system
 */

/* ─── Fonts ─── */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Variables ─── */
:root {
  --color-navy: #0B132B;
  --color-navy-light: #141D3A;
  --color-navy-mid: #1E2A4A;
  --color-gold: #C9A66B;
  --color-gold-light: #D4B87E;
  --color-gold-dark: #A88B52;
  --color-bg: #F8F7F4;
  --color-bg-alt: #F0EDE8;
  --color-text: #2D3142;
  --color-text-muted: #6B7280;
  --color-white: #FFFFFF;
  --color-border: rgba(11, 19, 43, 0.1);
  --color-glass: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.12);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --logo-max-width: 150px;
  --logo-max-width-footer: 180px;
  --container-max: 1200px;
  --container-narrow: 760px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 19, 43, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 19, 43, 0.1);
  --shadow-lg: 0 20px 60px rgba(11, 19, 43, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-navy);
}

ul, ol { list-style: none; }

address { font-style: normal; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Utilities ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: var(--container-narrow); }

.text-center { text-align: center; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus { top: 1rem; }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  border-color: transparent;
  padding-left: 0;
}

.btn-ghost:hover { color: var(--color-gold-light); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.section-dark .btn-ghost { color: var(--color-gold); }
.section-light .btn-outline {
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.section-light .btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  z-index: 1001;
}

.site-logo:hover { opacity: 0.92; }

.site-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--logo-max-width);
  max-height: 52px;
  object-fit: contain;
}

/* Legacy text logo classes (unused) */
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Navigation ─── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-gold);
  background: rgba(255, 255, 255, 0.05);
}

.nav-chevron { transition: transform var(--transition); }

.nav-dropdown { position: relative; }

.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 280px;
  background: rgba(11, 19, 43, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition);
}

.nav-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-gold);
}

.nav-dropdown-short {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.nav-dropdown-name {
  font-size: 0.875rem;
  opacity: 0.8;
}

.nav-phone-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-phone-cta:hover {
  background: var(--color-gold-light);
  color: var(--color-navy);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 19, 43, 0.92) 0%,
    rgba(11, 19, 43, 0.75) 50%,
    rgba(11, 19, 43, 0.85) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(201, 166, 107, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(201, 166, 107, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  animation: particleDrift 20s ease-in-out infinite alternate;
}

@keyframes particleDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-20px, -10px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Sections ─── */
.section {
  padding: 6rem 0;
}

.section-light { background: var(--color-bg); }
.section-dark {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
}
.section-dark h2,
.section-dark h3 { color: var(--color-white); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-sub { color: rgba(255, 255, 255, 0.6); }

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.section-header { margin-bottom: 3.5rem; }

/* ─── Company Cards ─── */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.company-card {
  position: relative;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--accent, var(--color-gold));
  border-radius: 0 0 3px 3px;
  opacity: 0.8;
}

.company-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.company-card-icon {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.company-card-icon img,
.structure-card-logo img,
.logo-showcase-item img,
.page-hero-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.company-card-short {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, var(--color-gold));
  margin-bottom: 0.5rem;
}

.company-card-title {
  font-size: 1.375rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.company-card-tagline {
  font-size: 0.9375rem;
  color: var(--color-gold);
  font-style: italic;
  margin-bottom: 1rem;
}

.company-card-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.company-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.company-card-services li {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
}

.company-card-cta { margin-top: auto; }

/* ─── Stats ─── */
.stats-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* ─── Split Layout ─── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout-reverse { direction: rtl; }
.split-layout-reverse > * { direction: ltr; }

.split-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.split-visual {
  position: relative;
}

.split-visual-accent {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 60%;
  height: 60%;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list svg {
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 0.15rem;
}

.feature-list strong {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.15rem;
}

.feature-list span {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ─── Testimonials ─── */
.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track { position: relative; min-height: 220px; }

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--transition-slow);
  pointer-events: none;
}

.testimonial-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-quote-icon { color: var(--color-gold); margin-bottom: 1rem; }

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  color: var(--color-gold);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-white);
  transition: all var(--transition);
}

.testimonial-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.testimonial-dots { display: flex; gap: 0.5rem; }

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
  padding: 0;
}

.testimonial-dot.is-active,
.testimonial-dot:hover {
  background: var(--color-gold);
  transform: scale(1.2);
}

/* ─── CTA Section ─── */
.section-cta {
  background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-navy) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.section-cta .section-title { color: var(--color-white); }
.section-cta .section-eyebrow { color: var(--color-gold); }

.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.cta-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cta-info-item svg { color: var(--color-gold); flex-shrink: 0; margin-top: 0.2rem; }
.cta-info-item strong { display: block; color: var(--color-white); margin-bottom: 0.25rem; }
.cta-info-item a { color: rgba(255, 255, 255, 0.75); }
.cta-info-item a:hover { color: var(--color-gold); }

.cta-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.section-cta-compact {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0;
  text-align: center;
}

.section-cta-compact .section-title { color: var(--color-white); }

/* ─── Forms ─── */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.section-light .form-group label { color: var(--color-navy); }

.required { color: #e74c3c; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.2);
}

.form-group input.is-error,
.form-group textarea.is-error {
  border-color: #e74c3c;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-messages {
  margin-bottom: 1rem;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}

.form-messages.is-visible { display: block; }

.form-messages.is-success {
  padding: 1rem;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #27ae60;
}

.form-messages.is-error {
  padding: 1rem;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #c0392b;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.page-hero-compact { padding-bottom: 3rem; }

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 166, 107, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a { color: var(--color-gold); }
.breadcrumb a:hover { color: var(--color-gold-light); }

.page-hero-company .company-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--company-accent, var(--color-gold));
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ─── Prose ─── */
.prose p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose ul li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.prose a { color: var(--color-gold-dark); text-decoration: underline; }

/* ─── Mission/Vision ─── */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mv-card {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition);
}

.mv-card:hover { transform: translateY(-4px); }

.mv-icon {
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.mv-card h3 {
  color: var(--color-white);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.mv-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─── Structure Cards ─── */
.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.structure-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.structure-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.structure-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.structure-card-body { padding: 1.75rem; }

.structure-card-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

/* Logos showcase (About page) */
.logos-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.logo-showcase-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: transform var(--transition);
}

.logo-showcase-item:hover {
  transform: translateY(-4px);
}

/* Company page hero logo */
.page-hero-logo {
  margin-bottom: 1.25rem;
}

.structure-short {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.structure-card-body h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.structure-card-body p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ─── Team ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card { text-align: center; }

.team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 4/5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-photo img { transform: scale(1.05); }

.team-card h3 {
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.team-title {
  font-size: 0.875rem;
  color: var(--color-gold);
}

/* ─── Certifications ─── */
.certs-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: all var(--transition);
}

.cert-badge svg { color: var(--color-gold); flex-shrink: 0; }
.cert-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

/* ─── Contact Page ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
}

.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(201, 166, 107, 0.12);
  border-radius: var(--radius-sm);
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.contact-detail-item strong {
  display: block;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.contact-detail-item p { color: var(--color-text-muted); font-size: 0.9375rem; }

.contact-hours h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-hours p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-navy-mid);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-glass-border);
}

.map-placeholder-inner {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
}

.map-placeholder-inner svg { color: var(--color-gold); margin: 0 auto 1rem; }

.map-placeholder-inner strong { color: var(--color-white); }

.map-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* ─── Services Grid (company pages) ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.service-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.0625rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ─── Legal Pages ─── */
.legal-page { padding-top: 3rem; padding-bottom: 5rem; }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-toc h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-dark);
  margin-bottom: 1rem;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
}

.legal-toc a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: block;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.legal-toc a:hover { color: var(--color-gold-dark); }

.legal-content section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

/* ─── 404 Page ─── */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
  background: var(--color-bg);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 10rem);
  color: var(--color-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.error-desc {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.error-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.footer-logo:hover { opacity: 0.92; }

.footer-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--logo-max-width-footer);
  max-height: 60px;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-heading a { color: var(--color-gold); }
.footer-heading a:hover { color: var(--color-gold-light); }

.footer-company-name {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.footer-links ul li,
.footer-company ul li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-company li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-gold); }

.footer-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-contact-item svg { color: var(--color-gold); flex-shrink: 0; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.7); }
.footer-contact-item a:hover { color: var(--color-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

.footer-legal a:hover { color: var(--color-gold); }

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--color-white);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ─── Scroll to Top ─── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 5.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  color: var(--color-gold);
  border: 1px solid rgba(201, 166, 107, 0.3);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-3px);
}

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(11, 19, 43, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 166, 107, 0.2);
  padding: 1.25rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
  min-width: 280px;
}

.cookie-banner a { color: var(--color-gold); }

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .companies-grid,
  .mv-grid,
  .structure-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .logos-showcase { grid-template-columns: repeat(3, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .cta-layout,
  .contact-layout,
  .split-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .split-layout-reverse { direction: ltr; }

  .legal-layout { grid-template-columns: 1fr; }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(11, 19, 43, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .main-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    box-shadow: none;
    display: none;
    margin-top: 0.25rem;
  }

  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }

  .nav-phone-cta {
    justify-content: center;
    margin-top: auto;
  }

  .companies-grid,
  .services-grid { grid-template-columns: 1fr; }

  .logos-showcase { grid-template-columns: 1fr; }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .contact-form .form-row { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; align-items: center; }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }

  .scroll-top {
    right: 4.5rem;
    bottom: 1.25rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }

  .logos-showcase { grid-template-columns: 1fr; }

  .mv-grid { grid-template-columns: 1fr; }

  .structure-grid { grid-template-columns: 1fr; }

  .logos-showcase { grid-template-columns: 1fr; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}

/* ─── Print ─── */
@media print {
  .site-header,
  .whatsapp-float,
  .scroll-top,
  .cookie-banner,
  .nav-toggle { display: none !important; }

  body { color: #000; background: #fff; }

  .section-dark { background: #fff; color: #000; }
}
