/* ============================================================
   REMEDY BARS LTD — Design System
   Cream (#f7f1ea) | Charcoal (#2b2b2b) | Gold (#c2a26e)
   Instrument Serif + Inter
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.01em;
  color: #2b2b2b;
  background: #f7f1ea;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

h1 { font-size: clamp(36px, 5.5vw, 72px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.12; letter-spacing: -0.01em; }

.label-gold {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2a26e;
}

.text-center { text-align: center; }
.text-cream { color: #f7f1ea; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-cream {
  background: #f7f1ea;
}

.section-dark {
  background: #2b2b2b;
}

.section-label {
  margin-bottom: 48px;
  text-align: center;
}

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c2a26e;
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
}

/* ---- BUTTONS ---- */
.gold-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: #c2a26e;
  color: #2b2b2b;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

.gold-pill-btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.92);
}

.text-link {
  color: #c2a26e;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 17px;
  transition: text-decoration 0.3s;
}

.text-link:hover {
  text-decoration: none;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(247, 241, 234, 0.95);
  box-shadow: 0 1px 0 rgba(43, 43, 43, 0.06);
}

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

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #2b2b2b;
  transition: color 0.3s;
}

.logo:hover {
  color: #c2a26e;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #2b2b2b;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c2a26e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  background: #c2a26e;
  color: #2b2b2b;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(0.92);
}

/* ---- MOBILE MENU ---- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2b2b2b;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(247, 241, 234, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: #2b2b2b;
  transition: color 0.3s;
}

.mobile-link:hover {
  color: #c2a26e;
}

.mobile-cta {
  margin-top: 16px;
  padding: 14px 36px;
  border-radius: 999px;
  background: #c2a26e;
  color: #2b2b2b;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(43,43,43,0.35) 0%, rgba(43,43,43,0.1) 50%, rgba(43,43,43,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 24px;
}

.hero-title {
  color: #f7f1ea;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: rgba(247, 241, 234, 0.9);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 0.8s ease-out 0.8s forwards;
}

.hero .gold-pill-btn {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeIn 0.6s ease-out 1.2s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeIn 0.6s ease-out 1.8s forwards;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(247, 241, 234, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 160px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

.manifesto-left {
  padding-top: 8px;
}

.manifesto-left .label-gold {
  margin-bottom: 24px;
  display: block;
}

.manifesto-right {
  padding-top: 40px;
}

.manifesto-right p {
  color: rgba(43, 43, 43, 0.7);
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 27px;
}

.manifesto-right p:last-of-type {
  margin-bottom: 28px;
}

/* ---- PORTFOLIO ---- */
.portfolio {
  padding: 80px 0 160px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(43,43,43,0.65) 100%);
  transition: background 0.4s ease;
}

.portfolio-card:hover .card-overlay {
  background: linear-gradient(to bottom, transparent 30%, rgba(43,43,43,0.5) 100%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
}

.card-category {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2a26e;
  margin-bottom: 8px;
}

.card-content h3 {
  color: #f7f1ea;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.15;
}

/* ---- SERVICES ---- */
.services {
  padding: 160px 0;
}

.services h2 {
  margin-bottom: 64px;
  max-width: 700px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.service-item {
  padding-top: 28px;
  border-top: 1px solid #c2a26e;
}

.service-item h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.service-item p {
  color: rgba(247, 241, 234, 0.65);
  font-size: 16px;
  line-height: 26px;
}

/* ---- APPROACH ---- */
.approach {
  padding: 160px 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}

.approach-text .label-gold {
  margin-bottom: 24px;
  display: block;
}

.approach-text h2 {
  margin-bottom: 56px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 24px;
}

.step-number {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #c2a26e;
  flex-shrink: 0;
  width: 32px;
  padding-top: 4px;
}

.step-content h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #2b2b2b;
}

.step-content p {
  color: rgba(43, 43, 43, 0.7);
  font-size: 16px;
  line-height: 26px;
}

.approach-image {
  overflow: hidden;
  border-radius: 2px;
}

.approach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

/* ---- JOURNAL ---- */
.journal {
  padding: 160px 0;
}

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

.journal-card {
  cursor: pointer;
}

.journal-img {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 20px;
  aspect-ratio: 16 / 10;
}

.journal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.journal-card:hover .journal-img img {
  transform: scale(1.04);
}

.journal-date {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.55);
  margin-bottom: 10px;
}

.journal-card h3 {
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 14px;
  color: #2b2b2b;
}

.read-more {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #c2a26e;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration 0.3s;
}

.read-more:hover {
  text-decoration: none;
}

/* ---- CONTACT ---- */
.contact {
  padding: 160px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  margin-bottom: 100px;
}

.contact-info h2 {
  margin-bottom: 40px;
}

.contact-details {
  margin-bottom: 36px;
}

.contact-details p {
  color: rgba(247, 241, 234, 0.65);
  font-size: 17px;
  line-height: 27px;
  margin-bottom: 8px;
}

.contact-details a {
  color: rgba(247, 241, 234, 0.65);
  transition: color 0.3s;
}

.contact-details a:hover {
  color: #c2a26e;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #c2a26e;
  transition: opacity 0.3s;
}

.social-link:hover {
  opacity: 0.7;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247, 241, 234, 0.25);
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #f7f1ea;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(247, 241, 234, 0.35);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: #c2a26e;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c2a26e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.form-field select option {
  background: #2b2b2b;
  color: #f7f1ea;
}

.form-field select:invalid {
  color: rgba(247, 241, 234, 0.35);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ---- FOOTER STRIP ---- */
.footer-strip {
  padding-top: 0;
}

.footer-line {
  height: 1px;
  background: rgba(247, 241, 234, 0.15);
  margin-bottom: 24px;
}

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

.footer-left,
.footer-right {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 241, 234, 0.35);
}

/* ---- SCROLL REVEAL ANIMATIONS ---- */
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right {
  clip-path: inset(0 0 0 0);
}

.reveal-up {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-down {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-left {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-right {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-up.revealed,
.reveal-down.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  clip-path: inset(0 0 0 0);
}

/* Stagger delays */
.reveal-up:nth-child(1) { transition-delay: 0s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal-up, .reveal-down, .reveal-left, .reveal-right {
    clip-path: inset(0 0 0 0) !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 991px) {
  .container,
  .container-narrow {
    padding: 0 32px;
  }
  
  .header-inner {
    padding: 0 32px;
  }
  
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .manifesto-right {
    padding-top: 0;
  }
  
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .approach-image {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 767px) {
  .container,
  .container-narrow {
    padding: 0 20px;
  }
  
  .header-inner {
    padding: 0 20px;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu {
    display: flex;
  }
  
  .manifesto,
  .services,
  .approach,
  .journal,
  .contact {
    padding: 80px 0;
  }
  
  .portfolio {
    padding: 40px 0 80px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .journal-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    gap: 32px;
  }
  
  .step {
    gap: 16px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .scroll-indicator {
    display: none;
  }
}
