/* ===== Ludfor — Brand Styles (logo yellow + greys) ===== */
:root{
  /* Using the current palette in your project */
  --primary:#fac000;     /* brand yellow-orange */
  --primary-2:#fac000;   /* companion */
  --primary-rgb:225,178,60;

  --ink:#111111;
  --bg:#ECEFF3;

  --site-bg-1: hsl(0 0% 95%);
  --site-bg-2: hsl(0 0% 90%);

  --panel:#E7EAEE;
  --panel-alt:#DDE2E8;
  --muted:#E5E7EB;
}

*{ box-sizing:border-box }
html{ scroll-behavior:smooth }
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background: var(--site-bg-1);
}

/* ───────── NAV (sticky) ───────── */
.nav{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.95);
  backdrop-filter:saturate(120%) blur(6px);
  box-shadow:0 2px 12px rgba(0,0,0,.06);
}
.nav-inner{ max-width:1200px; margin:auto; padding:12px 16px; display:flex; align-items:center; gap:12px; position: relative; }
.logo{ display:flex; align-items:center; gap:8px; flex:1 }
.logo-mark{ width:40px; height:40px; border-radius:6px; display:grid; place-items:center; overflow:hidden }
.logo-mark img{ width:100%; height:100%; object-fit:cover; display:block }
.logo-text{ font-weight:900; letter-spacing:.5px; font-size:20px }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  margin-left: 8px;
}

/* Language toggle (single) */
.lang-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width:40px;
  height:36px;
  padding:6px 10px;
  font-weight:900;
  border-radius:999px;
  border:1px solid var(--muted);
  background:#fff;
  cursor:pointer;
  font-size:13px;
}

.lang-toggle[aria-pressed="true"]{
  border-color:rgba(var(--primary-rgb), .5);
  background:linear-gradient(135deg, rgba(var(--primary-rgb), .14), rgba(var(--primary-rgb), .14));
}

/* Login button (shared style) */
.login-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:6px 10px;
  height:36px;
  font-weight:800;
  border-radius:999px;
  border:1px solid var(--muted);
  background:#fff;
  color:var(--ink);
  text-decoration:none;
  cursor:pointer;
  font-size:13px;
}

.login-btn:hover{
  border-color:rgba(var(--primary-rgb), .25);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* Always-visible thin yellow line at bottom of header */
.nav::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:2px; background:var(--primary);
  opacity:1; pointer-events:none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links{ display:flex; align-items:center; gap:4px; flex-wrap:wrap }
.nav-btn{
  padding:8px 12px; border-radius:8px; border:1px solid transparent;
  cursor:pointer; font-weight:600; background:transparent; position:relative;
  font-size: 14px;
}
.nav-btn:hover{
  background:rgba(var(--primary-rgb), .08);
  color:var(--primary);
  border-color:rgba(var(--primary-rgb), .25);
}

/* Underline for each nav button — JS sets --underline-opacity to 1 when its section is ≥70% visible */
.nav-btn::after{
  content:""; position:absolute; left:12%; right:12%; bottom:-6px;
  height:2px; background:var(--primary); border-radius:3px;
  opacity:var(--underline-opacity, 0);
  transition:opacity .18s linear;
}

.lang-switch{ display:flex; gap:4px }
.chip{ padding:6px 8px; font-weight:800; border-radius:999px; border:1px solid var(--muted); background:#fff; cursor:pointer; font-size: 12px; }
.chip[aria-pressed="true"]{
  border-color:rgba(var(--primary-rgb), .5);
  background:linear-gradient(135deg, rgba(var(--primary-rgb), .14), rgba(var(--primary-rgb), .14));
}

/* Mobile styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Fade-in menu for mobile: occupies 45% width on the right. Hidden by default using opacity/visibility/pointer-events. */
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: 45%; /* occupies 45% of the viewport width per request */
    height: calc(100vh - 56px);
    background: rgba(255,255,255,0.7); /* 30% transparent (opacity 0.7) */
    backdrop-filter: saturate(120%) blur(12px); /* stronger blur */
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    display: flex;
    gap: 8px;
    /* Fade-in/out: start hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s cubic-bezier(.2,.9,.2,1), visibility .28s ease;
    border-left: 1px solid rgba(0,0,0,.04);
    z-index: 80;
  }
  
  /* When active, make menu visible by fading it in (no sliding) */
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  
  .nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .lang-switch {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--muted);
  }
  
  .nav-inner {
    padding: 8px 16px;
  }
  
  .logo-mark {
    width: 35px;
    height: 35px;
  }
  
  .logo-text {
    font-size: 18px;
  }
}

/* ───────── HERO ───────── */
.hero{ max-width:1200px; margin:auto; padding:40px 16px; position:relative }
.hero-wrap{ display:grid; grid-template-columns:1fr; gap:24px }
@media (min-width: 769px){ .hero-wrap{ grid-template-columns:1.2fr 1fr } }
h1{ font-size:clamp(24px, 5vw, 36px); line-height:1.1; margin:0 0 12px; font-weight:850; color:var(--primary) }
.subtitle{ font-size:16px; opacity:.95; max-width:65ch; line-height: 1.4; }

.illustration{ background:transparent }
.illustration img{ width:100%; height:auto; border-radius:12px; display:block;
  transition: box-shadow .25s ease, transform .25s ease, filter .25s ease;
}
/* Yellow glow on hover (hero image) */
.illustration img:hover{
  box-shadow:0 0 0 2px rgba(var(--primary-rgb), .55) inset,
             0 0 28px rgba(var(--primary-rgb), .6);
  transform: translateY(-2px);
  filter: saturate(1.03);
}

