/* ==========================================================================
   Rabtrolley.uz — Official Rabtrolley Distributor in Uzbekistan
   Stylesheet — modern minimalism, responsive (mobile/tablet/desktop)
   ========================================================================== */

:root{
  --color-bg:#ffffff;
  --color-bg-soft:#f6f8fa;
  --color-bg-dark:#0e1726;
  --color-text:#1a2233;
  --color-text-muted:#5b6577;
  --color-text-soft:#8a93a3;
  --color-border:#e5e9ef;
  /* Brand red — Rabtrolley / RSG. Used as the primary accent across the site. */
  --color-primary:#e61f2a;          /* Rabtrolley brand red */
  --color-primary-dark:#b8141d;     /* darker on hover/press */
  --color-primary-soft:rgba(230,31,42,.10);
  --color-accent:#7ec242;           /* eco green (used as a tertiary accent) */
  --color-rsg:#e61f2a;              /* alias kept for backwards-compat references */
  --radius:10px;
  --radius-sm:6px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);
  --shadow:0 4px 16px rgba(16,24,40,.06),0 2px 6px rgba(16,24,40,.04);
  --shadow-lg:0 12px 32px rgba(16,24,40,.10);
  --container:1200px;
  --header-h:72px;
  --transition:200ms ease;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  color:var(--color-text);
  background:var(--color-bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--color-primary);text-decoration:none;transition:color var(--transition)}
a:hover{color:var(--color-primary-dark)}
ul{margin:0;padding:0;list-style:none}
button{font-family:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0 0 .5em;line-height:1.2;font-weight:700;color:var(--color-text)}
h1{font-size:clamp(1.8rem,4vw,3rem)}
h2{font-size:clamp(1.5rem,3vw,2.25rem)}
h3{font-size:clamp(1.15rem,2vw,1.4rem)}
p{margin:0 0 1em}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--color-border);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:var(--header-h);gap:16px;
}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;color:var(--color-text)}
.brand img{height:44px;width:auto}
@media(min-width:640px){.brand img{height:52px}}
/* Brand text hidden visually because the logo already contains the brand name; kept for screen readers / SEO */
.brand-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.nav{display:none;gap:28px;align-items:center}
.nav a{
  color:var(--color-text);font-weight:500;font-size:15px;
  position:relative;padding:6px 0;
}
.nav a:hover,.nav a.active{color:var(--color-primary)}
.nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--color-primary);border-radius:2px;
}

