/* KM Studio — Global Styles */
:root {
  --black: #111;
  --white: #fff;
  --off-white: #f8f7f4;
  --warm-gray: #e8e5df;
  --mid-gray: #777;
  --accent: #c9a86c;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p { max-width: 680px; }

/* ── Layout ──────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section {
  padding: 100px 0;
}

/* ── Header / Nav ────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .3s;
}

.nav-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: .02em;
}

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

nav a {
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--black);
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn:hover { background: #333; transform: translateY(-1px); }

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

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover { background: #b89555; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: .3s;
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding: 0 24px;
}

.hero-content h1 { margin-bottom: 24px; }
.hero-content p { font-size: 1.15rem; margin-bottom: 36px; opacity: .9; }

/* ── Sections ────────────────────────────── */
.section-dark { background: var(--black); color: var(--white); }
.section-warm { background: var(--off-white); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { margin: 0 auto; color: var(--mid-gray); }

/* ── Cards / Grid ────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  padding: 40px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.card h3 { margin-bottom: 8px; }
.card .price { font-size: 1.6rem; font-weight: 600; margin-bottom: 16px; color: var(--accent); }
.card ul { margin: 16px 0 24px; }
.card li { padding: 6px 0; padding-left: 20px; position: relative; font-size: .95rem; color: #555; }
.card li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 1px; background: var(--accent); }

/* ── Stats ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat h3 {
  font-size: 2.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
}

.stat p {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mid-gray);
  margin: 8px auto 0;
}

/* ── Blockquote ───────────────────────────── */
blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  font-style: italic;
  color: #555;
  margin: 32px 0;
  max-width: 640px;
}

/* ── Case Study Preview ───────────────────── */
.case-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-preview img {
  border-radius: 4px;
}

.case-preview h3 { margin-bottom: 12px; }
.case-preview p { color: #555; margin-bottom: 20px; }

/* ── Image Gallery ────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 4px;
}

/* ── Brand Logos ───────────────────────────── */
.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.brand-logos img {
  height: 48px;
  width: auto;
  opacity: .7;
  transition: opacity .2s;
}

.brand-logos img:hover { opacity: 1; }

/* ── About ────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-grid img {
  border-radius: 4px;
  width: 100%;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; color: #444; }
.about-text p:last-of-type { font-weight: 500; color: var(--black); }

/* ── Contact Form ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  color: var(--mid-gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--warm-gray);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ── Footer ───────────────────────────────── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { color: var(--mid-gray); font-size: .9rem; }

.footer-links h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  color: var(--mid-gray);
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: .9rem;
  color: #aaa;
  transition: color .2s;
}

.footer-links a:hover { color: var(--white); }

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  font-size: .85rem;
  color: #aaa;
  transition: color .2s;
}

.social-links a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8rem;
  color: var(--mid-gray);
}

/* ── Responsive ───────────────────────────── */
/* ── Footer social list ───────────────────── */
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social a {
  font-size: .9rem;
  color: #aaa;
  transition: color .2s;
}

.footer-social a:hover { color: var(--white); }

/* ── Case link ────────────────────────────── */
.case-link {
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: .04em;
  transition: color .2s;
}

.case-link:hover { color: #b89555; }

/* section-header on dark bg */
.section-header-light h2 { color: var(--white); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .card-grid, .case-preview, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3, .card-grid { gap: 24px; }

  nav ul { gap: 20px; }

  section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }

  nav,
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    border-bottom: 1px solid rgba(0,0,0,.06);
    flex-direction: column;
  }

  nav.open,
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  nav ul,
  .site-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .hero { min-height: 70vh; }

  .brand-logos { gap: 24px; }
  .brand-logos img { height: 36px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
