/* TEZLY — working palette (not a final approved identity). */
:root {
  --navy: #102a43;
  --navy-2: #1c3d5e;
  --navy-3: #2b5278;
  --white: #ffffff;
  --silver: #b8c5d1;
  --silver-light: #dce6ef;
  --tint: #f3f6f9;
  --text: #102a43;
  --muted: #5b7083;
  --border: #dce6ef;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --ok: #1f7a4d;
  --ok-bg: #e6f4ec;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 42, 67, 0.06), 0 8px 24px rgba(16, 42, 67, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.18em; color: var(--navy); text-decoration: none; }
.logo small { font-weight: 500; letter-spacing: 0.04em; font-size: 0.7rem; opacity: 0.7; margin-left: 4px; }
.logo-light { color: var(--white); }
.main-nav { display: flex; gap: 22px; margin-left: 12px; }
.main-nav a, .mobile-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy-3); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { font-weight: 600; font-size: 0.85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; }
.mobile-nav { display: none; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .mobile-nav { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; font-size: 0.92rem; }
  .header-row { min-height: 56px; gap: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--silver-light); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--silver); }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-danger { background: var(--white); color: var(--danger); border-color: #f1b7b1; }
.btn-danger:hover { background: var(--danger-bg); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy-3); outline-offset: 2px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%); color: var(--white); padding: clamp(56px, 10vw, 112px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(184, 197, 209, 0.25); box-shadow: 0 0 0 60px rgba(184, 197, 209, 0.05), 0 0 0 120px rgba(184, 197, 209, 0.04); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--silver); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: inherit; opacity: 0.88; max-width: 640px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-head-gap { margin-top: 48px; }
.page-head { background: var(--tint); border-bottom: 1px solid var(--border); padding: clamp(36px, 6vw, 64px) 0; }
.page-head .lead { color: var(--muted); opacity: 1; }

.grid-3, .grid-4, .pillars { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillars { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 12px; }
.pillar { border-top: 2px solid var(--navy); padding-top: 18px; }
.pillar-num { font-weight: 700; color: var(--silver); letter-spacing: 0.1em; }
.pillar h3 { margin-top: 8px; font-size: 1.2rem; }
.pillar p { color: var(--muted); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-title { font-size: 1.1rem; margin-bottom: 12px; }
.card-alert { border-color: #f0d9a6; background: #fffbf2; }
.service-card { display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--muted); flex: 1; }
.service-card-alert { border-left: 3px solid #d9a521; }
.link-arrow { font-weight: 600; text-decoration: none; }

.split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 32px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--navy-3); font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--tint); border-radius: var(--radius); padding: 22px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 0; }

.cta-band { background: var(--navy); color: var(--white); padding: 44px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-row h2 { margin-bottom: 4px; }
.cta-row p { margin: 0; color: var(--silver); }

/* Forms */
.booking-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } .estimate { order: -1; } }
.estimate { position: sticky; top: 88px; }
@media (max-width: 900px) { .estimate { position: static; } }
.estimate-amount { font-size: 1.8rem; font-weight: 700; margin: 0 0 4px; }
.estimate-amount:empty { display: none; }
.estimate-msg { color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1px solid var(--silver); border-radius: 10px; padding: 11px 12px; min-height: 46px; }
textarea { resize: vertical; }
input[type="file"] { padding: 9px; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--navy); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.88rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 4px; }
.row-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.segment-switch { border: 0; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.segment-switch legend { font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; padding: 0; }
.segment-switch label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--silver); border-radius: 10px; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.segment-switch label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: var(--white); }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; }
.notice-alert, .alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }

/* Success & status */
.success-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-size: 2rem; font-weight: 700; }
.code-label { color: var(--muted); margin: 18px 0 2px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.code { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 18px; }
.status-form { margin-bottom: 20px; }
.status-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 20px; }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; font-weight: 600; }
.status-list .price { font-size: 1.3rem; }
.accept-form { border-top: 1px solid var(--border); padding-top: 18px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--silver-light); color: var(--navy); white-space: nowrap; }
.badge-new { background: #e4ecff; color: #1d3f9c; }
.badge-quoted { background: var(--warn-bg); color: var(--warn); }
.badge-accepted, .badge-scheduled { background: #e3f1f7; color: #165b78; }
.badge-completed { background: var(--ok-bg); color: var(--ok); }
.badge-cancelled { background: #eef0f2; color: var(--muted); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.tag-alert { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }

/* Footer */
.site-footer { background: #0b1f33; color: var(--silver); padding: 48px 0 24px; }
.site-footer h2 { color: var(--white); font-size: 1rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-list { display: flex; flex-direction: column; gap: 6px; }
.contact-list a { color: var(--silver-light); }
.footer-bottom { border-top: 1px solid rgba(184, 197, 209, 0.2); margin-top: 32px; padding-top: 18px; font-size: 0.85rem; }

/* Admin */
.admin { background: var(--tint); }
.admin-header { background: var(--navy); color: var(--white); }
.admin-header .header-row { flex-wrap: wrap; padding: 8px 16px; }
.admin-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.admin-nav a { color: var(--silver-light); text-decoration: none; font-weight: 500; }
.admin-nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.logout { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { font-size: 0.85rem; color: var(--silver); }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-main h1 { font-size: 1.7rem; }
.admin-login main { padding-top: 12vh; max-width: 420px; }
.admin-login .logo { display: block; margin-bottom: 20px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { text-decoration: none; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; }
.tabs a[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.count { opacity: 0.65; margin-left: 2px; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--tint); }
.table tr:last-child td { border-bottom: 0; }
.table td .muted { font-size: 0.82rem; }
.table input { min-height: 40px; padding: 8px 10px; }
form.card .table-wrap { margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; }

.order-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.order-head h1 { margin: 0; }
.admin-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 24px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv, .status-list { grid-template-columns: 1fr; gap: 2px; } .kv dd, .status-list dd { margin-bottom: 10px; } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
form.inline { display: inline; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 16px; border-left: 2px solid var(--silver-light); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.timeline .muted { font-size: 0.8rem; }
