:root {
  --amber: #f6ae4b;
  --amber-dark: #e2952c;
  --amber-pale: #fdeed6;
  --amber-faint: #fef7ea;
  --olive: #6f5c0a;
  --ink: #17130b;
  --ink-soft: #5f5646;
  --bg: #ffffff;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16.5px;
}

h1, h2, h3 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 0.7rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--amber);
}
.btn-ghost:hover { background: var(--amber-pale); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-large { font-size: 1.1rem; padding: 1rem 2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--amber-pale);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { height: 38px; width: auto; }
.brand em {
  font-style: normal;
  font-weight: 500;
  color: var(--olive);
  font-size: 0.85em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--amber-dark); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--amber-faint) 0%, #ffffff 100%);
  padding: 90px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-actions { margin-top: 1.8rem; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-logo { text-align: center; }
.hero-logo img {
  max-width: 100%;
  width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 26px 22px;
  border: 1px solid var(--amber-pale);
  box-shadow: 0 18px 44px rgba(226, 149, 44, 0.16);
}

/* Services */
.services { padding: 90px 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 2rem;
}

.card {
  background: var(--amber-faint);
  border: 1px solid var(--amber-pale);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(226, 149, 44, 0.14);
}
.card p { color: var(--ink-soft); font-size: 0.95rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--amber);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-family: "Sora", sans-serif;
}

/* Portfolio */
.portfolio {
  padding: 90px 0;
  background: #fff;
  border-top: 1px solid var(--amber-pale);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 2.2rem;
}

.project {
  border: 1px solid var(--amber-pale);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(226, 149, 44, 0.16);
}

.project-cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-pale) 0%, var(--amber) 130%);
  color: var(--olive);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.project-body { padding: 22px 22px 24px; }
.project-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  background: var(--amber-faint);
  border: 1px solid var(--amber-pale);
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

/* About */
.about {
  background: var(--amber-faint);
  padding: 90px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.about p { color: var(--ink-soft); }
.about p strong { color: var(--ink); }

.about-points {
  margin-top: 1.3rem;
  list-style: none;
}
.about-points li {
  padding-left: 1.7em;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}
.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber-dark);
  font-weight: 700;
}

.about-panel {
  background: #fff;
  border: 1px solid var(--amber-pale);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 10px 28px rgba(111, 92, 10, 0.07);
}
.about-panel h3 { margin-bottom: 1rem; }
.about-panel ol {
  list-style: none;
  counter-reset: step;
}
.about-panel li {
  counter-increment: step;
  padding-left: 2.4em;
  position: relative;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.about-panel li strong { color: var(--ink); }
.about-panel li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
}

/* Contact */
.contact { padding: 100px 0; }
.contact-inner { text-align: center; }
.contact .lead { margin: 0 auto 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--amber-pale);
  background: var(--amber-faint);
  padding: 40px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 52px;
  width: auto;
}

.footer-inner strong { color: var(--ink); }
.copyright { margin-left: auto; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--amber-faint) 0%, #ffffff 100%);
  padding: 64px 0 46px;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 0.6rem; }
.page-hero .lead { max-width: 40em; }

.nav-links a.active:not(.btn) { color: var(--amber-dark); }

/* CTA band (home) */
.cta-band {
  background: var(--amber-faint);
  border-top: 1px solid var(--amber-pale);
  padding: 70px 0;
  text-align: center;
}
.cta-band .lead { margin: 0 auto 1.6rem; }

/* Portal */
.portal { padding: 70px 0 90px; min-height: 55vh; }

.portal-card {
  background: #fff;
  border: 1px solid var(--amber-pale);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 10px 28px rgba(111, 92, 10, 0.07);
  max-width: 430px;
}
.portal-card h2 { font-size: 1.4rem; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e4d9c2;
  border-radius: 10px;
  font: inherit;
  background: #fffdf9;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  border-color: var(--amber);
}
.field textarea { min-height: 80px; resize: vertical; }

