/* ===== Design tokens ===== */
:root {
  --color-bg: #e9ecee;
  --color-text: #11212d;
  --color-text-soft: #4a5c6a;
  --color-muted: #9ba8ab;
  --color-accent: #253745;
  --color-accent-dark: #06141b;

  --shadow-light: #ffffff;
  --shadow-dark: #c3c9cc;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1120px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Neumorphic surfaces =====
   Raised: two offset shadows (light top-left, dark bottom-right) on a
   surface that's the same color as its background, giving a soft
   extruded look. Pressed flips both shadows inward. */
.neu-raised {
  background: var(--color-bg);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.button {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
}

.button-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -6px -6px 16px var(--shadow-light);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.35), inset -2px -2px 6px rgba(255, 255, 255, 0.15);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  box-shadow: 0 4px 16px rgba(6, 20, 27, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo img {
  height: 40px;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--color-accent-dark);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: box-shadow 0.2s ease;
}

.lang-toggle:hover {
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.lang-option.active {
  color: var(--color-accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 30px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  height: 96px;
  margin: 56px auto 0;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-bottom: 2em;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--color-bg);
  box-shadow: 14px 14px 28px var(--shadow-dark), -14px -14px 28px var(--shadow-light);
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}

.hero-blob-1 {
  width: 220px;
  height: 220px;
  top: 20px;
  right: 8%;
  animation-delay: 0s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero .hero-blob-1 {
  width: 260px;
  height: 260px;
}

.hero-blob-mark {
  width: 58%;
  opacity: 0.45;
}

.hero-blob-2 {
  width: 120px;
  height: 120px;
  top: 260px;
  right: 26%;
  animation-delay: 1.2s;
}

.hero-blob-3 {
  width: 70px;
  height: 70px;
  top: 60px;
  right: 34%;
  animation-delay: 2.4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

/* ===== Services ===== */
.services {
  padding: 60px 0 100px;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

.card {
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 6vw, 64px);
  height: clamp(52px, 6vw, 64px);
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.card-icon svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.2rem;
}

.card p {
  color: var(--color-text-soft);
  margin-bottom: 0;
}

/* ===== Flip cards =====
   Generous min-height keeps text clear of the edges; overflow is
   hidden (not scrollable) so no scrollbar chrome ever appears. */
.flip-card {
  perspective: 1200px;
  cursor: pointer;
}

.flip-card:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 4px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 400px;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 40px 32px;
  overflow: hidden;
}

.flip-card-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-back-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.flip-card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flip-card-back li {
  color: var(--color-text-soft);
  padding-left: 20px;
  position: relative;
}

.flip-card-back li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ===== Process ===== */
.process {
  padding: 100px 0;
}

.process h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-accent-dark);
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  color: var(--color-text-soft);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Testimonial ===== */
.testimonial {
  padding: 0 0 100px;
}

.testimonial-panel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: var(--radius);
  text-align: center;
}

.photo-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
}

.testimonial-icon {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.testimonial-panel h3 {
  font-size: 1.3rem;
}

.testimonial-panel p {
  color: var(--color-text-soft);
  margin-bottom: 0;
}

/* ===== Inverted "spotlight" panels =====
   Used sparingly on a few standalone blocks (never on repeated items
   like the service cards) to add contrast without implying ranking. */
.inverted {
  background: var(--color-accent-dark);
  box-shadow: 10px 10px 24px rgba(6, 20, 27, 0.35), -6px -6px 16px rgba(255, 255, 255, 0.3);
}

/* Flat color as a gradient (not background-color) so it layers as its
   own tint on top of the photo rather than sitting unseen behind it. */
.testimonial-panel.inverted {
  background: linear-gradient(rgba(6, 20, 27, 0.7), rgba(6, 20, 27, 0.7)), url("../assets/images/testimonial-bg.jpg") center/cover no-repeat;
}

.testimonial-panel.inverted .testimonial-icon {
  color: rgba(255, 255, 255, 0.3);
}

.testimonial-panel.inverted h3 {
  color: #fff;
}

.testimonial-panel.inverted p {
  color: #a9b4bc;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: center;
}

.about-mark {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 24px;
  border-radius: 50%;
  object-fit: contain;
}

.about h2 {
  font-size: 2rem;
}

.about-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: none;
  margin-top: 1em;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-link:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -6px -6px 16px var(--shadow-light);
}

.about-link:active {
  transform: translateY(0);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

/* ===== About page (over.html) ===== */
.page-hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero p {
  color: var(--color-text-soft);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.circle-section {
  padding: 64px 0;
}

.circle-inner {
  max-width: 680px;
}

.circle-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.circle-section h2 {
  font-size: 1.8rem;
}

.circle-section p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

.circle-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: none;
  margin-top: 1em;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.circle-link:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -6px -6px 16px var(--shadow-light);
}

.circle-link:active {
  transform: translateY(0);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.who {
  padding: 40px 0 100px;
}

.who-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 40px;
  border-radius: var(--radius);
}

.who-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-accent-dark);
}

.who-panel h2 {
  font-size: 1.6rem;
}

.who-panel p {
  color: var(--color-text-soft);
  margin-bottom: 0;
}

.who-panel .social-link {
  margin-top: 1em;
}

.who-panel.inverted .circle-label {
  color: #8fa0aa;
}

.who-panel.inverted .who-avatar,
.who-panel.inverted .social-link {
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), -3px -3px 13px rgba(89, 110, 128, 0.6);
}

.who-panel.inverted h2 {
  color: #fff;
}

.who-panel.inverted p {
  color: #c3ccd1;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  text-align: center;
}

.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: var(--radius);
}

.contact h2 {
  font-size: 2rem;
}

.topics-label {
  display: block;
  margin-top: 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.topic-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.topic-chip {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
  background: var(--color-bg);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.topic-chip:hover {
  color: var(--color-accent-dark);
}

.topic-chip.active {
  color: var(--color-accent-dark);
  font-weight: 600;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.contact-form {
  max-width: 480px;
  margin: 28px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 180px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-form .button {
  align-self: flex-start;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-status.success {
  color: #2f7a4d;
}

.form-status.error {
  color: #b3423a;
}

.contact-alt {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--shadow-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.contact-details {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-phone {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: box-shadow 0.2s ease;
}

.contact-phone:hover {
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-accent-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -6px -6px 16px var(--shadow-light);
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 32px;
}

.footer-text {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--shadow-dark);
  font-size: 0.78rem;
  color: var(--color-muted);
}

.footer-legal a {
  color: var(--color-muted);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--color-accent-dark);
}

/* ===== Legal pages ===== */
.legal {
  padding: 20px 0 100px;
}

.legal-inner {
  max-width: 700px;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--color-text-soft);
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}

.legal p,
.legal li {
  color: var(--color-text-soft);
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--color-accent-dark);
}

.legal code {
  background: var(--shadow-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 76px 0 0 0;
    height: calc(100vh - 76px);
    background: var(--color-bg);
    padding: 32px 24px;
    gap: 24px;
    font-size: 1.2rem;
    z-index: 40;
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-mark {
    width: 100px;
    margin: 0 auto;
  }

  .hero-blob-1 {
    width: 130px;
    height: 130px;
    top: 10px;
    right: -30px;
  }

  .hero-blob-2,
  .hero-blob-3 {
    display: none;
  }

  .who-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .who-avatar {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none;
  }
}
