/* ===========================
   Branch Finance — Stylesheet
   =========================== */

:root {
  --color-primary: #1A1A1A;
  --color-primary-dark: #000000;
  --color-primary-light: #F5F5F5;
  --color-black: #1A1A1A;
  --color-gray-700: #3D3D3D;
  --color-gray-500: #6B6B6B;
  --color-gray-300: #B0B0B0;
  --color-gray-200: #E0E0E0;
  --color-gray-100: #F5F5F5;
  --color-white: #FFFFFF;

  --font-serif: 'PT Serif', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --max-width: 1080px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-gray-700);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--lg {
  padding: 14px 36px;
  font-size: 0.9rem;
}

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 28px;
  width: auto;
}

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

.header__nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-black);
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link--subtle {
  color: var(--color-gray-500);
}

/* Mobile menu button */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--color-white);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-gray-500);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero__logos {
  margin-top: 64px;
}

.hero__logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__logo-img {
  height: 36px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
}

/* ===========================
   Products
   =========================== */
.products {
  padding: 100px 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-gray-500);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Individual product section */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--color-gray-200);
}

.product:last-child {
  border-bottom: 1px solid var(--color-gray-200);
}

.product--reverse {
  direction: rtl;
}

.product--reverse > * {
  direction: ltr;
}

/* When there's no visual, let text span full width */
.product__text:only-child {
  grid-column: 1 / -1;
  max-width: 600px;
}

.product__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.product__label--coming {
  color: var(--color-gray-300);
}

.product__name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 16px;
}

.product__desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-gray-500);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.product__feature-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.product__feature-desc {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-gray-500);
  line-height: 1.7;
}

.product__visual {
  display: flex;
  justify-content: center;
  align-items: start;
}

.product__img {
  max-width: 320px;
  width: 100%;
  border-radius: 8px;
}

.product__img--wide {
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ===========================
   CTA
   =========================== */
.cta {
  padding: 100px 0;
  background: var(--color-white);
  text-align: center;
}

.cta__inner {
  max-width: 520px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 16px;
}

.cta__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-gray-500);
  line-height: 1.8;
  margin-bottom: 28px;
}

.cta__list {
  text-align: left;
  margin-bottom: 36px;
}

.cta__list li {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-gray-700);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.cta__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 48px 0 32px;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__logo-img {
  height: 22px;
  width: auto;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-gray-500);
  transition: color 0.2s;
}

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

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-gray-300);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .product {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product--reverse {
    direction: ltr;
  }

  .product__text:only-child {
    max-width: 100%;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero__logos-row {
    gap: 32px;
  }

  .hero__logo-img {
    height: 28px;
  }
}

@media (max-width: 640px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-gray-200);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

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

  .header__menu-btn {
    display: flex;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .products {
    padding: 64px 0 32px;
  }

  .product {
    padding: 48px 0;
  }

  .cta {
    padding: 64px 0;
  }

  .cta__title {
    font-size: 1.75rem;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
