/* ══════════════════════════════════════════════════════════
   ELLINES GROUP — SHARED STYLESHEET v2.0
   Premium conglomerate redesign: dark luxury, warm gold
   Fonts: Inter (body) + Playfair Display (headings)
   Used by: index.html, companies.html, about.html,
            founder.html, contact.html
══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── CSS VARIABLES ── */
:root {
  --bg:       #07070f;
  --bg2:      #0c0c1a;
  --bg3:      #111124;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --text:     #edeae0;
  --muted:    rgba(237,234,224,0.52);
  --gold:     #c9a84c;
  --gold2:    #f5d06a;
  --gold-bg:  rgba(201,168,76,0.08);
  --r:        16px;
  --nav-h:    72px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── BASE BODY ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,.55); }

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── LAYOUT WRAP ── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes aurora {
  0%   { transform: translate(-30%,-30%) rotate(0deg) scale(1); }
  33%  { transform: translate(10%,-20%) rotate(120deg) scale(1.2); }
  66%  { transform: translate(-10%,20%) rotate(240deg) scale(.9); }
  100% { transform: translate(-30%,-30%) rotate(360deg) scale(1); }
}
@keyframes aurora2 {
  0%   { transform: translate(30%,30%) rotate(0deg) scale(1.1); }
  33%  { transform: translate(-15%,10%) rotate(-120deg) scale(.85); }
  66%  { transform: translate(15%,-20%) rotate(-240deg) scale(1.15); }
  100% { transform: translate(30%,30%) rotate(-360deg) scale(1.1); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .2; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes bounce-scroll {
  0%,100% { transform: translateY(0) translateX(-50%); opacity: .7; }
  50%      { transform: translateY(10px) translateX(-50%); opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%      { box-shadow: 0 0 28px 6px rgba(201,168,76,.18); }
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .45s; }

/* ══════════════════════════════════════════════════════════
   NAV — STICKY, BLURRED, PREMIUM
══════════════════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-h);
  background: rgba(7,7,15,0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
nav.scrolled {
  background: rgba(7,7,15,0.97);
  border-bottom-color: rgba(201,168,76,0.14);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 8px 0;
  gap: 16px;
}

/* Logo — always 52px on shared pages */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img {
  height: 52px;
  width: auto;
  transition: opacity .2s;
}
.nav-brand img:hover { opacity: .82; }

/* Centred nav links */
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 8px;
  transition: color .2s;
  display: block;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 15px; right: 15px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--gold2); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }

/* CTA button */
.nav-cta {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  padding: 9px 20px;
  border-radius: 9px;
  text-decoration: none;
  transition: opacity .18s, transform .18s, box-shadow .18s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}

/* Hamburger — mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 510;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(7,7,15,.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
  transition: color .18s;
}
.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active { color: var(--gold); }
.nav-mobile-overlay .mobile-cta {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  padding: 13px 36px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-overlay { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .7rem;
  color: var(--muted);
  padding: 16px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .18s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .4; }

/* ══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════════════ */
.page-hero {
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}
.page-hero-lbl {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 5px 16px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 30px;
  background: rgba(201,168,76,.06);
  animation: fadeIn .6s ease both;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 18px;
  animation: fadeUp .7s ease .1s both;
}
.page-hero h1 span { color: var(--gold); }
.page-hero > .wrap > p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.78;
  animation: fadeUp .7s ease .22s both;
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADING (.sh)
══════════════════════════════════════════════════════════ */
.sh { text-align: center; margin-bottom: 52px; }
.sh-lbl {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.sh h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
}
.sh h2 span { color: var(--gold); }
.sh p {
  font-size: .92rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 72px 0;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  padding: 13px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .22s cubic-bezier(.22,1,.36,1);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #07070f;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,.32);
  opacity: .92;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 9px 20px;
  font-size: .78rem;
}

/* ══════════════════════════════════════════════════════════
   AURORA BLOBS
══════════════════════════════════════════════════════════ */
.aurora-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.aurora-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.12), transparent 70%);
  top: -250px; right: -180px;
  animation: aurora 16s ease-in-out infinite;
}
.aurora-blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(ellipse at center, rgba(245,208,106,.08), transparent 70%);
  bottom: -160px; left: -120px;
  animation: aurora2 20s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   MARQUEE / TICKER
══════════════════════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: relative;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 130px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-item .mdot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CARD BASE PATTERN
══════════════════════════════════════════════════════════ */
.card-base {
  background: rgba(12,12,26,0.7);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform .28s cubic-bezier(.22,1,.36,1),
              border-color .28s ease,
              box-shadow .28s ease;
}
.card-base::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5), transparent);
}
.card-base:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(201,168,76,.1) inset;
}

/* ══════════════════════════════════════════════════════════
   SERVICE TAGS
══════════════════════════════════════════════════════════ */
.tag {
  display: inline-flex;
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  padding: 5px 13px;
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(201,168,76,.05);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(201,168,76,.28), transparent) 1;
  padding: 64px 0 44px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img {
  height: 56px; width: auto;
  margin-bottom: 16px; display: block;
}
.footer-brand p {
  font-size: .79rem;
  color: var(--muted);
  line-height: 1.76;
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: .79rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .72rem; color: var(--muted); }
.footer-bottom a { color: var(--gold); transition: opacity .18s; }
.footer-bottom a:hover { opacity: .8; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════════════════════════════════ */
.eg-wa {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 490;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  box-shadow: 0 10px 32px rgba(0,0,0,.42), 0 0 0 2px rgba(37,211,102,.2);
  transition: transform .22s, box-shadow .22s;
}
.eg-wa:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,.52), 0 0 0 3px rgba(37,211,102,.3);
}
.eg-wa-label {
  position: absolute;
  right: 64px;
  white-space: nowrap;
  background: rgba(7,7,15,.96);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: .63rem;
  font-family: var(--font-body);
  font-weight: 600;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.eg-wa:hover .eg-wa-label { opacity: 1; transform: translateX(0); }
@media (max-width: 480px) { .eg-wa { right: 14px; bottom: 14px; } }

/* ══════════════════════════════════════════════════════════
   FOOTER SHARED TEMPLATE (used in all pages)
   Rendered as HTML — styles only here
══════════════════════════════════════════════════════════ */

/* ── GA4 / Analytics script placeholder (styled if needed) ── */
