
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #102b46;
  --blue: #1976d2;
  --gold: #f5b82e;
  --ink: #172b3d;
  --muted: #657585;
  --paper: #f7f9fc;
  --line: #e6ebf0;
  --white: #fff;
  --heading: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
  --shadow-soft: 0 18px 55px rgba(16,43,70,.09);
  --radius-card: 12px;
  --radius-control: 7px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

img, video, iframe { max-width: 100%; }

.container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

/* TOP CONTACT BAR */

.topline {
  background: var(--navy);
  color: #dbe6f0;
  font-size: 11px;
  letter-spacing: .04em;
}

.topline-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topline a {
  color: white;
  font-weight: 700;
}

.topline-contacts {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* HEADER AND NAVIGATION */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,43,70,.07);
  box-shadow: 0 5px 24px rgba(16,43,70,.035);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font: 800 22px var(--heading);
  letter-spacing: .075em;
  color: var(--navy);
}

.brand-copy small {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 700;
  color: #718091;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px,2.2vw,31px);
  font-size: 13px;
  font-weight: 600;
  color: #536273;
}

.main-nav a {
  transition: color .2s ease, background .2s ease;
}

.main-nav>a:not(.nav-cta):hover,
.main-nav>a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--navy);
  color: white;
  padding: 13px 19px;
  border-radius: 6px;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.nav-cta:hover {
  background: #1a4266;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16,43,70,.15);
}

.nav-cta span {
  color: var(--gold);
  padding-left: 8px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  display: block;
  margin: 5px;
  background: var(--navy);
}

/* HERO SECTION */

.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.hero-photo {
  position: absolute;
  inset: -5%;
  background: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2200&q=85") center 48%/cover;
  transform: scale(1.08);
  animation: heroSolarPan 22s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

@keyframes heroSolarPan {
  0% {
    background-position: 42% 48%;
    transform: scale(1.08) translate3d(-1.5%,0,0);
  }
  50% {
    background-position: 54% 51%;
    transform: scale(1.15) translate3d(0,0,0);
  }
  100% {
    background-position: 62% 48%;
    transform: scale(1.22) translate3d(1.5%,0,0);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,rgba(8,29,49,.94),rgba(8,29,49,.78) 43%,rgba(8,29,49,.18)),
    linear-gradient(0deg,rgba(8,29,49,.25),transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 105px 115px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
}

.eyebrow>span {
  display: inline-block;
  width: 23px;
  height: 2px;
  background: var(--gold);
}

.eyebrow.light { color: #dce8f3; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { font-family: var(--heading); }

.hero h1 {
  max-width: 760px;
  margin: 25px 0 20px;
  font-size: clamp(46px,6.4vw,78px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 700;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--gold);
}

.hero-content>p {
  max-width: 510px;
  color: #d8e2ec;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 65px;
  color: #c6d3df;
  font-size: 10px;
  letter-spacing: .08em;
}

.note-line {
  width: 35px;
  height: 1px;
  background: var(--gold);
}

.scroll-cue {
  position: absolute;
  right: max(24px,calc((100vw - 1160px)/2));
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d9e2eb;
  font-size: 9px;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
}

.scroll-cue span {
  height: 38px;
  width: 1px;
  background: var(--gold);
}

/* BUTTONS */

.button {
  min-height: 52px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease, color .3s ease;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(8,29,49,.16);
}

.button-primary {
  background: var(--gold);
  color: var(--navy);
}

.button-primary:hover { background: #ffd06a; }

.button-ghost {
  border-color: rgba(255,255,255,.45);
  color: white;
}

.button-ghost:hover { background: rgba(255,255,255,.1); }

.button-light {
  background: white;
  color: var(--navy);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245,184,46,.8);
  outline-offset: 3px;
}

/* GENERAL SECTIONS */

.section-pad {
  padding-block: clamp(78px,8vw,112px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,8vw,108px);
  align-items: start;
}

h2 {
  margin: 19px 0 0;
  color: var(--navy);
  font-size: clamp(36px,4.4vw,54px);
  line-height: 1.13;
  letter-spacing: -.05em;
}

h2 em { color: var(--blue); }

.intro-copy {
  max-width: 500px;
  padding-top: 26px;
}

.intro-copy p {
  color: var(--muted);
  font-size: 14px;
}

.intro-copy .lead {
  color: var(--ink);
  font: 600 18px/1.65 var(--heading);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.text-link span {
  font-size: 18px;
  transition: transform .3s ease;
}

.text-link:hover span { transform: translateX(7px); }

/* SERVICES */

.services { background: var(--paper); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 45px;
}

.section-heading>p {
  max-width: 280px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 5px 24px rgba(16,43,70,.035);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(16,43,70,.13);
  border-color: rgba(25,118,210,.2);
}

.service-image {
  height: auto;
  aspect-ratio: 16/9;
  min-height: 220px;
  max-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #dce5ed;
  transition: background-size .6s ease, filter .4s ease;
}

.service-card:hover .service-image { filter: saturate(1.08); }

.solar-image {
  background-image: url("https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?auto=format&fit=crop&w=1000&q=80");
}

.electrical-image {
  background-image: url("https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1000&q=80");
}

.service-body { padding: clamp(24px,3vw,36px); }

.service-number {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
}

.service-body h3 {
  max-width: 390px;
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: clamp(21px,2.1vw,26px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.service-body p {
  color: var(--muted);
  font-size: 12px;
}

.service-body ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 23px 0 18px;
  padding: 0;
  list-style: none;
}

.service-body li {
  position: relative;
  padding-left: 15px;
  color: #45576a;
  font-size: 11px;
}

.service-body li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* VALUES */

.values {
  background: var(--navy);
  color: white;
}

.values-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.values h2 { color: white; }
.values h2 em { color: var(--gold); }

.values-intro>p {
  max-width: 400px;
  margin: 22px 0 28px;
  color: #c3d0dc;
  font-size: 13px;
}

.value-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: padding-left .3s ease, background .3s ease;
}

.value-list article:first-child {
  border-top: 1px solid rgba(255,255,255,.15);
}

.value-list article:hover { padding-left: 10px; }

.value-list article>span {
  color: var(--gold);
  font: 700 12px var(--heading);
}

.value-list h3 {
  margin: 0 0 7px;
  color: white;
  font-size: 18px;
}

.value-list p {
  margin: 0;
  color: #bdcbd8;
  font-size: 12px;
}

/* WORK GALLERY */

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}

.work-tile {
  min-height: 310px;
  display: flex;
  align-items: end;
  padding: 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  transition: transform .4s ease, box-shadow .4s ease, background-size .5s ease;
}

.work-tile:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(8,29,49,.82),transparent 65%);
  transition: background .35s ease;
}

.work-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: inherit;
  pointer-events: none;
}

