/* =============================
   Waypoint Heritage — Style v3
   Premium, immersive, experience-driven
   ============================= */

:root {
  --green-dark: #2F4B36;
  --green-moss: #5D7753;
  --cream: #F6F2E8;
  --stone: #D8D2C4;
  --copper: #A97542;
  --copper-light: #C28F56;
  --white: #FFFFFF;
  --text-dark: #1E1E1E;
  --text-mid: #5A5A5A;
  --text-light: rgba(246, 242, 232, 0.65);
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--copper-light); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--copper);
  margin-bottom: 16px;
}
.section-label.light { color: rgba(246, 242, 232, 0.5); }

.section-title { margin-bottom: 20px; max-width: 720px; }
.section-title.light { color: var(--cream); }

.section-text { max-width: 640px; color: var(--text-mid); }
.section-text.large { font-size: 1.1rem; line-height: 1.8; }
.section-text.light { color: var(--text-light); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 720px; }
.container.medium { max-width: 960px; }

.section { padding: 120px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-dark); color: var(--cream); }

/* ============================
   NAVIGATION
   ============================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(47, 75, 54, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(246, 242, 232, 0.06);
  height: 72px;
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream); font-family: var(--font-heading); font-size: 1.25rem; text-decoration: none;
}
.nav-logo-icon { color: var(--copper); font-size: 1.5rem; }
.nav-logo:hover { color: var(--copper); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }

.nav-link {
  padding: 10px 18px; color: rgba(246, 242, 232, 0.7);
  font-size: 0.85rem; font-weight: 500; border-radius: 8px;
  transition: color 0.2s, background 0.2s; text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--cream); background: rgba(255,255,255,0.06); }

.nav-cta {
  background: var(--copper); color: var(--cream) !important; font-weight: 600;
  padding: 10px 22px; border-radius: 10px;
}
.nav-cta:hover { background: var(--copper-light) !important; color: var(--cream) !important; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================
   HERO
   ============================ */

.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--green-dark); overflow: hidden; padding-top: 72px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 20% 30%, rgba(93, 119, 83, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(169, 117, 66, 0.1) 0%, transparent 50%),
    linear-gradient(170deg, var(--green-dark) 0%, #23382A 50%, var(--green-dark) 100%);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,75,54,0.3) 0%, rgba(47,75,54,0.7) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute; inset: 0; z-index: 1; opacity: 0.04;
  background-image:
    radial-gradient(circle 1px at 10% 20%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 30% 60%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 50% 10%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 70% 80%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 90% 40%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 20% 90%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 80% 15%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 2px at 40% 40%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 60% 70%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 2px at 15% 50%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 85% 60%, var(--cream) 100%, transparent 0),
    radial-gradient(circle 1px at 45% 5%, var(--cream) 100%, transparent 0);
  background-size: 200px 200px;
  animation: drift 40s linear infinite;
}

@keyframes drift {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

.hero-inner { position: relative; z-index: 2; }

.hero-content { max-width: 700px; padding: 60px 0; }

.hero-kicker {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; color: var(--copper); margin-bottom: 20px;
}

.hero-title {
  color: var(--cream); margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem); line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--text-light); font-size: 1.1rem; line-height: 1.8;
  margin-bottom: 40px; max-width: 580px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(246, 242, 232, 0.3);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

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

/* ============================
   BUTTONS
   ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px; font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-body); border-radius: 12px; border: none;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-primary {
  background: var(--copper); color: var(--cream);
}
.btn-primary:hover {
  background: var(--copper-light); color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(169, 117, 66, 0.3);
}

.btn-secondary {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(246, 242, 232, 0.2);
}
.btn-secondary:hover {
  border-color: var(--cream); color: var(--cream);
  background: rgba(255,255,255,0.05); transform: translateY(-2px);
}

.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(246, 242, 232, 0.15);
}
.btn-ghost:hover {
  border-color: var(--copper); color: var(--copper);
}

.btn-block { width: 100%; }

/* ============================
   WORK GRID
   ============================ */

.section-text + .work-grid { margin-top: 48px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.work-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.work-card-featured {
  border: 1.5px solid var(--copper);
  box-shadow: 0 4px 24px rgba(169, 117, 66, 0.08);
}

.work-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone); }

.work-thumb-link { display: block; width: 100%; height: 100%; }

.work-thumb {
  width: 100%; height: 100%; background-size: cover !important; background-position: center !important;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.work-card:hover .work-thumb { transform: scale(1.05); }

.work-play {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(47, 75, 54, 0.85); backdrop-filter: blur(4px);
  color: var(--cream); font-size: 1.3rem; text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}
.work-play:hover { transform: scale(1.15); background: var(--copper); color: var(--cream); }

.work-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px; background: var(--green-dark); color: var(--cream);
  font-size: 0.7rem; font-weight: 600; border-radius: 8px;
}

