/* ==============
   Base & Layout
   ============== */

:root {
  --color-bg: #f5f3ef;
  --color-bg-muted: #e8e1d8;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-text-muted: #6b7280;
  --color-accent: #8b5e34;
  --color-accent-soft: #dec1a4;
  --color-border: #ddd2c5;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==============
   Header & Nav
   ============== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 243, 239, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 210, 197, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.logo-text {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

/* Nav */

.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

/* Hamburger */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label span::before {
  transform: translateY(-4px);
}

.nav-toggle-label span::after {
  transform: translateY(4px);
}

/* ==============
   Hero
   ============== */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  max-width: 35rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-meta span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(221, 210, 197, 0.9);
  background: rgba(255, 255, 255, 0.6);
}

/* Hero panel */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.checklist li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

.hero-note {
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.6);
}

/* ==============
   Sections
   ============== */

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: var(--color-bg-muted);
}

.section-cta {
  background: var(--color-accent);
  color: #fff;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 28rem;
}

/* Typography helpers */

.lead {
  font-size: 1rem;
  color: var(--color-text);
}

/* ==============
   Grid & Cards
   ============== */

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid rgba(221, 210, 197, 0.8);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.card-list li {
  margin-bottom: 0.25rem;
}

/* Process */

.process-grid .step {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(221, 210, 197, 0.8);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: #3c2a1b;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Portfolio */

.portfolio-grid {
  align-items: stretch;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(221, 210, 197, 0.9);
  background: var(--color-surface);
}

.portfolio-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

/* Placeholder neutral texture; replace with real images later */
.placeholder-image {
  background-image: linear-gradient(120deg, #d7cec4, #f5f3ef);
}

.portfolio-body {
  padding: 1.2rem;
  font-size: 0.94rem;
}

.portfolio-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.portfolio-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

/* Testimonials */

.quote-card blockquote {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.quote-card figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* CTA */

.section-cta .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: center;
  justify-content: space-between;
}

.cta-inner h2 {
  font-family: "DM Serif Display", "Times New Roman", serif;
  margin: 0 0 0.5rem;
}

.cta-inner p {
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.cta-note {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ==============
   Buttons
   ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 25px rgba(56, 30, 15, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(56, 30, 15, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ==============
   Footer
   ============== */

.site-footer {
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid rgba(221, 210, 197, 0.8);
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-secondary {
  margin-top: 0.2rem;
}

/* ==============
   Responsive
   ============== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.75rem 0;
  }

  .nav {
    position: absolute;
    inset: 56px 0 auto 0;
    background: rgba(245, 243, 239, 0.98);
    border-bottom: 1px solid rgba(221, 210, 197, 0.95);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.75rem 1.25rem 1rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .nav-toggle:checked ~ .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Burger transform */
  .nav-toggle:checked + .nav-toggle-label span {
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: rotate(-90deg);
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    opacity: 0;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3rem 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
