/* ========================================
   VB INVEST GROUP — styles.css
   Design system: see DESIGN.md
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-text-primary: #0f172a;
  --color-text-body: #475569;
  --color-text-muted: #94a3b8;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-contact: #eff6ff;
  --color-bg-footer: #0f172a;
  --color-border: #e2e8f0;
  --color-hero-fallback: #1e3a5f;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --header-height: 64px;
  --section-padding: 64px;
  --card-radius: 8px;
  --card-gap: 24px;
  --card-padding: 24px;
}

/* --- 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-family);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Focus styles --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Skip to content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

/* --- Section pattern --- */
.section {
  padding: var(--section-padding) 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 200;
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 24px;
}

.section-title strong {
  font-weight: 700;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--color-primary-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.nav a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X transform */
.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 400px;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-hero-fallback);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.85));
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 48px 40px;
  max-width: 640px;
}

.hero-headline {
  font-size: 48px;
  font-weight: 200;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-headline strong {
  font-weight: 700;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation: bounce 2s infinite;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  background: var(--color-bg);
}

.about-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-body);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--card-gap);
}

.card {
  background: var(--color-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card--large {
  grid-row: 1 / 3;
}

.card-image-wrap {
  overflow: hidden;
  background-color: var(--color-border);
  flex-shrink: 0;
}

.card--large .card-image-wrap {
  flex: 1;
  min-height: 240px;
}

.card:not(.card--large) .card-image-wrap {
  height: 180px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: var(--card-padding);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.card-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: left;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: var(--color-bg-contact);
}

.contact-grid {
  display: flex;
  gap: 64px;
  justify-content: center;
}

.contact-item {
  text-align: left;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-email {
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: text-decoration-color 0.2s ease;
  text-underline-offset: 4px;
}

.contact-email:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

.contact-address {
  font-size: 14px;
  color: #334155;
  font-weight: 400;
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-bg-footer);
  padding: 24px 0;
  text-align: center;
}

.footer-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
}

/* ========================================
   RESPONSIVE — Tablet (≤1024px)
   ======================================== */
@media (max-width: 1024px) {
  .hero {
    height: 60vh;
  }

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

  .card--large {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

/* ========================================
   RESPONSIVE — Mobile (≤768px)
   ======================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --section-padding: 40px;
  }

  .container {
    padding: 0 20px;
  }

  /* Header mobile */
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu-open .nav {
    max-height: 200px;
  }

  .nav a {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Hero mobile */
  .hero {
    height: 50vh;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  /* Section titles mobile */
  .section-title {
    font-size: 24px;
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .card--large {
    grid-row: auto;
    grid-column: auto;
  }

  .card {
    flex-direction: row;
  }

  .card-image-wrap,
  .card--large .card-image-wrap {
    width: 40%;
    min-height: 140px;
    height: auto;
    flex: none;
  }

  .card:not(.card--large) .card-image-wrap {
    height: auto;
  }

  .card-body {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
  }

  /* Contact mobile */
  .contact-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .contact-item {
    text-align: center;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-indicator {
    animation: none;
  }

  .card:hover .card-image {
    transform: none;
  }

  .nav a,
  .contact-email,
  .hamburger span {
    transition: none;
  }
}