.work-card-featured .work-tag { background: var(--copper); }

.work-info { padding: 28px 24px; }
.work-title {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 400;
  color: var(--text-dark); margin-bottom: 10px;
}
.work-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }

.work-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--stone);
}
.work-placeholder-icon { font-size: 2.5rem; opacity: 0.4; }

/* ============================
   PROJECT 1918 — Premium Section
   ============================ */

.section-premium {
  position: relative; padding: 140px 0; overflow: hidden;
  background: #1C2E23;
}

.premium-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(93, 119, 83, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(169, 117, 66, 0.06) 0%, transparent 50%);
}

.premium-overlay {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.01) 40px,
    rgba(255,255,255,0.01) 41px
  );
}

.premium-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.premium-label {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; color: var(--copper); margin-bottom: 16px;
}

.premium-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--cream); margin-bottom: 24px; line-height: 1.1;
}

.premium-desc {
  color: var(--text-light); font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 36px; max-width: 520px;
}

.premium-stats {
  display: flex; gap: 32px; margin-bottom: 40px; flex-wrap: wrap;
}

.premium-stat { text-align: left; }
.premium-stat-num {
  display: block; font-family: var(--font-heading);
  font-size: 1.1rem; color: var(--cream); line-height: 1;
}
.premium-stat-label {
  display: block; font-size: 0.75rem; color: var(--text-light);
  margin-top: 4px; letter-spacing: 0.5px;
}

.premium-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.premium-visual { position: relative; }

.premium-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  aspect-ratio: 16 / 9;
}

.premium-frame::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(246, 242, 232, 0.08);
  pointer-events: none;
}

.premium-frame iframe {
  width: 100%; height: 100%; border: none;
}

/* ============================
   EXPERIENCES
   ============================ */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.exp-card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--stone);
  transition: transform 0.3s, box-shadow 0.3s;
}
.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.exp-card-visual .exp-visual {
  aspect-ratio: 16 / 9; background-size: cover !important; background-position: center !important;
  position: relative;
}

.exp-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(47,75,54,0.7) 0%, rgba(47,75,54,0.2) 100%);
  display: flex; align-items: flex-end; padding: 20px;
}

.exp-visual-title {
  font-family: var(--font-heading); font-size: 1.1rem;
  color: var(--cream); font-weight: 400;
}

.exp-card-body { padding: 24px; }

.exp-title-sm {
  font-family: var(--font-heading); font-size: 1.1rem;
  color: var(--text-dark); margin-bottom: 8px; font-weight: 400;
}

.exp-card-body p {
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.7;
}

/* ============================
   ABOUT
   ============================ */

.about-split {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 48px; margin-top: 32px; align-items: start;
}

.about-text { display: flex; flex-direction: column; gap: 20px; }

.highlight-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px; border-bottom: 1px solid rgba(246, 242, 232, 0.06);
}

.highlight-num {
  font-family: var(--font-heading); font-size: 1.6rem;
  color: var(--copper); line-height: 1;
}

.highlight-label {
  font-size: 0.85rem; color: var(--text-light);
}

/* ============================
   CONTACT
   ============================ */

.contact-form { margin-top: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem;
  border: 1.5px solid var(--stone); border-radius: 10px;
  background: var(--white); color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(169, 117, 66, 0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-status { margin-top: 12px; font-size: 0.9rem; text-align: center; min-height: 24px; }
.form-status.success { color: var(--green-moss); }
.form-status.error { color: #B33A3A; }

/* ============================
   FOOTER
   ============================ */

.footer {
  background: #1C2E23; color: var(--text-light);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(246, 242, 232, 0.04);
}

.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-heading); font-size: 1.2rem; color: var(--cream); }
.footer-tagline { margin-top: 8px; font-size: 0.9rem; line-height: 1.6; max-width: 320px; font-style: italic; }
.footer-links h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cream); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-light); font-size: 0.9rem; }
.footer-links a:hover { color: var(--copper); }
.footer-bottom { border-top: 1px solid rgba(246, 242, 232, 0.04); padding-top: 24px; font-size: 0.85rem; text-align: center; }

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .premium-inner { grid-template-columns: 1fr; gap: 40px; }
  .premium-content { order: 2; }
  .premium-visual { order: 1; }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(47, 75, 54, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px; gap: 4px;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { width: 100%; padding: 14px; font-size: 1rem; }
  .nav-toggle { display: flex; }

  .work-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .hero-scroll { display: none; }
  .premium-stats { gap: 24px; }
}

/* ============================
   ANIMATIONS
   ============================ */

.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.fade-in-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
