/* =========================================================
   Detective Designer — landing page styles
   Built from Figma node 189:110 ("Main")
   ========================================================= */

:root {
  --color-bg: #efefef;
  --color-text-dark: #2d2f35;
  --color-text-muted: #707684;
  --color-button-bg: #1c1d21;
  --color-button-text: #edeef5;
  --color-white: #ffffff;
  --color-dark-section-bg: #0e0e0f;
  --color-dark-heading: #e2e3e6;
  --color-dark-muted: #a9acb5;
  --color-accent: #ffb900;

  --font-body: 'Manrope', sans-serif;
  --font-display: 'Phudu', sans-serif;

  --page-max-width: 1906px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

/* ========== PAGE (fluid — no longer a fixed 1906px canvas) ========== */

.page {
  position: relative;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  background: var(--color-bg);
  overflow: hidden;
}

/* ========== SITE HEADER / LOGO ========== */

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 39px;
  text-decoration: none;
}

.brand-icon {
  height: 16x;
  display: block;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 10px;
  line-height: 11.3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.brand-name-line {
  white-space: nowrap;
}

/* ========== HERO ========== */

.hero {
  width: 100%;
  max-width: 1905px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  padding: 64px 24px 64px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  max-width: 100%;
}

.hero-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 48px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

@media(max-width:750px){
  .hero-heading{
    font-size: 40px;
  }
}




.palette{

    width:36px;
    height:34px;
    margin:0 -4px;
}


.avatars{

    display:inline-flex;
    align-items:center;

    vertical-align:middle;

    transform:translateY(6px);
    margin:0 2px;
    margin-top:-25px;
}

.avatars img{

    width:44px;
    height:44px;
    border-radius:50%;
    margin-left:-20px;
}

.avatars img:first-child{

    margin-left:0;
}





.hero-subheading {
  margin: 0;
  width: 551px;
  max-width: 100%;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  color: var(--color-text-muted);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 13px 28px;
  background: var(--color-button-bg);
  border: 1px solid #000000;
  border-radius: 26.5px;
  text-decoration: none;
  cursor: pointer;
  transition-duration:300ms;
}

.hero-cta:hover{
  transform:scale(1.1)
}

.hero-cta-label {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-button-text);
  white-space: nowrap;
}

.hero-cta-icon {
  width: 14.82px;
  height: 14px
}

/* ========== FEATURED WORK CAROUSEL ========== */

.work-carousel {
  width: 100%;
}

.work-carousel-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  will-change: transform;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  /* let vertical page scroll still work on touch; carousel.js handles
     the horizontal drag itself via pointer events */
  touch-action: pan-y;
}

.work-carousel-track.is-dragging {
  cursor: grabbing;
}

.work-carousel-item {
  flex-shrink: 0;
  width: 820px;
  height: 574px;
  background: var(--color-white);
  border-radius: 24px;
  position: relative;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}

@media(max-width:650px){
  .work-carousel-item{
    width: 420px;
    height: 320px;
    border-radius: 16px;
  }
}

.work-carousel-image {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Soft light sweep that tracks the cursor during the perspective-tilt
   hover effect (see carousel.js). Sits on top of the image, matching
   its rounded edges exactly. */
.work-carousel-glare {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  pointer-events: none;
  mix-blend-mode: overlay;
  transition: background 0.15s ease-out;
}

/* ========== SERVICES / "WHY CHOOSE" ========== */

.services {
  margin-top: 76px;
}

.services-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  
  
}

.services-eyebrow {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
}

.services-title {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text-dark);
}

/* Flexbox (not a fixed grid) so cards reflow from 2 columns down to a
   single column as the viewport narrows — WITHOUT resizing the cards
   themselves. Card size stays locked at 475x258 until a mobile layout
   is designed. */
.services-grid {
  display: grid;
  grid-template-columns: 475px 475px;
  justify-content: center;
  justify-items:center;
  align-items:center;
  gap: 24px 24px;
  padding: 0px 50px;
  margin-top:39px;
}

@media(max-width:1020px){
  .services-grid{
    grid-template-columns: 475px;
  }
}


.service-card {
  width: 475px;
  height: 258px;
  border-radius: 24px;
  position: relative;
  background-color: #e3e3e3; /* fallback while the image loads */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media(max-width:510px){
  .service-card{
    width: 370px;
    height: 200px;
    justify-content: center;
    border-radius: 16px;

  }
}



/* Plain text over the photo, no panel / blur / shadow. */
.service-card-caption {
  position: absolute;
  top: 27px;
  left: 28px;
  width: 289px;
  max-width: calc(100% - 56px);
}
@media(max-width:510px){
  .service-card-caption{
    position: absolute;
  top: 20px;
  left: 20px;
  }
}

.service-card-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  color: var(--color-text-dark);
}

@media(max-width:510px){
  .service-card-title{
    font-size:14px;
  }
}

.service-card-text {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: normal;
  color: var(--color-text-muted);
}

@media(max-width:510px){
  .service-card-text{
    font-size:12px;
    width: 230px;
  }
}


/* ========== TEAM (left empty — content added later) ========== */

.team {
  margin-top: 100px;
}

.team-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  
}

.team-eyebrow {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
}

.team-title {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text-dark);
}

.team-content {
  /* Empty on purpose — drop team member cards in here later. */
  min-height: 60px;
}

/* ========== FAQ ========== */

.faq {
  margin-top: 100px;
}

.faq-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  
}

.faq-eyebrow {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
}

.faq-title {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text-dark);
}

.faq-list {
  width: 100%;
  max-width: 626px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  position: relative;
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle 1.05x scale on hover only, smooth in both directions.
   (Scoped to :hover alone — :focus-within is handled separately below
   so clicking a question doesn't leave the card "stuck" scaled up
   once the mouse moves away.) */
.faq-item:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* Keyboard users still get a visible cue when a question is focused,
   just without the scale, so it can't get stuck on. */
.faq-item:focus-within {
  z-index: 2;
}

.faq-question {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px 4px 21px;
  min-height: 44px;
  cursor: pointer;
}

.faq-question-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-dark);
}

.faq-toggle-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(180deg);
}

/* Smooth expand/collapse without ever needing to know the answer's
   height — animates a grid track from 0fr to 1fr. */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer {
  margin: 0;
  padding: 0 18px 18px;
  font-weight: 500;
  font-size: 14px;
  line-height: normal;
  color: var(--color-text-muted);
}

/* ========== CTA + FOOTER (dark section) ========== */

.cta-footer {
  margin-top: 120px;
  background: var(--color-dark-section-bg);
  padding: 92px 24px 0;
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo{
  margin-bottom:20px;
}

.cta-heading {
  margin: 0 0 17px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 48px;
  text-transform: uppercase;
  color: var(--color-dark-heading);
}

.cta-subheading {
  margin: 0 0 42px;
  max-width: 567px;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  color: var(--color-dark-muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 13px 28px;
  background: var(--color-accent);
  border: 1px solid #000000;
  border-radius: 26.5px;
  text-decoration: none;
  cursor: pointer;
}

.cta-button-label {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-button-bg);
  white-space: nowrap;
}

.cta-button-icon {
  width: 14.82px;
  height: 14px;
}

.site-footer {
  margin-top: 113px;
  max-width: 1241px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #26262a;
  margin: 0 0 16px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
  color: #2f2d35;
}

.footer-copyright {
  margin: 0;
}

.footer-terms {
  text-decoration: none;
}
