/* Google fonts in HTML: Playfair Display + Inter */

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Visually hidden but accessible for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

/* Reduced motion preference for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050505;
  color: #f5f5f5;
  line-height: 1.6;
  font-size: clamp(0.875rem, 0.85rem + 0.25vw, 1rem);
}

/* Theme */
:root {
  --bg: #050505;
  --bg-soft: #111111;
  --bg-softer: #181818;
  --gold: #d4af37;
  --gold-soft: #f5e2a7;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --border: #262626;
  --danger: #e63946;
  /* Enhanced contrast colors for accessibility */
  --gold-hover: #ffd700;
  --text-high-contrast: #ffffff;
  --muted-high-contrast: #cccccc;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 101; /* Increased z-index to ensure it stays above nav-links */
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  /* Ensure header stays visible when menu is open */
  transition: all 0.3s ease;
}

/* Specific style when menu is open */
header.menu-open {
  z-index: 102; /* Even higher z-index when menu is open */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 70px;
  /* height: 50px; */
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.brand-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  /* Ensure proper stacking context */
  position: relative;
  z-index: 100;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:focus {
  color: var(--gold-hover);
  border-radius: 4px;
  outline: none; /* Removed outline on nav links */
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a {
  transition: color 0.3s ease;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  width: 100%;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.95)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 720px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-highlight {
  color: var(--gold);
  font-weight: 600;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.hero-meta-item {
  border-left: 2px solid rgba(212, 175, 55, 0.6);
  padding-left: 0.75rem;
}

.hero-meta-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.hero-meta-value {
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* Better accessibility contrast */
  outline-offset: 2px;
  outline: none;
}

.btn-primary {
  background: var(--gold);
  color: #111111;
}

.btn-primary:hover {
  background: #f7dd86;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-outline {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-soft);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--gold-soft);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.section-description {
  max-width: 520px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: radial-gradient(circle at top, #1f1f1f 0, #0c0c0c 55%, #050505 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.08),
    transparent,
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: scale(0.95);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Category cards with images */
.category-card {
  padding: 0;
  overflow: hidden;
}

.category-image {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.category-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

/* Features row */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  padding: 1rem;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.feature-value {
  font-size: 0.9rem;
}

/* Contact strip */
.contact-strip {
  margin: 4rem 0 2.5rem;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  background: linear-gradient(120deg, #151515, #0a0a0a);
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: center;
}

.contact-strip-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.contact-strip-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-strip-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.contact-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* About page layout */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
}

.muted-block {
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.lead-paragraph {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.list {
  list-style: none;
  margin: 0.25rem 0 0.75rem;
  padding-left: 0;
}

.list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}

/* Leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.lead-card {
  background: radial-gradient(circle at top, #1f1f1f 0, #0c0c0c 55%, #050505 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.3rem;
}

.lead-role {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}

.lead-name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* Offerings page */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.offer-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid var(--border);
}

.offer-image {
  height: 90px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.offer-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.offer-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-block {
  background: #0a0a0a;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.info-block h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.info-block h3 i {
  margin-right: 0.5rem;
  color: var(--gold);
}

.info-block .info-line i {
  margin-right: 0.5rem;
  color: var(--gold);
  width: 12px;
  text-align: center;
}

.info-line {
  margin-bottom: 0.4rem;
}

/* Form */
.form-card {
  background: #0a0a0a;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.6rem 1.7rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-label i {
  margin-right: 0.5rem;
  color: var(--gold);
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #050505;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
  outline: none;
}

/* Focus states for accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .form-input,
  .form-textarea {
    font-size: 1rem; /* Prevent zoom on iOS */
    padding: 0.85rem 1rem;
  }
  
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* WhatsApp button */
.whatsapp-floating {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
}

.whatsapp-floating a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  font-size: 1.6rem;
  color: #ffffff;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050505;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.footer-logo .brand-mark img {
  height: 40px;
}

.footer-logo .brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-logo .brand-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.footer-logo .brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-links a:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-contact {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-contact div {
  margin-bottom: 0.3rem;
}

.office-type {
  font-weight: 600;
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #777777;
}

.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .offerings-grid,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .card-grid,
  .leadership-grid,
  .features-row {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .offerings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  
  .contact-layout {
    gap: 1.5rem;
  }
  
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    /* height: 64px; */
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px; /* Position below the navbar */
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start; /* Align items to start */
    background: rgba(5, 5, 5, 0.98); /* Dark background */
    padding: 2rem 1.5rem; /* Adjust padding */
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 100;
    /* overflow-y: auto;  */
    height: 95vh;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 0;
    text-align: center;
    display: block; /* Ensure links are displayed as blocks */
    margin: 0.25rem 0; /* Add spacing between links */
  }
  
  /* Improved spacing for mobile */
  .section {
    padding: 2.5rem 0;
  }
  
  .hero-inner {
    padding: 2.5rem 0;
  }
  
  .section-heading {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .section-description {
    margin: 0 auto;
  }
  
  .contact-strip {
    padding: 1.5rem;
  }
  
  .contact-strip-title {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .contact-strip-text {
    text-align: center;
  }
  
  .contact-strip-phones {
    justify-content: center;
  }

  .hero-inner {
    padding: 3rem 0.5rem 3.5rem;
  }

  .contact-strip {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.4rem 1.4rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .leadership-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-links {
    justify-content: flex-start;
  }
}
