/* TJG Electrical Services shared styles
   Brand colours and common spacing can be changed in :root. */
:root {
  --navy-950: #07111f;
  --navy-900: #0b1b2e;
  --navy-800: #102a46;
  --navy-700: #174266;
  --slate-600: #536579;
  --slate-400: #93a2b3;
  --slate-200: #dce3e9;
  --slate-100: #edf2f5;
  --paper: #f7f8f8;
  --white: #ffffff;
  --amber: #f39b2f;
  --amber-dark: #d77a08;
  --green: #70b88a;
  --text: #172333;
  --muted: #647386;
  --border: rgba(16, 42, 70, 0.13);
  --shadow-sm: 0 10px 30px rgba(7, 17, 31, 0.08);
  --shadow-lg: 0 22px 60px rgba(7, 17, 31, 0.16);
  --radius-sm: 0.7rem;
  --radius: 1.1rem;
  --radius-lg: 1.7rem;
  --max-width: 1180px;
  --header-height: 76px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(243, 155, 47, 0.7);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 9999;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  border-radius: 999px;
  color: var(--navy-950);
  background: var(--amber);
  font-weight: 800;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy-950);
}

.section-muted {
  background: var(--slate-100);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--amber-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 2px;
  content: "";
  background: currentColor;
}

.section-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  color: var(--navy-950);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p {
  margin: 0 0 1.2rem;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-dark h2,
.section-dark h3,
.section-dark .lead {
  color: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.6rem;
}

.section-heading > div:first-child {
  max-width: 720px;
}

.section-heading p {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-800);
  font-weight: 800;
  white-space: nowrap;
}

.text-link::after {
  content: "\2192";
  color: var(--amber-dark);
  font-size: 1.25em;
  transition: transform var(--transition);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--navy-950);
  background: var(--amber);
  box-shadow: 0 8px 24px rgba(243, 155, 47, 0.22);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover {
  background: #ffad48;
  box-shadow: 0 12px 30px rgba(243, 155, 47, 0.32);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-outline:hover {
  color: var(--navy-950);
  background: var(--white);
  box-shadow: none;
}

.btn-dark {
  color: var(--white);
  background: var(--navy-900);
  box-shadow: none;
}

.btn-dark:hover {
  color: var(--white);
  background: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--header-height);
  color: var(--white);
  background: rgba(7, 17, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--amber);
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.brand-mark::after {
  position: absolute;
  right: -3px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  content: "";
  border: 3px solid var(--navy-950);
  border-radius: 50%;
  background: var(--green);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  color: var(--white);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--slate-400);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 0.7rem 0.65rem;
  color: #cad4df;
  font-size: 0.82rem;
  font-weight: 800;
  transition: color var(--transition);
}

.nav-links a:not(.btn)::after {
  position: absolute;
  right: 0.65rem;
  bottom: 0.35rem;
  left: 0.65rem;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: var(--amber);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-call {
  display: none;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

.nav-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Home hero */
.hero {
  position: relative;
  min-height: min(820px, calc(100vh - var(--header-height)));
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: var(--hero-image, url("assets/images/hero-electrician.webp")) center / cover no-repeat;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.83) 40%, rgba(7, 17, 31, 0.12) 74%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.9) 0%, transparent 43%);
}

.hero-inner {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  max-width: 650px;
  color: var(--white);
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  text-wrap: balance;
}

.hero h1 span {
  color: var(--amber);
}

.hero .lead {
  max-width: 560px;
  color: #d4dde6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.6rem 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e7edf3;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(112, 184, 138, 0.14);
}

.hero-strip {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-strip-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
}

.hero-stat strong {
  color: var(--white);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.hero-stat span {
  max-width: 110px;
  color: var(--slate-400);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* Cards and content blocks */
.services-grid,
.benefits-grid,
.post-grid,
.team-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-card::after {
  position: absolute;
  right: -40px;
  bottom: -52px;
  width: 140px;
  height: 140px;
  content: "";
  border: 24px solid var(--slate-100);
  border-radius: 50%;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover::after {
  border-color: rgba(243, 155, 47, 0.13);
  transform: scale(1.1);
}

.service-number {
  color: var(--slate-400);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  margin: 2.3rem 0 1.2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-900);
  background: #fff4e4;
}

.icon-wrap svg {
  width: 23px;
  height: 23px;
}

.service-card p {
  max-width: 90%;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-card .text-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 0.8rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.image-frame {
  position: relative;
  min-height: 360px;
}

.image-frame img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.floating-card {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  max-width: 240px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(7, 17, 31, 0.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.floating-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--amber);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.floating-card span {
  color: #dbe3ea;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.check-list,
.plain-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
  font-weight: 700;
}

.section-dark .check-list li {
  color: var(--white);
}

.check-list li::before {
  position: absolute;
  top: 0.18rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  content: "\2713";
  place-items: center;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--green);
  font-size: 0.7rem;
  font-weight: 950;
}

.trust-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.trust-item {
  padding: 1.4rem;
  background: var(--navy-900);
}

.trust-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--amber);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 2.5rem;
  line-height: 1;
}

.trust-item span {
  color: #c9d3dd;
  font-size: 0.78rem;
  font-weight: 700;
}

.cert-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 2.5rem;
}

