/* ============================================
   BOELL HOLDING — Design System
   ============================================ */

:root {
  --color-black: #0a0a0a;
  --color-black-soft: #121212;
  --color-white: #ffffff;
  --color-off-white: #f7f6f3;
  --color-yellow: #f5c518;
  --color-yellow-soft: #fbe27a;
  --color-gray: #6b6b6b;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-dark: rgba(0, 0, 0, 0.08);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --container: 1240px;
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-black);
  background: var(--color-off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.text-accent {
  color: var(--color-yellow);
}

em, .italic {
  font-style: italic;
}

::selection {
  background: var(--color-yellow);
  color: var(--color-black);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.35em;
  color: var(--color-yellow);
  opacity: 0;
  animation: preloaderFade 1.6s ease forwards;
}

@keyframes preloaderFade {
  0% { opacity: 0; letter-spacing: 0.6em; }
  60% { opacity: 1; }
  100% { opacity: 1; letter-spacing: 0.35em; }
}

/* ============================================
   CURSOR GLOW (dynamic background follow)
   ============================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.10) 0%, rgba(245, 197, 24, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.is-active {
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-yellow);
  color: var(--color-black);
}

.btn--primary:hover {
  background: var(--color-yellow-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.35);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

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

.btn--ghost {
  border-color: var(--color-black);
  color: var(--color-black);
  padding: 12px 26px;
}

.btn--ghost:hover {
  background: var(--color-black);
  color: var(--color-yellow);
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 28px 0;
  transition: var(--transition);
  mix-blend-mode: normal;
}

.header.is-scrolled {
  padding: 16px 0;
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-line-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-white);
  transition: color var(--transition);
}

.logo__sub {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--color-yellow);
  margin-top: 4px;
}

.header.is-scrolled .logo__mark {
  color: var(--color-black);
}

.nav {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-white);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.header.is-scrolled .nav__link {
  color: var(--color-black);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-yellow);
  transition: width 0.35s ease;
}

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

.header__cta {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.header.is-scrolled .header__cta {
  border-color: var(--color-black);
  color: var(--color-black);
}

.header.is-scrolled .header__cta:hover {
  background: var(--color-black);
  color: var(--color-yellow);
}

.header__cta:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--color-white);
  transition: var(--transition);
}

.header.is-scrolled .nav-toggle span {
  background: var(--color-black);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-black);
  overflow: hidden;
  padding-top: 100px;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 80%);
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.18) 0%, rgba(245, 197, 24, 0) 65%);
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  50% { transform: scale(1.15) translate(-30px, 30px); opacity: 1; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.12;
  color: var(--color-white);
  max-width: 900px;
  margin-bottom: 28px;
}

.hero__lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin-bottom: 44px;
}

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

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero__scroll span {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-yellow), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.4; }
}

.hero__scroll small {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   PHILOSOPHY / QUOTE + STATS
   ============================================ */
.philosophy {
  background: var(--color-off-white);
  padding: 140px 0;
  text-align: center;
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto 100px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

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

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--color-black);
  position: relative;
  display: inline-block;
}

.stat__number::after {
  content: "";
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-gray);
  letter-spacing: 0.02em;
}

/* ============================================
   MANIFESTO / ABOUT
   ============================================ */
.manifesto {
  background: var(--color-black);
  color: var(--color-white);
  padding: 140px 0;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.manifesto__heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.2;
  position: sticky;
  top: 140px;
}

.manifesto__body p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  max-width: 620px;
}

.manifesto__body strong {
  color: var(--color-yellow);
  font-weight: 500;
}

.principles {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--color-line);
  transition: padding-left 0.4s ease;
}

.principle:hover {
  padding-left: 12px;
  border-color: rgba(245, 197, 24, 0.3);
}

.principle__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-yellow);
  font-weight: 500;
}

.principle h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.principle p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--color-off-white);
  padding: 140px 0;
}

.section-head {
  margin-bottom: 80px;
  max-width: 700px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 16px;
}

.section-head--light h2 {
  color: var(--color-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line-dark);
  border: 1px solid var(--color-line-dark);
}

.services__grid .service-card:last-child {
  grid-column: span 4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 32px;
  align-items: start;
}

.services__grid .service-card:last-child .service-card__index {
  grid-row: span 2;
  font-size: 1.4rem;
  padding-top: 2px;
}

.service-card {
  background: var(--color-off-white);
  padding: 44px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-black);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card__index,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.service-card__index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-yellow);
  font-weight: 600;
  display: block;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color 0.35s ease;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.6;
}

.service-card:hover h3,
.service-card:hover p {
  color: rgba(255, 255, 255, 0.85);
}

.service-card:hover h3 {
  color: var(--color-white);
}

/* ============================================
   METHOD
   ============================================ */
.method {
  background: var(--color-black);
  color: var(--color-white);
  padding: 140px 0;
}

.method__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.method-step {
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  transition: border-color 0.4s ease;
}

.method-step:hover {
  border-color: var(--color-yellow);
}

.method-step__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-yellow);
  display: block;
  margin-bottom: 16px;
}

.method-step h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.method-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--color-off-white);
  padding: 140px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.contact__info h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 16px 0 24px;
}

.contact__text {
  color: var(--color-gray);
  font-size: 1rem;
  max-width: 460px;
  margin-bottom: 48px;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__map {
  margin-top: 48px;
  width: 100%;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-line-dark);
  filter: grayscale(0.15) contrast(1.05);
  transition: filter 0.4s ease;
}

.contact__map:hover {
  filter: grayscale(0) contrast(1);
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
}

.contact__list a:hover {
  color: var(--color-yellow);
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-yellow);
  flex-shrink: 0;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.form-row label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--color-black);
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-yellow);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-gray);
  text-align: center;
  margin-top: -4px;
}

.btn--block {
  margin-top: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo--footer .logo__mark {
  font-size: 1.3rem;
  color: var(--color-white);
}

.footer__copy {
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
}

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

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatPulse 2.6s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title.reveal { transition-delay: 0.05s; }
.hero__lead.reveal { transition-delay: 0.15s; }
.hero__actions.reveal { transition-delay: 0.25s; }

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

  .manifesto__heading h2 {
    position: static;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav,
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--color-black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 1000;
  }

  .nav.is-open .nav__link {
    font-size: 1.4rem;
    color: var(--color-white);
  }

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

  .philosophy {
    padding: 90px 0;
  }

  .philosophy__quote {
    margin-bottom: 64px;
  }

  .manifesto,
  .services,
  .method,
  .contact {
    padding: 90px 0;
  }

  .section-head {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }
}
