/* ==========================================================
   Unique Glass Solutions — uniqueglass.au
   Premium architectural design system
   Brand: UGS Blue #338DD0 · White · Charcoal #1A1A1A
   Type: Poppins (geometric sans, Nexa-adjacent)
   ========================================================== */

:root {
  --blue: #338DD0;
  --blue-dark: #2673ad;
  --ink: #1A1A1A;
  --ink-soft: #444a50;
  --brass: #b08d57;
  --brass-soft: #c9ae83;
  --grey-line: #e6e9ec;
  --bg: #ffffff;
  --bg-tint: #f6f8fa;
  --max: 1200px;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(26, 26, 26, .10);
  --tr: .25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
/* <picture> must generate no box, or height:100% on the inner img resolves
   against the picture instead of the sized parent (breaks .card-img crops). */
picture { display: contents; }
a { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.section-tint { background: var(--bg-tint); }
.kicker {
  display: inline-block; color: var(--blue); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; margin-bottom: 14px;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 36px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .04em;
  transition: var(--tr); border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--grey-line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--ink); font-size: .92rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: var(--tr);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 15px 36px; border-radius: 999px; border-bottom: none !important; font-weight: 600; letter-spacing: .04em; }
.nav-cta:hover { background: var(--blue-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--tr); }

/* dropdown */
.has-sub { position: relative; }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: -18px; min-width: 250px;
  background: #fff; border: 1px solid var(--grey-line); box-shadow: var(--shadow);
  list-style: none; padding: 10px 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: var(--tr);
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 22px; border-bottom: none; }
.sub-menu a:hover { background: var(--bg-tint); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero picture, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,26,26,.18) 0%, rgba(26,26,26,.32) 55%, rgba(26,26,26,.74) 100%);
}
.hero-inner { padding: 96px 0 72px; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.12rem; max-width: 56ch; margin-bottom: 30px; color: rgba(255,255,255,.92); }
.hero-sub { min-height: 56vh; }

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