.cert-badge {
  min-width: 150px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #cdd7e0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.project-card img {
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 17, 31, 0.92), transparent 65%);
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-copy {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
}

.project-copy span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--amber);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0;
  color: var(--white);
}

.project-copy p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #d3dce5;
  font-size: 0.8rem;
  opacity: 0;
  transition: max-height var(--transition), margin var(--transition), opacity var(--transition);
}

.project-card:hover .project-copy p {
  max-height: 70px;
  margin-top: 0.45rem;
  opacity: 1;
}

.testimonial {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.quote-mark {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.75;
}

.testimonial blockquote {
  margin: 0.8rem 0 1.5rem;
  color: var(--navy-900);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.testimonial cite {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.review-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.circle-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--navy-900);
  background: var(--white);
  transition: background var(--transition), color var(--transition);
}

.circle-btn:hover {
  color: var(--white);
  background: var(--navy-900);
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--amber-dark);
}

.cta-band::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 350px;
  height: 350px;
  content: "";
  border: 55px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2,
.cta-band h3 {
  color: var(--white);
}

.cta-band p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
}

.cta-band .btn {
  color: var(--white);
  background: var(--navy-950);
  box-shadow: none;
}

/* Inner pages */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 7rem 0 4.5rem;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(243, 155, 47, 0.25), transparent 22rem),
    var(--navy-950);
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  right: -10vw;
  bottom: -24vw;
  width: 50vw;
  height: 50vw;
  content: "";
  border: 7vw solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
}

.page-hero h1 {
  max-width: 840px;
  color: var(--white);
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.page-hero .lead {
  color: #cfd9e2;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
  color: var(--slate-400);
  font-size: 0.75rem;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: var(--amber);
}

.breadcrumbs span + span::before,
.breadcrumbs a + span::before {
  margin-right: 0.5rem;
  content: "/";
  color: #66778a;
}

.service-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.service-hero-icon {
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--amber);
  background: rgba(255, 255, 255, 0.04);
}

.service-hero-icon svg {
  width: 38%;
  height: 38%;
}

.content-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.content-body h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.content-body h2:first-child {
  margin-top: 0;
}

.sidebar-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  color: var(--white);
}

.sidebar-card p {
  color: #c9d4df;
  font-size: 0.9rem;
}

.sidebar-card .btn {
  width: 100%;
  margin-top: 0.4rem;
}

.benefit-card,
.team-card,
.post-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.benefit-card .icon-wrap {
  margin-top: 0;
}

.benefit-card p,
.team-card p,
.post-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.team-avatar {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  margin-bottom: 1.2rem;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 0.2rem);
  color: var(--navy-800);
  background: linear-gradient(135deg, #dfe8ed, #b6c8d6);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 3rem;
  font-weight: 900;
}

.team-avatar::after {
  position: absolute;
  width: 170px;
  height: 170px;
  content: "";
  border: 30px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.team-role,
.post-meta {
  color: var(--amber-dark);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.values-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.value-item {
  padding: 1.5rem;
  background: var(--white);
}

.value-item strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--navy-900);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 1.3rem;
}

/* Portfolio filters and modal */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy-800);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  transition: background var(--transition), color var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--white);
  background: var(--navy-900);
}

.project-card.is-hidden {
  display: none;
}

.modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(10px);
}

.modal.is-open {
  display: grid;
}

.modal-dialog {
  position: relative;
  width: min(100%, 1000px);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.modal-dialog img {
  max-height: 68vh;
  object-fit: cover;
}

.modal-copy {
  padding: 1.4rem;
}

.modal-close {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  right: 0.7rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.4rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 0;
  color: var(--navy-900);
  background: transparent;
  font-weight: 850;
  text-align: left;
}

.faq-question span:last-child {
  color: var(--amber-dark);
  font-size: 1.25rem;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
}

/* Blog */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-visual {
  aspect-ratio: 16 / 9;
  margin: -1.35rem -1.35rem 1.25rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--slate-200);
}

.post-visual img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.post-card:hover .post-visual img {
  transform: scale(1.03);
}

.post-card .text-link {
  margin-top: auto;
  font-size: 0.8rem;
}

.article-wrap {
  width: min(calc(100% - 2rem), 780px);
  margin-inline: auto;
}

.article-wrap h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.article-wrap p,
.article-wrap li {
  color: #45566b;
}

.article-callout {
  margin: 2rem 0;
  padding: 1.3rem;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff4e4;
}

.article-wrap blockquote {
  margin: 2rem 0;
  padding: 1.3rem;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff4e4;
}

.article-wrap blockquote p:last-child {
  margin-bottom: 0;
}

.legal-content {
  width: min(calc(100% - 2rem), 900px);
}

.legal-content h2 {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.legal-content a {
  color: var(--navy-700);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--amber-dark);
  text-underline-offset: 0.18em;
}

.legal-content table {
  width: 100%;
  display: block;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.legal-content th,
.legal-content td {
  min-width: 150px;
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--navy-950);
  background: var(--slate-100);
}

