@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --brand-navy: #050507;
  --brand-blue: #3050a0;
  --brand-sage: #00b0c0;
  --brand-gold: #d02050;
  --ink: #14212f;
  --muted: #657385;
  --surface: #ffffff;
  --surface-soft: #f7f3ec;
  --surface-blue: #eef6fb;
  --line: #d9e0e6;
  --shadow: 0 22px 55px rgba(20, 33, 47, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fffdf9;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.top-bar {
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 0.92rem;
}

.top-bar__inner,
.site-header__inner,
.section,
.footer__inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}

.top-bar a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  max-height: 72px;
  object-fit: contain;
  width: 134px;
  height: auto;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand-navy);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-blue);
  color: var(--brand-blue);
}

.button,
button.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.button--primary {
  background: var(--brand-blue);
  color: #ffffff;
}

.button--secondary {
  background: var(--brand-gold);
  color: #ffffff;
}

.button--ghost {
  background: #ffffff;
  color: var(--brand-navy);
  border: 1px solid var(--line);
}

.hero {
  background:
    radial-gradient(circle at 85% 5%, rgba(198, 144, 76, 0.26), transparent 28rem),
    linear-gradient(135deg, var(--brand-navy), #0e2438 52%, var(--brand-blue));
  color: #ffffff;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  min-height: 640px;
  padding: 5rem 0;
  align-items: center;
}

.eyebrow {
  color: var(--brand-gold);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.98;
  margin: 0;
}

.hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 680px;
}

.hero__actions,
.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.hero-card__body {
  padding: 1.2rem;
}

.hero-card__body strong {
  display: block;
  font-size: 1.25rem;
}

.hero-card__body span {
  color: rgba(255, 255, 255, 0.78);
}

