:root {
  --bg: #f5f6fb;
  --ink: #11122a;
  --muted: #6f7190;
  --hero: #17145d;
  --primary: #0d13d9;
  --primary-soft: #7a7ad9;
  --surface: #ffffff;
  --line: #e7e8f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(rgba(245, 246, 251, 0.1), rgba(245, 246, 251, 0.1)),
    url("images/back.png") center / cover no-repeat;
  z-index: -1;
}

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

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 5.25rem 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Gill Sans", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  font-weight: normal;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.6rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #2335ff, #1b2ccf);
  box-shadow: 0 10px 24px rgba(35, 53, 255, 0.28);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.hero {
  background: linear-gradient(165deg, #181563 0%, #0f0b4a 85%);
  border-bottom-left-radius: 4.5rem;
  border-bottom-right-radius: 4.5rem;
  color: #fff;
  padding-bottom: 3.8rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.75rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-mark {
  font-family: "Gill Sans", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 0.95;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-sub {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  opacity: 0.86;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}

.menu a:hover {
  color: #fff;
  border-color: #fff;
}

.hero-content {
  margin-top: 4.7rem;
  text-align: center;
  max-width: 760px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-inline: auto;
  max-width: 18ch;
}

.hero-content p {
  color: rgba(241, 242, 255, 0.9);
  margin-top: 1.2rem;
  margin-inline: auto;
  max-width: 67ch;
}

.hero-content .btn {
  margin-top: 2rem;
}

.services h2 {
  font-size: clamp(1.8rem, 3.7vw, 3rem);
  max-width: 17ch;
  margin-bottom: 2.2rem;
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.4rem;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: normal;
  /* justify-content: space-between; */
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(15, 11, 74, 0.1);
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.service-card p {
  font-size: 0.94rem;
}

.service-card a {
  align-self: start;
  margin-top: 1rem;
  border: 1px solid #ccd2ff;
  border-radius: 999px;
  color: var(--primary);
  padding: 0.22rem 0.7rem;
}

.appointment {
  background: linear-gradient(90deg, #171459 0%, #1f1b6c 100%);
  color: #fff;
}

.appointment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 290px;
  gap: 2rem;
}

.appointment-images {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  align-items: center;
}

.appointment-images img {
  /*width: 130px;
  height: 130px;*/
  object-fit: contain;
  /*filter: brightness(0) invert(1);
  opacity: 0.85;*/
}

.appointment h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.appointment p {
  color: rgba(244, 245, 255, 0.95);
  max-width: 48ch;
  margin: 1rem 0 1.8rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.9rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.filter {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: #f0f1fb;
  color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.work-shot,
.gallery-note {
  border-radius: 0.3rem;
  min-height: 230px;
}

.work-shot {
  position: relative;
  overflow: hidden;
}

.work-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 39, 0.35) 100%);
}

.shot-1 {
  background: linear-gradient(140deg, #c38f63 0%, #734f3f 52%, #4a3343 100%);
}

.shot-2 {
  background: linear-gradient(140deg, #7ab7df 0%, #6895ce 48%, #5670a6 100%);
}

.shot-3 {
  background: linear-gradient(140deg, #5aa6d3 0%, #3b7aa8 48%, #2f4f8a 100%);
}

.shot-4 {
  background: linear-gradient(140deg, #86acc8 0%, #648db0 50%, #49608f 100%);
}

.shot-5 {
  background: linear-gradient(140deg, #9ea8ba 0%, #7e8cab 52%, #5a6b8f 100%);
}

.gallery-note {
  background: #eef0fa;
  display: grid;
  place-items: end start;
  padding: 1rem;
}

.gallery-note p {
  font-size: 0.95rem;
  color: #3d4280;
}

.testimonial-layout {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 290px 1fr;
  align-items: center;
  gap: 2rem;
}

.shape {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 48% 52% 62% 38% / 44% 36% 64% 56%;
  background: linear-gradient(160deg, #e3e6f7, #daddf1);
}

blockquote {
  margin: 0;
  max-width: 60ch;
}

blockquote p {
  font-size: 1.08rem;
}

blockquote footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

blockquote span {
  color: var(--primary);
}

.footer {
  padding: 4rem 0 2rem;
}

.contact-banner {
  background: var(--primary);
  color: #fff;
  border-radius: 0.7rem;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.contact-banner p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: min(100%, 370px);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #d0d3e8;
  border-radius: 8px;
  outline: 0;
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.85rem;
  resize: vertical;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  align-self: flex-end;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-response {
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.form-response--ok {
  background: #d4edda;
  color: #1a5e2a;
}

.form-response--err {
  background: #f8d7da;
  color: #7b1a21;
}

.footer-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #9c9ba3;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.social-icons a:hover {
  background: var(--primary);
}

.footer-grid h4 {
  margin-bottom: 0.8rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.legal {
  margin-top: 2.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal div {
  display: flex;
  gap: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .menu {
    gap: 1rem;
  }

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

  .testimonial-layout {
    grid-template-columns: 1fr;
  }

  .shape {
    width: min(320px, 100%);
  }

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

@media (max-width: 760px) {
  .hero {
    border-bottom-left-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
  }

  .topbar {
    flex-direction: column;
    align-items: start;
  }

  .menu {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .hero-content {
    margin-top: 3rem;
    text-align: left;
  }

  .services h2 {
    max-width: 100%;
  }

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

  .contact-banner,
  .legal {
    flex-direction: column;
    align-items: start;
  }

  .contact-form {
    width: 100%;
    min-width: 0;
  }

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