.header-tools{display:flex;align-items:center;gap:10px}
.lang-switch{
  display:inline-flex;border:1px solid var(--color-border);border-radius:999px;overflow:hidden;background:#fff;
}
.lang-switch button{
  background:transparent;border:0;padding:6px 12px;font-size:13px;font-weight:600;color:var(--color-text-muted);
  letter-spacing:.04em;text-transform:uppercase;
}
.lang-switch button.is-active{background:var(--color-primary);color:#fff}

.menu-toggle{
  background:transparent;border:0;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:8px;color:var(--color-text);
}
.menu-toggle:hover{background:var(--color-bg-soft)}
.menu-toggle svg{width:24px;height:24px}

/* Mobile nav */
.mobile-nav{
  position:fixed;inset:var(--header-h) 0 0 0;background:#fff;z-index:40;
  transform:translateX(100%);transition:transform 250ms ease;overflow-y:auto;
  border-top:1px solid var(--color-border);
}
.mobile-nav.is-open{transform:translateX(0)}
.mobile-nav ul{padding:20px}
.mobile-nav a{
  display:block;padding:14px 8px;font-size:17px;color:var(--color-text);font-weight:500;
  border-bottom:1px solid var(--color-border);
}
.mobile-nav a.active{color:var(--color-primary)}

@media(min-width:960px){
  .nav{display:flex}
  .menu-toggle{display:none}
  .mobile-nav{display:none}
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;overflow:hidden;color:#fff;
  /* trolley is anchored to the right side of the artwork — slide background slightly to the right to give text room */
  background:#0a1424 url("../assets/img/hero.png") right center/cover no-repeat;
  padding:90px 0 120px;
  isolation:isolate;
}
.hero::before{
  /* readable overlay — strong dark on the left fading to fully transparent on the right where the trolley sits */
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(90deg,rgba(8,16,32,.92) 0%,rgba(8,16,32,.80) 35%,rgba(8,16,32,.30) 60%,rgba(8,16,32,0) 100%);
}
.hero-grid{display:grid;grid-template-columns:1fr;gap:32px;align-items:center;max-width:680px}
.hero-eyebrow{
  display:inline-block;padding:6px 14px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  background:rgba(230,31,42,.18);color:#fff;border:1px solid rgba(230,31,42,.55);border-radius:999px;margin-bottom:18px;
  backdrop-filter:blur(6px);
}
.hero h1{margin-bottom:18px;color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.35)}
.hero p.lead{font-size:1.15rem;color:rgba(255,255,255,.86);max-width:560px}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.hero .btn-outline{color:#fff;border-color:rgba(255,255,255,.35)}
.hero .btn-outline:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.08)}
@media(min-width:960px){
  .hero{padding:130px 0 160px}
}
@media(max-width:639px){
  /* on small screens use a softer overlay so the image still shows but text stays readable */
  .hero::before{background:linear-gradient(180deg,rgba(8,16,32,.55) 0%,rgba(8,16,32,.85) 100%)}
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 22px;border-radius:999px;font-weight:600;font-size:15px;
  border:1px solid transparent;transition:all var(--transition);text-decoration:none;cursor:pointer;
}
.btn-primary{background:var(--color-primary);color:#fff}
.btn-primary:hover{background:var(--color-primary-dark);color:#fff}
.btn-outline{background:transparent;color:var(--color-text);border-color:var(--color-border)}
.btn-outline:hover{border-color:var(--color-primary);color:var(--color-primary)}
.btn-ghost{background:transparent;color:var(--color-primary)}
.btn-ghost:hover{background:rgba(230,31,42,.08)}
.btn-sm{padding:8px 14px;font-size:13px}

/* ==========================================================================
   Sections
   ========================================================================== */
.section{padding:64px 0}
.section-soft{background:var(--color-bg-soft)}
.section-dark{background:var(--color-bg-dark);color:#fff}
.section-dark h1,.section-dark h2,.section-dark h3{color:#fff}
.section-dark p{color:rgba(255,255,255,.78)}
.section-head{text-align:center;max-width:760px;margin:0 auto 40px}
.section-head .eyebrow{
  display:inline-block;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--color-primary);margin-bottom:10px;
}
.section-head h2{margin-bottom:12px}
.section-head p{color:var(--color-text-muted);font-size:1.05rem}
@media(min-width:960px){.section{padding:90px 0}}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
.grid-4{grid-template-columns:1fr}
@media(min-width:640px){
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:960px){
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}
}

.card{
  background:#fff;border:1px solid var(--color-border);border-radius:var(--radius);
  padding:24px;box-shadow:var(--shadow-sm);transition:all var(--transition);
}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card-icon{
  width:48px;height:48px;border-radius:12px;background:rgba(230,31,42,.10);
  display:flex;align-items:center;justify-content:center;color:var(--color-primary);margin-bottom:16px;
}
.card-icon svg{width:24px;height:24px}
.card h3{margin-bottom:8px}
.card p{color:var(--color-text-muted);margin-bottom:0;font-size:.95rem}

/* Feature row with image */
.feature{display:grid;grid-template-columns:1fr;gap:32px;align-items:center}
.feature img{width:100%;border-radius:var(--radius);box-shadow:var(--shadow)}
.feature.reverse .feature-text{order:2}
@media(min-width:960px){
  .feature{grid-template-columns:1fr 1fr;gap:60px}
}

/* Partner banner */
.partner-banner{
  background:linear-gradient(135deg,#0e1726 0%,#1a2a44 100%);
  color:#fff;border-radius:var(--radius);padding:36px;
  display:grid;grid-template-columns:1fr;gap:24px;align-items:center;
}
.partner-banner h3{color:#fff;margin-bottom:8px;font-size:1.5rem}
.partner-banner p{color:rgba(255,255,255,.8);margin:0}
.partner-banner .partner-actions{display:flex;flex-wrap:wrap;gap:12px}
.partner-banner .btn-primary{background:var(--color-rsg)}
.partner-banner .btn-primary:hover{background:#c11a23}
.partner-banner .btn-outline{color:#fff;border-color:rgba(255,255,255,.3)}
.partner-banner .btn-outline:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.06)}
@media(min-width:768px){
  .partner-banner{grid-template-columns:1fr auto;padding:48px}
}

/* ==========================================================================
   Product cards
   ========================================================================== */
.category-tabs{
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:32px;
}
.category-tabs button{
  background:#fff;border:1px solid var(--color-border);color:var(--color-text);
  padding:10px 18px;border-radius:999px;font-weight:600;font-size:14px;transition:all var(--transition);
}
.category-tabs button:hover{border-color:var(--color-primary);color:var(--color-primary)}
.category-tabs button.is-active{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}

.product-card{
  background:#fff;border:1px solid var(--color-border);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;transition:all var(--transition);
}
.product-card:hover{box-shadow:var(--shadow);transform:translateY(-3px);border-color:#cbd6e3}
.product-card .product-image{
  aspect-ratio:4/3;background:#ffffff;
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;padding:18px;
  border-bottom:1px solid var(--color-border);
}
.product-card .product-image img{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  transition:transform 300ms ease;
  mix-blend-mode:multiply; /* keeps PNG product photos clean on white without halos */
}
.product-card:hover .product-image img{transform:scale(1.04)}
.product-card .product-image .placeholder{
  width:60%;height:60%;color:var(--color-primary);opacity:.6;
}
.product-card .badge{
  position:absolute;top:12px;left:12px;background:var(--color-accent);color:#fff;
  font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;
}
.product-card .product-body{padding:20px;display:flex;flex-direction:column;flex:1}
.product-card .product-cat{font-size:11px;font-weight:600;color:var(--color-primary);letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.product-card .product-name{font-size:1.1rem;font-weight:700;margin-bottom:6px;color:var(--color-text)}
.product-card .product-desc{color:var(--color-text-muted);font-size:.92rem;flex:1;margin-bottom:16px}
.product-card .product-actions{display:flex;flex-wrap:wrap;gap:8px}

.color-dots{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
.color-dot{width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.10);position:relative;box-shadow:inset 0 -1px 1px rgba(0,0,0,.10)}
.color-dot[title]{cursor:help}
/* Standard Eko Color basket palette (per Rabtrolley spec) */
.dot-black     {background:#2b2b2b}
.dot-red       {background:#d8232a}
.dot-orange    {background:#f08a2e}
.dot-green     {background:#7ec242}
.dot-darkgreen {background:#1f6b3a}
.dot-lightblue {background:#2c8fd0}
.dot-navy      {background:#1a2c5c}
/* Special line indicators */
.dot-save-sea  {background:#3a5566}                                     /* graphite — recycled ocean plastic */
.dot-glamour   {background:linear-gradient(135deg,#f4f4f4 0%,#cfcfcf 100%);border-color:rgba(0,0,0,.15)}  /* polycarbonate */
/* Aliases used by older markup */
.dot-eko-black{background:#2b2b2b}
.dot-eko-color{background:linear-gradient(90deg,#d8232a 0%,#d8232a 33%,#7ec242 33%,#7ec242 66%,#2c8fd0 66%,#2c8fd0 100%)}

/* ==========================================================================
   Catalog cards (PDF) — visual covers, full-width thumb on top
   ========================================================================== */
.catalog-card{
  background:#fff;border:1px solid var(--color-border);border-radius:var(--radius);
  display:flex;flex-direction:column;overflow:hidden;transition:all var(--transition);box-shadow:var(--shadow-sm);
}
.catalog-card:hover{box-shadow:var(--shadow);border-color:#cbd6e3;transform:translateY(-3px)}
.catalog-card .catalog-cover{
  position:relative;aspect-ratio:4/3;background:#f6efe8; /* warm beige like the original site */
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.catalog-card .catalog-cover img{
  width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform 400ms ease;
}
.catalog-card:hover .catalog-cover img{transform:scale(1.04)}
.catalog-card .catalog-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.catalog-card .catalog-body h4{font-size:1.05rem;margin:0}
.catalog-card .catalog-body p{font-size:.88rem;color:var(--color-text-muted);margin:0;flex:1}
.catalog-card .catalog-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}

/* ==========================================================================
   Photo gallery
   ========================================================================== */
.gallery{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.gallery{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.gallery{grid-template-columns:repeat(3,1fr)}}
.gallery-item{
  position:relative;border-radius:var(--radius);overflow:hidden;background:var(--color-bg-soft);
  aspect-ratio:4/3;
}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform 400ms ease}
.gallery-item:hover img{transform:scale(1.05)}

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts-grid{display:grid;grid-template-columns:1fr;gap:32px}
@media(min-width:960px){.contacts-grid{grid-template-columns:1.1fr .9fr}}
.contact-block{
  background:#fff;border:1px solid var(--color-border);border-radius:var(--radius);padding:28px;
}
.contact-list{display:grid;gap:16px}
.contact-item{display:flex;gap:14px;align-items:flex-start}
.contact-item .icon{
  width:40px;height:40px;border-radius:10px;background:rgba(230,31,42,.08);color:var(--color-primary);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.contact-item .icon svg{width:20px;height:20px}
.contact-item label{font-size:12px;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.06em;display:block;margin-bottom:2px}
.contact-item a,.contact-item span{color:var(--color-text);font-weight:500}
.contact-item a:hover{color:var(--color-primary)}

.form-group{margin-bottom:16px}
.form-group label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--color-text)}
.form-control{
  width:100%;padding:12px 14px;border:1px solid var(--color-border);border-radius:var(--radius-sm);
  font-family:inherit;font-size:15px;color:var(--color-text);background:#fff;transition:border-color var(--transition);
}
.form-control:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(230,31,42,.12)}
textarea.form-control{min-height:120px;resize:vertical}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{background:var(--color-bg-dark);color:rgba(255,255,255,.75);padding:60px 0 24px;font-size:14px}
.site-footer h4{color:#fff;font-size:.95rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px}
.footer-grid{display:grid;grid-template-columns:1fr;gap:32px;margin-bottom:36px}
@media(min-width:640px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1.2fr}}
.site-footer a{color:rgba(255,255,255,.75)}
.site-footer a:hover{color:#fff}
.site-footer .brand{color:#fff;margin-bottom:16px}
.site-footer .brand-text strong{color:#fff}
.site-footer .brand-text span{color:rgba(255,255,255,.5)}
.footer-links li{margin-bottom:8px}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);padding-top:20px;
  display:flex;flex-direction:column;gap:10px;align-items:flex-start;font-size:13px;color:rgba(255,255,255,.55);
}
@media(min-width:640px){.footer-bottom{flex-direction:row;justify-content:space-between;align-items:center}}
.social-row{display:flex;gap:10px;margin-top:12px}
.social-row a{
  width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:inline-flex;align-items:center;justify-content:center;color:#fff;
}
.social-row a:hover{background:var(--color-primary)}
.social-row svg{width:18px;height:18px}

/* ==========================================================================
   Page header (sub-pages)
   ========================================================================== */
.page-header{
  background:linear-gradient(135deg,#eaf6fb 0%,#f6f8fa 100%);
  padding:56px 0;text-align:center;
}
.page-header h1{margin-bottom:10px}
.page-header p{color:var(--color-text-muted);max-width:640px;margin:0 auto}
.breadcrumbs{font-size:13px;color:var(--color-text-muted);margin-bottom:14px}
.breadcrumbs a{color:var(--color-text-muted)}
.breadcrumbs a:hover{color:var(--color-primary)}

/* Utilities */
.text-center{text-align:center}
.mt-0{margin-top:0}
.mb-0{margin-bottom:0}
.no-wrap{white-space:nowrap}
.is-hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ==========================================================================
   Video grid (YouTube embeds)
   ========================================================================== */
.video-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:768px){.video-grid{grid-template-columns:repeat(2,1fr)}}
.video-card{
  background:#000;border:1px solid var(--color-border);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition);
}
.video-card:hover{box-shadow:var(--shadow)}
.video-card .video-frame{
  position:relative;aspect-ratio:16/9;background:#000;
}
.video-card .video-frame iframe,
.video-card .video-frame video{
  position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;object-fit:contain;
}
.video-card .video-meta{padding:14px 18px;background:#fff}
.video-card .video-meta h4{margin:0 0 4px;font-size:1.05rem}
.video-card .video-meta p{margin:0;color:var(--color-text-muted);font-size:.9rem}

/* Print */
@media print{.site-header,.site-footer,.menu-toggle,.lang-switch{display:none}}
