/* ============================================================
   SOURCEHIVE GLOBAL — PREMIUM DESIGN SYSTEM
   Overrides & enhances the base Bootstrap + style.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --clr-brand:       #e13300;
  --clr-brand-dark:  #b82900;
  --clr-brand-light: #ff5c2e;
  --clr-navy:        #0d1b2a;
  --clr-charcoal:    #1c2333;
  --clr-surface:     #f7f8fc;
  --clr-white:       #ffffff;
  --clr-text:        #2d3748;
  --clr-muted:       #718096;
  --clr-border:      #e2e8f0;
  --clr-gold:        #c9993e;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.15);
  --shadow-brand: 0 8px 30px rgba(225,51,0,.25);

  --transition: all .28s cubic-bezier(.4,0,.2,1);
}

/* ── Base Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-navy);
}

p { line-height: 1.75; }

a {
  color: var(--clr-brand);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--clr-brand-dark); }

/* ── Spinner ──────────────────────────────────────────────── */
#spinner {
  background: var(--clr-white) !important;
  z-index: 9999;
}
.spinner-grow { color: var(--clr-brand) !important; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-surface); }
::-webkit-scrollbar-thumb {
  background: var(--clr-brand);
  border-radius: 4px;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.top-bar {
  background: var(--clr-navy) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .82rem;
  letter-spacing: .02em;
  padding: 8px 0;
}
.top-bar a {
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}
.top-bar a:hover { color: var(--clr-brand-light); }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: rgba(13, 27, 42, .96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 !important;
  transition: var(--transition);
}

/* Scrolled state — added via JS */
.navbar.scrolled {
  background: rgba(13, 27, 42, 1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.navbar-brand img {
  transition: opacity .2s;
}
.navbar-brand:hover img { opacity: .85; }

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8) !important;
  padding: 28px 18px !important;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--clr-brand);
  border-radius: 2px 2px 0 0;
  transition: width .3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-white) !important;
}
.nav-link:hover::after,
.nav-link.active::after { width: 60%; }

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--clr-brand); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--clr-brand) !important;
  border-color: var(--clr-brand) !important;
  color: var(--clr-white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--clr-brand-dark) !important;
  border-color: var(--clr-brand-dark) !important;
  box-shadow: 0 12px 36px rgba(225,51,0,.35);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-sm-square {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clr-white);
  color: var(--clr-brand);
  font-size: .8rem;
  transition: var(--transition);
}

.btn-outline-primary {
  border: 2px solid var(--clr-brand);
  color: var(--clr-brand);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-primary:hover {
  background: var(--clr-brand);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-link {
  color: rgba(255,255,255,.6) !important;
  padding: 4px 0 !important;
  display: block !important;
  font-size: .9rem;
  transition: var(--transition);
}
.btn-link:hover {
  color: var(--clr-brand-light) !important;
  padding-left: 6px !important;
}

/* ── Hero Carousel ────────────────────────────────────────── */
#header-carousel { margin-top: 0; }

.carousel-item img {
  height: 640px;
  object-fit: cover;
  filter: brightness(.55);
}

.carousel-caption {
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0;
  text-align: left;
}
.carousel-caption .container { padding: 0 1.5rem; }

.carousel-caption h1,
.carousel-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--clr-white);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  line-height: 1.15;
}

.carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.78);
  margin-bottom: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: .7;
  transition: opacity .2s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  transition: var(--transition);
}
.carousel-indicators .active {
  background: var(--clr-brand);
  transform: scale(1.3);
}

/* ── Section Base ─────────────────────────────────────────── */
section { padding: 90px 0; }

.section-tag {
  display: inline-block;
  background: rgba(225,51,0,.1);
  color: var(--clr-brand);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(225,51,0,.2);
}

/* Override existing badge */
.bg-secondary.text-primary {
  background: rgba(225,51,0,.1) !important;
  color: var(--clr-brand) !important;
  border: 1px solid rgba(225,51,0,.2);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.display-6 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-navy);
}

/* ── Services / Expertise Cards ───────────────────────────── */
.service-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--clr-white);
  overflow: hidden;
  position: relative;
}

.service-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--clr-brand);
  transform: scaleX(0);
  transition: transform .35s ease;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-item:hover::before { transform: scaleX(1); }

.service-item img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
  transition: transform .35s ease;
}
.service-item:hover img { transform: scale(1.08); }

.service-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.5;
}

/* ── About Cards ──────────────────────────────────────────── */
.about-card {
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: var(--clr-white) !important;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-brand), var(--clr-brand-light));
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.about-card h3 {
  color: var(--clr-brand) !important;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.about-card p { color: var(--clr-muted); }

/* Override existing about cards */
.service-item.border-bottom.border-5.border-primary {
  border: none !important;
}

/* ── Brands Carousel ──────────────────────────────────────── */
.brand-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  max-width: 340px;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(225,51,0,.2);
}

