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

:root {
  --ink: #0F0F0F;
  --ink-soft: #1A1A1A;
  --paper: #FAFAF8;
  --paper-alt: #FFFFFF;
  --accent: #D4AF37;
  --accent-dark: #B8942A;
  --muted: #666666;
  --muted-light: #999999;
  --line: #E5E5E5;
}

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

body {
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.accent { color: var(--accent); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,15,15,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand-block { display: flex; flex-direction: column; line-height: 1.1; }
.brand-block .name { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.01em; color: #fff; }
.brand-block .tagline { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 2px; }
.brand-block img.logo-img { height: 36px; }

.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-weight: 600; font-size: 14.5px; color: #fff; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); }
.menu-toggle { display: none; color: #fff; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; font-weight: 600; font-size: 14.5px; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--accent); color: var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(10,10,12,0.92), rgba(10,10,12,0.75)), var(--ink);
  background-size: cover; background-position: center;
  padding: 110px 0 90px; color: #fff;
}
.hero.has-bg { background-image: linear-gradient(120deg, rgba(10,10,12,0.92), rgba(10,10,12,0.72)), var(--hero-bg-url); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px;
}
.badge-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 620px; margin-bottom: 22px; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,0.72); max-width: 480px; margin-bottom: 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-stack { display: flex; flex-direction: column; gap: 14px; }
.stat-box {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  padding: 20px 24px; backdrop-filter: blur(6px);
}
.stat-box .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 30px; color: var(--accent); }
.stat-box .label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; font-weight: 500; }

/* ---------- SECTION HEAD ---------- */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-head.left { text-align: left; margin: 0 0 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: none; }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 20px; padding: 34px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(20,20,20,0.25); }
.service-card .icon-circle {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(240,180,41,0.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.service-card .icon-circle svg { width: 24px; height: 24px; color: var(--accent-dark); }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

/* ---------- WHY / ABOUT ---------- */
.why-section { background: var(--ink); color: #fff; padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-grid h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; color: #fff; }
.why-grid > div > p { color: rgba(255,255,255,0.65); font-size: 15.5px; margin-bottom: 28px; max-width: 480px; }
.why-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.why-item { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.88); }
.why-item .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(240,180,41,0.15);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.why-item .check svg { width: 12px; height: 12px; color: var(--accent); }
.why-image { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3.2; background: #2a2a2c; position: relative; }
.why-image img { width: 100%; height: 100%; object-fit: cover; }
.why-image::after { content:''; position:absolute; inset:0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); border-radius: 20px; }

/* ---------- FILTER TABS ---------- */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.filter-tabs button {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink); transition: all .15s ease;
}
.filter-tabs button:hover { border-color: var(--accent); }
.filter-tabs button.active { background: var(--accent); border-color: var(--accent); }
.portfolio-card.is-hidden, .blog-card.is-hidden { display: none; }

/* ---------- BREADCRUMB & DETAIL PAGE ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 18px 0; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.detail-badge {
  display: inline-block; background: rgba(240,180,41,0.14); color: var(--accent-dark);
  font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.detail-hero-img { border-radius: 20px; overflow: hidden; margin: 30px 0 50px; aspect-ratio: 16/8.5; background: linear-gradient(135deg,#e9e5db,#d8d2c4); }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; }
.detail-sidebar { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 16px; padding: 26px; position: sticky; top: 100px; }
.detail-sidebar h3 { font-size: 16px; margin-bottom: 18px; }
.detail-sidebar .row { display: flex; gap: 12px; margin-bottom: 18px; }
.detail-sidebar .row svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.detail-sidebar .row .label { font-size: 12px; color: var(--muted); }
.detail-sidebar .row .value { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.detail-sidebar hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.detail-content h3 { font-size: 22px; margin: 28px 0 14px; }
.detail-content h3:first-child { margin-top: 0; }
.detail-content p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; line-height: 1.7; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card { border-radius: 18px; overflow: hidden; background: var(--paper-alt); border: 1px solid var(--line); }
.portfolio-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg,#e9e5db,#d8d2c4); position: relative; }
.portfolio-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover .img-wrap img { transform: scale(1.06); }
.portfolio-card .img-wrap .cat-tag {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--ink);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
}
.portfolio-card .cap { padding: 18px 20px; }
.portfolio-card h3 { font-size: 18px; }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.blog-grid-3col { grid-template-columns: repeat(3, 1fr); }
.blog-card { display: flex; gap: 20px; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.blog-card .img-wrap { width: 42%; flex-shrink: 0; aspect-ratio: 4/3.3; overflow: hidden; background: linear-gradient(135deg,#e9e5db,#d8d2c4); position: relative; }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .img-wrap .cat-tag {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--ink);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.blog-card .body { padding: 22px 22px 22px 0; display: flex; flex-direction: column; }
.blog-card .date { font-size: 12px; color: var(--muted-light); font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; flex: 1; }
.blog-post .content { font-size: 17px; max-width: 720px; }
.blog-post .content p { margin-bottom: 18px; }
.blog-post h1 { font-size: clamp(30px,4.6vw,48px); margin-bottom: 20px; }

/* ---------- CTA ---------- */
.cta-section { background: var(--ink); color: #fff; padding: 100px 0; text-align: center; }
.cta-section h2 { font-size: clamp(28px, 4.4vw, 44px); max-width: 700px; margin: 0 auto 18px; color: #fff; }
.cta-section p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 34px; font-size: 16px; }

/* ---------- CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.info-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.info-item .value { font-size: 18px; font-weight: 600; margin-top: 4px; }
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper-alt); padding: 13px 16px;
  font-family: inherit; font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.alert-success { background: rgba(240,180,41,0.14); border: 1.5px solid var(--accent); border-radius: 12px; padding: 14px 18px; font-weight: 600; margin-bottom: 20px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .name { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 24px; color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; margin: 16px 0 20px; max-width: 280px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); }
.social-row a svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; margin-bottom: 12px; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 13px; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0 0 0 26%; background: var(--paper); flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; transform: translateX(100%); transition: transform .25s ease; z-index: 60; }
  .nav.open { transform: translateX(0); }
  .menu-toggle { display: block; background: none; border: none; font-size: 22px; cursor: pointer; }
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid, .blog-grid-3col { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; }
  .blog-card .img-wrap { width: 100%; }
  .blog-card .body { padding: 0 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-stack { flex-direction: row; overflow-x: auto; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