.notice {
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.notice.error { background: #fdeaea; color: #8c2f2f; display: block; }
.notice.ok { background: #eaf6ec; color: #2f6c3a; display: block; }

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.portal-topbar .btn { cursor: pointer; border: none; font: inherit; }

.project-panel {
  background: #fff;
  border: 1px solid var(--amber-pale);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 22px rgba(111, 92, 10, 0.05);
}
.project-panel h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-panel .who {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--olive);
  background: var(--amber-faint);
  border: 1px solid var(--amber-pale);
  padding: 2px 10px;
  border-radius: 999px;
}
.project-panel > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }

.instructions { list-style: none; margin-bottom: 1.1rem; }
.instructions li {
  border-left: 3px solid var(--amber);
  background: var(--amber-faint);
  border-radius: 0 10px 10px 0;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
}
.instructions li .meta {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}
.instructions .empty {
  border-left-color: #e4d9c2;
  color: var(--ink-soft);
  font-style: italic;
}

.add-instruction { display: flex; gap: 10px; align-items: flex-start; }
.add-instruction textarea {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e4d9c2;
  border-radius: 10px;
  font: inherit;
  min-height: 46px;
  resize: vertical;
}
.add-instruction .btn { cursor: pointer; border: none; font: inherit; white-space: nowrap; }

.panel-sub {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
  margin: 1.3rem 0 0.6rem;
}

.files-list { list-style: none; margin-bottom: 1rem; }
.file-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid var(--amber-pale);
  font-size: 0.93rem;
}
.file-row a { color: var(--amber-dark); font-weight: 600; text-decoration: none; }
.file-row a:hover { text-decoration: underline; }
.file-row .meta { color: var(--ink-soft); font-size: 0.78rem; }
.file-row.empty { color: var(--ink-soft); font-style: italic; border-bottom: none; }
.file-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: #b04a3a;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 6px;
}
.file-delete:hover { background: #fdeaea; }

.upload-label { cursor: pointer; }

.client-list { list-style: none; }
.client-list li {
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--amber-pale);
  font-size: 0.93rem;
}
.client-list li:last-child { border-bottom: none; }
.client-list .meta { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.client-list .empty { color: var(--ink-soft); font-style: italic; }

.client-notes {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e4d9c2;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  min-height: 54px;
  resize: vertical;
  background: #fffdf9;
}
.client-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.client-actions .btn { cursor: pointer; border-width: 2px; font: inherit; }
.client-actions .save-notes { border: none; }
.client-actions .reset-pass {
  flex: 1;
  min-width: 130px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #e4d9c2;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
}

.who { display: inline-flex; align-items: center; gap: 6px; }
.chip-remove {
  background: none;
  border: none;
  color: #b04a3a;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0 2px;
}
.chip-remove:hover { color: #8c2f2f; }

.add-client {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.add-client select {
  flex: 1;
  min-width: 180px;
  padding: 0.45rem 0.8rem;
  border: 1px solid #e4d9c2;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  background: #fffdf9;
}

.check-list {
  border: 1px solid #e4d9c2;
  border-radius: 10px;
  background: #fffdf9;
  padding: 8px 12px;
  max-height: 160px;
  overflow-y: auto;
}
.check-item {
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  font-weight: 400;
  cursor: pointer;
}
.check-item .meta { color: var(--ink-soft); font-size: 0.82rem; }
.check-item input { accent-color: var(--amber-dark); margin-right: 6px; }
.add-client .btn { cursor: pointer; font: inherit; }

.admin-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 2rem;
}
.admin-tools .portal-card { max-width: none; }
.admin-tools h3 { margin-bottom: 1rem; }
.admin-tools .btn { cursor: pointer; border: none; font: inherit; }

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 820px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-logo img { width: 300px; }
  .nav { flex-wrap: wrap; gap: 8px; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .nav-links a:not(.btn) { font-size: 0.88rem; }
  .copyright { margin-left: 0; }
}
