/* Punacha (FZC) corporate website
   Brand values follow the official Punacha brand master v1.1.0:
   #171717 black, #CD9B35 gold, #EDCE97 peach. No external fonts or scripts. */

:root {
  --ink: #171717;
  --ink-soft: #232323;
  --gold: #cd9b35;
  --peach: #edce97;
  --gold-text: #7d5a0e; /* gold darkened for text on light backgrounds (AA) */
  --paper: #ffffff;
  --soft: #f6f3ec;
  --line: #e3ddcf;
  --muted: #55514a;
  --on-dark-muted: #bdb7aa;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0 0 1rem; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 12px 18px; background: var(--peach); color: var(--ink);
  font-weight: 600; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; border-bottom: 1px solid rgba(237, 206, 151, 0.14); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2px 24px; padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 136px; height: auto; }
.site-header nav { width: 100%; }
.nav-list { display: flex; justify-content: space-between; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: var(--peach); font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 8px;
}
.nav-list a:hover { color: #fff; }

@media (min-width: 640px) {
  .site-header { position: sticky; top: 0; z-index: 50; }
  .header-inner { justify-content: space-between; padding-block: 8px; }
  .site-header nav { width: auto; }
  .nav-list { gap: 4px; }
  .nav-list a { padding: 0 14px; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(60% 75% at 82% 35%, rgba(205, 155, 53, 0.2), transparent 70%),
    var(--ink);
  padding-block: 48px 64px;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  color: var(--peach); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow-rule { flex: none; width: 32px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(2.25rem, 8.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; }
.hero h1 em { display: block; font-style: normal; color: var(--gold); }
.hero-description { max-width: 40rem; margin: 22px 0 0; color: var(--on-dark-muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 32px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: var(--peach); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  color: var(--peach); font-weight: 600; text-decoration: none;
}
.text-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.hero-art {
  position: relative; display: grid; place-items: center;
  width: min(100%, 260px); aspect-ratio: 1; margin-inline: auto;
}
.art-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(237, 206, 151, 0.28); }
.orbit-outer { inset: 0; }
.orbit-middle { inset: 12%; border-color: rgba(205, 155, 53, 0.4); }
.orbit-inner { inset: 24%; border-color: rgba(237, 206, 151, 0.2); background: rgba(205, 155, 53, 0.05); }
.art-symbol { position: relative; width: 24%; height: auto; }

@media (min-width: 900px) {
  .hero { padding-block: 88px 104px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .hero-art { width: min(100%, 400px); }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 96px; } }

.section-label {
  margin-bottom: 14px; color: var(--gold-text);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.section h2, .contact-section h2 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); }

.about-section { background: var(--paper); }
.split-section { display: grid; gap: 28px; }
.section-prose { max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.section-prose p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .split-section { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } }

.projects-section { background: var(--soft); }
.section-heading { display: grid; gap: 16px; margin-bottom: 40px; }
.section-note { max-width: 32rem; margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .section-heading { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 56px; }
}

.project-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  display: flex; flex-direction: column; gap: 20px; height: 100%;
  padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-number { color: var(--gold-text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; }
.status {
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--soft); color: var(--muted); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.project-category {
  margin-bottom: 6px; color: var(--muted);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.project-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.title-slash { color: var(--gold-text); font-weight: 400; }
.project-tagline { margin-bottom: 12px; color: var(--gold-text); font-size: 0.95rem; font-weight: 600; }
.project-card p:last-child { margin-bottom: 0; color: var(--muted); }

.technology-section { background: var(--paper); }
.technology-grid { display: grid; gap: 40px; }
.section-intro { max-width: 30rem; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }
.focus-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.focus-item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.focus-item:last-child { border-bottom: 1px solid var(--line); }
.focus-item > span { color: var(--gold-text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; padding-top: 4px; }
.focus-item h3 { font-size: 1.2rem; margin-bottom: 4px; }
.focus-item p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .technology-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; } }

/* ---------- Contact ---------- */
.contact-section { background: var(--ink); color: #fff; padding-block: 64px; }
.contact-section .section-label { color: var(--gold); }
.contact-section p { color: var(--on-dark-muted); max-width: 34rem; }
.contact-inner { display: grid; gap: 28px; align-items: center; }
.contact-inner h2 { margin-bottom: 14px; }
.contact-inner p { margin: 0; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 56px;
  padding: 10px 24px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--peach); font-size: clamp(1.05rem, 4.6vw, 1.4rem); font-weight: 600; text-decoration: none;
}
.contact-link:hover { background: var(--gold); color: var(--ink); }
@media (min-width: 900px) {
  .contact-section { padding-block: 88px; }
  .contact-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .contact-link { justify-self: end; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid rgba(237, 206, 151, 0.14); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 24px; padding-block: 40px 28px; }
.footer-grid strong { color: #fff; font-size: 1.05rem; }
.footer-grid p, .footer-grid address { margin: 6px 0 0; font-style: normal; }
.site-footer a { color: var(--peach); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.site-footer nav a:hover, .site-footer address a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.footer-bottom { padding-block: 18px 32px; border-top: 1px solid rgba(237, 206, 151, 0.14); font-size: 0.875rem; }
.footer-bottom small { font-size: inherit; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer nav { justify-content: flex-end; }
}

/* ---------- Legal pages ---------- */
.legal-main { background: var(--paper); padding-block: 48px 72px; }
.legal-layout { display: grid; gap: 36px; }
.legal-heading h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
.legal-heading p { color: var(--muted); }
.legal-date { font-size: 0.9rem; font-weight: 600; color: var(--gold-text) !important; }
.legal-content { max-width: 44rem; }
.legal-content section { padding-block: 22px; border-top: 1px solid var(--line); }
.legal-content section:first-child { border-top: 0; padding-top: 0; }
.legal-content h2 { font-size: 1.25rem; margin-bottom: 10px; }
.legal-content p { color: var(--muted); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a, .legal-heading a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal-content a:hover { color: var(--gold-text); }
@media (min-width: 900px) {
  .legal-main { padding-block: 88px 112px; }
  .legal-layout { grid-template-columns: 1fr 1.8fr; gap: 72px; }
  .legal-heading { position: sticky; top: 96px; align-self: start; }
}

/* ---------- 404 ---------- */
.notfound { background: var(--paper); padding-block: 96px 120px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
.notfound p { max-width: 32rem; color: var(--muted); font-size: 1.1rem; }
.notfound .button { margin-top: 12px; }
