/* ============================================================
   BIOS IMPETUS GROUP — Main Stylesheet
   ============================================================ */

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

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --cream: #F2EDE4;
  --cream-light: #F7F3EC;
  --white: #ffffff;
  --text-muted: rgba(255,255,255,0.65);
  --text-dark: #1a1a1a;
  --text-mid: #3a3a3a;
  --border-light: rgba(255,255,255,0.15);
  --border-dark: rgba(0,0,0,0.12);
  --accent: #c8b87a;
  --nav-height: 72px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav__logo a {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.nav__logo a:hover {
  opacity: 0.8;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: invert(1);
}

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

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.2s;
}

.nav__link:hover {
  opacity: 0.7;
}

.nav__link--cta {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 20px;
  letter-spacing: 0.12em;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.nav__link--cta:hover {
  background: var(--white);
  color: var(--black);
  opacity: 1;
  border-color: var(--white);
}

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

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero__bg.loaded {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.72) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 680px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero__headline em {
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 400px;
}

/* ============================================================
   WHY WE EXIST SECTION
   ============================================================ */
.why {
  background: var(--dark);
  padding: 120px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.why__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 40px;
}

.why__statement {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

.why__right {
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why__right p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   SERVICES / WHAT WE DO SECTION
   ============================================================ */
.services {
  background: var(--cream);
  padding: 100px 48px;
}

.services__inner {
  max-width: 900px;
  margin: 0 auto;
}

.services__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 60px;
}

/* Individual Service Item */
.service {
  border-top: 1px solid var(--border-dark);
  padding: 32px 0;
}

.service:last-child {
  border-bottom: 1px solid var(--border-dark);
}

.service__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.service__left {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.service__num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.05em;
  min-width: 24px;
}

.service__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.service__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service__arrow {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.4);
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s;
  line-height: 1;
}

.service.open .service__arrow {
  transform: rotate(90deg);
  color: var(--text-dark);
}

.service__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
}

.service.open .service__body {
  max-height: 300px;
  opacity: 1;
}

.service__body p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-mid);
  padding-top: 20px;
  padding-left: 52px;
  max-width: 600px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--dark);
  padding: 120px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
}

.contact__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 60px;
  letter-spacing: -0.01em;
}

.contact__headline em {
  font-style: italic;
  font-weight: 300;
}

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form__group label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.form__group input,
.form__group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  width: 100%;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form__group input:focus,
.form__group textarea:focus {
  border-bottom-color: rgba(255,255,255,0.6);
}

.form__submit {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  margin-top: 8px;
}

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

/* Form success message */
.form__success {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  padding: 20px 0;
}

/* ============================================================
   BRAND STATEMENT
   ============================================================ */
.brand-statement {
  background: var(--cream);
  padding: 100px 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.brand-statement__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.brand-statement__inner p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.brand-statement__inner em {
  font-style: italic;
  font-weight: 500;
}

@media (max-width: 640px) {
  .brand-statement {
    padding: 72px 24px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: invert(1);
  opacity: 0.85;
}

.footer__copy {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.mobile-menu a:hover {
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .why__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why__right {
    padding-top: 0;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .nav {
    padding: 0 24px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__content {
    padding: 0 24px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .why {
    padding: 80px 24px;
  }

  .services {
    padding: 80px 24px;
  }

  .contact {
    padding: 80px 24px;
  }

  .footer {
    padding: 28px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .service__body p {
    padding-left: 0;
  }

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

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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