/* Dee & Co. Group — brand palette from corporate wordmark */
:root {
  --navy: #1a2b3c;
  --navy-deep: #0e1720;
  --navy-soft: #243447;
  --teal: #3c849b;
  --teal-bright: #4a9bb5;
  --teal-wash: rgba(60, 132, 155, 0.14);
  --ink: #1a2b3c;
  --muted: #5a6b7a;
  --paper: #f5f8fa;
  --white: #ffffff;
  --line: rgba(26, 43, 60, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.page-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.logo-img {
  width: clamp(9.5rem, 22vw, 12.5rem);
  height: auto;
  opacity: 1;
}

.logo-img--footer {
  width: 10rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.78;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.nav a:hover {
  opacity: 1;
  color: var(--teal);
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--navy);
  opacity: 1 !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--navy);
  margin-inline: auto;
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(14, 23, 32, 0.35) 0%,
      rgba(14, 23, 32, 0.55) 42%,
      rgba(14, 23, 32, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(26, 43, 60, 0.55) 0%,
      rgba(26, 43, 60, 0.15) 55%,
      transparent 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  padding:
    calc(var(--header-h) + 2rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(3.5rem, 8vh, 5.5rem);
}

.wordmark {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.18em;
  margin-bottom: 1.35rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.wordmark .amp {
  color: var(--teal-bright);
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.75rem, 7.5vw, 5rem);
  margin-bottom: 1.15rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.28s forwards;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.52s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border: 1px solid var(--teal);
}

.btn-primary:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

.contact .btn-primary {
  background: var(--navy);
  border-color: var(--navy);
}

.contact .btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* —— Services —— */
.services {
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--white);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.section-intro h2,
.approach-copy h2,
.contact h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-lead {
  color: var(--muted);
  max-width: 34rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3.5vh, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-index {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  padding-top: 0.2rem;
}

.service-body h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.service-body p {
  color: var(--muted);
  max-width: 40rem;
}

.service-item:hover .service-body h3 {
  color: var(--teal);
  transition: color 0.3s var(--ease);
}

/* —— Approach —— */
.approach {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: min(78vh, 42rem);
  background: var(--navy-deep);
  color: var(--white);
}

.approach-visual {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}

.approach-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.approach-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(14, 23, 32, 0.55) 100%);
}

.approach-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}

.approach-copy h2 {
  color: var(--white);
}

.approach-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
  font-size: 1.0625rem;
}

/* —— Contact —— */
.contact {
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, var(--teal-wash), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(26, 43, 60, 0.06), transparent 50%),
    var(--paper);
}

.contact .section-lead {
  margin-bottom: 2rem;
}

/* —— Footer —— */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--muted);
}

/* —— Back to top —— */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 35;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.55rem 0.65rem;
  background: var(--navy);
  color: var(--white);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal);
}

.back-to-top__arrow {
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
}

.back-to-top__label {
  line-height: 1;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .approach {
    grid-template-columns: 1fr;
  }

  .approach-visual {
    min-height: 14rem;
  }

  .approach-visual::after {
    background: linear-gradient(180deg, transparent 40%, rgba(14, 23, 32, 0.7) 100%);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
    opacity: 1;
  }

  .nav-cta {
    margin: 0.5rem clamp(1.25rem, 4vw, 3rem) 0;
    text-align: center;
  }

  .service-item {
    grid-template-columns: 2.75rem 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .wordmark,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .service-item {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
