/* ---------- Design tokens ---------- */
:root {
  --color-bg: #faf6ef;
  --color-bg-alt: #f2e8d8;
  --color-surface: #fffdf9;
  --color-text: #2b241c;
  --color-text-muted: #786c5d;
  --color-primary: #223229;
  --color-primary-light: #2e453a;
  --color-accent: #c1642c;
  --color-accent-light: #d9793f;
  --color-accent-soft: #f8e6d3;
  --color-border: #e8dcc5;
  --radius: 16px;
  --radius-sm: 9px;
  --shadow: 0 16px 36px rgba(43, 36, 28, 0.14);
  --shadow-sm: 0 3px 14px rgba(43, 36, 28, 0.09);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-alt { background: var(--color-bg-alt); }

.section-dark {
  background: var(--color-primary);
  color: #cfd9d0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-dark .eyebrow {
  background: rgba(217, 121, 63, 0.18);
  color: #f0a874;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 16px;
}

.section-dark h2, .section-dark h3 { color: #ffffff; }

h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--color-text-muted); }

.section-dark p { color: #a9b7ac; }

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(193, 100, 44, 0.3);
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(120, 108, 93, 0.35);
  color: var(--color-primary);
}

.section-dark .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.3); }

.hero .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.3); }

.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.nav-cta-item { display: none; }

.btn-block { width: 100%; justify-content: center; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 8px 8px;
  background: var(--color-accent);
  color: #fff;
  flex-shrink: 0;
}

.logo-mark svg { width: 20px; height: 20px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #cfd9d0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }

.main-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(217, 121, 63, 0.25);
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--color-primary);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #ffffff;
  padding: 96px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px;
  align-items: center;
  padding-bottom: 80px;
}

.hero h1 { color: #ffffff; text-align: left; }

.hero .lead { color: #a9b7ac; max-width: 520px; margin: 0 0 32px; text-align: left; }

.hero .cta-row { justify-content: flex-start; margin-bottom: 56px; }

.hero-copy .stat-row { margin: 0; justify-content: flex-start; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 460px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label { font-size: 0.85rem; color: #a9b7ac; margin: 0; }

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg { width: 100%; max-width: 420px; height: auto; }

.hero-wave {
  display: block;
  width: 100%;
  height: 64px;
}

.hero-wave path { fill: var(--color-bg); }

.page-hero {
  background-color: var(--color-primary);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #ffffff;
  padding: 72px 0;
  text-align: center;
}

.page-hero h1 { color: #ffffff; margin-bottom: 12px; }
.page-hero p { color: #a9b7ac; max-width: 560px; margin: 0 auto; }

/* ---------- Grids & cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 8px 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }
.card p + .btn { margin-top: 20px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
}

/* ---------- Portfolio ---------- */
.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.thumb {
  height: 150px;
  background: hsl(var(--hue, 230) 45% 38%);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}

.thumb span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(34, 50, 41, 0.4);
  padding: 5px 10px;
  border-radius: 999px;
}

.work-body { padding: 26px 28px 28px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step { position: relative; padding-left: 8px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 8px 8px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Why-us list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  color: var(--color-text-muted);
}

.check-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--color-accent);
}

.role { color: var(--color-accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 12px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.field label { font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.field .error-msg {
  display: none;
  font-size: 0.8rem;
  color: #b3261e;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #b3261e; }

.field.invalid .error-msg { display: block; }

.form-note {
  background: var(--color-accent-soft);
  border: 1px solid rgba(193, 100, 44, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: #eaf3e6;
  color: #2f6b3a;
  border: 1px solid #c3e0bb;
}

.form-status.visible { display: block; }

.form-status.error {
  background: #fbeae8;
  color: #8a2c22;
  border-color: #f0c4bd;
}

.contact-info-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-card h3 { color: #fff; }

.contact-line { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.contact-line:first-of-type { border-top: none; }

.contact-line .ic {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 7px 7px;
  background: rgba(217, 121, 63, 0.22);
  color: #f0a874;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-line .label { font-size: 0.78rem; color: #a9b7ac; margin: 0; }
.contact-line .value { color: #fff; font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); }
.cta-banner .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-banner .btn-accent { background: #fff; color: var(--color-accent); box-shadow: none; }
.cta-banner .btn-accent:hover { background: #fdf6ee; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: #a9b7ac;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }

.footer-grid li { margin-bottom: 10px; }

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-row { display: flex; gap: 20px; }

.legal-row a { color: #a9b7ac; }

.legal-row a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 400px; }

  .main-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 2px; }

  .nav-right .btn-accent { display: none; }

  .nav-cta-item { display: block; margin-top: 12px; }

  .hero { padding-top: 64px; }

  .hero h1, .hero .lead { text-align: center; }

  .hero .cta-row { justify-content: center; }

  .hero-copy .stat-row { margin: 0 auto; justify-content: center; }

  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .stat-num { font-size: 1.4rem; }

  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }

  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
