/* ===========================================================
   Forgina Teknoloji — minimal Wix-style clone
   Poppins, white / near-black / grey, single teal-blue accent
   =========================================================== */

:root {
  --bg: #ffffff;
  --text: #1e1e1e;
  --muted: #8f8f8f;
  --secondary: #565656;
  --body: #696666;
  --alt: #f5f5f5;
  --line: #dbdbdb;
  --accent: #1e88b5;
  --accent-dark: #166a8f;
  --container: 1140px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 200;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===========================================================
   1. HEADER
   =========================================================== */
/* Consistent ~96px bar, transparent over the hero with white content,
   turning solid white on scroll. Height does NOT change on scroll.
   Children read --hdr-fg so they flip from white -> dark together
   when .scrolled is added. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  --hdr-fg: #ffffff;
  --hdr-fg-muted: rgba(255, 255, 255, 0.82);
  --hdr-border: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  --hdr-fg: var(--text);
  --hdr-fg-muted: var(--secondary);
  --hdr-border: var(--line);
}

.header-inner {
  /* wider so logo sits flush-left and nav+phone group on the right,
     matching the reference's edge-to-edge bar */
  max-width: 1680px;
  margin: 0 auto;
  height: 96px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--hdr-fg);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.brand span {
  font-weight: 200;
  color: var(--hdr-fg-muted);
  transition: color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  /* push the whole menu to the right edge, logo alone on the left */
  margin-left: auto;
}

.nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.87rem;
  color: var(--hdr-fg);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

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

/* Language switch (now lives in the footer). A refined segmented control:
   a globe glyph, a frosted pill track, and a sliding accent indicator that
   glides under the active language. Uses local --ls-* vars so it can adapt
   to whatever background it sits on. */
.lang-switch {
  --ls-fg: rgba(255, 255, 255, 0.65);
  --ls-fg-active: #ffffff;
  --ls-track: rgba(255, 255, 255, 0.08);
  --ls-border: rgba(255, 255, 255, 0.14);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  padding-left: 12px;
  background: var(--ls-track);
  border: 1px solid var(--ls-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lang-globe {
  color: var(--ls-fg);
  margin-right: 4px;
  flex-shrink: 0;
}

/* The sliding pill that sits behind the active button. Width/offset are
   driven by JS-set custom props so it always tracks the active language. */
.lang-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--ls-ind-x, 0px);
  width: var(--ls-ind-w, 0px);
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(30, 136, 181, 0.35);
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.lang-btn {
  position: relative;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  background: transparent;
  color: var(--ls-fg);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.lang-btn:hover {
  color: var(--ls-fg-active);
}

.lang-btn.active {
  color: var(--ls-fg-active);
}

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hdr-fg);
  transition: background 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
}

/* ===========================================================
   2. HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;   /* content sits at the bottom */
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  /* generous bottom padding so the text block sits low-left like the reference */
  padding: 120px 48px 90px;
  /* image URL is set inline on .hero; the ::after layer inherits it */
  background-repeat: no-repeat;
}

/* Background photo on a tall oversized layer. It extends well past the
   top & bottom of the hero so the photo can drift a large distance
   (strong "fixed background" parallax) without ever exposing an edge.
   The reference pins the photo while the hero scrolls away over it. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -60vh;
  bottom: -60vh;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}

/* subtle overlay — lighter overall, a touch darker toward the
   bottom-left where the headline sits, so the photo stays visible */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.18) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;        /* align with the header's content edge */
  color: #ffffff;
}

.hero-inner h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.2;
  margin: 0;
  max-width: 620px;      /* wraps to ~3 lines like the reference */
}

.hero-inner .btn {
  margin-top: 32px;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  padding: 15px 38px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ===========================================================
   3. INTRO
   =========================================================== */
.intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 28px 40px;
}

.intro h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  margin-bottom: 22px;
}

.intro p {
  color: var(--body);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ===========================================================
   4. FEATURES
   =========================================================== */
.features {
  padding: 70px 0 100px;
}

.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-box {
  text-align: center;
  padding: 0 26px;
  border-right: 1px solid var(--line);
}

.feature-box:last-child {
  border-right: none;
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.feature-box p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* Small uppercase label above section headings (services, testimonials, contact) */
.section-eyebrow {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services {
  background: #ffffff;
  padding: 100px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
}

.section-head p {
  color: var(--body);
  font-size: 1.05rem;
  margin-top: 16px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  text-align: center;
}

.service-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact {
  background: #ffffff;
  padding: 64px 0;
}

.contact .section-head {
  margin-bottom: 32px;
}

/* Email contact — a single, prominent address that opens the visitor's
   mail client. Replaces the old contact form. */
.contact-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-email-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact-email-link {
  font-size: clamp(0.845rem, 1.95vw, 1.17rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.contact-email-link:hover {
  color: var(--accent-dark);
}

/* ===========================================================
   9. FOOTER
   =========================================================== */
.site-footer {
  background: var(--text);
  color: #ffffff;
  padding: 36px 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .features-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }

  .feature-box:nth-child(2) {
    border-right: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
  }

  .nav.open a {
    color: var(--text); /* dropdown is always white bg, keep links dark */
    width: 100%;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
  }

  .nav.open a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .features-inner {
    grid-template-columns: 1fr;
  }

  .feature-box {
    border-right: none;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ===========================================================
   SCROLL REVEAL — fade + float up as sections enter the viewport
   (matches the reference's Wix FadeIn / FloatIn reveal motion)
   =========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