/* Forms and contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.contact-panel,
.form-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-panel {
  color: var(--white);
  background: var(--navy-900);
}

.contact-panel h2,
.contact-panel h3 {
  color: var(--white);
}

.contact-panel p {
  color: #cbd6df;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.contact-method {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-method span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--slate-400);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-method a,
.contact-method strong {
  color: var(--white);
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--paper);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--amber-dark);
  outline: 2px solid rgba(243, 155, 47, 0.18);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-error {
  min-height: 1em;
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 700;
}

.form-note,
.form-success {
  color: var(--muted);
  font-size: 0.75rem;
}

.form-note a {
  color: var(--navy-700);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-success {
  display: none;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  color: #155d36;
  background: #e4f5e9;
  font-weight: 800;
}

.form-success.is-visible {
  display: block;
}

.map-placeholder {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(rgba(7, 17, 31, 0.83), rgba(7, 17, 31, 0.83)),
    repeating-linear-gradient(45deg, var(--navy-700) 0 2px, transparent 2px 34px),
    var(--navy-900);
  text-align: center;
}

.map-pin {
  width: 58px;
  height: 58px;
  display: grid;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  color: var(--navy-950);
  background: var(--amber);
  font-weight: 950;
  transform: rotate(-45deg);
}

.map-pin span {
  transform: rotate(45deg);
}

/* Footer */
.site-footer {
  color: #c6d0db;
  background: var(--navy-950);
}

.footer-main {
  display: grid;
  gap: 2rem;
  padding: 4rem 0 2.5rem;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  margin-top: 1.2rem;
  color: var(--slate-400);
  font-size: 0.85rem;
}

.footer-brand .company-details {
  line-height: 1.7;
}

.footer-brand .company-details strong,
.footer-brand .company-details a {
  color: #dce5ed;
}

.footer-col h3 {
  margin-bottom: 0.8rem;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-link-button {
  padding: 0;
  border: 0;
  color: var(--slate-400);
  background: transparent;
  font-size: 0.8rem;
  text-align: left;
  transition: color var(--transition);
}

.footer-link-button:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8292a4;
  font-size: 0.68rem;
}

.live-chat {
  position: fixed;
  z-index: 900;
  right: 1rem;
  bottom: 1rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--amber);
  box-shadow: var(--shadow-lg);
  font-size: 1.15rem;
  font-weight: 950;
}

/* Cookie choices and decorative Easter egg */
.cookie-banner {
  position: fixed;
  z-index: 5000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  color: var(--white);
  background: rgba(7, 17, 31, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -14px 40px rgba(7, 17, 31, 0.28);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__content {
  width: min(100%, var(--max-width));
  display: grid;
  gap: 1rem;
  margin-inline: auto;
}

.cookie-banner h2 {
  margin-bottom: 0.45rem;
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.cookie-banner p {
  max-width: 820px;
  margin: 0;
  color: #d6e0e8;
  font-size: 0.86rem;
}

.cookie-banner a {
  color: var(--amber);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-banner__actions {
  display: grid;
  gap: 0.65rem;
}

.cookie-banner .cookie-choice,
.cookie-banner .cookie-choice:hover {
  width: 100%;
  color: var(--navy-950);
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: none;
}

.easter-egg {
  position: fixed;
  z-index: 850;
  right: 50px;
  bottom: 90px;
  width: 30px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--amber);
  filter: drop-shadow(0 4px 8px rgba(7, 17, 31, 0.3));
  opacity: 0.48;
  cursor: pointer;
  touch-action: manipulation;
  transition: left 260ms ease, top 260ms ease, right 260ms ease, bottom 260ms ease, opacity var(--transition), transform var(--transition);
}

.easter-egg:hover {
  opacity: 0.8;
  transform: rotate(8deg);
}

.easter-egg svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .easter-egg {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 1rem;
    transform: translateY(-130%);
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links .btn {
    margin-top: 0.8rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading .text-link {
    margin-top: 1rem;
  }
}

@media (min-width: 560px) {
  .hero-strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid,
  .benefits-grid,
  .post-grid,
  .team-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .section {
    padding: 7rem 0;
  }

  .split,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }

  .footer-main {
    grid-template-columns: 1.7fr 1fr 1fr;
  }

  .cookie-banner__content {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cookie-banner__actions {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
  }

  .cta-band .button-row {
    flex: 0 0 auto;
  }

  .service-hero-grid {
    grid-template-columns: 1.6fr 0.8fr;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .sidebar-card {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .header-call {
    display: inline;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .project-card {
    grid-column: span 4;
  }

  .project-card.featured {
    grid-column: span 8;
  }

  .project-card.tall {
    grid-row: span 2;
    min-height: 680px;
  }

  .project-card.tall img {
    min-height: 680px;
  }

  .benefits-grid,
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: 1.7fr 0.8fr 0.9fr 1.5fr;
  }
}

@media (min-width: 1100px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a:not(.btn) {
    padding-inline: 0.75rem;
  }

  .header-call {
    padding-right: 0.35rem;
  }
}
