/* =========================================================
   WasserGroupe of Companies — Upgraded Responsive Stylesheet
   Light mode default • Dark mode via [data-theme="dark"]
   ========================================================= */

:root {
  --blue-900: #0b2a4a;
  --blue-800: #103a66;
  --blue-700: #14508f;
  --blue-600: #1b6ec2;
  --blue-500: #2196f3;
  --accent:   #d21f2b;          /* WasserGroupe red from the logo */
  --gold:     #c9a227;

  --bg:        #ffffff;
  --bg-soft:   #f4f7fb;
  --bg-card:   #ffffff;
  --text:      #22303e;
  --text-soft: #5a6b7d;
  --heading:   #0b2a4a;
  --border:    #e3e9f0;
  --shadow:    0 10px 30px rgba(11, 42, 74, .10);
  --nav-bg:    rgba(255, 255, 255, .92);
  --hero-overlay: linear-gradient(rgba(8, 30, 55, .74), rgba(8, 30, 55, .78));
}

[data-theme="dark"] {
  --bg:        #0d1622;
  --bg-soft:   #111e2e;
  --bg-card:   #16253a;
  --text:      #d5dfea;
  --text-soft: #93a5b8;
  --heading:   #eaf2fa;
  --border:    #223850;
  --shadow:    0 10px 30px rgba(0, 0, 0, .45);
  --nav-bg:    rgba(13, 22, 34, .92);
  --hero-overlay: linear-gradient(rgba(5, 15, 28, .82), rgba(5, 15, 28, .86));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Marcellus', Georgia, serif; color: var(--heading); line-height: 1.25; }
a { color: var(--blue-600); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* =================== PRELOADER =================== */
#wg-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #12365e 0%, #081d34 65%, #050f1c 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
#wg-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#wg-loader-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.wg-loader-inner { position: relative; text-align: center; z-index: 2; padding: 0 1rem; }
.wg-loader-logo-wrap { position: relative; width: 148px; height: 148px; margin: 0 auto 1.2rem; }
.wg-loader-logo {
  width: 128px; height: 128px; object-fit: contain; border-radius: 50%;
  background: #fff; padding: 10px;
  position: absolute; inset: 0; margin: auto;
  animation: wg-glow 2.4s ease-in-out infinite;
}
.wg-loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: #6fc3ff; border-right-color: rgba(111,195,255,.25);
  animation: wg-spin 1.6s linear infinite;
}
.wg-loader-ring.ring-2 { inset: -12px; border-top-color: rgba(255,255,255,.55); border-right-color: transparent; animation-duration: 2.6s; animation-direction: reverse; }
.wg-loader-text { font-family: 'Marcellus', serif; color: #fff; font-size: 1.35rem; letter-spacing: .06em; }
.wg-loader-sub { color: #8fb8dd; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .3rem; }
.wg-loader-bar { width: 190px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); margin: 1.1rem auto 0; overflow: hidden; }
.wg-loader-bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #6fc3ff, #fff); animation: wg-bar 1.4s ease-in-out infinite; }
@keyframes wg-spin { to { transform: rotate(360deg); } }
@keyframes wg-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(111,195,255,.45), 0 0 46px rgba(33,150,243,.25); transform: scale(1); }
  50%      { box-shadow: 0 0 34px rgba(111,195,255,.85), 0 0 80px rgba(33,150,243,.45); transform: scale(1.035); }
}
@keyframes wg-bar { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* =================== TOP BAR =================== */
.topbar { background: var(--blue-900); color: #cfe2f5; font-size: .85rem; }
[data-theme="dark"] .topbar { background: #060e19; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #cfe2f5; margin-right: 1.1rem; }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: .35rem; color: #6fc3ff; }
.topbar-social a { margin: 0 0 0 .8rem; font-size: .95rem; }

/* =================== HEADER =================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: #fff; padding: 3px; border: 1px solid var(--border); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Marcellus', serif; font-size: 1.28rem; color: var(--heading); }
.brand-tag { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .2rem; }
.nav-link {
  display: block; padding: .9rem .85rem; color: var(--text); font-weight: 600; font-size: .95rem;
  border-radius: 8px; position: relative;
}
.nav-link:hover { color: var(--blue-600); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .45rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-link i { font-size: .7rem; margin-left: .25rem; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .28s ease; flex-direction: column; display: flex;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: .6rem .85rem; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .92rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--heading); cursor: pointer; font-size: 1rem;
  display: grid; place-items: center; transition: all .3s;
}
.theme-toggle:hover { border-color: var(--blue-600); color: var(--blue-600); transform: rotate(20deg); }
[data-theme="light"] .icon-light, [data-theme="dark"] .icon-dark { display: none; }

.nav-toggle { display: none; width: 44px; height: 42px; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; padding: 10px 9px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--heading); margin: 4.5px 0; border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =================== HERO =================== */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(5rem, 12vw, 9.5rem) 0;
  background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero > .container { position: relative; z-index: 1; }
.hero-kicker { letter-spacing: .3em; text-transform: uppercase; font-size: .85rem; color: #8fd0ff; margin-bottom: 1rem; font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.4vw, 3.6rem); margin-bottom: .8rem; }
.hero .hero-sub { font-size: clamp(1rem, 2.2vw, 1.3rem); color: #dceafc; max-width: 760px; margin: 0 auto 1rem; }
.hero .hero-tag { font-family: 'Marcellus', serif; color: var(--gold); font-size: clamp(1.05rem, 2.4vw, 1.45rem); letter-spacing: .08em; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.typed-cursor-blink { display: inline-block; width: 2px; background: #8fd0ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.breadcrumb { color: #9fc3e8; font-size: .9rem; margin-top: .6rem; }
.breadcrumb a { color: #cfe6ff; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.9rem; border-radius: 50px; font-weight: 700; font-size: .95rem;
  transition: all .3s ease; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(210,31,43,.35); }
.btn-primary:hover { background: #b0141f; color: #fff; transform: translateY(-3px); }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-900); }
.btn-blue { background: var(--blue-600); color: #fff; box-shadow: 0 8px 22px rgba(27,110,194,.35); }
.btn-blue:hover { background: var(--blue-700); color: #fff; transform: translateY(-3px); }
.btn-ghost { border-color: var(--blue-600); color: var(--blue-600); }
.btn-ghost:hover { background: var(--blue-600); color: #fff; }

/* =================== SECTIONS =================== */
.section { padding: clamp(3.4rem, 7vw, 5.5rem) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.8rem; }
.section-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; font-weight: 700; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .5rem 0 .8rem; }
.section-head p { color: var(--text-soft); }

/* =================== CARDS / GRIDS =================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem 1.7rem; transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-icon {
  width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
}
.card.red .card-icon { background: linear-gradient(135deg, #e2434e, #8f1018); }
.card.gold .card-icon { background: linear-gradient(135deg, #dcbf58, #937413); }
.card h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.card .sub { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: .7rem; }
.card p { color: var(--text-soft); font-size: .97rem; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; font-size: .92rem; }
.card .more i { transition: transform .3s; }
.card .more:hover i { transform: translateX(5px); }

/* company card top image */
.card .card-img { border-radius: 12px; overflow: hidden; margin: -0.6rem -0.4rem 1.2rem; aspect-ratio: 16/10; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }

/* =================== ABOUT PREVIEW =================== */
.about-flex { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: 18px; box-shadow: var(--shadow); }
.about-img .badge-exp {
  position: absolute; bottom: -18px; right: -14px; background: var(--accent); color: #fff;
  padding: 1rem 1.4rem; border-radius: 14px; text-align: center; box-shadow: var(--shadow);
}
.badge-exp strong { display: block; font-size: 1.7rem; font-family: 'Marcellus', serif; }
.badge-exp span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.about-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 1rem; }
.about-text p { color: var(--text-soft); margin-bottom: 1rem; }
.check-list { list-style: none; margin: 1.2rem 0 1.6rem; }
.check-list li { padding: .32rem 0; color: var(--text); font-weight: 600; }
.check-list i { color: var(--accent); margin-right: .6rem; }

/* =================== STATS =================== */
.stats { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }
.stats .grid-4 { text-align: center; }
.stat h3 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.stat p { color: #b9d4ef; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
.stat i { font-size: 1.6rem; color: var(--gold); margin-bottom: .6rem; }

/* =================== GALLERY =================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; border: 1px solid var(--border); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(6,20,38,.85));
  color: #fff; font-size: .85rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all .35s;
}
.gallery-item:hover .cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(4,12,22,.93); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background .3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* =================== ABOUT PAGE =================== */
.prose { max-width: 880px; margin-inline: auto; }
.prose p { margin-bottom: 1.15rem; color: var(--text); }
.prose .lead { font-size: 1.15rem; color: var(--heading); font-weight: 600; }
.prose .highlight { color: var(--accent); font-weight: 700; }
.founder-box {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.2rem; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow);
}
.founder-box img { border-radius: 14px; width: 100%; }
.founder-box .name { font-family: 'Marcellus', serif; font-size: 1.5rem; color: var(--heading); }
.founder-box .role { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin-bottom: 1rem; }
.info-callout {
  border-left: 4px solid var(--accent); background: var(--bg-soft);
  padding: 1.2rem 1.5rem; border-radius: 0 12px 12px 0; margin: 1.6rem 0; color: var(--text);
}

/* =================== TIMELINE =================== */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: .5rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 2rem 1.6rem; }
.tl-item::before {
  content: ""; position: absolute; left: -.9rem; top: .35rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent);
}
.tl-item h4 { font-size: 1.1rem; }
.tl-item .tl-date { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.tl-item p { color: var(--text-soft); font-size: .97rem; }

/* =================== CONTACT =================== */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: start; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 2.2rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--heading); }
.form-group label span { color: var(--accent); }
.form-control {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--bg-soft); color: var(--text); font: inherit; transition: border .3s, box-shadow .3s;
}
.form-control:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(33,150,243,.15); }
textarea.form-control { min-height: 150px; resize: vertical; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 600; }
.alert-success { background: #e7f6ec; color: #176a37; border: 1px solid #b7e3c6; }
.alert-error { background: #fdecec; color: #9c1c24; border: 1px solid #f3c1c4; }
[data-theme="dark"] .alert-success { background: #10301c; color: #7fd8a0; border-color: #1d5432; }
[data-theme="dark"] .alert-error { background: #38151a; color: #f1a0a6; border-color: #6b232b; }

.contact-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; margin-bottom: 1.4rem; }
.contact-info-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.ci-row { display: flex; gap: 1rem; align-items: flex-start; padding: .55rem 0; }
.ci-row i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft); color: var(--accent); font-size: 1rem; }
.ci-row strong { display: block; color: var(--heading); font-size: .92rem; }
.ci-row span, .ci-row a { color: var(--text-soft); font-size: .95rem; word-break: break-word; }
.map-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* =================== CAREERS =================== */
.job-filter { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; margin-bottom: 2rem; box-shadow: var(--shadow); }
.job-filter .row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
.job-types { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.1rem; }
.job-types label { font-weight: 600; font-size: .92rem; color: var(--text-soft); cursor: pointer; }
.job-types input { margin-right: .4rem; accent-color: var(--accent); }
.job-empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--border); border-radius: 16px; color: var(--text-soft); }
.job-empty i { font-size: 2.4rem; color: var(--blue-600); margin-bottom: 1rem; }

/* =================== VALUES / SERVICES LISTS =================== */
.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .88rem; padding: .45rem 1rem; border-radius: 50px; }
.pill i { color: var(--accent); margin-right: .4rem; }

/* =================== CTA BAND =================== */
.cta-band { background: linear-gradient(120deg, var(--accent), #7d0e15); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.cta-band p { color: #ffd9db; max-width: 640px; margin: 0 auto 1.6rem; }

/* =================== FOOTER =================== */
.site-footer { background: #081d34; color: #b9cde2; }
[data-theme="dark"] .site-footer { background: #060e19; }
.footer-top { padding: 3.6rem 0 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.15fr 1.25fr; gap: 2.2rem; }
.footer-logo { width: 72px; border-radius: 50%; background: #fff; padding: 4px; margin-bottom: 1rem; }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: .4rem; }
.footer-col h4 { color: #fff; font-size: 1rem; letter-spacing: .06em; margin-bottom: 1rem; text-transform: uppercase; }
.footer-col h4.mt { margin-top: 1.6rem; }
.footer-col p { font-size: .93rem; }
.footer-verse { margin-top: .9rem; color: #8fb8dd; font-style: italic; font-size: .88rem; }
.footer-links { list-style: none; }
.footer-links a { color: #b9cde2; display: inline-block; padding: .22rem 0; font-size: .94rem; }
.footer-links a:hover { color: #fff; padding-left: .3rem; }
.footer-contact { list-style: none; }
.footer-contact li { padding: .3rem 0; font-size: .92rem; }
.footer-contact i { color: #6fc3ff; margin-right: .55rem; width: 16px; }
.footer-contact a { color: #b9cde2; }
.footer-contact a:hover { color: #fff; }
.footer-quote { font-size: .9rem; font-style: italic; color: #9fc3e8; border-left: 3px solid var(--accent); padding-left: .9rem; }
.footer-quote cite { display: block; margin-top: .3rem; color: #6fa3cf; font-size: .82rem; }
.footer-social { margin-top: 1.2rem; display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #cfe2f5; font-size: .95rem; transition: all .3s;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 1.1rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.credit a { color: #6fc3ff; font-weight: 700; }
.heart { color: var(--accent); animation: heartbeat 1.4s ease-in-out infinite; display: inline-block; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.25); } 40% { transform: scale(1); } }

/* =================== FLOATERS =================== */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.7rem;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.45);
  animation: floatpulse 2.4s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes floatpulse { 0%,100% { box-shadow: 0 10px 24px rgba(37,211,102,.45); } 50% { box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,.12); } }

.scroll-top {
  position: fixed; right: 1.55rem; bottom: 1.4rem; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue-600); color: #fff; font-size: 1rem;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--accent); }

/* =================== REVEAL ANIMATIONS =================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; z-index: 950;
    background: var(--bg-card); border-left: 1px solid var(--border);
    padding: 5.4rem 1.4rem 2rem; transition: right .4s cubic-bezier(.7,0,.3,1);
    overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.18);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-link { padding: .85rem .8rem; border-radius: 10px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--bg-soft); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 1rem; display: none; }
  .has-dropdown.open .dropdown { display: flex; }
  .grid-3, .grid-2, .about-flex, .contact-grid { grid-template-columns: 1fr; }
  .about-flex { gap: 2.2rem; }
  .founder-box { grid-template-columns: 1fr; }
  .founder-box img { max-width: 320px; }
  .job-filter .row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-contact a span { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .brand-name { font-size: 1.1rem; }
}
