@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

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

:root {
  --blue: #376cf4;
  --blue-light: #e5ecff;
  --dark: #030405;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e8e8e8;
  --bg: #f7f7f7;
  --white: #ffffff;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  letter-spacing: -.3px;
  color: var(--text);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; fill: white; }

nav { display: flex; align-items: center; gap: 8px; }
nav a {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s;
}
nav a:hover, nav a.active {
  background: var(--blue-light);
  color: var(--blue);
}

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  animation: slideDown .2s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background .2s;
}
.mobile-nav a:hover { background: var(--bg); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PAGE OFFSET ─────────────────────────────────────────── */
.page-body { padding-top: 64px; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
  align-items: stretch;
}
.hero-left {
  padding: 72px 64px 72px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 24px;
}
.hero-left p { color: var(--muted); font-size: 17px; max-width: 480px; margin-bottom: 12px; }
.hero-left p strong { color: var(--text); }
.hero-right {
  background: var(--bg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 320px;
  text-align: center;
}
.tip-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}
.tip-card p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.tip-card .email {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

/* ── FILTER ──────────────────────────────────────────────── */
.filter-section {
  padding: 48px 40px 0;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .2px;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── PORTFOLIO GRID ──────────────────────────────────────── */
.portfolio-section { padding: 32px 40px 96px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.portfolio-item {
  opacity: 1;
  transition: opacity .3s, transform .3s;
}
.portfolio-item.hidden {
  display: none;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 20px; }
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--text);
}
.card-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── BOTTOM BAND ─────────────────────────────────────────── */
.bottom-band {
  background: var(--dark);
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.bottom-band h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
}
.bottom-band img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 360px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--text);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 14px;
  transition: all .2s;
}
.footer-socials a:hover { border-color: var(--blue); color: var(--blue); }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-hero {
  padding: 80px 40px 60px;
  max-width: 760px;
}
.about-hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.about-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 28px;
}
.about-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}
.about-content {
  padding: 0 40px 96px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}
.about-body p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.about-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  margin: 40px 0 16px;
}
.about-sidebar {}
.value-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.value-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── PORTFOLIO DETAIL ────────────────────────────────────── */
.detail-hero {
  background: var(--bg);
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.detail-hero-img {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-content .breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.detail-hero-content .breadcrumb a { color: var(--blue); }
.detail-hero-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.detail-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--blue-light);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.detail-description { color: var(--muted); font-size: 16px; line-height: 1.7; }

.detail-content {
  padding: 64px 40px 96px;
  max-width: 720px;
}
.detail-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
  margin-top: 40px;
}
.detail-content p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.detail-content ul { margin: 0 0 16px 24px; }
.detail-content ul li { color: var(--muted); line-height: 1.8; margin-bottom: 8px; }

.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step-num {
  width: 32px; height: 32px;
  min-width: 32px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.step-text strong { display: block; margin-bottom: 4px; font-size: 15px; }
.step-text p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 48px;
  transition: all .2s;
}
.back-btn:hover { border-color: var(--blue); color: var(--blue); }
.back-btn svg { width: 16px; height: 16px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 56px 24px; }
  .bottom-band { grid-template-columns: 1fr; padding: 48px 24px; }
  .bottom-band img { display: none; }
  .portfolio-section, .filter-section { padding-left: 24px; padding-right: 24px; }
  .about-content { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 64px; }
  .about-hero { padding: 56px 24px 40px; }
  .detail-hero { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .detail-content { padding: 40px 24px 64px; }
  footer { padding: 24px; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 400px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
