:root {
  --ink: #1c2225;
  --paper: #fefdfd;
  --brand: #183787;
  --gold: #f5bd35;
  --line: rgba(28, 34, 37, 0.12);
  --soft: rgba(28, 34, 37, 0.7);
  --shadow: 0 1px 2px rgba(84, 64, 0, 0.25);
  --shadow-soft: 0 1px 4px rgba(84, 64, 0, 0.25);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.page { min-height: 100vh; background: var(--paper); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.header { padding: 32px 52px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { width: 39px; height: 40px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 16px; line-height: 1.6; }
.nav a.active { background: rgba(28, 34, 37, 0.1); font-weight: 600; }
.nav a:hover { background: rgba(28, 34, 37, 0.1); }
.nav-icon { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.nav-icon img { width: 22px; height: 22px; object-fit: contain; display: block; }
.nav-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.enquire-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 700; text-transform: uppercase; box-shadow: var(--shadow); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.enquire-btn:hover { transform: translateY(-1px); background: #000; box-shadow: 0 4px 10px rgba(84,64,0,.24); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(28,34,37,.15); border-radius: 8px; background: #fff; cursor: pointer; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); }
.nav-toggle-icon { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav-item { display: flex; width: 100%; align-items: center; gap: 8px; padding: 14px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.mobile-nav-item.active, .mobile-nav-item:hover { background: rgba(28,34,37,.08); }
.mobile-enquire { display: flex; width: 100%; align-items: center; justify-content: center; margin-top: 4px; padding: 14px 16px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 800; text-transform: uppercase; }
.mobile-nav.is-open { display: grid; gap: 4px; margin-top: 14px; padding: 12px; border: 1px solid rgba(28,34,37,.12); border-radius: 12px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: max-content; height: 48px; padding: 0 24px; border-radius: 8px; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; font-weight: 700; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.button.primary:hover { background: #000; box-shadow: 0 4px 10px rgba(84,64,0,.24); }
.button.outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow-soft); }
.button.outline:hover { background: rgba(28,34,37,.05); box-shadow: 0 4px 10px rgba(84,64,0,.18); }
.button.ghost { background: #fff; color: var(--ink); border: 1px solid rgba(28,34,37,.15); }
.button.ghost:hover { background: rgba(28,34,37,.04); border-color: rgba(28,34,37,.25); }
.button.danger { background: #dc2626; color: #fff; }
.button.danger:hover { background: #b91c1c; box-shadow: 0 4px 10px rgba(185,28,28,.2); }
.button.small { height: 40px; padding: 0 18px; font-size: 12px; }

.showcase { text-align: center; padding: 0 0 80px; }
.pill { display: block; width: max-content; margin: 0 auto; padding: 4px 16px; border-radius: 32px; border: 1.5px solid var(--ink); background: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.headline { position: relative; display: block; margin: 8px auto 0; width: fit-content; }
.headline h1 { margin: 0; font-size: 44px; line-height: 1.12; font-weight: 900; letter-spacing: .04em; text-wrap: balance; }
.headline span { color: var(--brand); }
.headline i { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid var(--gold); }
.showcase p { margin: 8px 0 0; font-size: 18px; line-height: 1.5; letter-spacing: .04em; color: rgba(28,34,37,.8); }

.stack { display: flex; flex-direction: column; gap: 40px; }
.feature-grid { display: grid; gap: 24px; grid-template-columns: 1.08fr 1fr; padding-bottom: 10px; }
.feature-main { width: 100%; height: 500px; object-fit: cover; border-radius: 8px; }
.feature-thumb-grid { height: 500px; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(2, minmax(0,1fr)); }
.feature-thumb-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.section-line { border: 0; border-top: 1px solid rgba(28,34,37,.2); margin: 0; }
.project-grid { display: grid; gap: 48px 32px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { display: flex; flex-direction: column; gap: 24px; }
.card img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }
.meta { display: flex; flex-direction: column; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; opacity: .7; }
.tag { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(28,34,37,.7); background: #fff; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.title-block { display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.title-block h2, .title-block h3, .title-block h1 { margin: 0; font-size: 20px; font-weight: 600; }
.title-block p { margin: 0; font-size: 14px; color: rgba(28,34,37,.6); font-weight: 500; }

.detail { display: flex; flex-direction: column; gap: 40px; padding: 24px 0; }
.detail-images { display: flex; flex-direction: column; gap: 24px; }
.detail-images img { width: 100%; height: 800px; object-fit: cover; border-radius: 8px; }

.footer { margin-top: 8px; padding: 32px 0; color: rgba(28,34,37,.7); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.notice { padding: 16px; border-radius: 8px; background: #fef3c7; border: 1px solid #f59e0b; color: #7c2d12; }
.error { padding: 12px 14px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.admin-layout { display: grid; gap: 32px; padding: 24px 0 56px; }
.admin-form { display: grid; gap: 20px; padding: 20px; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.field input[type="text"], .field input[type="date"], .field input[type="password"], .field textarea { height: 48px; padding: 0 12px; border: 1px solid rgba(28,34,37,.15); border-radius: 8px; outline: none; }
.field textarea { height: 92px; padding: 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.checkline { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(28,34,37,.1); border-radius: 8px; background: #fafafa; font-size: 14px; font-weight: 600; }
.uploads-grid { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0,1fr)); }
.upload-slot { position: relative; min-height: 170px; overflow: hidden; border-radius: 10px; border: 1px dashed rgba(28,34,37,.3); background: #fafafa; display: grid; place-items: center; text-align: center; }
.upload-slot img { width: 100%; height: 170px; object-fit: cover; }
.upload-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-slot span { padding: 0 12px; color: rgba(28,34,37,.6); font-size: 14px; font-weight: 600; display: grid; gap: 8px; justify-items: center; }
.upload-placeholder { position: relative; z-index: 1; pointer-events: none; }
.upload-placeholder strong { color: var(--ink); }
.upload-placeholder small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-slot img { position: absolute; inset: 0; z-index: 0; }
.upload-slot .is-hidden { display: none !important; }
.project-list { display: grid; gap: 16px; }
.project-item { display: grid; gap: 16px; grid-template-columns: 160px 1fr auto; padding: 16px; }
.project-item img { width: 100%; height: 100%; min-height: 120px; border-radius: 8px; object-fit: cover; }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: flex-start; }
.featured-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--gold); background: rgba(245,189,53,.15); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.login-shell { min-height: 60vh; display: grid; place-items: center; padding: 24px 0 56px; }
.login-card { width: 100%; max-width: 520px; padding: 24px; }

@media (max-width: 1199px) {
  .wrap { padding: 0 32px; }
  .header-row { justify-content: space-between; }
  .nav { display: none; }
  .enquire-btn { display: none; }
  .nav-toggle { display: inline-flex !important; margin-left: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-main { height: 430px; }
  .feature-thumb-grid { height: auto; }
  .feature-thumb-grid img { height: 208px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-images img { height: 520px; }
  .uploads-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header { padding: 20px 0; }
  .header-row { align-items: center; }
  .nav-toggle { display: inline-flex !important; }
  .nav-toggle-icon { width: 18px; height: 18px; }
  .logo img { width: 44px; height: 46px; }
  .headline h1 { font-size: 36px; }
  .headline i { display: none; }
  .showcase { padding-bottom: 40px; }
  .showcase p { font-size: 16px; }
  .feature-main { height: 340px; }
  .feature-thumb-grid img { height: 160px; }
  .project-grid { grid-template-columns: 1fr; }
  .card img { height: 224px; }
  .detail-images img { height: 320px; }
  .fields { grid-template-columns: 1fr; }
  .uploads-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
