﻿/* =========================
   DESIGN SYSTEM
========================= */

:root {
  --bg-main: #0b0f14;
  --bg-alt: #111826;
  --bg-card: rgba(255, 255, 255, 0.06);

  --text-main: #e8eaed;
  --text-muted: #b3b8c2;

  --accent: #7da787;
  --accent-glow: rgba(172, 201, 168, 0.35);

  --radius-lg: 24px;
  --radius-md: 16px;

  --max-width: 1200px;
}

/* =========================
   RESET & BASE
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(
      1200px 600px at 70% -20%,
      #1a2233,
      transparent
    ),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -10%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(520px 420px at 18% 12%, rgba(125, 167, 135, 0.09), transparent 70%),
    radial-gradient(620px 460px at 82% 8%, rgba(95, 138, 192, 0.12), transparent 72%);
  filter: blur(8px);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

header {
  padding: 1.5rem;
  text-align: center;
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2.5rem 1.5rem 3rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 25%, rgba(125, 167, 135, 0.3), transparent 46%),
    radial-gradient(circle at 82% 8%, rgba(95, 138, 192, 0.26), transparent 44%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.55), rgba(11, 15, 20, 0.9));
  transform: translate3d(0, calc(var(--hero-shift, 0) * -0.08), 0) scale(1.04);
  transition: transform 0.16s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 300px at 50% -20%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.2), rgba(11, 15, 20, 0.6));
  z-index: -1;
}

.hero-content {
  max-width: min(980px, 96vw);
  margin: 0 auto;
  text-align: center;
  animation: heroRise 0.9s cubic-bezier(0.2, 0.76, 0.26, 1) both;
}

.hero-actions {
  display: inline-flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  width: clamp(380px, 34vw, 620px);
  height: auto;
  display: block;
  object-fit: contain;
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.05rem;
}



.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.btn.primary {
  background: linear-gradient(
    135deg,
    var(--accent),
    #35583e
  );
  color: #0b0f14;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 10%,
    rgba(255, 255, 255, 0.32) 40%,
    transparent 70%
  );
  transform: translateX(-135%);
  transition: transform 0.65s ease;
}

.btn.primary:hover::after {
  transform: translateX(140%);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 7rem 1.5rem;
  transition: transform 0.6s ease;
}

.section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section.alt {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)
    ),
    var(--bg-alt);
}

/* =========================
   CARDS
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.35s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    300px at top left,
    rgba(200, 155, 106, 0.12),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border-color: rgba(125, 167, 135, 0.34);
}

.card:hover::after {
  opacity: 1;
}

/* =========================
   PROCESS / WHY / TEXT SECTIONS
========================= */

#process p,
#why p,
#collaboration p,
#about p {
  font-size: 1.1rem;
}

.section-lead {
  max-width: 860px;
  margin-bottom: 2.2rem;
}

.process-grid,
.value-grid,
.collaboration-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.process-step,
.value-card,
.collaboration-card,
.faq-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.process-step::before,
.value-card::before,
.collaboration-card::before,
.faq-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -35px;
  top: -35px;
  background: radial-gradient(circle, rgba(125, 167, 135, 0.3), transparent 70%);
}

.step-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d4ebd9;
  background: rgba(125, 167, 135, 0.22);
  border: 1px solid rgba(125, 167, 135, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.7rem;
}

.process-step h3,
.value-card h3,
.collaboration-card h3,
.faq-card h3 {
  margin-top: 0.2rem;
}

.process-step:hover,
.value-card:hover,
.collaboration-card:hover,
.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* =========================
   RESULTS CTA
========================= */

#results {
  text-align: center;
}

#results p {
  margin-left: auto;
  margin-right: auto;
}

#results .service-cta-row {
  justify-content: center;
}

#contact-cta {
  text-align: center;
}

#contact-cta p {
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   CONTACT
========================= */

#contact strong {
  color: var(--text-main);
  font-weight: 500;
}

