/* ============ TitanHaul — Global Styles (TTF local fonts) ============ */

/* Local fonts — place .ttf files inside /fonts/ */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  /* Yellow–Green logistics theme */
  --y0:#fffdf0;
  --y1:#FFE66D; /* mellow yellow */
  --y2:#FFD642;
  --g1:#34D399; /* leaf */
  --g2:#10B981; /* jade */
  --g3:#0E9F6E; /* deep green */
  --ink:#0f172a; /* slate-900 */
  --muted:#334155; /* slate-700 */
  --line:rgba(15,23,42,.12);

  --radius:20px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --shadow-lg:0 18px 50px rgba(0,0,0,.12);

  --header-h:64px;
  --container: min(1200px, 92vw);
}

/* Reset-ish */
*,
*::before,
*::after{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 1200px at 80% -10%, rgba(52,211,153,.18), transparent 60%),
    radial-gradient(1000px 800px at 10% 10%, rgba(255,230,109,.26), transparent 70%),
    var(--y0);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ display:block; height:auto; width:min(100%, 350px); border-radius:16px; box-shadow:var(--shadow); }
figure{ margin:0; }
a{ color:var(--g3); text-decoration:none; }
a:hover{ text-decoration:underline; }
strong{ font-weight:700; }
.container{ width:var(--container); margin-inline:auto; }
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left:12px; top:12px; width:auto; height:auto; padding:.5rem .75rem;
  background:#fff; border:1px solid var(--line); border-radius:.5rem; z-index:10000;
}

/* ===== Header ===== */
.site-header{
  position:fixed; inset-block-start:0; inset-inline:0; height:var(--header-h);
  backdrop-filter:saturate(1.2) blur(6px);
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  border-bottom:1px solid var(--line);
  z-index:1000;
}
.header-inner{
  height:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; color:var(--ink); }
.brand-mark{
  display:inline-grid; place-items:center; width:36px; height:36px; border-radius:12px;
  background:linear-gradient(135deg, var(--y1), var(--g2));
  color:#083344; font-weight:700; letter-spacing:0.5px; box-shadow:var(--shadow);
}
.brand-text{ font-size:1.05rem; letter-spacing:.3px; }