.brand-logo-wrap {
  width: 100%;
  height: 180px;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 24px;
  transition: var(--transition);
}

.brand-card:hover .brand-logo-wrap {
  background: rgba(225,51,0,.04);
}

.brand-logo {
  max-height: 120px;
  max-width: 200px;
  object-fit: contain;
  transition: transform .35s ease;
}
.brand-card:hover .brand-logo { transform: scale(1.07); }

.brand-name { color: var(--clr-brand) !important; font-weight: 600; }
.brand-name-fallback {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--clr-brand);
  font-weight: 700;
}
.brand-desc { color: var(--clr-muted) !important; line-height: 1.6; }

/* ── Countries / Testimonials Carousel ───────────────────── */
.country-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  max-width: 280px;
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.country-flag {
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: transform .35s ease;
}
.country-card:hover .country-flag { transform: scale(1.04); }

.country-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--clr-navy);
}

/* ── Owl Carousel Dots ────────────────────────────────────── */
.owl-dots { margin-top: 28px !important; }

.owl-dot span {
  background: var(--clr-border) !important;
  border-radius: 50% !important;
  width: 10px !important;
  height: 10px !important;
  transition: var(--transition);
}
.owl-dot.active span, .owl-dot:hover span {
  background: var(--clr-brand) !important;
  transform: scale(1.3);
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--clr-navy) 0%, #1c3a5c 50%, var(--clr-charcoal) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,.1));
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--clr-white) !important;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-section {
  background: var(--clr-white);
}

.form-floating > .form-control,
.form-floating > .form-select {
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  font-family: var(--font-body);
  color: var(--clr-text);
  transition: var(--transition);
}

.form-floating > .form-control:focus {
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 4px rgba(225,51,0,.1);
  background: var(--clr-white);
  outline: none;
}

.form-floating > label {
  color: var(--clr-muted);
  font-family: var(--font-body);
  font-size: .9rem;
}

textarea.form-control { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: linear-gradient(135deg, var(--clr-navy), #1c3a5c);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: var(--clr-white);
  height: 100%;
}

.contact-info-card h3 {
  color: var(--clr-white);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(225,51,0,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-brand-light);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(225,51,0,.3);
}

.contact-detail-text strong {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-detail-text span,
.contact-detail-text a {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
}
.contact-detail-text a:hover { color: var(--clr-brand-light); }

/* Form status messages */
#form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-weight: 500;
  margin-top: 16px;
}
#form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
#form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ── Footer ───────────────────────────────────────────────── */
footer.footer {
  background: var(--clr-navy) !important;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer h4, .footer h5 {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  color: rgba(255,255,255,.9) !important;
  margin-bottom: 20px !important;
}

.footer p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  line-height: 1.8;
}

.footer address p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  margin-bottom: 10px;
}

.footer address a {
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}
.footer address a:hover { color: var(--clr-brand-light); }

/* Newsletter */
.footer .form-control {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: var(--clr-white) !important;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.footer .form-control::placeholder { color: rgba(255,255,255,.35); }
.footer .form-control:focus {
  background: rgba(255,255,255,.1) !important;
  border-color: var(--clr-brand) !important;
  box-shadow: 0 0 0 3px rgba(225,51,0,.2);
  outline: none;
}

.footer .btn-primary {
  font-size: .82rem;
  padding: 8px 18px;
  border-radius: 4px;
}

/* Copyright bar */
.copyright {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
  font-size: .85rem;
  color: rgba(255,255,255,.35);
}
.copyright a {
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.copyright a:hover { color: var(--clr-brand-light); }

/* ── Back to Top ──────────────────────────────────────────── */
.back-to-top {
  width: 46px !important;
  height: 46px !important;
  background: var(--clr-brand) !important;
  border-color: var(--clr-brand) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-brand);
  transition: var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
}
.back-to-top:hover {
  background: var(--clr-brand-dark) !important;
  transform: translateY(-3px);
}

/* ── Page transitions ─────────────────────────────────────── */
.wow { animation-fill-mode: both; }

/* ── Utility classes ──────────────────────────────────────── */
.text-brand { color: var(--clr-brand); }
.bg-brand   { background: var(--clr-brand); }

.divider {
  height: 4px;
  width: 60px;
  background: var(--clr-brand);
  border-radius: 2px;
  margin: 16px auto 24px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .carousel-item img { height: 420px; }
  .carousel-caption h1, .carousel-caption h2 { font-size: 1.9rem; }
  .nav-link { padding: 12px 16px !important; }
  .nav-link::after { display: none; }

  .navbar-collapse {
    background: var(--clr-navy);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 0;
  }
}

@media (max-width: 575.98px) {
  section { padding: 60px 0; }
  .carousel-item img { height: 320px; }
  .page-header { padding: 130px 0 60px; }
  .display-6 { font-size: 1.6rem; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .navbar, .back-to-top, #spinner { display: none !important; }
  body { font-size: 12pt; }
}
