/* ==========================================================================
   Milestone Aluminium — brand stylesheet
   Brand: Royal Purple #6A0DAD · Charcoal #333333 · Slate Blue #6A5ACD · Golden Rod #DAA520
   Tagline: Partnering Perfection
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --purple:        #6A0DAD;
  --purple-dark:   #4E0A80;
  --purple-deep:   #2C0548;
  --purple-tint:   #F4ECFB;
  --charcoal:      #333333;
  --slate:         #6A5ACD;
  --gold:          #DAA520;
  --ink:           #1d1726;
  --body:          #4a4458;
  --muted:         #7a7488;
  --line:          #e7e2ef;
  --bg:            #ffffff;
  --bg-soft:       #faf8fd;

  --font-base: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(44, 5, 72, .06);
  --shadow:    0 14px 40px rgba(44, 5, 72, .10);
  --shadow-lg: 0 30px 70px rgba(44, 5, 72, .16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--purple); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--purple-dark); }
ul { list-style: none; padding: 0; }

h1,h2,h3,h4 { color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { color: var(--body); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--deep {
  background: radial-gradient(120% 120% at 80% 0%, var(--purple-dark) 0%, var(--purple-deep) 55%, #1c0330 100%);
  color: #efe9f6;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.section--deep .eyebrow { color: #d8b6ff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }
.section--deep .section-head p { color: #c9bcdc; }
.lead { font-size: 1.2rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  font-weight: 800; font-size: .98rem; letter-spacing: .01em;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 10px 26px rgba(106,13,173,.32); }
.btn--primary:hover { background: var(--purple-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(106,13,173,.4); }
.btn--ghost { background: transparent; color: var(--purple); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple-dark); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--purple); }
.btn--light:hover { background: #fff; color: var(--purple-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  color: var(--charcoal); font-weight: 700; font-size: .98rem; position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--purple);
  transition: width .25s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--purple); }
.nav__links a.active::after, .nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle.open span:nth-child(1){ transform: translateY(8.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2){ opacity: 0; }
.nav__toggle.open span:nth-child(3){ transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 55% at 85% 12%, rgba(106,90,205,.18), transparent 70%),
    radial-gradient(45% 60% at 12% 90%, rgba(106,13,173,.14), transparent 70%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: clamp(56px, 8vw, 110px) 0;
}
.hero h1 span { color: var(--purple); }
.hero__lead { margin-top: 22px; font-size: 1.22rem; max-width: 33ch; }
.hero__actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats .num { font-size: 2.1rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }
.hero__stats .lbl { font-size: .86rem; color: var(--muted); font-weight: 700; }

/* hero visual — holds a real façade photo */
.hero__visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 55%, var(--purple-deep) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 14% 9%;
  mask-image: linear-gradient(160deg, #000 30%, transparent 92%);
  -webkit-mask-image: linear-gradient(160deg, #000 30%, transparent 92%);
}
.hero__visual::after {
  content: ""; position: absolute; right: -14%; bottom: -10%;
  width: 62%; aspect-ratio: 1; border-radius: 30px; transform: rotate(18deg);
  background: linear-gradient(160deg, rgba(218,165,32,.85), rgba(218,165,32,.25));
  filter: blur(2px); opacity: .5;
}
.hero__badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  background: rgba(255,255,255,.95); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero__badge img { width: 34px; height: 34px; }
.hero__badge b { color: var(--ink); display: block; font-size: .98rem; }
.hero__badge small { color: var(--muted); font-size: .8rem; }

/* ---------- Trust / logos strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust__inner { display: flex; align-items: center; gap: 30px; padding: 26px 0; flex-wrap: wrap; justify-content: space-between; }
.trust__label { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust__items { display: flex; gap: 38px; flex-wrap: wrap; color: var(--charcoal); font-weight: 800; opacity: .65; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--purple-tint); color: var(--purple);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; color: var(--muted); }
.card__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .92rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 900; letter-spacing: -.03em; color: #fff; }
.stat .num span { color: var(--gold); }
.stat .lbl { color: #c9bcdc; font-weight: 700; font-size: .95rem; margin-top: 4px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media {
  aspect-ratio: 5/4; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--slate), var(--purple-dark));
  position: relative; overflow: hidden;
}
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__media.has-photo::after { display: none; }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 11% 11%;
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
}
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--body); font-weight: 600; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236A0DAD' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Project cards ---------- */
.project {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  color: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project__bg { position: absolute; inset: 0; z-index: 0; }
.project__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__bg::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(28,3,48,.05) 0%, transparent 28%, rgba(28,3,48,.9)); }
.project__bg.p1 { background: linear-gradient(150deg,#7b1fd1,#3a0a63); }
.project__bg.p2 { background: linear-gradient(150deg,#6a5acd,#37206b); }
.project__bg.p3 { background: linear-gradient(150deg,#9b4dd6,#4e0a80); }
.project__bg.p4 { background: linear-gradient(150deg,#5a3ec8,#2c0548); }
.project__bg.p5 { background: linear-gradient(150deg,#8a2be2,#431266); }
.project__bg.p6 { background: linear-gradient(150deg,#b06ae0,#5a1791); }
.project__tag {
  position: relative; z-index: 1; align-self: flex-start; font-size: .74rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: 100px; margin-bottom: auto; backdrop-filter: blur(6px);
}
.project__body { position: relative; z-index: 1; }
.project h3 { color: #fff; margin-bottom: 6px; }
.project__meta { color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 600; }
.project__stat { margin-top: 12px; font-weight: 800; color: #fff; font-size: .95rem; display: flex; gap: 16px; flex-wrap: wrap; }
.project__stat span { color: #f3d995; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; max-width: 16ch; margin-inline: auto; }
.cta-band p { color: #cdbfe0; margin: 16px auto 32px; max-width: 52ch; font-size: 1.12rem; }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #1c0330; color: #b9aacb; padding: 76px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { height: 30px; margin-bottom: 18px; }
.footer p { color: #b9aacb; font-size: .96rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { color: #b9aacb; font-weight: 600; font-size: .96rem; }
.footer__links a:hover { color: #fff; }
.footer__contact li { margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.footer__contact svg { width: 18px; height: 18px; color: #b07be0; flex-shrink: 0; margin-top: 3px; }
.footer__bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #8d7da3;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--bg-soft); position: relative; overflow: hidden; padding: clamp(56px,7vw,96px) 0 clamp(48px,6vw,72px); }
.page-hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(50% 70% at 88% 0%, rgba(106,90,205,.16), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p { margin-top: 18px; font-size: 1.18rem; max-width: 60ch; color: var(--muted); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 22px; font-weight: 700; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.info-card { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.info-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--purple-tint); color: var(--purple); display: grid; place-items: center; flex-shrink: 0; }
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h4 { color: var(--ink); margin-bottom: 2px; font-size: 1.05rem; }
.info-card p, .info-card a { color: var(--muted); font-size: 1rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; font-size: .88rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(106,13,173,.1); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; }
.form__note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Misc ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill { background: var(--purple-tint); color: var(--purple); font-weight: 800; font-size: .85rem; padding: 8px 16px; border-radius: 100px; }
.section--deep .pill { background: rgba(255,255,255,.1); color: #e7d9f7; }
.note {
  background: #fff8e6; border: 1px solid #f0dca0; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 14px 18px; font-size: .92rem; color: #7a5e15; margin: 18px 0;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; order: -1; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 32px 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s var(--ease); height: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: block; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
}