.work-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.work-tile:hover:before {
  background: linear-gradient(0deg,rgba(8,29,49,.9),rgba(8,29,49,.05) 75%);
}

.work-one {
  background-image: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=900&q=80");
  background-position: center 52%;
}

.work-two {
  background-image: url("https://images.unsplash.com/photo-1624397640148-949b1732bb0a?auto=format&fit=crop&w=900&q=80");
  background-position: center 48%;
}

.work-three {
  background-image: url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=900&q=80");
  background-position: center 42%;
}

.work-tile div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: white;
}

.work-tile span {
  color: var(--gold);
  font-size: 10px;
}

.work-tile strong {
  font: 600 17px var(--heading);
}

.gallery-note {
  margin: 14px 0 0;
  color: #8995a2;
  font-size: 10px;
}

/* CONTACT AND ENQUIRY FORM */

.contact { background: #f1f5f9; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 95px;
  align-items: center;
}

.contact-copy {
  background: var(--navy);
  padding: clamp(34px,4vw,54px);
  border-radius: var(--radius-card);
}

.contact-copy h2 { color: white; }
.contact-copy h2 em { color: var(--gold); }

.contact-copy>p {
  max-width: 390px;
  margin: 20px 0 35px;
  color: #c6d3df;
  font-size: 13px;
}

.contact-details {
  display: grid;
  gap: 20px;
}

.contact-details>a,
.contact-details>div {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.detail-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--gold);
}

.contact-details small {
  display: block;
  color: #aebdcb;
  font-size: 8px;
  letter-spacing: .14em;
}

.contact-details strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.quote-form {
  padding: clamp(28px,3.4vw,42px);
  background: white;
  border: 1px solid rgba(16,43,70,.06);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.quote-form h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -.04em;
}

.quote-form>p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
}

.quote-form label {
  display: block;
  margin: 14px 0 6px;
  color: #35485b;
  font-size: 10px;
  font-weight: 700;
}

