/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0e0e0e;
  --card: #161616;
  --line: #222;
  --dim: #d7d7d7;
  --white: #fff;
  --container-w: min(1100px, 92vw);
  --marquee-h: 84px;
}
@media (max-width: 600px){
  :root{ --marquee-h: 64px; }
}

html, body { height: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

img { max-width: 100%; height: auto; display: block; }
.container { width: var(--container-w); margin: 0 auto; }
a { color: var(--white); text-decoration: none; }

/* Gradient headings */
h1, h2, h3 {
  background: linear-gradient(90deg, #ffb347, #ff6f61, #c850c0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow + lead */
.eyebrow{
  text-transform: uppercase;
  letter-spacing:.18em;
  font-weight:600;
  font-size:.8rem;
  opacity:.85;
  margin-bottom:.6rem;
}
.lead-paragraph { color: var(--dim); max-width: 850px; }

/* Buttons */
.buttons {
  display:flex;
  gap:1rem;
  margin-top:1.25rem;
  flex-wrap:wrap;
}
.btn {
  padding:.85rem 1.5rem;
  border-radius:999px;
  font-weight:600;
  border:2px solid #fff;
  transition:.25s ease;
  display:inline-block;
}
.btn-outline {
  background:transparent;
  color:#fff;
}
.btn-outline:hover {
  background:#fff;
  color:#111;
}
.btn-fill {
  background:#fff;
  color:#111;
}
.btn-fill:hover {
  background:transparent;
  color:#fff;
}
.btn-dark-outline {
  border-color:#3a3a3a;
  color:#fff;
  background:transparent;
}
.btn-dark-outline:hover {
  background:#fff;
  color:#111;
}
.btn-contact-outline {
  background:transparent;
  color:#fff;
  border:2px solid #fff;
  padding:.85rem 1.5rem;
  border-radius:999px;
  text-align:center;
}

/* LinkedIn button */
.btn-linkedin{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  border-color:#0A66C2;
  color:#0A66C2;
  background:transparent;
}
.btn-linkedin:hover{
  background:#0A66C2;
  color:#fff;
  border-color:#0A66C2;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--marquee-h));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #0f0f0f;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 6vh 0 10vh;
}
.hero h1 {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.08;
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 20ch;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-6vh 0 -12vh 0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(70% 100% at 18% 20%, rgba(200,80,192,0.28), transparent 62%),
    radial-gradient(70% 100% at 78% 30%, rgba(255,111,97,0.22), transparent 68%),
    linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55) 100%);
  filter: blur(18px);
}

/* ===== Companies marquee ===== */
.companies{
  height: var(--marquee-h);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #141414;
}
.marquee {
  flex:1;
  overflow:hidden;
  position:relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display:inline-flex;
  align-items:center;
  gap:3rem;
  animation: marquee 36s linear infinite;
  text-transform: uppercase;
  letter-spacing:.1em;
  white-space:nowrap;
  line-height:1;
}
@keyframes marquee {
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===== About ===== */
#about { position: relative; overflow: visible; }

.about-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 3rem;
}
@media (max-width: 900px){
  .about-container { grid-template-columns:1fr; }
}

.about-image-wrapper {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}
.about-photo{
  position:relative;
  z-index:2;
  width:75%;
  height:auto;
  border-radius:16px;
  box-shadow:none;
}

.about-button-group {
  margin-top: 18px;
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}

/* ===== Services ===== */
.services-header { margin-bottom: 1.25rem; }
#services h2 { text-transform: uppercase; }

.service-item{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap:2rem;
  align-items:center;
  padding:20px 0;
  border-top:1px solid var(--line);
}
.service-item:last-of-type{ border-bottom:1px solid var(--line); }
.service-item.reverse{ grid-template-columns: 1fr 1.25fr; }

.service-image img{
  width:100%;
  height:auto;
  display:block;
  background:#121212;
  border:1px solid var(--line);
  border-radius:14px;
}
.service-image-large img { aspect-ratio: 4 / 3; object-fit: cover; }
.service-image-small img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Service titles: gradient text; remove button chrome on desktop */
.service-title-btn,
.service-title-italic{
  background: linear-gradient(90deg, #ffb347, #ff6f61, #c850c0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic;
  font-weight:700;
  font-size:1.25rem;
  margin-bottom:.35rem;
  line-height:1.25;
  background-color: transparent;
  border: none;
  padding: 0;
  appearance:none;
  -webkit-appearance:none;
}

/* copy styles */
.service-paragraph {
  color: var(--dim);
  margin-bottom:.5rem;
}
.service-subtitle {
  font-weight:700;
  margin:.35rem 0;
}
.service-paragraph-small {
  color: var(--dim);
  font-size:.95rem;
}

@media (max-width: 950px){
  .service-item,
  .service-item.reverse {
    grid-template-columns: 1fr;
  }
}

/* Mobile accordion behavior */
@media (max-width: 768px){
  .service-image { display: none !important; }

  .service-item,
  .service-item.reverse {
    padding: 12px 0;
  }

  .service-title-btn{
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    padding: .6rem 0;
  }

  .service-title-btn .chev{
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    transition: transform .2s ease;
    opacity: .9;
  }

  .service-collapse{
    display: none;
    padding-left: 1.4rem;
  }

  .service-item.open .service-title-btn .chev{
    transform: rotate(45deg);
  }
  .service-item.open .service-collapse{
    display: block;
  }
}

/* Desktop: static view (always open, no click) */
@media (min-width: 769px){
  .service-title-btn{
    cursor: default;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    pointer-events: none; /* prevent toggling on desktop */
  }
  .service-title-btn .chev{ display: none; }
  .service-collapse{
    display: block !important;
    padding-left: 0;
  }
}

/* ===== Offer ===== */
#offer {
  position:relative;
  overflow:hidden;
  z-index:0;
  background: transparent;
}

.offer-container{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:2.2rem;
  align-items:start;
}
.offer-intro{
  display:grid;
  align-content:start;
  gap:.85rem;
}
.offer-tagline{
  text-transform:uppercase;
  letter-spacing:.18em;
  opacity:.85;
  font-size:.8rem;
}
.offer-headline{
  text-transform:uppercase;
}
.offer-list{
  display:grid;
  gap:1rem;
}
.offer-item{
  display:grid;
  grid-template-columns: 20px 140px 1fr;
  gap: 18px;
  align-items:center;
  padding: 12px 0;
}
.offer-bullet{
  width:12px;
  height:12px;
  border:2px solid #fff;
  transform: rotate(45deg);
  border-radius:2px;
  opacity:.9;
}
.offer-divider{
  height:1px;
  background:#2d2d2d;
  width:100%;
  display:block;
  align-self:center;
}
.offer-item-title{
  font-style: italic;
  font-weight:700;
  margin-bottom:.25rem;
}
.offer-item-description{
  color:var(--dim);
}

@media (max-width:980px){
  .offer-container{ grid-template-columns:1fr; }
  .offer-item{ grid-template-columns: 20px 1fr; }
  .offer-divider{ display:none; }
}

/* ===== Contact ===== */
.contact-section{
  position: relative;
  background: transparent;
  z-index: 0;
  border-top: 0; /* ensure no visible seam line */
}

.contact-container{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:2.5rem;
  align-items:flex-start;
}

@media (max-width:900px){
  .contact-container{
    grid-template-columns:1fr;
    text-align:left;
  }
}

.contact-headline{
  text-transform:uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom:.75rem;
}

.contact-paragraph{
  color: var(--dim);
  max-width: 600px;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.contact-cta{
  display:inline-block;
  margin-top:.5rem;
}

.contact-info{
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.contact-info-label{
  font-weight:700;
  text-transform:uppercase;
  font-size:.85rem;
  color:#ffb347;
  margin-bottom:.25rem;
}

.contact-info-text{
  color:var(--white);
  font-size:1rem;
  opacity:.9;
}

.contact-info-text a{
  color:var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ===== Footer ===== */
footer {
  border-top:1px solid var(--line);
  background:#121212;
  color:#aaa;
}
.footer-container {
  padding:22px 0;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  justify-content:space-between;
}
@media (max-width:640px){
  .footer-container {
    flex-direction:column;
    gap:.25rem;
  }
}

/* ===== GRADIENT LAYERS ===== */

/* 1) Services gradient: starts near top of Services, ends before Offer begins */
#services {
  position: relative;
  z-index:0;
  background: transparent;
}
#services::before{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:-120px;
  width:100vw;

  /* extend the glow farther down the Services list */
  height:2000px;

  z-index:-1;
  pointer-events:none;

  background:
    /* main magenta / orange glows */
    radial-gradient(60% 90% at 25% 12%, rgba(200,80,192,0.28), transparent 62%),
    radial-gradient(60% 90% at 75% 30%, rgba(255,111,97,0.22), transparent 68%),

    /* slower fade to dark, so color carries to ~CRM Implementation */
    linear-gradient(
      to bottom,
      rgba(0,0,0,0) 75%,
      rgba(14,14,14,0.92) 100%
    );

  filter: blur(18px);
}


/* 2) Offer → Contact gradient:
   One big glow that begins in Offer and continues behind Contact */
#offer::before{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:-80px;
  width:100vw;
  height:2000px; /* long enough to sit behind entire Offer + Contact */
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(65% 85% at 28% 55%, rgba(200,80,192,0.22), transparent 70%),
    radial-gradient(65% 85% at 74% 68%, rgba(255,111,97,0.20), transparent 72%),
    radial-gradient(70% 90% at 50% 96%, rgba(255,180,70,0.20), transparent 78%),
    /* subtle vertical darkening so it settles toward footer */
    linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(14,14,14,0.28) 60%,
      rgba(14,14,14,0.4) 75%,
      rgba(14,14,14,0.55) 90%,
      rgba(14,14,14,0.8) 100%
    );
  filter: blur(18px);
}

/* ===== About page portrait helper (safe globally) ===== */
.about-portrait{
  width: 85%;
  max-width: 420px;
  height:auto;
  display:block;
  border-radius:16px;
  border:1px solid var(--line);
  background:#121212;
}
.about-portrait-wrap{
  display:flex;
  justify-content:flex-end;
}
@media (max-width:980px){
  .about-portrait-wrap{ justify-content:center; }
  .about-portrait{
    width: 100%;
    max-width: 420px;
  }
}
