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

:root {
  /* Colors */
  --color-primary: #1e293b; /* Deep Navy / Charcoal */
  --color-primary-dark: #0f172a;
  --color-secondary: #f8fafc; /* Off-white */
  --color-secondary-alt: #f1f5f9; /* Light Grey */
  --color-accent: #c5a059; /* Muted Gold */
  --color-accent-dark: #a38243;
  --color-csr: #2b7a5a; /* Soft Green */
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-white: #ffffff;
  --color-border: #e2e8f0;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing Rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;
  
  /* Layout */
  --container-width: 1280px;
  --container-padding: 2rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Reset & Basics
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

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

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

ul {
  list-style: none;
}

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

.section {
  padding: var(--space-xl) 0;
}

.section-bg-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: var(--color-white);
}

.section-bg-light {
  background-color: var(--color-secondary-alt);
}

/* Grids */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-primary);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-light {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}


/* =========================================
   Navigation (Header)
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--color-accent);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

/* =========================================
   Universal Footer
   ========================================= */
.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 4px solid var(--color-accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-agency {
  text-align: right;
}

.footer-agency a {
  color: var(--color-accent);
  font-weight: 500;
}

.agency-contact {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.agency-contact a {
  color: rgba(255,255,255,0.7);
}

.agency-contact a:hover {
  color: var(--color-accent);
}

/* =========================================
   Access Gate (Index)
   ========================================= */
.gate-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-dark);
  overflow: hidden;
  position: relative;
}

.gate-content {
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(15px);
  padding: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  max-width: 500px;
  width: 90%;
}

.gate-logo {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gate-label {
  color: var(--color-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  display: block;
}

.password-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gate-input {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  text-align: center;
  font-size: 1.25rem;
  outline: none;
  transition: border-color 0.3s;
}

.gate-input:focus {
  border-color: var(--color-accent);
}

.gate-btn {
  width: 100%;
  padding: 1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s;
}

.gate-btn:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.gate-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gate-error.show {
  opacity: 1;
}

.shake {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.fade-out-zoom {
  animation: fadeOutZoom 0.8s forwards;
}

@keyframes fadeOutZoom {
  to {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* =========================================
   Global Hero Wrapper & Page Headers
   ========================================= */
.page-header {
  padding: 12rem 0 6rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  position: relative;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-header .subtitle {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* =========================================
   Animations (Scroll Reveal)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 991px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  
  .mobile-nav-toggle { display: block; }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-primary);
    padding: 2rem;
    transition: 0.3s;
  }
  
  .main-nav.active { left: 0; }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .main-nav a {
    color: var(--color-white);
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .footer-agency { text-align: center; }
  .agency-contact { justify-content: center; }
}