.quote-form label span {
  color: #8b98a5;
  font-weight: 400;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #dfe6ed;
  border-radius: var(--radius-control);
  padding: 12px 13px;
  min-height: 46px;
  color: var(--ink);
  background: white;
  outline: none;
  font-size: 11px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25,118,210,.08);
}

.quote-form textarea {
  resize: vertical;
  min-height: 112px;
}

.form-submit {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: var(--radius-control);
}

.form-privacy {
  display: block;
  margin-top: 10px;
  color: #8492a0;
  text-align: center;
  font-size: 9px;
}

/* FOOTER AND ANIMATION */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b2034;
  color: white;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -12%;
  background-image: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2200&q=90");
  background-size: cover;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  opacity: .48;
  transform: scale(1.08);
  animation: footerSolarPan 18s linear infinite alternate;
  will-change: transform, background-position;
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(105deg,rgba(7,25,42,.82),rgba(11,32,52,.70) 55%,rgba(7,25,42,.84));
  pointer-events: none;
}

.site-footer>.container {
  position: relative;
  z-index: 2;
}

@keyframes footerSolarPan {
  0% {
    background-position: 0% 50%;
    transform: scale(1.12) translate3d(-4%,0,0);
  }
  50% {
    background-position: 50% 48%;
    transform: scale(1.18) translate3d(0,0,0);
  }
  100% {
    background-position: 100% 50%;
    transform: scale(1.24) translate3d(4%,0,0);
  }
}

.footer-main {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.brand-footer .brand-copy strong { color: white; }
.brand-footer .brand-copy small { color: #a8b6c4; }

.footer-main>p {
  margin: 0;
  color: #b5c3d0;
  font-size: 11px;
}

.footer-top {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 700;
}

.footer-bottom {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #91a1b0;
  font-size: 9px;
  position: relative;
  z-index: 2;
}

/* ABOUT PAGE */

.about-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg,rgba(8,29,49,.96),rgba(16,43,70,.78)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2000&q=85") center/cover;
  color: white;
}

.about-hero-inner {
  padding-block: clamp(84px,9vw,120px);
}

.about-hero h1 {
  max-width: 850px;
  margin: 24px 0 18px;
  font-size: clamp(42px,6vw,72px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.about-hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.about-hero p {
  max-width: 560px;
  margin-bottom: 28px;
  color: #d4e0eb;
  font-size: 16px;
  line-height: 1.8;
}

.about-story-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(48px,8vw,100px);
  align-items: start;
}

.about-story-copy {
  max-width: 620px;
  padding-top: 20px;
}

.about-story-copy p {
  color: var(--muted);
  font-size: 14px;
}

.about-story-copy .lead {
  color: var(--ink);
  font: 600 19px/1.65 var(--heading);
}

/* PRODUCTS */

.products-section { background: var(--paper); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 5px 24px rgba(16,43,70,.035);
  transition: transform .4s ease, box-shadow .4s ease, border-color .3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(16,43,70,.12);
  border-color: rgba(25,118,210,.2);
}

.product-photo {
  height: auto;
  aspect-ratio: 16/10;
  min-height: 210px;
  max-height: 300px;
  background-size: cover;
  background-position: center;
  background-color: #dce5ed;
  transition: transform .65s ease;
}

.product-card:hover .product-photo { transform: scale(1.035); }

.product-megatron {
  background-image: url("https://images.unsplash.com/photo-1624397640148-949b1732bb0a?auto=format&fit=crop&w=1100&q=85");
}

.product-revov {
  background-image: url("https://images.unsplash.com/photo-1594818379496-da1e345b0ded?auto=format&fit=crop&w=1100&q=85");
}

.product-panels {
  background-image: url("https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?auto=format&fit=crop&w=1100&q=85");
}

.product-backup {
  background-image: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1100&q=85");
}

.product-content { padding: 30px; }

.product-kicker {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.product-content h3 {
  margin: 9px 0;
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -.04em;
}

.product-content p {
  min-height: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.product-enquiry {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-top: 9px;
  padding-block: 8px;
  border-bottom: 1px solid transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  transition: border-color .2s, color .2s;
}

.product-enquiry span {
  color: var(--gold);
  font-size: 17px;
}

.product-enquiry:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.product-disclaimer {
  margin: 18px 0 0;
  color: #7b8997;
  font-size: 10px;
  line-height: 1.7;
}

/* COMPLETED PROJECT PHOTOGRAPHS */

.completed-work { background: #f1f5f9; }

.completed-work-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.completed-work-card {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16,43,70,.08);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(16,43,70,.07);
  display: flex;
  flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease;
}

.completed-work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 45px rgba(16,43,70,.13);
}

.completed-work-card img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  background: #dce5ed;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.completed-work-card:hover img { transform: scale(1.045); }

.completed-work-card-wide img { object-position: center 45%; }

.completed-work-card figcaption { padding: 22px 22px 24px; }

.completed-work-card figcaption span {
  display: block;
  margin-bottom: 10px;
  color: #1976d2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.completed-work-card figcaption strong {
  display: block;
  color: #102b46;
  font: 700 18px/1.3 var(--heading);
}

.completed-work-card figcaption p {
  margin: 9px 0 0;
  color: #667789;
  font-size: 12px;
  line-height: 1.7;
}

/* SERVICE AREA MAP */

.service-areas { background: #f5f7fa; }

.service-area-layout {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(290px,.85fr);
  gap: 24px;
  align-items: stretch;
}

.service-area-map-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16,43,70,.1);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(16,43,70,.08);
}

.map-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px 20px;
  color: #102b46;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.map-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1dbb82;
  box-shadow: 0 0 0 4px rgba(29,187,130,.12);
}

.map-source {
  margin-left: auto;
  color: #7b8998;
  font-size: 9px;
  letter-spacing: .04em;
  font-weight: 600;
}

#mambi-service-map {
  width: 100%;
  height: 480px;
  background: #e5edf2;
  z-index: 0;
}

