/*
Theme Name: BluePeak Studio
Author: Sudais
Version: 1.0
*/

:root {
  --ink: #102235;
  --ink-soft: #4e6072;
  --blue: #176ee7;
  --blue-dark: #0d4fa8;
  --navy: #0c2744;
  --mist: #eef5fb;
  --line: #dbe5ee;
  --white: #ffffff;
  --container: min(1180px, calc(100vw - 48px));
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: white;
  color: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(24, 49, 74, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: 0.84rem;
  letter-spacing: 0;
  border-radius: 3px 11px 3px 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.site-nav > a:hover::after {
  right: 0;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  background: var(--blue);
  color: white;
}

.nav-cta svg,
.button svg,
.inline-link svg,
.project-arrow svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-cta:hover svg,
.button:hover svg,
.inline-link:hover svg {
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  height: min(900px, 100svh);
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  animation: heroZoom 16s ease-out both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 22, 39, 0.92) 0%, rgba(7, 27, 47, 0.76) 42%, rgba(7, 29, 48, 0.25) 73%, rgba(7, 29, 48, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 29, 48, 0.38) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 82px;
}

.hero-kicker {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 650ms 160ms ease forwards;
}

.hero-kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  background: #65a9ff;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(3.25rem, 6.2vw, 6rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.065em;
  opacity: 0;
  animation: riseIn 750ms 260ms ease forwards;
}

.hero h1 span {
  color: #65a9ff;
  font-weight: 800;
}

.hero-copy {
  max-width: 610px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  opacity: 0;
  animation: riseIn 650ms 390ms ease forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 36px;
  opacity: 0;
  animation: riseIn 650ms 510ms ease forwards;
}

.button {
  padding: 0 24px;
  font-size: 0.88rem;
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 35px rgba(12, 79, 166, 0.3);
}

.button-primary:hover {
  background: #2179ec;
}

.text-link {
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.87rem;
  font-weight: 650;
  transition: border-color 180ms ease;
}

.text-link:hover {
  border-color: white;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 1px;
  height: 50%;
  background: white;
  animation: scrollLine 1.8s ease-in-out infinite;
}

.section {
  padding: 130px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
  gap: 90px;
  align-items: end;
  margin-bottom: 66px;
}

.section-intro > p {
  max-width: 440px;
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.eyebrow {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  color: #8294a6;
}

.section h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.35rem, 4.1vw, 4rem);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.services-section {
  background: #fbfdff;
}

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

.service-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
  min-height: 390px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #bdd5eb;
  box-shadow: 0 24px 55px rgba(26, 63, 97, 0.1);
}

.service-image {
  overflow: hidden;
  min-height: 260px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.service-card:hover .service-image img {
  transform: scale(1.045);
}

.service-body {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
}

.service-number {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-body h3 {
  margin: 23px 0 12px;
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.service-body > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.65;
}

.service-body ul {
  margin: auto 0 0;
  padding: 26px 0 0;
  list-style: none;
}

.service-body li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #334b62;
  font-size: 0.79rem;
  font-weight: 650;
}

.service-body li svg {
  width: 16px;
  color: var(--blue);
}

.work-section {
  background: var(--mist);
}

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

.project:nth-child(even) {
  transform: translateY(74px);
}

.js .project:nth-child(even):not(.is-visible) {
  transform: translateY(104px);
}

.js .project:nth-child(even).is-visible {
  transform: translateY(74px);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.32 / 1;
  background: #dce6ee;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 750ms cubic-bezier(.2,.7,.2,1);
}

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

.project-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--ink);
  border-radius: 50%;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.project:hover .project-arrow {
  opacity: 1;
  transform: translateY(0);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid transparent;
}

.project-meta h3 {
  margin: 0 0 3px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.project-meta p,
.project-meta > span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(58px, 7vw, 108px);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -22px;
  bottom: -22px;
  width: 45%;
  height: 55%;
  background: var(--blue);
}

.about-image img {
  width: 100%;
  min-height: 660px;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-content > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.about-content .about-lead {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
}

.process-list {
  margin: 38px 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 38px 90px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
}

.process-list strong {
  font-size: 0.84rem;
}

.process-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.testimonials-section {
  background: #f8fbfe;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testimonial {
  min-height: 380px;
  margin: 0;
  padding: 42px 42px 38px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial + .testimonial {
  padding-left: 42px;
  border-left: 1px solid var(--line);
}

.testimonial blockquote {
  margin: 0;
  color: #21384d;
  font-size: 1.06rem;
  line-height: 1.85;
  letter-spacing: -0.015em;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial figcaption img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  filter: saturate(0.85);
}

.testimonial figcaption div {
  display: flex;
  flex-direction: column;
}

.testimonial figcaption strong {
  font-size: 0.83rem;
}

.testimonial figcaption span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.contact-section {
  background: #dfeefa;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(60px, 9vw, 136px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-copy h2 {
  margin-bottom: 25px;
}

.contact-copy > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--ink-soft);
}

