/* ============================================
   Aftersome Coffee — Premium Dark Luxury
   Emerald Green + Cream + Gold Palette
   ============================================ */

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

:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --cream-50:  #fafaf5;
  --cream-100: #f5f5ee;
  --cream-200: #e8e8dc;
  --gold-400:  #d4a853;
  --gold-500:  #c49a3e;
  --gold-600:  #b08930;
  --dark:      #0a0f0d;
  --dark-card: #0d1a14;
  --dark-surface: #111f18;
  --text-light: #f5f5ee;
  --text-muted: #a8b5ad;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 15, 13, 0.95);
  border-bottom-color: rgba(212, 168, 83, 0.2);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.nav__logo-icon {
  flex-shrink: 0;
}

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

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}

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

.nav__link:hover {
  color: var(--text-light);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  padding: 8px 20px;
  border: 1px solid var(--gold-400);
  border-radius: 100px;
  color: var(--gold-400);
  transition: all 0.25s ease;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--gold-400);
  color: var(--emerald-950);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.active span:nth-child(2) {
  opacity: 0;
}
.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 8, 6, 0.55) 0%,
    rgba(2, 8, 6, 0.70) 50%,
    rgba(2, 8, 6, 0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream-50);
  margin-bottom: 24px;
  max-width: 800px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-muted);
  animation: float 2.4s 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;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold-400);
  color: var(--emerald-950);
  border-color: var(--gold-400);
}

.btn--gold:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(245, 245, 238, 0.35);
}

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

.btn--outline-light {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(245, 245, 238, 0.4);
}

.btn--outline-light:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream-50);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--dark);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.35s ease;
}

.card:hover {
  border-color: rgba(212, 168, 83, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.15);
  margin-bottom: 24px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--cream-50);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--dark-surface);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 168, 83, 0.2);
  pointer-events: none;
}

.about__content .section__title {
  text-align: left;
}

.about__body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: 120px 0;
  background: var(--dark);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 40px 32px;
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.step:hover {
  border-color: rgba(212, 168, 83, 0.25);
  transform: translateY(-3px);
}

.step__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(212, 168, 83, 0.15);
  line-height: 1;
  margin-bottom: 20px;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream-50);
  margin-bottom: 12px;
}

.step__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 120px 0;
  background: var(--dark-surface);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 6, 0.3), transparent 50%);
  border-radius: var(--radius);
  pointer-events: none;
}

.gallery__item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 3; }
.gallery__item:nth-child(2) { grid-column: 6 / 9; grid-row: 1 / 2; }
.gallery__item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery__item:nth-child(4) { grid-column: 6 / 9; grid-row: 2 / 3; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(2, 8, 6, 0.92) 0%,
    rgba(2, 8, 6, 0.78) 60%,
    rgba(2, 8, 6, 0.6) 100%
  );
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--cream-50);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.cta-banner__text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--dark);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info .section__title {
  text-align: left;
}

.contact__body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.contact__item span,
.contact__item a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact__item a:hover {
  color: var(--gold-400);
}

/* Form */
.contact__form-wrap {
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: var(--radius);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: border-color 0.25s ease;
  outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(168, 181, 173, 0.5);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--gold-400);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.form__success {
  text-align: center;
  padding: 32px 16px;
}

.form__success svg {
  margin: 0 auto 16px;
}

.form__success p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-card);
  border-top: 1px solid rgba(212, 168, 83, 0.1);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact a {
  font-size: 0.9375rem;
  color: var(--gold-400);
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: var(--gold-500);
}

.footer__contact span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__bottom {
  border-top: 1px solid rgba(212, 168, 83, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(168, 181, 173, 0.5);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__image {
    max-width: 500px;
  }

  .process__steps {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__burger {
    display: flex;
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery__item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .gallery__item:nth-child(2) { grid-column: 1 / 2; grid-row: auto; }
  .gallery__item:nth-child(3) { grid-column: 2 / 3; grid-row: auto; }
  .gallery__item:nth-child(4) { grid-column: 1 / 3; grid-row: auto; }

  .gallery__item img {
    aspect-ratio: 4/3;
  }

  .gallery__item:nth-child(1) img,
  .gallery__item:nth-child(4) img {
    aspect-ratio: 16/9;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__form-wrap {
    padding: 28px;
  }

  .about__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner__actions {
    flex-direction: column;
  }

  .cta-banner__actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item:nth-child(1),
  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4) {
    grid-column: auto;
  }

  .hero__scroll {
    display: none;
  }
}