#mambi-service-map .leaflet-popup-content {
  font-family: inherit;
  line-height: 1.55;
}

#mambi-service-map .leaflet-popup-content a {
  color: #1268e8;
  font-weight: 700;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 15px 20px;
  color: #526273;
  font-size: 11px;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-sa {
  background: #1268e8;
  box-shadow: 0 0 0 4px rgba(18,104,232,.13);
}

.legend-zw {
  background: #e9a923;
  box-shadow: 0 0 0 4px rgba(233,169,35,.16);
}

.service-area-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.area-card {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(16,43,70,.09);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16,43,70,.045);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.area-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18,104,232,.3);
  box-shadow: 0 16px 35px rgba(16,43,70,.09);
}

.area-country {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #1268e8;
}

.area-card h3 {
  margin: 10px 0;
  color: #102b46;
  font: 800 22px/1.2 var(--heading);
}

.area-card p {
  margin: 0 0 16px;
  color: #647487;
  font-size: 12px;
  line-height: 1.75;
}

.area-card>a {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: #1268e8;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.area-card>a.area-phone {
  padding-top: 11px;
  border-top: 1px solid #e8edf2;
  color: #102b46;
}

.area-card-zw .area-country { color: #bd8614; }

.area-note {
  margin: 0;
  padding: 0 5px;
  color: #718093;
  font-size: 10px;
  line-height: 1.65;
}

/* NELSON PROFILE */

.nelson-section {
  background: #fff !important;
  color: #102b46;
  padding-block: 100px;
}

.nelson-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px,7vw,88px);
  align-items: center;
}

.nelson-photo-wrap {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 4/5;
  max-height: 680px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e6ebf0;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16,43,70,.12);
}

.nelson-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .7s ease;
}

.nelson-photo-wrap:hover .nelson-photo { transform: scale(1.035); }

.nelson-photo-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #102b46;
  background: linear-gradient(145deg,#f8fafc,#e8eef5);
}

.nelson-photo-placeholder span {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(245,184,46,.7);
  border-radius: 50%;
  color: var(--gold);
  font: 700 34px var(--heading);
}

.nelson-photo-placeholder small {
  font-size: 9px;
  letter-spacing: .18em;
  color: #64748b;
}

