/* Appledem website: navy and bronze-gold from the logo, on white and warm cream. */
:root {
  color-scheme: light;
  --navy: #0f2148;
  --navy-deep: #0a1733;
  --navy-soft: #1d3a73;
  --gold: #a8732b;        /* the logo's gold: shapes, buttons, lines */
  --gold-text: #87591c;   /* gold words on white / cream (readable) */
  --gold-light: #d6a659;  /* gold on navy */
  --ink: #1a2338;
  --muted: #5b6475;
  --line: #e6dfd2;
  --cream: #f8f5ef;
  --bg: #ffffff;
  --max: 1160px;
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:hover { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.cream { background: var(--cream); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.eyebrow { font: 700 13px/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 16px; }
.eyebrow.light { color: var(--gold-light); }
.intro { font-size: 19px; color: var(--muted); max-width: 640px; margin-bottom: 48px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 4px;
  font: 700 15px/1 var(--head); letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: #8f601f; color: #fff; }
.btn.line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.line:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn.wide { width: 100%; }

/* Header and the logo as text + drawn mark */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 52px; height: auto; }
.word { display: flex; flex-direction: column; line-height: 1; }
.word b { font: 800 22px/1 var(--head); color: var(--navy); letter-spacing: .02em; }
.word small { font: 600 9.5px/1 var(--head); color: var(--gold); letter-spacing: .42em; margin-top: 5px; }
.brand.on-dark .word b { color: #fff; }
.brand.on-dark .word small { color: var(--gold-light); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font: 600 15px/1 var(--head); color: var(--navy); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--gold-text); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero: navy with a faint blueprint grid */
.hero { position: relative; color: #fff; padding: 88px 0 72px; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(120% 90% at 85% 10%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--gold-light); }
.hero .lead { font-size: 20px; color: rgba(255, 255, 255, .82); max-width: 540px; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.sketch { margin: 0; }
.sketch svg { width: 100%; height: auto; }
.sketch figcaption { text-align: center; font: 500 italic 15px/1.4 var(--body); color: rgba(255, 255, 255, .7); margin-top: 6px; }
.as-sketch { --wall: none; --roof: none; --win: none; --door: none; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-dasharray: 7 4; opacity: .9; }
.as-built { --wall: #f3ede2; --roof: var(--gold); --win: #27467f; --door: #7c5320; fill: none; stroke: var(--navy-deep); stroke-width: 2; }
.ground { fill: var(--gold-light); }
.dims line { stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.dims text { fill: rgba(255, 255, 255, .75); font: 500 13px var(--body); }
.divider { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 2 5; opacity: .6; }
.tag rect { fill: none; stroke: var(--gold-light); stroke-width: 1.4; }
.tag text { fill: var(--gold-light); font: 700 11px var(--head); letter-spacing: .14em; }
.tag.done rect { fill: var(--gold); stroke: var(--gold); }
.tag.done text { fill: #fff; }

/* The seven words of the logo's tagline */
.disciplines { background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, .08); }
.disciplines .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; padding-top: 22px; padding-bottom: 22px; }
.disciplines span { font: 600 13px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.disciplines i { font-style: normal; font-weight: 700; color: var(--gold-light); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 6px; padding: 28px 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-top-color: var(--gold); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 33, 72, .08); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.icon { width: 42px; height: 42px; padding: 9px; border-radius: 6px; background: var(--cream); fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.num { font: 800 15px/1 var(--head); color: var(--line); letter-spacing: .05em; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 16px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; font-weight: 500; color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* Process */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; border-top: 2px dashed var(--gold); opacity: .45; }
.steps li { position: relative; }
.step-n { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 19px/1 var(--head); margin-bottom: 20px; box-shadow: 0 0 0 6px var(--cream); position: relative; }
.steps li:last-child .step-n { background: var(--gold); }
.steps p { color: var(--muted); font-size: 16px; }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.why-quote { background: var(--cream); border-radius: 8px; padding: 56px 48px; border-left: 6px solid var(--gold); }
.mark.big { width: 120px; height: auto; margin-bottom: 28px; }
.why-quote p { font: 800 clamp(30px, 3.6vw, 44px)/1.15 var(--head); color: var(--navy); margin: 0; }
.why-quote p span { color: var(--gold-text); }
.why-list dl { margin: 24px 0 0; display: grid; gap: 22px; }
.why-list dl div { padding-left: 22px; border-left: 2px solid var(--line); }
.why-list dt { font: 700 17px/1.3 var(--head); color: var(--navy); margin-bottom: 4px; }
.why-list dd { margin: 0; color: var(--muted); }

/* Estimate */
.estimate { background: var(--navy); color: rgba(255, 255, 255, .85); }
.estimate-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.estimate h2 { color: #fff; }
.estimate a { color: var(--gold-light); text-decoration-color: var(--gold-light); }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--gold-light); border-bottom: 2.5px solid var(--gold-light); transform: rotate(-45deg); }
.form { background: #fff; color: var(--ink); border-radius: 8px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font: 600 14px/1.3 var(--head); color: var(--navy); }
.form label em { font-style: normal; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid #cfc7b8; border-radius: 4px; padding: 11px 12px; width: 100%; min-height: 46px; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 115, 43, .2); }
.form [aria-invalid="true"] { border-color: #b3261e; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.form-note.warn { color: #b3261e; }

/* Footer */
.site-foot { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-tag { margin: 18px 0 0; }
.site-foot nav { display: grid; gap: 10px; align-content: start; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--gold-light); }
.foot-h { font: 700 12px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* Tablet */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .why { gap: 40px; }
}
@media (max-width: 880px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-grid, .why, .estimate-grid { grid-template-columns: 1fr; }
  .sketch { max-width: 560px; }
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: 0 16px 30px rgba(15, 33, 72, .1); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
/* Phone */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .cards, .steps, .row.two { grid-template-columns: 1fr; }
  .hero .lead { font-size: 18px; }
  .actions .btn { flex: 1 1 100%; }
  .why-quote { padding: 40px 28px; }
  .form { padding: 22px 18px; }
  .word b { font-size: 19px; }
  .brand .mark { width: 44px; }
  .disciplines span { font-size: 11.5px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}
