/* =========================================================
   Urban Entropy — Town Planning Consultancy
   Brand palette: Deep teal + warm sand
   ========================================================= */

:root {
  --ink:        #122421;   /* near-black teal charcoal */
  --teal-900:   #0B3A35;
  --teal-700:   #0E5750;   /* primary brand */
  --teal-500:   #1C8C84;   /* accent */
  --teal-100:   #DCEAE7;
  --sand:       #E2CFA6;   /* warm sand */
  --sand-soft:  #F1E7D2;
  --cream:      #FBF7EF;   /* page background */
  --white:      #FFFFFF;
  --muted:      #56655F;
  --line:       rgba(18, 36, 33, 0.12);
  --shadow:     0 18px 50px -24px rgba(11, 58, 53, 0.45);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-500); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal-500);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teal-500);
  display: inline-block;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--sand { background: var(--sand-soft); }
.section--ink { background: var(--ink); color: var(--sand-soft); }
.section--ink h2, .section--ink h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--teal-700); color: var(--white); }
.btn--primary:hover { background: var(--teal-900); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn--light { background: var(--sand); color: var(--ink); }
.btn--light:hover { background: var(--white); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { display:block; font-family: var(--font-body); font-size:.6rem; letter-spacing:.24em; text-transform:uppercase; color: var(--teal-500); font-weight:600; margin-top:2px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  padding: .4rem 0;
  position: relative;
}
.nav__links a::after {
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: var(--teal-500); transition: width .25s ease;
}
.nav__links a:hover::after, .nav__links a.active::after { width:100%; }
.nav__links a.active { color: var(--teal-700); }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; align-items:center; justify-content:center; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.2rem, 4vw, 2.5rem) 1.5rem;
  }
  .nav.open .nav__links li { width: 100%; }
  .nav.open .nav__links a { display:block; padding: .9rem 0; border-bottom: 1px solid var(--line); width:100%; }
  .nav.open .nav__links .btn { display:inline-flex; margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-700) 55%, #0a4a44 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__topo {
  position: absolute; inset: 0;
  opacity: .5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding: clamp(4rem, 11vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
  max-width: 50rem;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--sand); }
.hero p { color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 1.7vw, 1.32rem); max-width: 46ch; }
.hero__actions { display:flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__meta div strong {
  display:block; font-family: var(--font-display); font-size: 2rem; color: var(--sand); line-height: 1;
}
.hero__meta div span { font-size:.85rem; color: rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.12em; }

/* ---------- Generic grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: .9rem; font-size: .97rem; }
.card a.more { font-weight:600; font-size:.9rem; display:inline-flex; align-items:center; gap:.35rem; }
.card a.more svg { width:15px; height:15px; }

/* numbered service list (services page) */
.svc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.svc__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--sand); line-height: 1; }
.svc h3 { margin-bottom: .4rem; }
.svc p { color: var(--muted); margin-bottom: .6rem; }
.svc ul { margin:.4rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.svc ul li { margin-bottom: .3rem; }
@media (max-width: 620px) { .svc { grid-template-columns: 1fr; gap: .8rem; } }

/* ---------- Steps / process ---------- */
.step { position: relative; padding-left: 0; }
.step__n {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-700); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Projects ---------- */
.project {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project__img { aspect-ratio: 4 / 3; position: relative; }
.project__body { padding: 1.3rem 1.4rem 1.5rem; }
.project__tags { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:.7rem; }
.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-100);
  padding: .25rem .6rem; border-radius: 100px;
}
.project h3 { font-size: 1.25rem; margin-bottom:.3rem; }
.project p { color: var(--muted); font-size:.95rem; margin:0; }

/* ---------- Stats band ---------- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align:center; }
.stats div strong { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.2rem); color: var(--sand); display:block; line-height:1; }
.stats div span { color: rgba(255,255,255,.8); font-size:.9rem; letter-spacing:.04em; }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2,1fr); gap:2rem; } }

/* ---------- Logos / trust ---------- */
.trust { display:flex; flex-wrap:wrap; gap:1rem 2.4rem; align-items:center; justify-content:center; color: var(--muted); }
.trust span { font-weight:600; letter-spacing:.02em; opacity:.8; }

/* ---------- Feature list ---------- */
.checklist { list-style:none; margin:0; padding:0; }
.checklist li { display:flex; gap:.8rem; align-items:flex-start; margin-bottom:1rem; }
.checklist svg { flex:none; width:24px; height:24px; color: var(--teal-500); margin-top:2px; }
.checklist strong { display:block; }
.checklist span { color: var(--muted); font-size:.95rem; }

/* ---------- Quote / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color:#fff; border-radius: var(--radius-lg);
  padding: clamp(2.4rem,5vw,3.6rem);
  position: relative; overflow: hidden;
}
.cta-band h2 { color:#fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; }
.cta-band .btn { margin-top: .5rem; }
.cta-band__topo { position:absolute; inset:0; opacity:.35; pointer-events:none; }
.cta-band > * { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display:block; font-weight:600; font-size:.85rem; margin-bottom:.4rem; }
.field input, .field select, .field textarea {
  width:100%; padding:.85rem 1rem; border:1px solid var(--line); border-radius:10px;
  font-family: inherit; font-size:1rem; background:#fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
@media (max-width:520px){ .field-row { grid-template-columns:1fr; } }

.info-card {
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; margin-bottom: 1.2rem;
}
.info-card h3 { font-size:1.15rem; margin-bottom:.4rem; }
.info-row { display:flex; gap:.8rem; align-items:flex-start; margin-bottom:.9rem; }
.info-row svg { flex:none; width:22px; height:22px; color: var(--teal-700); margin-top:2px; }
.info-row a { font-weight:600; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-700));
  color:#fff; position: relative; overflow:hidden;
}
.page-hero__topo { position:absolute; inset:0; opacity:.4; pointer-events:none; }
.page-hero__inner { position: relative; padding: clamp(3rem,8vw,5.5rem) 0 clamp(2.5rem,6vw,4rem); max-width: 48rem; }
.page-hero h1 { color:#fff; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 52ch; }
.crumbs { font-size:.85rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; letter-spacing:.04em; }
.crumbs a { color: var(--sand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap:2.2rem; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color:#fff; font-family: var(--font-body); font-size:.8rem; text-transform:uppercase; letter-spacing:.16em; margin-bottom:1.1rem; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer ul li { margin-bottom:.6rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--sand); }
.footer-brand { display:flex; align-items:center; gap:.6rem; color:#fff; font-family:var(--font-display); font-size:1.25rem; margin-bottom:1rem; }
.footer-brand svg { width:32px; height:32px; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top:1px solid rgba(255,255,255,.14);
  display:flex; flex-wrap:wrap; gap:.8rem; justify-content:space-between; font-size:.85rem; color: rgba(255,255,255,.55);
}
.acknowledge { font-size:.88rem; color: rgba(255,255,255,.6); max-width:70ch; margin-top:1.4rem; line-height:1.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------- Utilities ---------- */
.text-center { text-align:center; }
.mx-auto { margin-left:auto; margin-right:auto; }
.mt-0 { margin-top:0; }
.muted { color: var(--muted); }
.maxw-prose { max-width: 65ch; }