.nav{ display:flex; align-items:center; }
.nav-list{
  display:flex; gap:18px; align-items:center;
  list-style:none; margin:0; padding:0;
}
.nav-link{
  display:inline-block; padding:.5rem .75rem; border-radius:999px; font-weight:600; color:var(--muted);
  transition:transform .2s ease, background-color .2s ease, color .2s ease;
}
.nav-link:hover{ background:rgba(52,211,153,.14); color:#062c22; transform:translateY(-1px); }

/* Burger */
.burger{
  display:none; width:42px; height:42px; border:0; background:transparent; border-radius:10px; cursor:pointer;
}
.burger:hover{ background:rgba(0,0,0,.06); }
.burger-bar{
  display:block; width:22px; height:2px; background:#0b3b2f; margin:5px auto; border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}

/* Haul belt under header (moving dashed line) */
.haul-belt{
  position:absolute; inset-inline:0; inset-block-end:-4px; height:4px; overflow:hidden;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 16px,
      rgba(16,185,129,.9) 16px 36px,
      transparent 36px 52px
    );
  animation: beltMove 9s linear infinite;
}
@keyframes beltMove{ to{ background-position-x:-400px; } }

/* ===== Footer ===== */
.site-footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.95));
  margin-top:80px;
}
.footer-inner{
  display:flex; align-items:center; gap:16px; justify-content:space-between;
  padding:28px 0; flex-wrap:wrap;
}
.footer-brand{ margin:0; font-weight:700; }
.footer-addr a{ color:var(--muted); }
.footer-links{ display:flex; gap:16px; }
.back-to-top{
  appearance:none; border:1px solid var(--g2); background:linear-gradient(135deg, var(--y1), var(--g1));
  padding:.55rem .9rem; border-radius:999px; font-weight:700; color:#063a2f; cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.back-to-top:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); filter:saturate(1.05); }

/* ===== Buttons ===== */
.btn{
  display:inline-block; padding:.85rem 1.05rem; border-radius:14px; font-weight:700; letter-spacing:.2px;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease, color .2s ease;
  box-shadow:var(--shadow);
}
.btn.primary{
  background:linear-gradient(135deg, var(--g2), var(--y2));
  color:#04241d;
}
.btn.primary:hover{ transform:translateY(-2px); filter:saturate(1.08); box-shadow:var(--shadow-lg); }
.btn.ghost{
  background:transparent; border:2px solid rgba(14,159,110,.45); color:#0a3a2f;
}
.btn.ghost:hover{ background:rgba(16,185,129,.12); }

/* ===== Reveal on scroll (paired with JS) ===== */
.reveal{ opacity:0; transform:translateY(16px) scale(.98); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* ===== Responsive ===== */
@media (max-width: 1200px){
  .nav-link{ padding:.5rem .65rem; }
}
@media (max-width: 900px){
  .nav-list{ display:none; position:fixed; inset-inline:0; inset-block-start:var(--header-h);
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.9));
    border-bottom:1px solid var(--line); padding:14px 16px 18px; flex-direction:column; gap:6px; z-index:999;
  }
  .nav-list.is-open{ display:flex; }
  .burger{ display:inline-grid; place-items:center; }
}
@media (max-width: 720px){
  .footer-inner{ flex-direction:column; align-items:flex-start; gap:10px; }
}
@media (max-width: 520px){
  :root{ --header-h:60px; }
  .brand-text{ font-size:1rem; }
}
@media (max-width: 400px){
  .brand-mark{ width:32px; height:32px; border-radius:10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
/* ===== New Footer (column layout) ===== */
.footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.96));
  margin-top:80px;
}
.footer-container{
  display:grid;
  grid-template-columns: 1.1fr .7fr .6fr;
  gap:18px;
  align-items:start;
  padding:28px 0;
}
@media (max-width: 900px){
  .footer-container{ grid-template-columns:1fr; }
}

.footer-column a{ color:var(--muted); }
.footer-brand{
  margin:0 0 6px;
  font-weight:800;
  font-size:1.05rem;
  background: linear-gradient(135deg, var(--g2), var(--y2));
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}

.footer-links{
  display:flex; gap:16px; flex-wrap:wrap;
}

.footer-top .back-to-top{
  appearance:none; border:1px solid var(--g2);
  background:linear-gradient(135deg, var(--y1), var(--g1));
  padding:.6rem 1rem; border-radius:999px; font-weight:800; color:#063a2f; cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.footer-top .back-to-top:hover{
  transform:translateY(-2px); box-shadow:var(--shadow-lg); filter:saturate(1.05);
}
/* Burger (icon + open->X animation) */
.burger{
  position: relative;
  display: none;                /* показывается через @media, как и было */
  width: 44px; height: 44px;
  border: 0; cursor: pointer; background: transparent;
  border-radius: 12px;
}
.burger:hover{ background: rgba(0,0,0,.06); }
.burger:focus-visible{
  outline: 3px solid rgba(16,185,129,.35);
  outline-offset: 2px;
}

/* tidy bars */
.burger-bar{
  position: absolute; left: 50%;
  width: 22px; height: 2px; background: #0b3b2f; border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.burger-bar:nth-child(1){ top: 14px; }
.burger-bar:nth-child(2){ top: 21px; }
.burger-bar:nth-child(3){ top: 28px; }

/* open state -> turn into X */
.burger.is-open .burger-bar:nth-child(1){
  top: 21px; transform: translateX(-50%) rotate(45deg);
}
.burger.is-open .burger-bar:nth-child(2){
  opacity: 0; transform: translateX(-50%) scaleX(.4);
}
.burger.is-open .burger-bar:nth-child(3){
  top: 21px; transform: translateX(-50%) rotate(-45deg);
}

/* keep mobile rule that shows the burger */
@media (max-width: 900px){
  .burger{ display: inline-grid; place-items: center; }
}
