/* Base Resets & Global Tokens */
:root {
  /* Colors based on provided palette */
  --bg-color: #F8F7F5;
  /* Very light greige/off-white */
  --text-dark: #373435;
  /* Dark text */
  --text-light: #F8F7F5;
  /* Light text for dark sections */
  --accent-brown: #A08C7C;
  /* Muted brown */
  --accent-taupe: #C5BCB6;
  /* Lighter greige */
  --bg-dark: #0A0A0A;
  /* Black for hero */

  /* Fonts */
  --font-sans: "Helvetica Neue", Helvetica, "Avenir", Arial, sans-serif;
  --font-serif: "Times New Roman", Times, serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.maintenance-active {
  overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Animations Core */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  /* Ensures full width */
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  z-index: 100;
  color: var(--text-light);
  /* REFINEMENT: Converging animation from full width to center pill */
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.6s ease,
    background-color 0.4s ease,
    backdrop-filter 0.4s ease;
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-radius: 0px;
}

.navbar.scrolled {
  top: 1.5rem;
  left: 20%;
  /* Math: (100% - 60%) / 2 safely centers it */
  width: 60%;
  padding: 1rem 3rem;
  background-color: rgba(128, 128, 128, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-right: 0rem;
  font-size: 0.8rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.nav-links a {
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 6rem;
  font-weight: bold;
  color: var(--text-light);
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: #DDD;
  margin-top: 1rem;
}

.accent-text {
  color: var(--accent-brown);
}

.hero-right {
  position: absolute;
  left: 10%;
  bottom: 10%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.role-text {
  color: #AAA;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

/* Greetings Section */
.section-greetings {
  padding: 8rem 5% 5rem;
  text-align: center;
}

.greetings-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.small-caps {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.triangle-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #666;
  /* Dynamic Bounce */
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.greetings-title {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.greetings-body {
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-box {
  width: 250px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-number .plus {
  font-size: 2rem;
  vertical-align: super;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
}

/* Read More Section */
.section-readmore {
  padding: 5rem 5%;
}

.section-title {
  font-weight: bold;
  font-size: 2rem;
  color: #555;
  margin-bottom: 3rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.readmore-card {
  position: relative;
  height: 300px;
  border-radius: 25px;
  overflow: hidden;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  /* Hover refinement for dynamic Apple-style */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.readmore-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.4s ease;
}

.readmore-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.readmore-card:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.card-title {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  transition: transform 0.4s ease;
}

.readmore-card:hover .card-title {
  transform: scale(1.05);
}

/* Gallery Section */
.section-gallery {
  padding: 5rem 5%;
  background-color: var(--bg-color);
}

.section-subtitle {
  color: #777;
  font-size: 1rem;
  margin-bottom: 3rem;
  margin-top: -2rem;
}

.gallery-grid {
  display: flex;
  gap: 1.5rem;
  height: 600px;
}

.gallery-item {
  flex: 1;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle overlay on hover for premium feel */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

/* Legacy Outreach Removed in favor of apple_overrides.css */

/* Contact Section */
.section-contact {
  padding: 8rem 5% 4rem;
  background-color: var(--bg-color);
}

.contact-title {
  font-weight: bold;
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 2rem;
}

.contact-links p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.accent-link {
  color: var(--accent-brown);
  font-weight: bold;
  position: relative;
  text-decoration: none;
}

.accent-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-brown);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.accent-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Footer */
.site-footer {
  padding: 6rem 8% 3rem;
  font-family: var(--font-sans);
}

.footer-dark {
  background-color: #0A0A0A;
  color: #ffffff;
}

.footer-dark .footer-logo {
  color: #fff;
}

.footer-dark .footer-heading {
  color: #fff;
}

.footer-dark .footer-links a {
  color: #777;
}

.footer-dark .footer-links a:hover {
  color: #fff;
}

.footer-dark .footer-contact-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-dark .footer-contact-links a {
  color: #888;
}

.footer-dark .footer-contact-links a:hover {
  color: #fff;
}

.footer-dark .footer-bottom-meta {
  color: #444;
}

.footer-light {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

.footer-light .footer-logo {
  color: #1d1d1f;
}

.footer-light .footer-heading {
  color: #1d1d1f;
}

.footer-light .footer-links a {
  color: #666;
}

.footer-light .footer-links a:hover {
  color: #1d1d1f;
}

.footer-light .footer-contact-section {
  border-top: 1px solid rgba(29, 29, 31, 0.08);
}

.footer-light .footer-contact-links a {
  color: #666;
}

.footer-light .footer-contact-links a:hover {
  color: #1d1d1f;
}

.footer-light .footer-bottom-meta {
  color: rgba(29, 29, 31, 0.4);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4rem;
}

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

.footer-logo {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  grid-template-rows: auto auto;
  gap: 3rem;
  justify-content: end;
}

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

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

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

.footer-links a {
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-contact-section {
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-contact-links {
  display: flex;
  gap: 2rem;
}

.footer-contact-links a {
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-meta {
  font-size: 0.7rem;
}

/* Maintenance Overlay */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.maintenance-overlay .maintenance-message {
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 600px;
}
.maintenance-overlay .maintenance-message h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.maintenance-overlay .maintenance-message p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}
/* To enable: uncomment the HTML block in index.html */
/* To disable: comment out or remove the .maintenance-overlay block above */