/* TMH Facility Management – site styles */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f5f6f1;
  --paper-2: #ebede4;
  --surface: #ffffff;
  --ink: #0f1d17;
  --ink-2: #263a30;
  --muted: #5b6a62;
  --line: #dde1d6;
  --line-strong: #c6ccbf;
  --forest: #0f2e22;
  --forest-2: #164030;
  --accent: #2f8f5b;
  --accent-ink: #1f6e43;
  --accent-soft: #e3f1e8;
  --amber: #e2a23b;
  --on-dark: #eaf2ec;
  --on-dark-muted: #9fb5a8;
  --line-dark: rgba(255, 255, 255, .12);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --section: clamp(64px, 9vw, 120px);
  --shadow: 0 1px 2px rgba(15, 29, 23, .04), 0 12px 32px -12px rgba(15, 29, 23, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.035em; line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); letter-spacing: -.015em; line-height: 1.25; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 .98rem/1 var(--font-body); text-decoration: none;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--accent-soft); }
.btn-outline-light { border-color: var(--line-dark); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--on-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 600 1.08rem/1.1 var(--font-display); letter-spacing: -.02em; }
.brand-sub { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { color: var(--accent-ink); }
.nav .btn { min-height: 42px; padding: 0 18px; color: #fff; }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .nav .btn { padding: 0 14px; font-size: .9rem; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero-card {
  background: var(--forest); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 143, 91, .45), transparent 70%);
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 20px; position: relative; z-index: 1; }
.ticket-list { list-style: none; display: grid; gap: 10px; position: relative; z-index: 1; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.ticket strong { font-weight: 600; color: #fff; font-size: .98rem; }
.ticket span { font-size: .84rem; color: var(--on-dark-muted); }
.status { grid-row: span 2; align-self: center; font-size: .74rem !important; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status-done { background: rgba(47, 143, 91, .22); color: #8fe0b2 !important; }
.status-open { background: rgba(226, 162, 59, .18); color: #f5c97c !important; }
.status-plan { background: rgba(255, 255, 255, .08); color: var(--on-dark) !important; }
.hero-card-foot { margin-top: 18px; font-size: .85rem; color: var(--on-dark-muted); position: relative; z-index: 1; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; }
.section-alt .service { background: var(--paper); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 24px; height: 24px; }
.service p { color: var(--ink-2); margin-top: 12px; }
.checks { list-style: none; display: grid; gap: 9px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.audience li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.audience strong { display: block; font: 600 1.05rem/1.25 var(--font-display); margin-bottom: 6px; }
.audience span { font-size: .93rem; color: var(--muted); }
@media (max-width: 960px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

/* Split / digital */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.feature-list { list-style: none; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature-list .num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 600 .95rem/1 var(--font-display); color: var(--accent-ink); background: var(--surface); }
.feature-list strong { display: block; font-weight: 700; margin-bottom: 2px; }
.feature-list span { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--line-strong); }
.steps li::before { content: "0" counter(step); display: block; font: 600 .9rem/1 var(--font-display); color: var(--accent-ink); margin-bottom: 14px; letter-spacing: .04em; }
.steps strong { display: block; font: 600 1.15rem/1.25 var(--font-display); margin-bottom: 8px; }
.steps span { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Area */
.area-box { background: var(--forest); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.area-box h2 { color: #fff; }
.area-box .eyebrow { color: #8fe0b2; }
.area-box p { color: var(--on-dark-muted); margin-top: 16px; }
.places { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.places li { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .92rem; font-weight: 600; }
.places li.core { background: rgba(47, 143, 91, .25); border-color: rgba(143, 224, 178, .35); color: #fff; }
@media (max-width: 900px) { .area-box { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--font-body); color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); }
.contact-row { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:first-child { padding-top: 0; }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row span { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-row a, .contact-row p { font-weight: 600; font-size: 1.05rem; text-decoration: none; margin: 0; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--accent-ink); }
.contact-card .btn { width: 100%; margin-top: 20px; }
.hint { list-style: none; display: grid; gap: 8px; margin-top: 24px; }
.hint li { padding-left: 22px; position: relative; color: var(--ink-2); }
.hint li::before { content: "→"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--forest); color: var(--on-dark-muted); padding: 56px 0 32px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--on-dark-muted); }
.site-footer h3 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about { margin-top: 16px; max-width: 38ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { padding: clamp(40px, 7vw, 88px) 0 var(--section); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .meta { color: var(--muted); margin-bottom: 8px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