.trust-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -52px;
  position: relative;
  z-index: 3;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.trust-item strong {
  color: var(--brand-navy);
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.trust-item span {
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}

.section {
  padding: 5rem 0;
}

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

.section--soft {
  background: var(--surface-soft);
  width: 100%;
  max-width: none;
}

.section--soft > .section {
  padding-left: 0;
  padding-right: 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header h2,
.section-header h1 {
  color: var(--brand-navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(20, 33, 47, 0.08);
  padding: 1.5rem;
}

.card h3 {
  color: var(--brand-navy);
  font-size: 1.28rem;
  margin: 0 0 0.55rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.service-icon {
  align-items: center;
  background: var(--surface-blue);
  border-radius: 999px;
  color: var(--brand-blue);
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 44px;
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.feature-panel {
  background: var(--brand-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: #ffffff;
  padding: 2rem;
}

.feature-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0 0;
  padding: 0;
}

.feature-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  list-style: none;
}

.feature-list li::before {
  background: var(--brand-gold);
  border-radius: 999px;
  content: "";
  flex: 0 0 10px;
  height: 10px;
  margin-top: 0.55rem;
  width: 10px;
}

.page-hero {
  background:
    linear-gradient(rgba(23, 51, 77, 0.9), rgba(23, 51, 77, 0.86)),
    radial-gradient(circle at 90% 0, rgba(198, 144, 76, 0.32), transparent 26rem);
  color: #ffffff;
  padding: 5rem 0;
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.portfolio-carousel {
  display: grid;
  grid-auto-columns: minmax(280px, 390px);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.2rem;
  scroll-snap-type: x mandatory;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 42px rgba(20, 33, 47, 0.1);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  scroll-snap-align: start;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.project-card__body {
  padding: 1.25rem;
}

.project-card__meta {
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  color: var(--brand-navy);
  margin: 0.45rem 0;
}

.project-card p {
  color: var(--muted);
  margin: 0;
}

.review-card {
  position: relative;
}

.stars {
  color: var(--brand-gold);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.review-card blockquote {
  color: var(--ink);
  margin: 0;
}

.review-card cite {
  color: var(--muted);
  display: block;
  font-style: normal;
  font-weight: 800;
  margin-top: 1rem;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.contact-list li {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  list-style: none;
  padding: 0.9rem 1rem;
}

.contact-list strong {
  color: var(--brand-navy);
  display: block;
}

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

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--brand-navy);
  display: grid;
  font-weight: 900;
  gap: 0.35rem;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  padding: 0.9rem 1rem;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(14, 95, 143, 0.28);
  outline-offset: 3px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.hidden {
  display: none;
}

.footer {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 3rem 0 1.2rem;
}

.footer__inner {
  display: grid;
  gap: 2rem;
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer small {
  color: rgba(255, 255, 255, 0.7);
}

.modal {
  background: rgba(20, 33, 47, 0.72);
  border: 0;
  height: 100%;
  inset: 0;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 1rem;
  width: 100%;
}

.modal::backdrop {
  background: rgba(20, 33, 47, 0.72);
}

.modal__panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 4vh auto;
  max-width: 1060px;
  overflow: hidden;
}

.modal__header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.5rem;
}

.modal__header h2 {
  color: var(--brand-navy);
  margin: 0;
}

.modal__header p {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.modal__close {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  height: 44px;
  width: 44px;
}

.modal__gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 1.5rem 1.5rem;
}

.modal__gallery img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  object-fit: cover;
  width: 100%;
}

.asset-note {
  background: #fff7e7;
  border: 1px solid #efd09b;
  border-radius: var(--radius-md);
  color: #5f4424;
  padding: 1rem;
}

@media (max-width: 900px) {
  .top-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.65rem 0;
  }

  .site-header__inner {
    min-height: 74px;
  }

  .brand img {
    max-height: 62px;
    width: 116px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: #fffdf9;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 0.75rem 1rem 1rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: min(var(--max-width), calc(100% - 2rem));
  }

  .hero__inner,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
    padding: 4rem 0 6rem;
  }

  .trust-strip,
  .grid--3,
  .grid--2,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .modal__gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .button {
    width: 100%;
  }
}

/* Mockup-inspired redesign */
:root {
  --brand-navy: #111c32;
  --brand-blue: #8d2be2;
  --brand-sage: #6d42d8;
  --brand-gold: #ffbf19;
  --brand-purple: #8d2be2;
  --brand-purple-dark: #6b1fc4;
  --ink: #172338;
  --muted: #60708a;
  --surface-soft: #f8fafc;
  --surface-blue: #f4e8ff;
  --line: #edf0f5;
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --max-width: 1210px;
}

body {
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.top-bar {
  background: linear-gradient(90deg, #7b22d8, #9a32e8);
  font-size: 0.86rem;
}

.top-bar__inner {
  min-height: 34px;
}

.top-bar__reviews {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  gap: 0.7rem;
  font-weight: 800;
  margin-left: auto;
}

.top-bar__reviews::before {
  color: var(--brand-gold);
  content: "*****";
  letter-spacing: 0.12em;
  margin-right: 0.6rem;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.site-header__inner {
  gap: 1rem;
  min-height: 76px;
}

.brand {
  min-width: 330px;
}

.brand img {
  background: #000000;
  height: 52px;
  max-height: 52px;
  object-fit: contain;
  width: 52px;
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  color: #223047;
  font-size: 1.2rem;
}

.brand-copy small {
  color: #71809a;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-nav {
  gap: 0.45rem;
}

.site-nav a {
  border-radius: var(--radius-sm);
  color: #4c5a70;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.65rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: transparent;
  color: var(--brand-purple);
}

.header-cta {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
}

.button {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(141, 43, 226, 0.18);
  font-size: 0.92rem;
  padding: 0.85rem 1.25rem;
}

.button--primary,
.button--secondary {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  color: #ffffff;
}

.button--ghost {
  background: #ffffff;
  border: 1px solid #e7eaf0;
  color: var(--brand-purple);
}

.button--outline-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.pill {
  align-items: center;
  background: #f4e8ff;
  border-radius: 8px;
  color: var(--brand-purple);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 1rem;
  padding: 0.38rem 0.75rem;
}

.mockup-hero {
  background:
    linear-gradient(90deg, rgba(10, 18, 32, 0.9), rgba(10, 18, 32, 0.72) 48%, rgba(10, 18, 32, 0.48)),
    url("../images/stock/stock-hero-home-improvement.png") center / cover;
}

.mockup-hero .hero__inner {
  display: block;
  max-width: 660px;
  min-height: 610px;
  padding: 4.6rem 0 3.2rem;
}

.mockup-hero .pill {
  background: var(--brand-purple);
  color: #ffffff;
}

.mockup-hero h1 {
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.mockup-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
}

.hero-stat {
  align-items: center;
  display: grid;
  margin-top: 2.8rem;
}

.hero-stat span {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-stat small {
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: 4.2rem 0;
}

.section--soft {
  background: #f8fafc;
  width: 100%;
  max-width: none;
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2,
.section-header h1 {
  color: #172338;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-header p {
  color: #61708a;
}

.service-card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  box-shadow: 0 9px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.service-card img {
  aspect-ratio: 1.55 / 1;
  filter: brightness(0.72);
  object-fit: cover;
  width: 100%;
}

.service-card__icon {
  align-items: center;
  background: var(--brand-purple);
  border-radius: 12px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  left: 1rem;
  position: absolute;
  top: 7.1rem;
  width: 46px;
}

.service-card div {
  padding: 1.7rem 1.35rem 1.45rem;
}

.service-card h3 {
  font-size: 1.18rem;
  margin: 0 0 0.55rem;
}

.service-card p {
  color: #60708a;
  margin: 0 0 1.1rem;
}

.service-card a {
  color: var(--brand-purple);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.about-preview {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.about-preview__copy h2 {
  color: #172338;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 1.4rem;
}

.about-preview__copy p {
  color: #60708a;
  font-size: 1.05rem;
}

.about-preview__image {
  position: relative;
}

.about-preview__image img {
  aspect-ratio: 1.42 / 1;
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
  object-fit: cover;
  width: 100%;
}

.rating-card {
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  bottom: -1.4rem;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
  display: grid;
  left: -1.4rem;
  min-width: 190px;
  padding: 1.2rem 1.4rem;
  position: absolute;
}

.rating-card strong {
  color: #172338;
  font-size: 1.7rem;
}

.rating-card span {
  color: #60708a;
  font-size: 0.86rem;
  font-weight: 800;
}

.portfolio-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.4rem;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.7rem 0 1.5rem;
  scroll-padding-inline: 1rem;
}

.project-card {
  border: 0;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.17);
  color: #ffffff;
  flex: 0 0 clamp(235px, 22vw, 300px);
  min-height: 305px;
  position: relative;
}

.project-card::after {
  background: linear-gradient(180deg, rgba(17, 28, 50, 0.05), rgba(17, 28, 50, 0.86));
  content: "";
  inset: 0;
  position: absolute;
}

.project-card img {
  aspect-ratio: auto;
  height: 305px;
}

.project-card__body {
  bottom: 0;
  left: 0;
  padding: 1.35rem;
  position: absolute;
  right: 0;
  z-index: 2;
}

.project-card h3 {
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.12;
}

.project-card p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
}

.project-card__meta {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin-top: 0.75rem;
  padding: 0.35rem 0.65rem;
  text-transform: none;
}

.review-score {
  color: #172338 !important;
  font-weight: 900;
}

.review-score::before {
  color: var(--brand-gold);
  content: "*****";
  letter-spacing: 0.14em;
  margin-right: 0.75rem;
}

.review-card {
  border-color: #edf0f5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 1.55rem;
}

.stars {
  color: var(--brand-gold);
}

.section__actions--center {
  justify-content: center;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(17, 28, 50, 0.9), rgba(17, 28, 50, 0.66)),
    url("../images/stock/stock-hero-home-improvement.png") center / cover;
}

.footer {
  background: #111c32;
  padding-top: 3.5rem;
}

.footer__grid {
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr;
}

.footer-logo {
  background: #000000;
  height: 64px;
  margin-bottom: 1rem;
  object-fit: contain;
  width: 64px;
}

.footer h3 {
  color: #ffffff;
  margin-top: 0;
}

.footer p {
  color: #c8d3e3;
}

@media (max-width: 1080px) {
  .brand {
    min-width: auto;
  }

  .header-cta {
    display: none;
  }

  .service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-carousel {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    display: none;
  }

  .site-nav a {
    width: min(var(--max-width), calc(100% - 2rem));
  }

  .mockup-hero .hero__inner {
    min-height: 520px;
  }

  .about-preview,
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .top-bar__inner {
    gap: 0.4rem;
  }

  .top-bar__reviews {
    margin-left: 0;
  }

  .brand img {
    height: 46px;
    width: 46px;
  }

  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .rating-card {
    bottom: 1rem;
    left: 1rem;
  }
}

/* React mockup behavior and component polish */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 1.1em;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vertical-align: -0.18em;
  width: 1.1em;
}

.icon--sm {
  height: 0.95em;
  width: 0.95em;
}

.icon--star {
  color: var(--brand-gold);
  fill: currentColor;
  stroke: currentColor;
}

.icon--quote {
  color: #e9d5ff;
  height: 2rem;
  stroke-width: 1.9;
  width: 2rem;
}

.inline-icon-link,
.star-row {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.star-row {
  gap: 0.12rem;
}

.top-bar__reviews::before,
.review-score::before {
  content: none;
}

.site-header {
  transition: background 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

.button {
  gap: 0.55rem;
  position: relative;
}

.button--primary {
  box-shadow: 0 14px 30px rgba(126, 34, 206, 0.3);
}

.button--primary:hover,
.button--secondary:hover {
  background: linear-gradient(135deg, #7e22ce, #581c87);
}

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

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

.service-card,
.project-card,
.review-card,
.card,
.why-card {
  transition: box-shadow 300ms ease, transform 300ms ease, border-color 300ms ease;
}

.service-card:hover,
.project-card:hover,
.review-card:hover,
.card:hover,
.why-card:hover {
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
  transform: translateY(-6px);
}

.service-card img,
.project-card img {
  transition: filter 300ms ease, transform 500ms ease;
}

.service-card:hover img,
.project-card:hover img {
  transform: scale(1.08);
}

.service-card__icon {
  box-shadow: 0 14px 24px rgba(126, 34, 206, 0.32);
}

.service-card a {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  transition: color 180ms ease, gap 180ms ease;
}

.service-card a:hover {
  color: #581c87;
  gap: 0.55rem;
}

.hero-stat {
  align-items: center;
  column-gap: 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr;
  width: fit-content;
}

.hero-stat__icon {
  align-items: center;
  background: rgba(126, 34, 206, 0.32);
  border-radius: 999px;
  color: #c084fc;
  display: inline-flex;
  grid-row: span 2;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.hero-stat small {
  grid-column: 2;
}

.text-purple {
  color: var(--brand-purple);
}

.why-section {
  background: #ffffff;
}

.why-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-card {
  text-align: center;
}

.why-card__icon {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(126, 34, 206, 0.28);
  color: #ffffff;
  display: inline-flex;
  height: 4rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 4rem;
}

.why-card__icon .icon {
  height: 2rem;
  width: 2rem;
}

.why-card h3 {
  color: #172338;
  font-size: 1.18rem;
  margin: 0 0 0.7rem;
}

.why-card p {
  color: #60708a;
  margin: 0;
}

.reputation-panel {
  background: linear-gradient(135deg, #7e22ce, #6d28d9);
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(126, 34, 206, 0.24);
  color: #ffffff;
  margin-top: 4rem;
  padding: clamp(2rem, 5vw, 3rem);
}

.reputation-panel h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 1.4rem;
}

.reputation-panel ul {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}

.reputation-panel li {
  align-items: flex-start;
  display: flex;
  font-size: 1.05rem;
  gap: 0.7rem;
  list-style: none;
}

.review-card__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stars {
  color: var(--brand-gold);
  font-weight: 900;
}

.stars::before {
  content: "*****";
  letter-spacing: 0.12em;
  margin-right: 0.5rem;
}

.review-card blockquote {
  color: #334155;
  line-height: 1.7;
}

.review-card cite {
  align-items: center;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.review-card cite strong,
.review-card cite small {
  display: block;
}

.review-card cite small {
  color: #64748b;
  font-weight: 600;
  margin-top: 0.12rem;
}

.review-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-style: normal;
  font-weight: 900;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.rating-card {
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
}

.rating-card__icon {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  grid-row: span 2;
  height: 3.5rem;
  justify-content: center;
  width: 3.5rem;
}

.contact-card {
  background: linear-gradient(135deg, #7e22ce, #6d28d9);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(126, 34, 206, 0.24);
  gap: 0;
  overflow: hidden;
}

.contact-card__info,
.contact-card__form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-card__info {
  background: transparent;
  color: #ffffff;
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-card__info h2,
.contact-card__info p,
.contact-card__info a,
.contact-card__info strong {
  color: #ffffff;
}

.contact-card__info > p {
  color: #f3e8ff;
}

.contact-card__form {
  background: #ffffff;
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-list li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: grid;
  gap: 0.15rem 0.9rem;
  grid-template-columns: auto 1fr;
}

.contact-list__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  grid-row: span 2;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.form input,
.form select,
.form textarea {
  border-color: #e2e8f0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(126, 34, 206, 0.12);
  outline: none;
}

.service-icon {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  box-shadow: 0 14px 24px rgba(126, 34, 206, 0.22);
  color: #ffffff;
}

.modal__panel {
  animation: modal-pop 220ms ease;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1080px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .top-bar__inner span:nth-child(2) {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .reputation-panel {
    border-radius: 20px;
  }
}

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

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