.nelson-copy .eyebrow { color: #64748b; }
.nelson-copy .eyebrow>span { background: var(--gold); }

.nelson-copy h2 {
  color: #102b46;
  margin-bottom: 22px;
}

.nelson-copy h2 em { color: #e5a91f; }

.nelson-copy p {
  max-width: 580px;
  color: #526477;
  font-size: 13px;
  line-height: 1.9;
}

.nelson-copy .nelson-lead {
  color: #102b46;
  font: 700 19px/1.6 var(--heading);
}

.nelson-copy .button { margin-top: 12px; }

.nelson-copy .button-primary {
  background: #f5b82e;
  color: #102b46;
  border: none;
}

.nelson-copy .button-primary:hover { background: #e8a91e; }

/* ABOUT PAGE CTA */

.about-cta {
  background: #fff;
  padding-block: 75px;
}

.about-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: clamp(30px,5vw,58px);
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 45px rgba(16,43,70,.07);
}

.about-cta .eyebrow { color: var(--navy); }
.about-cta .eyebrow>span { background: var(--gold); }
.about-cta h2 { color: var(--navy); }
.about-cta h2 em { color: var(--gold); }

.about-cta p {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.about-cta-inner .button {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 6px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.about-cta-inner .button:hover {
  background: #e8a91e;
  border-color: #e8a91e;
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(245,184,46,.2);
}

/* TABLET RESPONSIVENESS */

@media (max-width: 900px) {
  .container { width: min(100% - 44px,760px); }
  .main-nav { gap: 14px; font-size: 12px; }
  .intro-grid, .values-grid { gap: 44px; }
  .contact-grid { gap: 26px; }
  .contact-copy { padding: 32px 26px; }
  .work-tile { min-height: 260px; }
  .nelson-grid { gap: 38px; }

  .completed-work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .completed-work-card-wide { grid-column: span 2; }

  .completed-work-card img { height: 320px; }

  .service-area-layout { grid-template-columns: 1fr; }
  #mambi-service-map { height: 390px; }

  .service-area-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .area-note { grid-column: 1/-1; }
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 700px) {
  html { scroll-padding-top: 80px; }

  .container {
    width: calc(100% - 36px);
    max-width: 560px;
  }

  .topline { font-size: 10px; }

  .topline-inner {
    min-height: 38px;
    justify-content: center;
  }

  .topline-inner>span { display: none; }

  .topline-contacts {
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .topline-contacts a {
    font-size: 10px;
    white-space: nowrap;
  }

  .site-header { position: sticky; top: 0; }
  .nav-wrap { min-height: 76px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 7px; }

  .menu-toggle {
    display: block;
    min-width: 46px;
    min-height: 46px;
    border-radius: 7px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 114px);
    overflow-y: auto;
    padding: 12px 22px 22px;
    gap: 2px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16,43,70,.12);
  }

  .main-nav.open { display: flex; }

  .main-nav>a {
    padding: 14px 8px;
    font-size: 14px;
  }

  .main-nav .nav-cta {
    margin-top: 8px;
    padding: 15px;
    text-align: center;
  }

  /* MOBILE HERO */

  .hero { min-height: 590px; }

  .hero-photo {
    inset: -4%;
    background-position: center;
    background-size: cover;
    animation-duration: 28s;
  }

  .hero-shade {
    background:
      linear-gradient(90deg,rgba(8,29,49,.92),rgba(8,29,49,.68)),
      linear-gradient(0deg,rgba(8,29,49,.42),transparent 58%);
  }

  .hero-content { padding-block: 65px 75px; }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
    gap: 9px;
  }

  .hero h1 {
    font-size: clamp(37px,9.5vw,48px);
    line-height: 1.08;
    margin: 20px 0 17px;
    max-width: 13ch;
  }

  .hero-content>p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 36ch;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 390px;
    gap: 11px;
    margin-top: 25px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 54px;
    font-size: 13px;
  }

  .hero-note {
    margin-top: 34px;
    font-size: 9px;
    line-height: 1.5;
  }

  .scroll-cue { display: none; }

  /* GENERAL MOBILE SECTIONS */

  .section-pad { padding-block: 55px; }

  h2 {
    font-size: clamp(30px,8vw,38px);
    line-height: 1.15;
    letter-spacing: -.045em;
  }

  .intro-grid,
  .values-grid,
  .contact-grid,
  .about-story-grid,
  .nelson-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .intro-copy {
    padding-top: 0;
    max-width: none;
  }

  .intro-copy .lead,
  .about-story-copy .lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .intro-copy p,
  .about-story-copy p {
    font-size: 13px;
    line-height: 1.8;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading>p {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.7;
    max-width: 100%;
  }

  /* MOBILE SERVICES AND PRODUCTS */

  .service-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .service-image {
    aspect-ratio: 16/9;
    min-height: 0;
    max-height: none;
  }

  .service-body { padding: 22px 19px; }

  .service-body h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .service-body p {
    font-size: 12px;
    line-height: 1.7;
  }

  .service-body ul {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-block: 18px;
  }

  .service-body li { font-size: 12px; }

  .product-photo {
    aspect-ratio: 16/9;
    min-height: 0;
    max-height: none;
  }

  .product-content { padding: 21px 19px; }
  .product-content h3 { font-size: 21px; }

  .product-content p {
    font-size: 12px;
    line-height: 1.75;
  }

  /* VALUES */

  .values-grid { gap: 30px; }

  .value-list article {
    grid-template-columns: 32px 1fr;
    gap: 13px;
    padding: 20px 0;
  }

  /* MOBILE PORTFOLIO */

  .work-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-one { grid-column: auto; }

  .work-tile {
    aspect-ratio: 16/10;
    min-height: 0;
    padding: 20px;
    border-radius: 9px;
    background-position: center;
  }

  .work-tile strong { font-size: 17px; }

  .gallery-note {
    font-size: 10px;
    line-height: 1.55;
  }

  .completed-work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .completed-work-card-wide { grid-column: auto; }

  .completed-work-card img {
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }

  .completed-work-card figcaption { padding: 19px 19px 21px; }

  .completed-work-card figcaption strong { font-size: 17px; }

  /* MOBILE CONTACT */

  .contact-grid { gap: 16px; }

  .contact-copy {
    padding: 25px 20px;
    border-radius: 10px;
  }

  .contact-copy>p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 27px;
  }

  .contact-details { gap: 17px; }

  .contact-details>a,
  .contact-details>div {
    gap: 12px;
    min-width: 0;
  }

  .detail-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .contact-details small { font-size: 8px; }

  .contact-details strong {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .quote-form {
    padding: 23px 19px;
    border-radius: 10px;
  }

  .quote-form h3 { font-size: 22px; }

  .quote-form>p {
    font-size: 12px;
    line-height: 1.6;
  }

  .quote-form label {
    margin-top: 16px;
    font-size: 11px;
  }

  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    min-height: 49px;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
  }

  .quote-form textarea { min-height: 112px; }

  .form-submit {
    min-height: 54px;
    margin-top: 20px;
    font-size: 13px;
  }

  .form-privacy {
    font-size: 10px;
    line-height: 1.55;
  }

  /* MOBILE ABOUT PAGE */

  .about-hero-inner { padding-block: 65px 70px; }

  .about-hero h1 {
    font-size: clamp(37px,9.5vw,48px);
    line-height: 1.1;
  }

  .about-hero p {
    font-size: 14px;
    line-height: 1.75;
  }

  .about-story-copy { padding-top: 0; }

  /* MOBILE NELSON PROFILE */

  .nelson-section { padding-block: 55px; }

  .nelson-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .nelson-photo-wrap {
    width: 100%;
    aspect-ratio: 4/5;
    min-height: 0;
    max-height: 480px;
    border-radius: 12px;
  }

  .nelson-photo { object-position: center 27%; }

  .nelson-copy h2 { font-size: clamp(32px,8vw,40px); }
  .nelson-copy .nelson-lead { font-size: 17px; }

  .nelson-copy p {
    font-size: 13px;
    line-height: 1.8;
  }

  /* MOBILE ABOUT CTA */

  .about-cta { padding-block: 45px; }

  .about-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 20px;
    border-radius: 10px;
    gap: 18px;
  }

  .about-cta h2 { font-size: clamp(31px,8vw,38px); }

  .about-cta p {
    font-size: 12px;
    line-height: 1.75;
  }

  .about-cta-inner .button { width: 100%; }

  /* MOBILE SERVICE AREA MAP */

  .service-areas { padding-block: 55px; }

  .service-areas h2 {
    font-size: clamp(31px,8vw,38px);
    line-height: 1.15;
  }

  .service-area-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-area-map-panel { border-radius: 12px; }

  #mambi-service-map { height: 290px; }

  .map-topline {
    min-height: 52px;
    padding: 13px 15px;
    font-size: 9px;
  }

  .map-source { font-size: 8px; }

  .map-legend {
    padding: 12px 14px;
    gap: 10px;
    font-size: 9px;
  }

  .service-area-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .area-card {
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(16,43,70,.04);
  }

  .area-country {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .area-card h3 {
    margin: 9px 0 10px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.035em;
  }

  .area-card p {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.7;
  }

  .area-card>a {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
  }

  .area-card>a.area-phone {
    padding-top: 12px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .area-note {
    padding: 0 2px;
    font-size: 11px;
    line-height: 1.7;
  }

  /* MOBILE FOOTER */

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding-block: 30px;
  }

  .footer-main>p {
    font-size: 12px;
    line-height: 1.6;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 16px;
    font-size: 10px;
  }

  /* DISABLE HOVER LIFT ON TOUCH SCREENS */

  .service-card:hover,
  .product-card:hover,
  .completed-work-card:hover,
  .area-card:hover,
  .work-tile:hover {
    transform: none;
  }

  .button:hover { transform: none; }
}

/* EXTRA SMALL PHONES */

@media (max-width: 390px) {
  .container { width: calc(100% - 30px); }

  .topline-contacts { gap: 7px; }
  .topline-contacts a { font-size: 9px; }

  .nav-wrap { min-height: 70px; }

  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 6.5px; }

  .main-nav { top: 70px; }

  .hero { min-height: 570px; }
  .hero h1 { font-size: 37px; }

  .hero-content { padding-block: 60px 68px; }

  .contact-copy { padding-inline: 19px; }
  .quote-form { padding-inline: 17px; }

  .about-hero h1 { font-size: 38px; }

  .product-content { padding-inline: 18px; }

  .area-card { padding: 19px 17px; }
  .area-card h3 { font-size: 19px; }
  .area-card p { font-size: 12px; }
  .area-card>a.area-phone { font-size: 11px; }

  #mambi-service-map { height: 270px; }
}

