/* ==========================================================================
   Qudiar General Trading L.L.C — main stylesheet
   Brand: Navy #0E3B5C · Ice #2A9DB8 · Leaf #3E9B4F
   ========================================================================== */

:root {
  --navy: #0E3B5C;
  --navy-deep: #082A42;
  --ice: #2A9DB8;
  --ice-soft: #E6F4F8;
  --leaf: #3E9B4F;
  --leaf-soft: #EAF5EC;
  --ink: #1C2A35;
  --muted: #5B6B78;
  --line: #DCE6EC;
  --bg: #FFFFFF;
  --bg-alt: #F3F8FB;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(14, 59, 92, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 59, 92, 0.14);
  --container: 1180px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  font-style: normal;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: #33843F; color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

/* Eyebrow label */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .78rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--leaf); margin-bottom: .8rem;
}
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(14,59,92,.08); }
.topbar { background: var(--navy-deep); color: #cfe3ee; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: #cfe3ee; }
.topbar a:hover { color: #fff; }
.topbar span + span { margin-left: 1.4rem; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 46px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--navy);
  position: relative; padding: .4rem 0;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--leaf); transition: width .2s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu .btn { padding: .6rem 1.2rem; color: #fff; }
.nav-menu .btn::after { display: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #145778 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .6;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 100px 0 110px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #d6e7f0; max-width: 540px; }
.hero .eyebrow { color: #8fd8a0; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-tags { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2.2rem; padding: 0; list-style: none; }
.hero-tags li {
  font-size: .82rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #e6f2f8;
}
.hero-art { filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }

/* Page banner (inner pages) */
.page-banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 40px solid rgba(42,157,184,.18);
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: #cfe3ee; max-width: 620px; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: #9cc3d6; margin-bottom: 1rem; }
.breadcrumb a { color: #cfe3ee; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .art { background: var(--ice-soft); padding: 2rem; display: grid; place-items: center; height: 210px; }
.product-card.agro .art { background: var(--leaf-soft); }
.product-card .art img { height: 150px; width: auto; }
.product-card .body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product-card p { color: var(--muted); }
.product-card .link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1.2rem; list-style: none; }
.chip-list li { font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 999px; }

.feature {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem;
  border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--ice); transform: translateY(-3px); }
.feature .ico {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ice-soft); color: var(--navy); margin-bottom: 1.1rem;
}
.feature:nth-child(even) .ico { background: var(--leaf-soft); color: var(--leaf); }
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.4rem 1.6rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--navy); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Split / about */
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.panel-art { background: var(--bg-alt); border-radius: 22px; padding: 2.5rem; }

.mv-card { background: #fff; border-left: 4px solid var(--ice); border-radius: var(--radius-sm); padding: 1.8rem; box-shadow: var(--shadow); }
.mv-card.leaf { border-left-color: var(--leaf); }
.mv-card p { color: var(--muted); margin: 0; }

/* Product detail blocks */
.cat-block { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; padding: 3rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.cat-block:last-child { border-bottom: 0; }
.cat-block .art { background: var(--ice-soft); border-radius: 20px; padding: 2.5rem; display: grid; place-items: center; position: sticky; top: 130px; }
.cat-block.agro .art { background: var(--leaf-soft); }
.cat-block .art img { width: 200px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.spec { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: #fff; }
.spec h4 { font-size: .98rem; margin-bottom: .3rem; }
.spec p { font-size: .9rem; color: var(--muted); margin: 0; }
.note { font-size: .88rem; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.cat-nav { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: -1.5rem; }
.cat-nav a { font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: .6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); background: #fff; }
.cat-nav a:hover { border-color: var(--ice); background: var(--ice-soft); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #145778 100%); color: #fff; border-radius: 22px; padding: 3.2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #cfe3ee; margin: 0; max-width: 560px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-item .ico { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--ice-soft); color: var(--navy); display: grid; place-items: center; }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item h4 { margin: 0 0 .2rem; font-size: 1rem; }
.contact-item p { margin: 0; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: .8rem .95rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fbfdfe; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(42,157,184,.15); }
.field.error input, .field.error select, .field.error textarea { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: .8rem; margin-top: .25rem; display: none; }
.field.error .err { display: block; }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--leaf); display: none; }
.map-placeholder { margin-top: 1.5rem; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--bg-alt); height: 200px; display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9d2df; padding: 70px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #b9d2df; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.3rem 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-block { grid-template-columns: 260px 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .topbar .hide-sm { display: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 1rem 4% 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(14,59,92,.1); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: .8rem 0; }
  .nav-menu .btn { margin-top: .6rem; display: inline-flex; padding: .7rem 1.4rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero .container, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .hero .container { padding: 70px 0 80px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .cat-block { grid-template-columns: 1fr; }
  .cat-block .art { position: static; }
  .section { padding: 70px 0; }
}
@media (max-width: 560px) {
  .grid-4, .steps, .spec-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.2rem 1.6rem; }
  .brand img { height: 38px; }
}

/* Hero art badges */
.hero-art { position: relative; }
.badge-float {
  position: absolute; width: 92px; height: 92px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px rgba(0,0,0,.2);
  animation: bob 5s ease-in-out infinite;
}
.badge-float img { width: 70px; height: 70px; }
.badge-float.b1 { left: 0; bottom: 6%; }
.badge-float.b2 { right: 0; top: 30%; animation-delay: -1.6s; }
.badge-float.b3 { right: 4%; bottom: 0; animation-delay: -3.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .badge-float { animation: none; } }
@media (max-width: 560px) { .badge-float { width: 70px; height: 70px; } .badge-float img { width: 52px; height: 52px; } }
