/* ============================================
   BRAND WILD — Global Styles
   Adventures in Creative Marketing
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --gold: #ac822f;
  --gold-light: #c9a45a;
  --gold-dark: #8a6824;
  --teal: #04435d;
  --teal-light: #065f84;
  --teal-dark: #032f42;
  --text: #535353;
  --text-light: #7a7a7a;
  --white: #ffffff;
  --off-white: #f4f4f4;
  --cream: #faf8f5;

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-accent: 'Playfair Display', 'Georgia', serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --content-max: 1200px;
  --content-narrow: 800px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.3s var(--ease-smooth);
  --transition-medium: 0.6s var(--ease-out);
  --transition-slow: 1s var(--ease-out);
}

/* --- 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.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--gold-dark);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--teal);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--teal);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--content-narrow);
}

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

.section--teal {
  background: var(--teal);
  color: var(--white);
}

.section--teal h2,
.section--teal h3 {
  color: var(--white);
}

.section--teal a {
  color: var(--gold-light);
}

.section--cream {
  background: var(--cream);
}

.section--off-white {
  background: var(--off-white);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 0.75rem 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.nav__logo {
  height: 50px;
  width: auto;
  transition: height var(--transition-fast);
}

.nav--scrolled .nav__logo {
  height: 40px;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__hamburger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  padding: 6rem 2.5rem 2rem;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transition: right var(--transition-medium);
  z-index: 999;
}

.nav__mobile--open {
  right: 0;
}

.nav__mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav__mobile-overlay--visible {
  opacity: 1;
}

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

.nav__mobile-link {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--teal);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--off-white);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--gold);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.btn--gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(172, 130, 47, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn--white:hover {
  background: var(--off-white);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--short {
  min-height: 60vh;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(4, 67, 93, 0.3) 0%,
    rgba(4, 67, 93, 0.5) 50%,
    rgba(4, 67, 93, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero__content h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Footer --- */
.footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
}

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

.footer__logo {
  height: 60px;
  opacity: 0.8;
}

.footer__social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer__social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--gold-light);
}

.footer__social svg,
.footer__social i {
  width: 20px;
  height: 20px;
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__credit a:hover {
  color: var(--gold-light);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered children */
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.45s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.6s; }

/* --- Gold Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 2rem auto;
}

.divider--left {
  margin-left: 0;
}

/* --- Image Lazy Load --- */
.lazy-image {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lazy-image--loaded {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: block;
  }

  .hero {
    min-height: 80vh;
  }

  .hero--short {
    min-height: 50vh;
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .section {
    padding: clamp(3rem, 6vw, 5rem) 0;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .nav__links {
    gap: 1.8rem;
  }
}
