/* DGR Global — Base Styles */
/* Brand: Primary #c60506, Secondary #000000 */

:root {
  --brand: #c60506;
  --brand-600: #a90405;
  --brand-700: #8a0404;
  --ink: #111111;
  --ink-2: #222222;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-2: #f7f7f7;
  --accent: #0f0f10;           /* black accents */
  --card: #ffffff;
  --border: #e5e7eb;
  --focus: #c60506;
  --radius: 10px;
  --shadow-1: 0 4px 16px rgba(0,0,0,.08);
  --shadow-2: 0 10px 30px rgba(0,0,0,.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.2; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; color: var(--ink-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }
.mt-20 { margin-top: 20px; }

/* Header / Navigation */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #ffffffcc; backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--accent); letter-spacing: .2px;
}
.brand .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border-radius: 6px;
  padding: 6px 10px; line-height: 1;
}
.brand-invert .brand-mark { background: #fff; color: var(--brand); border: 2px solid var(--brand); }

.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--ink); padding: 10px 8px; border-radius: 6px; }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px; border-radius: 8px;
}
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; letter-spacing: .2px; cursor: pointer; text-decoration: none;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(198,5,6,.25); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 8px 24px rgba(198,5,6,.35); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

.thumbnail-carousel {
  margin: 60px auto;
}

.thumbnail-carousel h2 {
  margin-bottom: 16px;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.thumb-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.thumb-item {
  flex: 0 0 auto;
  width: 160px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease;
}

.thumb-item:hover {
  transform: translateY(-4px);
}

.thumb-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.thumb-item p {
  padding: 8px;
  font-size: 0.9rem;
}

.thumb-prev,
.thumb-next {
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-prev:hover,
.thumb-next:hover {
  background: rgba(0,0,0,0.7);
}

.thumb-prev {
  position: absolute;
  left: -18px;
}

.thumb-next {
  position: absolute;
  right: -18px;
}

/* Hide scrollbar for WebKit browsers */
.thumb-track::-webkit-scrollbar {
  display: none;
}

/* Sections / Panels */
.strip { padding: 36px 0; }
.accent { background: var(--bg-2); padding: 48px 0; }
.cta-panel {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px; box-shadow: var(--shadow-1);
}

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card.stat h3 { color: var(--brand); margin-bottom: .3rem; }
.link-card { transition: box-shadow .2s ease, transform .06s ease; }
.link-card:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }

/* Media card (image blocks) */
.media-card {
  min-height: 220px; background-size: cover; background-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow-1); border: 1px solid var(--border);
}

/* Grids */
.grid-2, .grid-3, .grid-4 {
  display: grid; gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Lists */
ul.clean { list-style: none; margin: 0; padding: 0; }
ul.checklist { list-style: none; margin: 0; padding: 0; }
ul.checklist li {
  position: relative; padding-left: 28px; margin: 8px 0;
}
ul.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; line-height: 1.2;
  color: var(--brand); font-weight: 700;
}

/* Steps (ordered) */
ol.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
ol.steps li {
  counter-increment: step; margin: 10px 0; padding-left: 36px; position: relative;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
thead th {
  text-align: left; background: #111; color: #fff; padding: 12px; font-weight: 600;
}
tbody td { padding: 12px; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: #fafafa; }

/* Footer */
.site-footer { background: #0b0b0b; color: #d1d5db; margin-top: 40px; }
.footer-inner {
  display: grid; gap: 20px; grid-template-columns: 1.2fr .8fr .8fr; padding: 28px 0;
}
.site-footer a { color: #ffffff; }
.footer-base { border-top: 1px solid #1f2937; padding: 12px 0; background: #090909; }

/* Forms (contact page ready) */
form { display: grid; gap: 12px; }
.input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(198,5,6,.15);
}

/* Utilities */
.badge {
  display: inline-block; padding: 4px 10px; font-size: .8rem; border-radius: 999px; background: #111; color: #fff;
}
hr { border: 0; height: 1px; background: var(--border); margin: 20px 0; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 56vh; }
  .header-inner { height: 60px; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; right: 16px; top: 60px; background: #fff;
    border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-2);
    padding: 10px; display: none; flex-direction: column; gap: 6px; min-width: 220px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .cta-panel { flex-direction: column; align-items: stretch; }
}