.contact-copy > a {
  color: var(--blue-dark);
  font-size: 0.91rem;
  font-weight: 800;
  border-bottom: 1px solid #8db7df;
}

.contact-form {
  padding: 45px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 24px 55px rgba(22, 67, 104, 0.08);
}

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

.contact-form label {
  display: block;
  margin-bottom: 25px;
}

.contact-form label > span {
  display: block;
  margin-bottom: 8px;
  color: #33495e;
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b9c9d7;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 180ms ease;
}

.contact-form input,
.contact-form select {
  height: 47px;
}

.contact-form textarea {
  padding: 12px 0;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b9aa7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

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

.button-dark:hover {
  background: var(--blue);
}

.form-status {
  margin: 0;
  color: #12643c;
  font-size: 0.76rem;
  font-weight: 700;
}

.site-footer {
  padding: 78px 0 28px;
  background: var(--navy);
  color: white;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 68px;
}

.footer-top p {
  max-width: 350px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.91rem;
}

.footer-top nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
  font-size: 0.78rem;
  font-weight: 650;
}

.footer-top nav a,
.footer-bottom a {
  transition: color 180ms ease;
}

.footer-top nav a:hover,
.footer-bottom a:hover {
  color: #70b2ff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease var(--delay, 0ms), transform 700ms cubic-bezier(.2,.7,.2,1) var(--delay, 0ms);
}

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

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

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  50%, 100% { transform: translateY(200%); }
}

@media (max-width: 1050px) {
  .service-card {
    grid-template-columns: 1fr;
  }

  .service-image {
    min-height: 235px;
    aspect-ratio: 1.55 / 1;
  }

  .service-body {
    min-height: 290px;
  }

  .about-image img {
    min-height: 580px;
  }

  .testimonial {
    padding-right: 28px;
  }

  .testimonial + .testimonial {
    padding-left: 28px;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100% - 36px, 680px);
  }

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

  .menu-toggle {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: currentColor;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 200ms ease;
  }

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

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

  .site-nav {
    position: fixed;
    inset: 71px 0 auto;
    height: calc(100svh - 71px);
    padding: 46px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: var(--ink);
    background: white;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 260ms ease, visibility 260ms;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav > a:not(.nav-cta) {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
  }

  .site-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 30px;
  }

  .hero {
    min-height: 700px;
    height: 100svh;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(5, 22, 39, 0.92), rgba(7, 27, 47, 0.66)), linear-gradient(0deg, rgba(7, 29, 48, 0.5), transparent);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 11.5vw, 5.2rem);
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 90px 0;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 48px;
  }

  .section-intro > p {
    margin: 0;
  }

  .services-grid,
  .projects-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    gap: 22px;
  }

  .projects-grid {
    gap: 50px;
  }

  .project:nth-child(even),
  .js .project:nth-child(even):not(.is-visible),
  .js .project:nth-child(even).is-visible {
    transform: translateY(0);
  }

  .about-grid {
    gap: 66px;
  }

  .about-image img {
    min-height: 500px;
  }

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

  .testimonial {
    min-height: 0;
    padding: 34px 0;
    gap: 45px;
  }

  .testimonial + .testimonial {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-grid {
    gap: 48px;
  }

  .contact-copy {
    position: static;
  }

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

  .footer-top p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

  .brand {
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-top: 90px;
    padding-bottom: 74px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13.5vw, 4.2rem);
    letter-spacing: -0.06em;
  }

  .hero-kicker {
    font-size: 0.65rem;
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 0.95rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    align-self: center;
  }

  .section {
    padding: 76px 0;
  }

  .eyebrow {
    margin-bottom: 17px;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .service-card {
    border-radius: 12px;
  }

  .service-body {
    min-height: 310px;
    padding: 27px 24px;
  }

  .project-image {
    aspect-ratio: 1.18 / 1;
  }

  .project-arrow {
    opacity: 1;
    transform: none;
  }

  .about-image::before {
    left: -10px;
    bottom: -10px;
  }

  .about-image img {
    min-height: 410px;
  }

  .process-list li {
    grid-template-columns: 34px 76px 1fr;
    gap: 8px;
  }

  .contact-form {
    padding: 30px 22px;
    border-radius: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    padding-top: 58px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 48px;
  }

  .footer-top p {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}