/*
Theme Name: Marghe-Group
Theme URI: https://www.marghe-group-srl.com/
Author: Marghe-Group SRL
Description: Premium black and silver WordPress theme for Marghe-Group SRL business divisions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: marghe-group
*/

:root {
  --black: #050505;
  --graphite: #141414;
  --graphite-2: #1d1d1d;
  --silver: #c4c6c9;
  --muted: #8f949b;
  --white: #fff;
  --line: rgba(197, 201, 206, .22);
  --logistics: #9aa0a8;
  --chemical: #c4c6c9;
  --funeral: #5a6067;
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

p {
  color: var(--silver);
  font-size: 17px;
}

h1,
h2,
h3 {
  font-family: Manrope, Inter, sans-serif;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 1050px;
  font-size: clamp(46px, 8vw, 112px);
  line-height: .92;
  font-weight: 800;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  font-weight: 800;
}

h3 { font-size: 30px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--black);
  padding: 10px 14px;
  font-weight: 800;
  transition: top .2s ease;
}

.skip-link:focus { top: 16px; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.mg-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .76), rgba(0, 0, 0, 0));
  border-bottom: 1px solid transparent;
  transition: .45s var(--ease);
}

.mg-nav.scrolled,
.mg-nav.open {
  height: 72px;
  background: rgba(5, 6, 7, .92);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.mg-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--silver);
  font: 800 13px Manrope, sans-serif;
  letter-spacing: .12em;
  background: linear-gradient(135deg, #111, #292f36);
}

.logo-text {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: .11em;
  font-size: 13px;
}

.logo-text small {
  color: var(--silver);
  font-size: 10px;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ddd;
  transition: .3s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }

.nav-links a[aria-current="page"] { border-bottom: 1px solid currentColor; }

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.language-switcher a { color: var(--silver); }

.language-switcher .language-separator { color: var(--muted); }

.language-switcher a.is-current,
.language-switcher a:hover { color: var(--white); }

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--silver);
  padding: 14px 22px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  transition: .35s var(--ease);
}

.nav-cta:hover,
.btn.primary:hover {
  background: transparent;
  color: #fff;
}

.btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn.ghost {
  border-color: var(--line);
  color: var(--silver);
}

.btn.ghost:hover {
  border-color: #fff;
  color: #fff;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 130px 0 78px;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .08), transparent 36%),
    linear-gradient(135deg, #050505 0%, #101010 52%, #050505 100%);
  overflow: hidden;
}

.metal-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 86%);
}

.hero:after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -20vh;
  width: 60vw;
  height: 60vw;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, .04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow,
.kicker {
  display: block;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #fff, #c7d1d8, #7e8994);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(18px, 2.2vw, 25px);
  max-width: 800px;
  margin: 28px 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: 34px;
  right: 34px;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .2em;
}

.section {
  padding: 118px 0;
  background: #07090b;
}

.section:nth-of-type(even) { background: #090b0e; }

.section-head {
  max-width: 930px;
  margin-bottom: 54px;
}

.section-head p { max-width: 780px; }

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

.division-card,
.service,
.contact-card,
.metrics div {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018));
  padding: 38px;
  position: relative;
  overflow: hidden;
  transition: .45s var(--ease);
}

.division-card {
  min-height: 336px;
  border-top: 4px solid var(--accent, var(--line));
}

.division-card.logistics,
.division-page.logistics { --accent: var(--logistics); }

.division-card.chemical,
.division-page.chemical { --accent: var(--chemical); }

.division-card.funeral,
.division-page.funeral { --accent: var(--funeral); }

.division-card:before,
.service:before,
.contact-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .08), transparent);
  transform: translateX(-120%);
  transition: .6s var(--ease);
}

.division-card:hover:before,
.service:hover:before,
.contact-card:hover:before { transform: translateX(120%); }

.division-card:hover,
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .46);
}

.count {
  position: absolute;
  top: 26px;
  right: 26px;
  color: rgba(255, 255, 255, .18);
  font: 800 42px Manrope, sans-serif;
}

.division-card small {
  display: block;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 70px;
}

.division-card h3 { font-size: 42px; }

.division-card p { min-height: 84px; }

.division-card b {
  color: #fff;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.darkline {
  background: linear-gradient(135deg, #050607, #111418);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metrics.vertical { grid-template-columns: 1fr; }

.metrics div {
  min-height: auto;
  padding: 26px;
}

.metrics b {
  display: block;
  font: 800 34px Manrope, sans-serif;
  margin-bottom: 6px;
}

.metrics span { color: var(--muted); }

.statement { max-width: 900px; }

.statement p,
.bigtext { font-size: 22px; }

.page-hero {
  min-height: 68vh;
  padding: 150px 0 90px;
  display: flex;
  align-items: end;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .075), transparent 35%),
    linear-gradient(135deg, #050607, #12161a);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  font-size: 22px;
  max-width: 800px;
}

.logistics-bg {
  background:
    radial-gradient(circle at 80% 20%, rgba(170, 170, 170, .12), transparent 32%),
    linear-gradient(135deg, #050505, #111);
}

.chemical-bg {
  background:
    radial-gradient(circle at 78% 20%, rgba(230, 230, 230, .11), transparent 36%),
    linear-gradient(135deg, #050505, #101010);
}

.funeral-bg {
  background:
    radial-gradient(circle at 78% 20%, rgba(180, 180, 180, .09), transparent 36%),
    linear-gradient(135deg, #050505, #0d0d0d);
}

.service {
  min-height: 220px;
  border-top: 3px solid var(--accent, var(--line));
}

.service h3 {
  font-size: 25px;
  margin-bottom: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card { min-height: 360px; }

.contact-card h2 {
  font-size: 38px;
  margin-bottom: 24px;
}

.contact-list {
  margin: 0;
  padding-left: 20px;
  color: var(--silver);
}

.contact-list li { margin: 10px 0; }

.footer {
  border-top: 1px solid var(--line);
  background: #040506;
  padding: 52px 34px;
}

.footer-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: .12em;
}

.footer a {
  display: block;
  color: var(--silver);
  margin: 8px 0;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 1s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .language-switcher,
  .nav-cta { display: none; }

  .nav-toggle {
    display: block;
    margin-left: auto;
    background: transparent;
    color: #fff;
    border: 1px solid var(--line);
    padding: 9px 12px;
  }

  .mg-nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #050607;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }

  .mg-nav.open .language-switcher {
    display: flex;
    position: absolute;
    top: 256px;
    left: 24px;
  }

  .division-grid,
  .service-grid,
  .split,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-strip { display: none; }

  .section { padding: 78px 0; }

  .division-card { min-height: 260px; }

  .mg-nav { padding: 0 20px; }

  .logo-text { font-size: 11px; }

  h1 { font-size: 46px; }
}

@media (max-width: 520px) {
  .container,
  .hero-content { width: min(100% - 28px, var(--max)); }

  .btn,
  .nav-cta { width: 100%; }

  .division-card,
  .service,
  .contact-card { padding: 28px; }

  .page-hero { padding-top: 126px; }
}
