:root {
  --purple: #3e3f83;
  --purple-deep: #313268;
  --gold: #f2bf3d;
  --light: #dddddd;
  --dark: #161616;
  --white: #ffffff;
  --text: #1b1b1b;
  --muted: #4d4d4d;
  --wrap: min(1040px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 64px;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: var(--light);
}

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

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

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

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--purple);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--white);
}

.logo-image {
  height: 34px;
  width: auto;
}

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

.site-nav a {
  color: var(--gold);
  font-size: 0.92rem;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(65, 142, 232, 0.48), rgba(65, 142, 232, 0.48)),
    url("../images/hero.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(62, 63, 131, 0.15), rgba(62, 63, 131, 0.15));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.about-band {
  background: var(--gold);
  padding: 0.3rem 0 0.6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.about-copy {
  text-align: center;
  padding: 2rem 1rem;
}

.about-copy h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.about-copy p {
  line-height: 2;
  font-size: 1.25rem;
  text-align: justify;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.6rem 0;
}

.about-gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.section {
  padding: 1.5rem 0;
}

.section-light {
  background: var(--light);
}

.section-gold {
  background: var(--gold);
}

.section-purple {
  background: var(--purple);
}

.section-faq {
  background: var(--light);
  padding-top: 0;
}

.section-title,
.services-heading,
.projects-heading {
  font-family: "Oswald", sans-serif;
  text-align: center;
  color: var(--purple);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.6rem;
}

.services-heading,
.projects-heading {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.projects-heading {
  color: var(--white);
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.what-card {
  padding: 1rem;
  text-align: center;
}

.what-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.what-card p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.what-card img {
  width: 100%;
  margin-top: 1rem;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
}

.what-card-purple {
  background: var(--purple);
  color: var(--white);
}

.what-card-gold {
  background: var(--gold);
  color: var(--text);
}

.why-header {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.why-header h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.why-header p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--muted);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.why-list ul {
  padding-left: 0.5rem;
}

.why-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--purple);
}

.faq details {
  border-top: 1px solid #bdbdbd;
}

.faq details:last-child {
  border-bottom: 1px solid #bdbdbd;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 700;
  color: var(--purple-deep);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1rem;
  margin-right: 0.45rem;
}

.faq details[open] summary::before {
  content: "−";
}

.faq p {
  padding: 0 0 0.85rem 1.45rem;
  color: var(--muted);
  line-height: 1.8;
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
  text-align: center;
}

.mini-feature {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.mini-feature p {
  max-width: 220px;
  line-height: 1.55;
}

.mini-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
}

.mini-icon-gear::before {
  inset: 8px;
  border: 2px solid var(--text);
  border-radius: 50%;
}

.mini-icon-gear::after {
  left: 18px;
  top: 2px;
  width: 8px;
  height: 40px;
  border-left: 2px solid var(--text);
  border-right: 2px solid var(--text);
}

.mini-icon-home::before {
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 18px;
  border: 2px solid var(--text);
}

.mini-icon-home::after {
  left: 6px;
  top: 8px;
  width: 32px;
  height: 32px;
  transform: rotate(45deg);
  border-top: 2px solid var(--text);
  border-left: 2px solid var(--text);
}

.mini-icon-tools::before {
  left: 8px;
  top: 6px;
  width: 10px;
  height: 32px;
  border: 2px solid var(--text);
  border-radius: 8px;
}

.mini-icon-tools::after {
  right: 8px;
  top: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text);
  border-radius: 50%;
  box-shadow: -6px 16px 0 -6px var(--light), -6px 16px 0 0 var(--text);
}

.slider {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 0.8rem;
}

.slider-frame {
  position: relative;
}

.slide {
  display: none;
  background: var(--white);
  padding: 0.9rem;
}

.slide.is-active {
  display: block;
}

.slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.slide-copy {
  padding-top: 0.55rem;
}

.slide-copy h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.slide-copy p {
  font-size: 0.62rem;
  line-height: 1.35;
}

.slider-arrow {
  border: 0;
  background: none;
  color: #94a1dc;
  font-size: 2rem;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(62, 63, 131, 0.45);
  cursor: pointer;
}

.slider-dot.is-active {
  background: var(--purple);
}

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

.project-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
}

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

.project-card figcaption {
  padding: 0.25rem 0.2rem;
  text-align: center;
  background: var(--white);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-section {
  background: var(--light);
  padding: 3.2rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.4rem;
}

.contact-copy p,
.contact-copy a {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-form-wrap {
  max-width: 640px;
}

.contact-intro {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  background: var(--white);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form button {
  justify-self: start;
  border: 0;
  background: #d8bc79;
  color: var(--text);
  padding: 0.8rem 1.3rem;
  font: inherit;
  text-transform: lowercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.footer {
  background:
    linear-gradient(rgba(35, 44, 102, 0.9), rgba(35, 44, 102, 0.9)),
    url("../images/hero.jpg") center/cover no-repeat;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0;
}

.footer-main p {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.7;
}

.footer-logo {
  height: 54px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 320px;
  margin-bottom: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.15rem;
}

.footer-links h3,
.footer-subscribe h3 {
  margin-bottom: 1rem;
  color: #69c5f1;
  font-size: 1.15rem;
}

.footer-links {
  display: grid;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--white);
  font-size: 1rem;
}

.footer-subscribe p {
  max-width: 360px;
  margin-bottom: 1.1rem;
}

.footer-subscribe-form {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.footer-subscribe-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--white);
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
}

.footer-subscribe-form button {
  justify-self: start;
  border: 0;
  background: #1692c8;
  color: var(--white);
  padding: 0.9rem 1.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  padding: 1rem 0;
  text-align: center;
  background: rgba(35, 44, 102, 0.95);
}

.footer-bottom p {
  color: var(--white);
  font-size: 0.9rem;
}

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

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem;
    background: var(--purple);
  }

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

  .about-grid,
  .what-grid,
  .why-grid,
  .mini-features,
  .contact-grid,
  .projects-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .slider {
    grid-template-columns: 24px 1fr 24px;
  }
}