/* PREMIUM CLASSIC ENTRANCE ANIMATIONS */

@keyframes mambiFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mambiFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-header { animation: mambiFadeIn .65s ease both; }

.hero-content .eyebrow { animation: mambiFadeUp .7s ease both; }
.hero-content h1 { animation: mambiFadeUp .85s .12s ease both; }
.hero-content>p { animation: mambiFadeUp .85s .25s ease both; }
.hero-content .hero-actions { animation: mambiFadeUp .85s .38s ease both; }
.hero-content .hero-note { animation: mambiFadeIn 1s .55s ease both; }

.about-hero .eyebrow { animation: mambiFadeUp .7s ease both; }
.about-hero h1 { animation: mambiFadeUp .85s .12s ease both; }
.about-hero p { animation: mambiFadeUp .85s .25s ease both; }

/* CLASSIC NAVIGATION UNDERLINE */

.main-nav>a:not(.nav-cta) { position: relative; }

.main-nav>a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}

.main-nav>a:not(.nav-cta):hover::after,
.main-nav>a.active::after {
  width: 100%;
}

/* SCROLL-TRIGGERED REVEAL ANIMATIONS */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .10s; }
.reveal-delay-2 { transition-delay: .20s; }
.reveal-delay-3 { transition-delay: .30s; }
.reveal-delay-4 { transition-delay: .40s; }