.card { background: #fff; border: 1px solid var(--grey-line); transition: var(--tr); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 14px; }
.card-link { font-weight: 600; font-size: .9rem; letter-spacing: .03em; }
.card-link::after { content: " →"; }

/* pillars */
.pillar { padding: 34px 30px; background: #fff; border-top: 3px solid var(--blue); border-inline: 1px solid var(--grey-line); border-bottom: 1px solid var(--grey-line); }
.pillar h3 { margin-bottom: 10px; font-size: 1.05rem; }
.pillar p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0; }
.filter-btn {
  padding: 9px 20px; border: 1.5px solid var(--grey-line); background: #fff;
  font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; transition: var(--tr); border-radius: var(--radius);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry figure { break-inside: avoid; margin: 0 0 20px; position: relative; overflow: hidden; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .5s ease; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; color: #fff; font-size: .82rem;
  background: linear-gradient(transparent, rgba(26,26,26,.72)); opacity: 0; transition: var(--tr);
}
.masonry figure:hover figcaption { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(15,17,19,.94);
  display: none; align-items: center; justify-content: center; padding: 4vmin;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* case studies */
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--grey-line); background: #fff; }
.case:nth-of-type(even) .case-img { order: 2; }
.case + .case { margin-top: 44px; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.case-body .kicker { margin-bottom: 8px; }
.case-body h3 { font-size: 1.5rem; margin-bottom: 14px; }
.case-body p { color: var(--ink-soft); }

/* ---------- Feature band (dark) ---------- */
.band-dark { background: var(--ink); color: #fff; }
.band-dark h2 { color: #fff; }
.band-dark .lede { color: rgba(255,255,255,.78); }

/* finishes strip */
.finish-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.finish-chip {
  padding: 8px 18px; border: 1px solid var(--grey-line); border-radius: 999px;
  font-size: .84rem; color: var(--ink-soft); background: #fff;
}
.tier-label {
  margin: 26px 0 4px; font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .13em; color: var(--brass);
}
.tier-label:first-of-type { margin-top: 18px; }
.tier-label + .finish-list { margin-top: 10px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--grey-line); border-radius: var(--radius);
  font: inherit; font-size: .95rem; background: #fff; transition: var(--tr);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,141,208,.15); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: .8rem; color: var(--ink-soft); margin-top: 5px; }

/* contact layout */
.contact-layout { display: grid; grid-template-columns: 1.3fr .8fr; gap: 56px; align-items: start; }
.contact-card { background: var(--bg-tint); padding: 36px; border-left: 3px solid var(--blue); }
.contact-card h3 { margin: 22px 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.contact-card h3:first-child { margin-top: 0; }
.contact-card a { font-weight: 600; color: var(--ink); }
.contact-card a:hover { color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin: 0 auto 30px; }
.cta-band .btn-primary { background: #fff; color: var(--blue); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }
.cta-phone { margin-top: 22px; font-size: .95rem; }
.cta-phone a { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 34px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .92; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Utility ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin-top: 20px; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
.checklist li::before { content: "—"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.checklist strong { color: var(--ink); }
.img-frame { overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.notice { background: var(--bg-tint); border-left: 3px solid var(--blue); padding: 18px 22px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Split video hero ---------- */
.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr; background: var(--ink);
  color: #fff; min-height: 86vh; align-items: stretch;
}
.hero-split .hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 6vw 96px calc(max((100vw - var(--max)) / 2, 24px));
}
.hero-split .kicker { color: var(--brass-soft); }
.hero-split h1 { color: #fff; margin-bottom: 20px; font-size: clamp(2.4rem, 5.5vw, 4rem); }
.hero-split p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 50ch; margin-bottom: 32px; }
.hero-media { position: relative; overflow: hidden; min-height: 480px; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,26,26,.35) 0%, rgba(26,26,26,0) 30%);
}
.hero-note { font-size: .8rem; letter-spacing: .06em; color: rgba(255,255,255,.55); margin-top: 26px; }
.hero-note strong { color: var(--brass-soft); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 56px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat .num {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; color: var(--brass-soft);
  line-height: 1.1; letter-spacing: -.01em;
}
.stat .lbl { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.65); margin-top: 8px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.step { border-top: 1px solid var(--grey-line); padding-top: 22px; }
.step .no { font-size: 1rem; font-weight: 600; color: var(--brass); letter-spacing: .1em; }
.step h3 { margin: 10px 0 8px; font-size: 1.02rem; }
.step p { color: var(--ink-soft); font-size: .92rem; }
.band-dark .step { border-top-color: rgba(255,255,255,.18); }
.band-dark .step p { color: rgba(255,255,255,.7); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.team-card {
  background: #fff; border: 1px solid var(--grey-line); padding: 40px;
  display: flex; gap: 26px; align-items: flex-start;
}
.avatar {
  flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%;
  background: var(--ink); color: var(--brass-soft); display: flex; align-items: center;
  justify-content: center; font-size: 1.7rem; font-weight: 600;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { font-size: .8rem; text-transform: uppercase; letter-spacing: .13em; color: var(--brass); margin: 4px 0 12px; }
.team-card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: 12px; }
.team-card a { font-weight: 600; color: var(--ink); }
.team-card a:hover { color: var(--blue); }
.team-crew { grid-column: 1 / -1; background: var(--bg-tint); border: 1px solid var(--grey-line); padding: 30px 40px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Named project tiles ---------- */
.tile { position: relative; overflow: hidden; display: block; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile .tile-label {
  position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px;
  background: linear-gradient(transparent, rgba(26,26,26,.82));
  color: #fff;
}
.tile .tile-label .t1 { font-weight: 600; font-size: 1.05rem; display: block; }
.tile .tile-label .t2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-soft); }

/* ---------- Reviews ---------- */
.review-summary { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.review-summary .score { font-size: 2.6rem; font-weight: 600; color: var(--ink); }
.review-summary .stars { color: var(--brass); font-size: 1.3rem; letter-spacing: 2px; }
.review-summary .count { color: var(--ink-soft); font-size: .95rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.review-card { background: #fff; border: 1px solid var(--grey-line); border-top: 3px solid var(--brass); padding: 34px 30px; }
.review-card .stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 14px; }
.review-card blockquote { font-size: .98rem; color: var(--ink); line-height: 1.65; margin-bottom: 18px; }
.review-card cite { font-style: normal; font-size: .85rem; color: var(--ink-soft); }
.review-card cite strong { color: var(--ink); display: block; font-size: .92rem; }

/* brass accents on dark bands */
.band-dark .kicker { color: var(--brass-soft); }
.pillar { border-top-color: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-layout, .case { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .case-img { order: 0; }
  .case-img { max-height: 420px; overflow: hidden; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .hero-copy { padding: 72px 24px 56px; }
  .hero-media { min-height: 62vh; order: -1; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer { padding: 52px 0 30px; font-size: .95rem; }
  .site-footer li { margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 92px 0 auto 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 10px 24px 26px; border-bottom: 1px solid var(--grey-line);
    transform: translateY(-130%); transition: transform .3s ease; z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1rem; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 18px; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .hero { min-height: 66vh; }
  .hero-inner { padding: 72px 0 52px; }
  .process { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
}
