/* RedDot Business Solutions — static site styles (Cloudflare Pages ready) */
:root {
  --cream: #f7f1e6;
  --cream-2: #efe6d4;
  --paper: #fffdf8;
  --green: #123f33;
  --green-2: #1d5a48;
  --green-soft: #2f6f5a;
  --gold: #b8924a;
  --gold-soft: #d9c08c;
  --navy: #1d3557;
  --ink: #1d2a25;
  --muted: #5b6a63;
  --line: rgba(18, 63, 51, 0.14);
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(18, 63, 51, 0.35);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--green); line-height: 1.12; margin: 0; }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px; display: inline-block;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a37f3c; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green); color: var(--gold-soft); font: 600 1.05rem var(--serif); position: relative;
}
.brand-mark::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 7px; height: 7px; border-radius: 50%; background: #c8102e; }
.brand-text { line-height: 1.05; }
.brand-text strong { font: 600 1.3rem var(--serif); color: var(--green); display: block; }
.brand-text span { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .92rem; color: var(--ink); }
.nav-links a:not(.btn):hover { color: var(--green-soft); }
.nav-links .btn { padding: 11px 20px; color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--green); }

/* Hero — Singapore skyline under a transparent emerald tint */
.hero { position: relative; overflow: hidden; padding: 0; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .skyline { width: 100%; height: 100%; display: block; }
.hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 60, 46, .62) 0%, rgba(12, 78, 60, .38) 50%, rgba(16, 92, 70, .18) 100%);
}
.hero-inner { position: relative; z-index: 1; min-height: 640px; display: flex; align-items: center; padding: 70px 0 90px; }
.hero-panel {
  max-width: 600px; padding: 48px 46px; border-radius: 26px;
  background: rgba(10, 66, 51, .62);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(217, 192, 140, .35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -0.01em; color: #fff; }
.hero h1 em { color: var(--gold-soft); }
.hero-lead { font-size: 1.1rem; color: #e3eee8; max-width: 500px; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tagline-pill { font: italic 1rem var(--serif); color: #fff; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); }

.pillars { position: relative; z-index: 1; background: var(--green); color: #fff; }
.pillars ul { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillars li { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.pillars li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* Sections */
section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 18px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-grid h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy .callout { font: italic 1.25rem var(--serif); color: var(--green); margin: 28px 0; }
.director-card {
  margin-top: 36px; display: flex; gap: 20px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); text-decoration: none; transition: transform .2s;
}
.director-card:hover { transform: translateY(-2px); }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; flex: none; overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--green-soft)); color: var(--gold-soft);
  display: grid; place-items: center; font: 600 1.5rem var(--serif); border: 3px solid var(--gold-soft);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.director-card small { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; font-weight: 600; }
.director-card strong { display: block; font: 500 1.25rem var(--serif); color: var(--green); }
.director-card span { color: var(--muted); font-size: .9rem; }

/* Services */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green); display: grid; place-items: center; }
.service-icon svg { width: 26px; height: 26px; stroke: var(--gold-soft); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-num { font: 500 1rem var(--serif); color: var(--gold); }
.service h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service > p { color: var(--muted); font-size: .97rem; }
.service details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.service summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: .9rem; color: var(--green);
  display: flex; justify-content: space-between; align-items: center;
}
.service summary::-webkit-details-marker { display: none; }
.service summary::after { content: "+"; font-size: 1.3rem; color: var(--gold); transition: transform .2s; }
.service details[open] summary::after { transform: rotate(45deg); }
.service ul { margin: 14px 0 0; padding: 0; list-style: none; }
.service li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .93rem; color: var(--ink); }
.service li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); }
.note {
  margin-top: 36px; padding: 18px 22px; border-left: 3px solid var(--gold);
  background: var(--cream); border-radius: 0 12px 12px 0; color: var(--muted); font-size: .92rem;
}

/* Process */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.step b { font: 500 2rem var(--serif); color: var(--gold); display: block; }
.step h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
.approach { background: var(--green); color: #e8efe9; border-radius: 24px; padding: 40px 36px; position: relative; overflow: hidden; }
.approach .eyebrow { color: var(--gold-soft); }
.approach-item { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; }
.approach-item:last-child { padding-bottom: 0; }
.approach-item h3 { color: #fff; font-size: 1.5rem; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.approach-item h3 span { font: 600 .75rem var(--sans); color: var(--green); background: var(--gold-soft); border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; }
.approach-item p { margin: 0; color: #c9d8d0; }

/* Contact */
.contact { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 4.5vw, 3.3rem); }
.how-list { counter-reset: s; list-style: none; padding: 0; margin: 30px 0; }
.how-list li { counter-increment: s; display: flex; gap: 16px; margin-bottom: 18px; color: var(--muted); }
.how-list li::before {
  content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold); color: var(--green); display: grid; place-items: center; font: 600 .9rem var(--serif);
}
.contact-direct { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.contact-direct a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 0; font-weight: 500; color: var(--green); }
.contact-direct svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.7; }

form.enquiry { background: var(--paper); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--green); }
.field label .req { color: #b4232f; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 .97rem var(--sans); color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(47,111,90,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 22px; }
.consent input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.form-error { color: #b4232f; font-size: .88rem; margin: -6px 0 14px; display: none; }
.summary-box { display: none; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.summary-box.show { display: block; }
.summary-box pre {
  white-space: pre-wrap; background: var(--cream); border-radius: 12px; padding: 16px;
  font: .86rem/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink); max-height: 260px; overflow: auto;
}
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Footer */
.site-footer { background: var(--green); color: #cfdcd5; padding: 56px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.site-footer .brand-text strong { color: #fff; }
.site-footer a { text-decoration: none; color: #fff; }
.site-footer .tag { font: italic 1.05rem var(--serif); color: var(--gold-soft); margin-top: 12px; }
.footer-contact a { display: block; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Director page */
.profile-hero { padding: 70px 0 40px; }
.back-link { text-decoration: none; color: var(--green-soft); font-weight: 600; font-size: .92rem; display: inline-block; margin-bottom: 34px; }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.profile-photo {
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; position: sticky; top: 110px;
  background: linear-gradient(160deg, var(--green), var(--green-soft)); display: grid; place-items: center;
  color: var(--gold-soft); font: 500 5rem var(--serif); box-shadow: var(--shadow); border: 6px solid var(--paper);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.profile .role { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin: 12px 0 34px; }
.profile-body p { font-size: 1.04rem; color: #3b4a43; }
.profile-body h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.chips li { background: var(--paper); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--green); }
.profile-quote { font: italic 1.6rem var(--serif); color: var(--green); border-left: 3px solid var(--gold); padding-left: 22px; margin: 40px 0 30px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .about-grid, .process-grid, .contact-grid, .profile-grid { grid-template-columns: 1fr; }
  .hero { background: #0d4a3a; }
  .hero-bg { bottom: auto; height: 400px; }
  .hero-tint { background: linear-gradient(180deg, rgba(12,78,60,.12) 0%, rgba(12,78,60,.25) 70%, #0d4a3a 100%); }
  .hero-inner { min-height: 0; padding: 330px 0 44px; align-items: flex-end; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .pillars ul { grid-template-columns: 1fr 1fr; }
  .profile-photo { position: static; max-width: 320px; }
  section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  .service-grid, .steps, .form-row { grid-template-columns: 1fr; }
  form.enquiry { padding: 24px; }
  .hero-panel { padding: 30px 24px; }
}
.footer-contact .addr { color: #cfdcd5; font-size: .92rem; line-height: 1.5; margin-top: 8px; }
.contact-direct a span { line-height: 1.5; }
