/* CSS Variables & Reset */
:root {
  /* Palette */
  --color-bg: #0f1412; /* Dark green/black */
  --color-surface: #1a2220;
  --color-primary: #d4a373; /* Earthy Gold */
  --color-primary-hover: #eebb99;
  --color-text: #f0f4f3;
  --color-text-muted: #a0a8a6;
  --color-accent: #6b9080; /* Soft Sage Green */

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Outfit", sans-serif;

  /* Measurements */
  --container-width: 1200px;
  --nav-height: 80px;
  --border-radius: 12px;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(212, 163, 115, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  margin-left: 1rem;
}

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

.btn-full {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
}

.btn-full:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.subtitle {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: 0.4s ease;
}

.navbar.scrolled {
  background: rgba(15, 20, 18, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo .dot {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  border: 1px solid var(--color-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  color: var(--color-primary) !important;
}

.btn-nav::after {
  display: none;
}
.btn-nav:hover {
  background: var(--color-primary);
  color: var(--color-bg) !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.1);
  animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.15);
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 20, 18, 0.85) 0%,
    rgba(15, 20, 18, 0.4) 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-left: var(--container-width) / 10; /* slight offset */
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content h1 em {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 400;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-down span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.arrow-down {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Generic Section Styles */
.section {
  padding: 8rem 0;
}

/* Narrative / About */
.narrative-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.narrative-text h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.narrative-text p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .number {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.stat-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-stack {
  position: relative;
  height: 400px;
  width: 100%;
}

.card-visual {
    position: absolute;
    width: 280px;
    height: 380px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: flex-end; /* Text at bottom */
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden; /* For image zoom */
    background-size: cover !important;
    background-position: center !important;
}

.card-visual::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.card-visual h3 {
    font-size: 1.2rem;
    color: #fff;
    opacity: 1;
    transform: none;
    z-index: 2;
    padding-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.card-1 { 
    top: 0; left: 0; z-index: 1; transform: rotate(-8deg); 
    background: url('assets/images/nando-handstand.png');
}
.card-2 { 
    top: 20px; left: 60px; z-index: 2; transform: rotate(-2deg); 
    background: url('assets/images/nando-mountain.png');
}
.card-3 { 
    top: 40px; left: 120px; z-index: 3; transform: rotate(5deg); 
    background: url('assets/images/nando-calisthenics.jpg');
}

.card-stack:hover .card-1 { transform: rotate(-20deg) translateX(-60px) scale(0.95); opacity: 0.7; }
.card-stack:hover .card-2 { transform: rotate(-5deg) translateX(-20px) scale(0.98); opacity: 0.9; }
.card-stack:hover .card-3 { transform: rotate(10deg) translateX(40px) scale(1.05); z-index: 4; }

/* Services */
.center {
  text-align: center;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
  background: var(--color-surface);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  transition: all 0.4s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 163, 115, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 163, 115, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.icon-box svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.feature-list li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* Parallax Quote */
.parallax-quote {
  background-image: url("assets/images/hero.png");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.parallax-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 20, 18, 0.7);
}

.parallax-quote blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  max-width: 800px;
  font-style: italic;
  color: #fff;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.parallax-quote cite {
  display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
}

/* Gallery Section */
.gallery {
    padding-top: 0;
    padding-bottom: 8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Featured item spans 2 columns */
.gallery-item.featured {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.gallery-overlay span {
    color: var(--color-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .gallery-item.featured { grid-column: span 1; }
}

/* Contact */
.contact {
  background: linear-gradient(to bottom, var(--color-bg), #000);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
}

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

.social-icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: 0.3s;
}

.social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form-box {
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links a {
  margin-left: 2rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s ease-out;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s ease-out;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s ease-out;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: 0.8s ease-out;
}
.reveal-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .narrative-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    margin: 5px 0;
  }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Hidden initially */
    left: 0;
    width: 100%;
    background: rgba(15, 20, 18, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    z-index: 2000;
    transition: bottom 0.5s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: var(--container-width);
    padding: 0 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cookie-btn {
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

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