/* Editorial & Swiss Grid Portfolio Stylesheet */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #141413;
  --muted: #5C5A55;
  --accent: #C84B31;
  --border: rgba(20, 20, 19, 0.14);
  --border-strong: rgba(20, 20, 19, 0.85);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.theme-modern {
  --font-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Dropdown for Local SEO Cities */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 8px 0;
  display: none;
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.22s ease;
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  background: var(--ink);
  color: var(--surface);
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  filter: brightness(0.92);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Section Scaffolding */
section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

h3 {
  font-size: 1.45rem;
}

/* Hero Section */
.hero-section {
  padding: 64px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 22px 0 30px;
  max-width: 620px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.skill-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-portrait-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 16px;
}

.hero-portrait-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: contrast(1.04);
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Metrics Strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border);
  margin-top: 64px;
  background: var(--surface);
}

.stat-box {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.service-code {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.service-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 8px 0 16px;
}

.service-list {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 0.88rem;
}

.service-list li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
}

/* Philosophy Band */
.philosophy-section {
  background: var(--ink);
  color: var(--bg);
}

.philosophy-section .eyebrow {
  color: #E87A61;
}

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

.philosophy-card {
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 24px;
}

.phi-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #E87A61;
  margin-bottom: 14px;
}

.phi-quote {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 14px;
}

.phi-detail {
  font-size: 0.92rem;
  color: rgba(247, 245, 240, 0.75);
}

/* Portfolio Grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.project-thumb {
  aspect-ratio: 16/11;
  overflow: hidden;
  position: relative;
  background: #eae6df;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.project-summary {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Local SEO Cities Banner & Dedicated View */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.city-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.city-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.city-region {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.city-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.city-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Local SEO Dedicated Page Hero */
.local-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  padding: 72px 0;
}

.local-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.local-box {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 32px;
}

.local-box ul {
  list-style: none;
  margin-top: 16px;
}

.local-box li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.local-box li:last-child {
  border-bottom: none;
}

/* Creative Hub / Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  cursor: pointer;
  transition: border-color 0.2s;
}

.article-card:hover {
  border-color: var(--border-strong);
}

.article-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.article-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Pricing 3 Packages */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--ink);
  box-shadow: 0 20px 44px rgba(0,0,0,0.06);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 18px 0 4px;
}

.price-unit {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.price-features {
  list-style: none;
  margin: 22px 0 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.price-features li {
  padding: 7px 0;
  display: flex;
  gap: 10px;
}

.price-features li span.check {
  color: var(--accent);
  font-weight: 700;
}

/* Contact & Brief Builder */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-control:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
}

.contact-direct-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--surface);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  padding: 36px;
  position: relative;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.modal-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin: 16px 0 24px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.case-item {
  background: var(--bg);
  padding: 18px;
  border: 1px solid var(--border);
}

.case-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .local-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .philosophy-grid,
  .projects-grid,
  .pricing-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .cities-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 24px;
    border-bottom: 1px solid var(--border-strong);
    align-items: flex-start;
  }
  .mobile-toggle {
    display: inline-block;
  }
}