/* ───────── Sections ───────── */
header{ width:100%; background:var(--site-bg-1); padding:40px 0; scroll-margin-top:80px }
section{ width:100%; padding:40px 0; scroll-margin-top:80px; background:var(--site-bg-1) }
section:nth-of-type(even){ background:var(--site-bg-2) }
.container{ max-width:1200px; margin:auto; padding:0 16px }
.section-title{ font-size:clamp(20px, 4vw, 28px); font-weight:850; margin:0 0 16px; color:var(--primary) }

section p, section .lead, .why-cards .card p, .card p, .about p, .subtitle, .contact form label, .muted{
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.lead{ font-size: clamp(17px, 2.2vw, 19px); line-height:1.6; max-width:75ch }

/* About */
.about{ display:grid; grid-template-columns:1fr; gap:20px }
.stats{ display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; justify-content: center; }
/*
  The .stat cards were increased to be approximately 2x larger:
  - doubled padding
  - doubled min-width & min-height
  - doubled numeric font-size and label font-size
  This makes the '120+' and '18' stat cards visually twice as big.
*/
/* REDUCED SIZE BY ~35% (from previous large sizes) */
.stat{ min-width:180px; padding:16px 18px; border-radius:10px; background:#fff; border:1px solid var(--muted);
  display:grid; gap:8px; min-height:104px }
.stat .num{ font-weight:800; color:var(--primary); line-height:1.2 }
.stat.number{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:156px; min-height:92px }
.stat.number .num{ font-size:32px; font-weight:900; color:var(--primary) }
.stat .label{ opacity:.9; font-weight:700; font-size: 18px; text-align: center; }

/* Services */
.services{ display:grid; gap:16px }
@media (min-width:769px){ .services{ grid-template-columns:repeat(3,1fr) } }
@media (max-width:768px){ .services{ grid-template-columns:1fr } }
.card{
  padding:18px; border-radius:14px; background:#fff; border:1px solid var(--muted);
  box-shadow:0 4px 8px rgba(0,0,0,.04); display:grid; gap:6px; min-height:140px;
}
.card h3{ margin:0 0 6px; color:var(--primary); font-size: 18px; }
.card p{ margin:0; font-size: 15px; }

/* Why */
.why{ background:var(--site-bg-1) }
.why-cards{ display:grid; gap:16px }
@media (min-width:769px){ .why-cards{ grid-template-columns:repeat(2,1fr) } }
@media (max-width:768px){ .why-cards{ grid-template-columns:1fr } }
.why-cards .card h3{ margin:0 0 8px; color:var(--primary); font-weight:900; font-size:clamp(16px, 2.2vw, 20px); line-height:1.05 }
.why-cards .card p{ margin:0; opacity:.95; font-weight:700; font-size: 15px; }

/* Contact */
.contact form{ max-width:700px }
.row{ display:grid; grid-template-columns:1fr; gap:12px }
@media (min-width:481px){ .row{ grid-template-columns:1fr 1fr } }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px }
.field input, .field textarea{ padding:12px; border-radius:8px; border:1px solid var(--muted); background:#fff; font-size: 16px; }
.right{ display:flex; justify-content:flex-end }
.muted{ color:#6b7280; font-size: 14px; }

/* Unified CTA style (Send message matches Contact FAB) */
.btn,
.fab{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 16px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#111; font-weight:800; border:none; cursor:pointer;
  box-shadow:0 8px 18px rgba(var(--primary-rgb), .35);
  transition: transform .18s ease, box-shadow .18s ease, opacity .22s ease;
  font-size: 16px;
}
.btn:hover, .fab:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 22px rgba(var(--primary-rgb), .4), 0 0 16px rgba(var(--primary-rgb), .45);
}

/* Floating variant */
.fab{ position:fixed; right:16px; bottom:16px; z-index:70 }
.fab.hidden{ opacity:0; transform: translateY(8px) scale(.98); pointer-events:none }

/* ───────── Gallery ───────── */
.gallery .gallery-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap }
.grid{ display:grid; gap:6px; margin-top:12px }
@media (min-width:769px){ .grid{ grid-template-columns:repeat(4,1fr) } }
@media (max-width:768px){ .grid{ grid-template-columns:repeat(2,1fr) } }
.grid img{
  width:100%; height:150px; object-fit:cover; border-radius:10px; border:1px solid var(--muted); cursor:pointer;
  transition:transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, filter .18s ease;
}
/* Yellow glow on hover (gallery images) */
.grid img:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 0 0 2px rgba(var(--primary-rgb), .5) inset,
             0 0 22px rgba(var(--primary-rgb), .6),
             0 8px 20px rgba(0,0,0,.08);
  filter:saturate(1.05);
}

/* Lightbox */
.lightbox{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.85); z-index:100 }
.lightbox.open{ display:flex }
.lightbox img{ max-width:95vw; max-height:70vh; border-radius:6px; border:1px solid rgba(255,255,255,.2) }
.lb-btn{ position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); color:#fff; border:none; font-size:32px; padding:6px 10px; border-radius:8px; cursor:pointer }
.lb-prev{ left:16px } .lb-next{ right:16px }
.lb-close{ top:16px; right:16px; transform:none; font-size:20px; padding:6px 8px }
.lb-counter{ position:absolute; bottom:16px; color:#fff; font-weight:700; background:rgba(0,0,0,.3); padding:6px 10px; border-radius:8px; font-size: 14px; }