/* ACCESSIBILITY — REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero-photo,
  .site-footer::before,
  .nelson-photo {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* SHARZA TECH FOOTER CREDIT */

.footer-credit {
  color: #b5c3d0;
  font-size: 10px;
  font-weight: 500;
}

.footer-credit a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  transition: color .3s ease;
}

.footer-credit a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .footer-bottom {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 25px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(255,255,255,.2);
  color: #d0dbe5;
  font-size: 11px;
  position: relative;
  z-index: 5;
}

.site-footer .footer-credit {
  display: inline-block;
  color: #d0dbe5;
  font-size: 11px;
  opacity: 1;
  visibility: visible;
}

.site-footer .footer-credit a {
  display: inline-block;
  color: #f5b82e;
  font-weight: 800;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  transition: color .3s ease;
}

.site-footer .footer-credit a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* FOOTER — ALWAYS VISIBLE */

.site-footer,
.site-footer .footer-main,
.site-footer .footer-bottom,
.site-footer .footer-main *,
.site-footer .footer-bottom * {
  visibility: visible !important;
  opacity: 1 !important;
}

.site-footer .footer-main *,
.site-footer .footer-bottom * {
  transform: none !important;
}

/* FLOATING BACK-TO-TOP BUTTON — DARK NAVY WITH WHITE CARET */

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 999;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: #101828;
  color: #fff;
  font-family: var(--heading);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(16,24,40,.28);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.back-to-top:hover {
  background: #1268E8;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(18,104,232,.30);
}

.back-to-top span {
  display: block;
  font-size: 0;
  line-height: 1;
  transition: transform .3s ease;
}

