/* ============================================================
   Website Agency — style.css
   Premium editorial aesthetic · Syne + Inter · Indigo accent
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --ink:        #0d0d0d;
  --white:      #ffffff;
  --bg:         #f7f7f6;
  --border:     #e4e4e0;
  --muted:      #888882;
  --accent:     #5b4fe8;
  --accent-dim: rgba(91, 79, 232, 0.12);
  --nav-h:      68px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

.section     { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ── Typography ── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.display--xl  { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.display--lg  { font-size: clamp(2rem, 4vw, 3.5rem); }
.display--md  { font-size: clamp(1.6rem, 3vw, 2.5rem); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
p { font-family: var(--font-body); color: #555; }
p.lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Eyebrow / Tag ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  display: block; width: 20px; height: 1.5px;
  background: var(--accent);
}

.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px; border-radius: 2px;
}

/* ── Section Label (centered divider) ── */
.section-label {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 48px;
}
.section-label__line { flex: 1; height: 1px; background: var(--border); }
.section-label__text {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 500;
  padding: 12px 24px; border-radius: 3px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap; line-height: 1;
}
.btn--primary {
  background: var(--ink); color: var(--white);
}
.btn--primary:hover { background: #222; }

.btn--accent {
  background: var(--accent); color: var(--white);
}
.btn--accent:hover { background: #4a3fd4; }

.btn--outline {
  border: 1.5px solid var(--border); color: var(--ink); background: transparent;
}
.btn--outline:hover { border-color: var(--ink); }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247, 247, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.nav__inner {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink);
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem !important; font-weight: 600 !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border);
  padding: 8px 18px; border-radius: 3px;
  transition: border-color 0.2s, color 0.2s !important;
}
.nav__cta:hover { border-color: var(--ink) !important; color: var(--ink) !important; }

/* Mobile nav */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 24px; cursor: pointer;
}
.nav__hamburger span {
  display: block; height: 1.5px; background: var(--ink);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav__inner { padding: 0 24px; }
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 0;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    display: block; padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem !important; color: var(--ink) !important;
  }
  .nav__cta {
    margin: 16px 24px !important;
    border-radius: 3px !important;
    display: inline-flex !important;
    padding: 12px 20px !important;
  }
}

/* ── Footer ── */
.footer {
  background: var(--ink); color: var(--white);
  padding: 72px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.footer__logo span { color: var(--accent); }
.footer__desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); max-width: 280px; line-height: 1.7; }

.footer__col h4 {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col ul a {
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__col ul a:hover { color: var(--white); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; flex-wrap: wrap; gap: 16px;
}
.footer__copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

.footer__social { display: flex; gap: 16px; }
.footer__social a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Scroll-triggered Animations ── */
.animate {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.animate.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .animate { opacity: 1; transform: none; transition: none; }
}

/* ── Projects page ── */
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--border);
}
.project-card {
  background: var(--bg); overflow: hidden; position: relative;
  transition: background 0.25s;
}
.project-card:hover { background: var(--white); }
.project-card--wide { grid-column: span 2; }
.project-card__img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: #e8e8e6;
}
.project-card--wide .project-card__img { aspect-ratio: 21/9; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.project-card:hover .project-card__img img { transform: scale(1.03); }
.project-card__body { padding: 32px; }
.project-card__meta { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.project-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.project-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.project-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase;
}

/* Placeholder image blocks (when no real image) */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ece9fd 0%, #ddd9f8 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(91,79,232,0.5);
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: auto; }
  .project-card--wide .project-card__img { aspect-ratio: 16/9; }
}

/* ── Pricing ── */
.pricing-feature-list {
  display: flex; flex-direction: column; gap: 12px; margin: 24px 0;
}
.pricing-feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem;
}
.pricing-feature-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.pricing-card--featured .pricing-feature-list li::before { background: rgba(255,255,255,0.5); }

/* ── Misc helpers ── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
