/* multiplyone — Storable-inspired navy / teal static site */

:root {
  --navy: #0a1931;
  --navy-deep: #061022;
  --navy-mid: #122445;
  --teal: #007a72;
  --teal-dark: #005f59;
  --teal-soft: #d9efed;
  --logo: #f28c28;
  --white: #ffffff;
  --off-white: #f4f7fa;
  --text: #1a2332;
  --text-muted: #5a6578;
  --border: rgba(10, 25, 49, 0.08);
  --shadow: 0 18px 40px rgba(6, 16, 34, 0.18);
  --radius-pill: 999px;
  --header-h: 4.5rem;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
}

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 25, 49, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--logo);
  text-decoration: none;
  flex-shrink: 0;
}

.logo--footer {
  margin: 0;
  font-size: 1.5rem;
  color: var(--logo);
}

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

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.header-cta {
  margin-left: 0.5rem;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  padding: 0.65rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn__icon {
  width: 1rem;
  height: 1rem;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-dark);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}

.btn--light:hover {
  background: var(--teal-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      var(--navy) 0%,
      var(--navy) 38%,
      rgba(10, 25, 49, 0.72) 52%,
      rgba(0, 122, 114, 0.35) 68%,
      transparent 82%
    ),
    linear-gradient(
      to top,
      rgba(6, 16, 34, 0.55) 0%,
      transparent 40%
    );
  clip-path: polygon(0 0, 72% 0, 48% 100%, 0 100%);
}

.hero__overlay::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 0;
  bottom: 0;
  width: 18%;
  background: linear-gradient(
    160deg,
    transparent 0%,
    rgba(0, 122, 114, 0.55) 40%,
    rgba(0, 122, 114, 0.15) 100%
  );
  clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(36rem, calc(100% - 3rem));
  margin: 0 auto 0 max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding: 5.5rem 0 4.5rem;
  animation: hero-in 0.9s var(--ease) both;
}

.hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin: 0 0 1.85rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Shared section bits —— */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy);
}

.section-lead {
  margin: 0 0 2.75rem;
  max-width: 38rem;
  color: var(--text-muted);
}

/* —— Services —— */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  padding: 1.75rem 1.35rem 1.75rem 0;
  border-top: 2px solid var(--teal-soft);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-card:hover {
  border-top-color: var(--teal);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.service-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* —— About —— */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--off-white);
  min-height: 520px;
}

.about__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 3rem;
  max-width: 36rem;
}

.about__content .section-title {
  margin-bottom: 1.15rem;
}

.about__content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about__content .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 2.25rem;
  display: grid;
  gap: 1.75rem;
}

.footer__tagline {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.footer__contact {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}

.footer__contact p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.footer__copy {
  margin: 0.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Contact dialog —— */
.contact-dialog {
  border: 0;
  padding: 0;
  max-width: min(92vw, 440px);
  background: transparent;
  color: var(--text);
}

.contact-dialog::backdrop {
  background: rgba(6, 16, 34, 0.62);
  backdrop-filter: blur(4px);
  animation: backdrop-in 0.25s var(--ease);
}

.contact-dialog[open] {
  animation: dialog-in 0.3s var(--ease);
}

.contact-dialog__panel {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem 1.75rem 1.85rem;
  box-shadow: var(--shadow);
}

.contact-dialog__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--off-white);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease);
}

.contact-dialog__close:hover {
  background: var(--teal-soft);
}

.contact-dialog__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-dialog__title {
  margin: 0 0 0.65rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  padding-right: 2rem;
}

.contact-dialog__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.contact-details {
  margin: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-details dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.contact-details dd {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.55;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.dialog-open {
  overflow: hidden;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .about__media {
    min-height: 280px;
  }

  .about__content {
    padding: 3rem 1.5rem 3.5rem;
  }

  .hero__overlay {
    clip-path: none;
    background:
      linear-gradient(
        180deg,
        rgba(10, 25, 49, 0.92) 0%,
        rgba(10, 25, 49, 0.78) 42%,
        rgba(10, 25, 49, 0.45) 70%,
        rgba(0, 122, 114, 0.25) 100%
      );
  }

  .hero__overlay::after {
    display: none;
  }

  .hero__content {
    width: min(var(--max), calc(100% - 3rem));
    margin-left: auto;
    margin-right: auto;
    padding: 4.5rem 0 3.5rem;
  }

  .hero {
    min-height: min(92vh, 640px);
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

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

  .hero__content,
  .contact-dialog[open],
  .contact-dialog::backdrop,
  .service-card,
  .btn,
  .nav {
    animation: none !important;
    transition: none !important;
  }
}
