/* =====================================================================
   Green Traffic Group LTD — site styles
   Aesthetic: refined industrial-tech. Charcoal + brand green, generous
   whitespace, a recurring dot-grid "signal flow" motif from the logo.
   ===================================================================== */

:root {
  /* Brand */
  --green:        #5E9732;   /* extracted from logo */
  --green-dark:   #4A7A26;
  --green-deep:   #3C641F;
  --green-light:  #7FBE3F;
  --green-soft:   #EAF3E0;

  /* Neutrals */
  --charcoal:     #1C2118;   /* dark sections / footer (green-tinted black) */
  --charcoal-2:   #242A1F;
  --ink:          #20261C;   /* body text */
  --muted:        #5E6657;
  --line:         #E3E7DD;
  --gray-bg:      #F5F7F1;
  --white:        #FFFFFF;

  /* Type */
  --display: "Sofia Sans Condensed", "Sofia Sans Semi Condensed", "Arial Narrow", sans-serif;
  --body:    "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Geometry */
  --radius:   16px;
  --radius-sm: 10px;
  --maxw:     1180px;
  --gutter:   clamp(20px, 5vw, 56px);
  --ease:     cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-light);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
}
.eyebrow-dark { color: var(--green-dark); }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-alt { background: var(--gray-bg); }

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-sub { font-size: 1.12rem; color: var(--muted); margin: 0; }
.lead { font-size: 1.18rem; color: #36402F; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .95rem;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: var(--pad-y) 1.7rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), color .25s, border-color .25s;
  will-change: transform;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(94,151,50,.7);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(94,151,50,.8); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover { border-color: var(--green-light); color: var(--green-light); transform: translateY(-3px); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(20,30,10,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand-logo { height: 34px; width: auto; }

.nav { display: flex; gap: 2rem; }
.nav a {
  position: relative;
  font-weight: 600;
  font-size: .96rem;
  color: #2C3326;
  padding: .4rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--green-dark); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-toggle { display: flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .85rem; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font: inherit; color: var(--muted); padding: .25rem .15rem;
  letter-spacing: .03em; transition: color .2s;
}
.lang-btn.is-active { color: var(--green-dark); }
.lang-btn:hover { color: var(--ink); }
.lang-sep { color: var(--line); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 var(--gutter);
  max-height: 0; overflow: hidden;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: max-height .4s var(--ease);
}
.mobile-nav a { padding: 1rem 0; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { max-height: 360px; }

/* =====================================================================
   Dot-grid "signal" motif (shared)
   ===================================================================== */
.hero-grid {
  position: absolute; inset: -2px;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  color: #fff;
  background:
    radial-gradient(120% 120% at 80% -10%, #2c3a1e 0%, transparent 55%),
    linear-gradient(160deg, #1d2417 0%, #161a11 60%, #11140d 100%);
  overflow: hidden;
  padding: 120px 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute; left: 50%; top: 12%;
  width: 680px; height: 680px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(127,190,63,.22) 0%, transparent 62%);
  filter: blur(8px);
}

/* Upward signal flow — dashes streaming up, echoing the logo arrow */
.signal-flow { position: absolute; inset: 0; overflow: hidden; }
.signal-flow span {
  position: absolute; bottom: -40%;
  width: 2px; height: 38%;
  background: linear-gradient(to top, transparent, rgba(127,190,63,.55), transparent);
  animation: stream 6.5s linear infinite;
  opacity: .5;
}
.signal-flow span:nth-child(1) { left: 16%; animation-delay: 0s;   height: 30%; }
.signal-flow span:nth-child(2) { left: 33%; animation-delay: 1.6s; height: 46%; }
.signal-flow span:nth-child(3) { left: 52%; animation-delay: .7s;  }
.signal-flow span:nth-child(4) { left: 71%; animation-delay: 2.4s; height: 34%; }
.signal-flow span:nth-child(5) { left: 86%; animation-delay: 3.3s; height: 42%; }
@keyframes stream {
  0%   { transform: translateY(0);     opacity: 0; }
  12%  { opacity: .6; }
  88%  { opacity: .6; }
  100% { transform: translateY(-260%); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-inner > * { animation: rise .9s var(--ease) both; }
.hero-inner > .badge      { animation-delay: .05s; }
.hero-inner > .eyebrow    { animation-delay: .15s; }
.hero-inner > .hero-title { animation-delay: .24s; }
.hero-inner > .hero-lead  { animation-delay: .36s; }
.hero-inner > .hero-cta   { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(127,190,63,.12);
  border: 1px solid rgba(127,190,63,.32);
  color: #cfe7b3;
  padding: .5rem 1rem .5rem .8rem;
  border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 1.8rem;
  transition: background .25s, border-color .25s;
}
.badge:hover { background: rgba(127,190,63,.2); border-color: rgba(127,190,63,.55); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 0 rgba(127,190,63,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127,190,63,.6);} 70%{ box-shadow: 0 0 0 9px rgba(127,190,63,0);} 100%{ box-shadow:0 0 0 0 rgba(127,190,63,0);} }

.hero .eyebrow { color: var(--green-light); }
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--green-light); }
.hero-lead { font-size: clamp(1.08rem, 2.4vw, 1.32rem); color: #c9d2bd; max-width: 620px; margin: 0 0 2.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.scroll-line { width: 1px; height: 46px; background: linear-gradient(to bottom, var(--green-light), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: #fff; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{ top:-50%;} 100%{ top:120%;} }

/* =====================================================================
   About
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about-copy p a { color: var(--green-dark); font-weight: 700; box-shadow: inset 0 -2px 0 var(--green-soft); transition: box-shadow .25s; }
.about-copy p a:hover { box-shadow: inset 0 -10px 0 var(--green-soft); }
.about-copy .lead { margin-bottom: 1.2rem; }

.fact-list { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact-k { color: var(--muted); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.fact-v { font-weight: 700; color: var(--ink); text-align: right; }

.namecard {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,30,10,.55);
}
.namecard::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(127,190,63,.16) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, #000, transparent 65%);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 65%);
}
.namecard > * { position: relative; }
.namecard-mark { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; margin-bottom: 1.6rem; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.namecard-en, .namecard-bg {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.15rem); line-height: 1.04; margin: 0 0 .4rem; letter-spacing: -.005em;
}
.namecard-en span, .namecard-bg span { color: var(--green-light); }
/* Show only the active language's legal name in the panel */
html[lang="en"] .namecard-bg { display: none; }
html[lang="bg"] .namecard-en { display: none; }
.namecard-line { height: 1px; background: rgba(255,255,255,.14); margin: 1.5rem 0; }
.namecard-foot { font-size: .85rem; color: #8e9883; margin: 0; letter-spacing: .01em; }

/* =====================================================================
   Services
   ===================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--white);
  padding: 2.2rem 1.9rem;
  position: relative;
  transition: background .3s, transform .3s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover { background: #fff; transform: translateY(-2px); }
.card:hover::after { transform: scaleY(1); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.3rem;
  background: var(--green-soft); color: var(--green-dark);
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.card:hover .card-icon { background: var(--green); color: #fff; transform: rotate(-4deg) scale(1.04); }
.card-icon svg { width: 26px; height: 26px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; margin: 0 0 .5rem; }
.card-desc { margin: 0; color: var(--muted); font-size: .98rem; }

.services-note {
  margin: 2.4rem auto 0;
  max-width: 760px;
  font-size: .9rem; color: var(--muted);
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 1.6rem;
}

/* =====================================================================
   Parent band
   ===================================================================== */
.parent {
  background:
    radial-gradient(120% 140% at 15% 0%, #2d3c1d 0%, transparent 55%),
    linear-gradient(150deg, #1d2417, #14180f);
  color: #fff; text-align: center; overflow: hidden;
}
.parent-bg { position: absolute; inset: 0; z-index: 0; }
.parent-inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.parent .eyebrow { color: var(--green-light); justify-content: center; }
.parent .eyebrow::before { display: none; }
.parent-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1; margin: 0 0 1.3rem; letter-spacing: -.01em; }
.parent-lead { font-size: 1.15rem; color: #c4cdb7; margin: 0 auto 2.4rem; max-width: 620px; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 30px 60px -38px rgba(20,30,10,.4);
}
.contact-list { margin: 0; }
.contact-row { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: none; }
.contact-row dt { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); }
.contact-row dd { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.contact-row dd a { box-shadow: inset 0 -2px 0 var(--green-soft); transition: box-shadow .25s; }
.contact-row dd a:hover { box-shadow: inset 0 -10px 0 var(--green-soft); }
.contact-placeholder-note { margin: 1.4rem 0 0; font-size: .82rem; color: var(--muted); font-style: italic; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--charcoal); color: #b9c2ac; padding: clamp(56px, 7vw, 84px) 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.footer-logo { height: 38px; filter: grayscale(1) brightness(1.7); opacity: .92; }
.footer-legal { display: flex; flex-direction: column; gap: .15rem; margin: 1.3rem 0 .6rem; }
.footer-name-en, .footer-name-bg { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: .01em; }
/* Show only the active language's legal name in the footer */
html[lang="en"] .footer-name-bg { display: none; }
html[lang="bg"] .footer-name-en { display: none; }
.footer-tagline { margin: 0; font-size: .95rem; color: #8d977f; max-width: 320px; }
.footer-col-title { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-light); margin: 0 0 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .8rem; }
.footer-links a { color: #b9c2ac; font-size: .98rem; width: fit-content; transition: color .2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-top: clamp(40px, 5vw, 60px); padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: #7e886f;
}
.footer-bottom p { margin: 0; }

/* =====================================================================
   Reveal-on-scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal { transition-delay: var(--d, 0s); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .namecard { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