.back-to-top span::before {
  content: "^";
  display: block;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(3px);
}

.back-to-top:hover span {
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .back-to-top {
    right: 18px;
    bottom: 20px;
    width: 54px;
    height: 54px;
  }

  .back-to-top span::before {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top span {
    transition: none;
  }
}


/* =====================================================
   NC MAMBI INTERACTION & ICON POLISH
   ===================================================== */

/* Consistent vector arrows: no emoji-font rendering */
.arrow-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}

a:hover .arrow-icon,
button:hover .arrow-icon {
  transform: translate(2px, -2px);
}

.detail-icon {
  border-radius: 0;
  background: rgba(255,255,255,.035);
  color: var(--gold);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.detail-icon .arrow-icon,
.detail-icon .location-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.location-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-details > a:hover .detail-icon {
  background: rgba(245,184,46,.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Back-to-top uses a proper vector arrow */
.back-to-top {
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(245,184,46,.32);
}

.back-to-top:hover {
  background: #173b5c;
  color: var(--gold);
  transform: translateY(-4px);
}

.back-to-top .back-top-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.back-to-top:hover .back-top-icon {
  transform: translateY(-3px);
}

.back-to-top span::before {
  content: none;
}

/* Hamburger-to-close animation */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--navy);
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
}

.menu-toggle:hover {
  background: #f3f6f9;
  border-color: var(--line);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle:focus-visible,
.main-nav a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .main-nav.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-icon,
  .detail-icon,
  .back-to-top,
  .back-to-top .back-top-icon,
  .menu-toggle span,
  .main-nav {
    transition: none !important;
  }
}


/* FINAL MOBILE NAVIGATION + SVG ICON FIX */
.arrow-icon, .back-top-icon, .location-icon {
  fill: none !important;
  stroke: #F5B82E !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-icon path, .back-top-icon path, .location-icon path, .location-icon circle {
  fill: none !important;
  stroke: #F5B82E !important;
}
.detail-icon { color: #F5B82E !important; }
.back-to-top { color: #F5B82E !important; }
.back-to-top .back-top-icon { width: 25px; height: 25px; }

@media (max-width: 700px) {
  .site-header { position: sticky; top: 0; z-index: 1000; }
  .nav-wrap { position: relative; }
  .menu-toggle {
    display: flex !important; position: relative; z-index: 1002;
    align-items: center; justify-content: center; flex-direction: column;
    width: 48px; height: 48px; min-width: 48px; min-height: 48px;
    padding: 10px; margin: 0; cursor: pointer; touch-action: manipulation;
    pointer-events: auto; background: #fff;
  }
  .menu-toggle span {
    display: block; width: 25px; height: 2px; margin: 0;
    background: #102B46 !important; border-radius: 2px;
    transition: transform .22s ease, opacity .18s ease;
  }
  .menu-toggle.is-open span:first-child { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:last-child { transform: translateY(-8px) rotate(-45deg); }
  .main-nav {
    position: absolute !important; top: 100% !important; left: -15px !important; right: -15px !important;
    z-index: 1001; display: flex !important; flex-direction: column; align-items: stretch;
    max-height: calc(100dvh - 100px); overflow-y: auto; padding: 12px 22px 22px;
    gap: 2px; background: #fff; border-bottom: 1px solid #e6ebf0;
    box-shadow: 0 18px 30px rgba(16,43,70,.16);
    visibility: hidden; opacity: 0; pointer-events: none;
    transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .main-nav.open {
    visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}


/* FINAL BACK-TO-TOP CARET: retain the original ^ symbol */
.back-to-top {
  color: #F5B82E !important;
  background: var(--navy, #102B46) !important;
  border: 1px solid rgba(245, 184, 46, .55) !important;
  text-decoration: none;
}
.back-to-top .back-top-caret {
  display: block;
  color: #F5B82E !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 39px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(4px);
  transition: transform .25s ease;
}
.back-to-top:hover .back-top-caret {
  transform: translateY(0);
}
@media (max-width: 700px) {
  .back-to-top .back-top-caret { font-size: 34px; }
}


/* NC MAMBI FINAL CARET VISIBILITY SAFEGUARD */
.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top .back-top-caret {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #F5B82E !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 38px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}
.back-to-top span::before { content: none !important; }
@media (max-width: 700px) {
  .back-to-top .back-top-caret { font-size: 34px !important; }
}
