/* =============================================
   GrowthX — Light & Minimal Portfolio
   ============================================= */

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

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f8fc;
  --color-text: #0D2B5E;
  --color-muted: #4a6080;
  --color-accent: #0D2B5E;
  --color-accent-hover: #1a3f7a;
  --color-border: #dde3f0;
  --color-label: #7a93b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --container: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Section Labels & Titles --- */
.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-label);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--color-text); }

.nav__cta {
  color: var(--color-text) !important;
  font-weight: 600 !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  padding: calc(64px + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-label);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-muted);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* === APPROACH SECTIONS === */
.approach {
  padding: var(--space-2xl) 0;
}

.approach--alt {
  background: var(--color-surface);
}

.approach__block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.approach__body p {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.approach__body p:last-child {
  margin-bottom: 0;
}

.approach__audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.audience-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-md);
}

.audience-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.audience-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* === CLIENTS === */
.clients {
  padding: var(--space-2xl) 0;
  text-align: center;
  overflow: hidden;
}

.clients__marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients__track {
  display: flex;
  gap: var(--space-md);
  animation: marquee 25s linear infinite;
  width: max-content;
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0.65;
  transition: opacity 0.2s;
  padding: 0 var(--space-sm);
}
.client-logo:hover { opacity: 1; }

.client-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.client-logo span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === TESTIMONIALS === */
.testimonials {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial footer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* === CONTACT === */
.contact {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.contact__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.contact__sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 460px;
  margin: 0 auto var(--space-lg);
}

.contact__links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

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

.footer__logo {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* === ANIMATIONS (on scroll) === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === MOBILE NAV === */
.nav__links.open {
  display: flex;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-sm);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }

  .hero__title { letter-spacing: -0.02em; }
  .approach__audiences { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }
}