/* =========================
   SERVICE PAGES
========================= */

.service-main {
  min-height: 100vh;
}

.has-floating-cta .service-main {
  padding-bottom: 7rem;
}

.service-hero {
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(800px 420px at 10% -10%, rgba(125, 167, 135, 0.2), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.service-hero > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.service-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4ebd9;
  border: 1px solid rgba(125, 167, 135, 0.45);
  background: rgba(125, 167, 135, 0.16);
}

.service-main h1 {
  margin: 0 0 1rem;
}

.service-main p {
  max-width: 860px;
}

.breadcrumb {
  max-width: 980px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--text-main);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
  color: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.service-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.service-panel h3 {
  margin-top: 0;
}

.service-list {
  margin: 0 auto 1.1rem;
  max-width: 760px;
  padding-left: 1.2rem;
}

.service-list li {
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.service-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.floating-page-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  z-index: 1050;
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.floating-page-cta .btn {
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

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

  .floating-page-cta {
    width: calc(100% - 1.5rem);
    justify-content: center;
    bottom: 0.75rem;
  }

  .floating-page-cta .btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.65rem 0.7rem;
  }
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.04),
    transparent
  );
}

.footer-links {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================
   AI CHAT
========================= */

.chat-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1000;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 4.8rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #35583e);
  color: #0b0f14;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
}

.chat-toggle {
  border: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #35583e);
  color: #0b0f14;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.chat-toggle:hover {
  transform: translateY(-2px);
}

.chat-panel {
  width: min(92vw, 360px);
  margin-top: 0.8rem;
  background: linear-gradient(
    180deg,
    rgba(26, 34, 51, 0.96),
    rgba(11, 15, 20, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.chat-header p {
  margin: 0;
  color: var(--text-main);
  font-weight: 600;
}

.chat-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.3rem;
}

.chat-bubble {
  width: fit-content;
  max-width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #35583e);
  color: #0b0f14;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.chat-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.chat-form textarea {
  width: 100%;
  resize: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 14, 22, 0.7);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  font: inherit;
}

.chat-form textarea:focus {
  outline: 2px solid rgba(125, 167, 135, 0.45);
  outline-offset: 1px;
}

.chat-form button {
  justify-self: end;
  padding: 0.65rem 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .logo-container {
    margin-bottom: 0.75rem;
  }

  .logo {
    width: min(260px, 68vw);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .chat-widget {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: 4.9rem;
  }

  .chat-panel {
    width: 100%;
  }

  .chat-bubble {
    max-width: 100%;
  }
}

[data-animate] {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.74, 0.24, 1),
    transform 0.65s cubic-bezier(0.22, 0.74, 0.24, 1);
  transition-delay: var(--delay, 0ms);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes ambientDrift {
  from {
    transform: translate3d(-1.6%, -0.8%, 0) scale(1);
  }
  to {
    transform: translate3d(1.8%, 1.1%, 0) scale(1.03);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .hero-content {
    animation: none;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

 #contact.hidden {
    display: none;
  }
  

  .contact {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .contact h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1.5rem;
  }
  
  .contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact label {
    font-weight: 600;
  }
  
  .contact input,
  .contact textarea {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: rgba(9, 14, 22, 0.7);
    color: var(--text-main);
  }
  
  .contact button {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: #0b0f14;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact button:hover {
    background-color: #92be9c;
    color: #0b0f14;
  }
  
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 75, 66, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .popup-content {
    background: #f2f5f3;
    color: #1a1f1b;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  
  .popup button {
    margin-top: 1rem;
    background-color: #2f5a3a;
    color: #f2f5f3;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
  }
  
.popup.hidden {
    display: none;
  }

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(11, 15, 20, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.cookie-consent p {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
}

.cookie-consent a {
  color: var(--text-main);
}

.cookie-consent-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cookie-settings {
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 0.8rem;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.cookie-option strong {
  font-size: 0.95rem;
}

.cookie-option span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
