/* ============================================================
   ALPAGU SAVUNMA — style.css
   Vanilla CSS · No frameworks
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --dark:        #1A0A0A;
  --primary:     #8B1C1C;
  --primary-mid: #A83030;
  --accent:      #C0453D;
  --off-white:   #F2EFEF;
  --white:       #FFFFFF;
  --black:       #0D0D0D;
  --gray-text:   #575252;
  --gold:        #B89A4A;

  --nav-height: 72px;
  --container:  1200px;
  --radius:     12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  opacity: 0;
  animation: bodyFadeIn 0.4s ease forwards;
}

@keyframes bodyFadeIn {
  to { opacity: 1; }
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  cursor: pointer;
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,92,42,0.25);
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Section Labels ───────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-label--right {
  justify-content: flex-end;
}
.section-label--center {
  justify-content: center;
}
.label-line {
  opacity: 0.6;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  transform: translateY(-100%);
  animation: navSlideDown 0.6s ease 0.1s forwards;
}

@keyframes navSlideDown {
  to { transform: translateY(0); }
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-height);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color var(--transition);
}

#navbar.scrolled .logo-name { color: var(--primary); }
#navbar.scrolled .logo-sub  { color: var(--gray-text); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.88);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-mid);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

#navbar.scrolled .nav-links a { color: var(--gray-text); }
#navbar.scrolled .nav-links a:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background var(--transition);
}

#navbar.scrolled .hamburger span { background: var(--primary); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 8, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px 100px;
  width: 100%;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 6vw, 72px);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: 28px;
}

/* Word reveal animation */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(-30px);
  animation: wordReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Hero marquee strip */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background: var(--primary);
  z-index: 3;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 24px;
}

.marquee-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about {
  background: var(--off-white);
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left h2 {
  font-size: clamp(36px, 4vw, 48px);
  color: var(--black);
  margin-top: 4px;
}

.about-right p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.about-right .btn {
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   TEXT MARQUEE BAND
═══════════════════════════════════════════════════════════ */
.text-marquee-band {
  background: var(--accent);
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.text-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee-text 20s linear infinite;
}

.text-marquee-track span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 0 32px;
}

.tm-dot {
  font-size: 16px !important;
  padding: 0 16px !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

@keyframes marquee-text {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   PARTNERS
═══════════════════════════════════════════════════════════ */
.partners {
  background: var(--off-white);
  padding: 120px 0;
}

.partners-header {
  text-align: right;
  margin-bottom: 64px;
}

.partners-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--black);
}

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

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.partner-logo-wrap {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.partner-logo-wrap svg {
  width: 100%;
  height: 60px;
}

.partner-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.partner-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════════ */
.why-us {
  background: var(--off-white);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: 120px 0;
}

.why-us-header {
  text-align: center;
  margin-bottom: 64px;
}

.why-us-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--black);
  margin-bottom: 20px;
}

.why-subtext {
  font-size: 16px;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.why-card {
  padding: 40px 40px 40px;
  position: relative;
}

/* Vertical separators between cards */
.why-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 22px;
  color: var(--black);
  margin-bottom: 14px;
}

.why-card p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   CTA
═══════════════════════════════════════════════════════════ */
.cta {
  background: var(--primary);
  padding: 100px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-heading {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  max-width: 560px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 64px;
  align-items: start;
}

/* Footer logo (white version) */
.nav-logo--white .logo-name { color: var(--white); }
.nav-logo--white .logo-sub  { color: rgba(255,255,255,0.55); }

.footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--white);
  margin-top: 20px;
  margin-bottom: 28px;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.social-icon:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.footer-contact h3 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 40px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL SCROLL ANIMATION SYSTEM
═══════════════════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="from-left"]  { transform: translateX(-60px); opacity: 0; }
[data-animate="from-right"] { transform: translateX(60px);  opacity: 0; }
[data-animate="scale"]      { transform: scale(0.92);       opacity: 0; }

[data-animate="from-left"].animate-in  { transform: translateX(0); opacity: 1; }
[data-animate="from-right"].animate-in { transform: translateX(0); opacity: 1; }
[data-animate="scale"].animate-in      { transform: scale(1);      opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-card:not(:last-child)::after {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 24px 0 32px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: var(--primary) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links a::after { display: none; }

  /* Container padding */
  .container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }

  /* Hero */
  .hero-content { padding: 0 20px 90px; }
  .hero-title { font-size: 38px; letter-spacing: 1.5px; }

  /* Sections */
  .about { padding: 80px 0; }
  .partners { padding: 80px 0; }
  .why-us { padding: 80px 0; }
  .cta { padding: 72px 0; }

  .partners-grid { grid-template-columns: 1fr; gap: 16px; }

  .partners-header { text-align: left; }
  .section-label--right { justify-content: flex-start; }

  .cta-inner { gap: 28px; }

  .why-card { padding: 32px 24px; }

  /* Footer */
  .footer { padding: 60px 0 0; }
  .footer-bottom { padding: 20px 20px; }

  /* Background attachment: fixed doesn't work well on iOS */
  .hero { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .why-us-header h2 { font-size: 34px; }
  .cta-heading { font-size: 28px; }
}


/* ============================================================
   LOGO IMAGE
============================================================ */
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img--footer {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

/* ============================================================
   NAV ACTIONS + LANG TOGGLE
============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.65);
  transition: border-color var(--transition), color var(--transition),
              background var(--transition);
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}

#navbar.scrolled .lang-toggle {
  border-color: rgba(0,0,0,0.18);
  color: var(--gray-text);
}

#navbar.scrolled .lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-opt {
  transition: color var(--transition), font-weight var(--transition);
}

.lang-opt--active {
  color: var(--white);
  font-weight: 700;
}

#navbar.scrolled .lang-opt--active {
  color: var(--primary);
}

.lang-sep {
  opacity: 0.35;
  font-size: 11px;
}
