/* =============================================
   RODATECH — Global CSS
   Design: Industrial / Petronas-grade
   Palette: #D0021B (red), #0077B6 (sky blue), #F5F5F5 (light), #fff
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #D0021B;
  --red-dark: #a80015;
  --navy: #0077B6;
  --navy-mid: #0096C7;
  --dark: #1a1a1a;
  --mid: #444;
  --light: #F5F5F5;
  --border: #e0e0e0;
  --white: #fff;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
p { margin-bottom: 0.8em; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; line-height: 1.8; }

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── SECTION HELPERS ── */
.section-pad { padding: 80px 0; }
.bg-dark { background: var(--navy); }
.bg-light { background: var(--light); }

.section-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}
.section-tag.light { color: rgba(255,255,255,0.6); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--mid); font-size: 1.05rem; }
.section-header h2.light, .section-header p.light { color: rgba(255,255,255,0.85); }
.section-header p.light { color: rgba(255,255,255,0.6); }

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white) !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(208,2,27,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white) !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 2px solid var(--dark);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 9px 0;
  font-size: 12px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
}
.topbar-left a { color: rgba(255,255,255,0.65); }
.topbar-left a:hover { color: var(--white); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.65);
}
.topbar-right a {
  color: rgba(255,255,255,0.65);
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.topbar-right a:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.logo-text { align-items: center; gap: 0; font-family: var(--font-display); font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.logo-roda { color: var(--red); }
.logo-tech { color: var(--navy); }

.main-nav ul { display: flex; align-items: center; list-style: none; gap: 4px; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active { color: var(--red); }
.main-nav ul li.has-dropdown > a::after { content: ' ▾'; font-size: 10px; }

/* Dropdown */
.dropdown, .mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown { min-width: 200px; padding: 8px 0; }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.dropdown a:hover { border-left-color: var(--red); color: var(--red); background: var(--light); }

/* Mega dropdown (unused, kept for Solutions if needed) */
.mega-dropdown {
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(820px, 92vw);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 24px 24px 0;
}
.has-dropdown:hover .mega-dropdown { transform: translateX(-50%) translateY(0); }

/* ── SERVICES FLYOUT DROPDOWN ── */
.svc-flyout {
  min-width: 230px !important;
  padding: 0 !important;
}
.svc-fly-item {
  position: relative;
}
.svc-fly-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  cursor: default;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.svc-fly-label span {
  font-size: 14px;
  color: var(--mid);
  transition: color 0.15s;
}
.svc-fly-item:hover .svc-fly-label {
  background: var(--red);
  color: #fff;
}
.svc-fly-item:hover .svc-fly-label span { color: rgba(255,255,255,.7); }
.svc-fly-item:last-of-type .svc-fly-label { border-bottom: none; }

/* Sub-items fly out to the right */
.svc-fly-sub {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: all 0.18s ease;
  z-index: 300;
}
.svc-fly-item:hover .svc-fly-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.svc-fly-sub a {
  display: block !important;
  padding: 9px 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--mid) !important;
  border-left: 3px solid transparent !important;
  background: none !important;
  transition: all 0.15s !important;
  white-space: nowrap;
}
.svc-fly-sub a:hover {
  border-left-color: var(--red) !important;
  color: var(--red) !important;
  background: var(--light) !important;
  padding-left: 24px !important;
}
.svc-fly-footer {
  padding: 10px 18px;
  background: var(--light);
  border-top: 1px solid var(--border);
}
.svc-fly-footer a {
  font-family: var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--red) !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
}
.svc-fly-footer a:hover { color: var(--red-dark) !important; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ── PAGE BANNER (inner pages) ── */
.page-banner {
  background: linear-gradient(90deg, var(--red) 0%, #b00016 45%, var(--navy) 100%);
  padding: 12px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(0,0,0,.18);
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 8px,
    rgba(255,255,255,.03) 8px, rgba(255,255,255,.03) 9px
  );
}
.page-banner .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-banner h1 {
  display: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,.6); }
.breadcrumb .current { color: #fff; font-weight: 800; }
.breadcrumb .sep { color: rgba(255,255,255,.4); font-size: 10px; }

/* ── LEFT SIDEBAR NAV ── */
.sidebar-nav { position: sticky; top: 90px; }

/* Mobile sidebar toggle button — hidden on desktop */
.sidebar-mobile-toggle {
  display: none;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}
.sidebar-mobile-toggle svg { transition: transform 0.3s; flex-shrink: 0; }
.sidebar-mobile-toggle.open svg { transform: rotate(180deg); }
.sidebar-mobile-body { overflow: hidden; transition: max-height 0.35s ease; max-height: 2000px; }
.sidebar-mobile-body.collapsed { max-height: 0; }

.sidebar-section { margin-bottom: 4px; border: 1px solid var(--border); overflow: hidden; }

.sidebar-section-header {
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}
.sidebar-section-header:hover { background: var(--red-dark); }
.sidebar-section-header .toggle { font-size: 14px; transition: transform 0.2s; }
.sidebar-section.open .sidebar-section-header .toggle { transform: rotate(180deg); }

.sidebar-items { list-style: none; }
.sidebar-items li { margin-bottom: 0; }
.sidebar-items li a {
  display: block;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  background: #f7f7f7;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.sidebar-items li:last-child a { border-bottom: none; }
.sidebar-items li a:hover,
.sidebar-items li a.active {
  border-left-color: var(--red);
  color: var(--red);
  background: var(--white);
  padding-left: 20px;
}

.sidebar-sub-items { list-style: none; display: none; }
.sidebar-section.open .sidebar-sub-items { display: block; }
.sidebar-sub-items li a {
  padding: 8px 16px 8px 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #fafafa;
}
.sidebar-sub-items li a::before { content: '→ '; color: var(--red); }

/* ── RIGHT SIDEBAR INFO BOX ── */
.info-box {
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}
.info-box-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.info-box-body { padding: 0; }
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row-icon {
  color: var(--red);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}
.info-row-content { flex: 1; }
.info-row-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 3px;
}
.info-row-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}
.info-box .btn-primary { width: 100%; justify-content: center; border-radius: 0; margin: 0; }

/* ── CARDS ── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.item-card {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.item-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
  transform: translateY(-3px);
}
.item-card-img {
  height: 220px;
  overflow: hidden;
  background: #eee;
  position: relative;
}
.item-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.item-card:hover .item-card-img img { transform: scale(1.04); }
.item-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.item-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.item-card-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.item-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.25;
}
.item-card-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 0;
  flex: 1;
}
.item-card-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-card-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.item-card-link:hover { gap: 10px; }

/* ── PAGE LAYOUT (with sidebars) ── */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 40px;
  padding: 36px 0;
  align-items: start;
}
.page-layout.no-right { grid-template-columns: 260px 1fr; }
.page-layout.no-left { grid-template-columns: 1fr 300px; }

/* ── SERVICE / SOLUTIONS PAGE LAYOUT (left sidebar + content) ── */
.svc-page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  padding: 56px 0 80px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.footer-about p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-col address { font-size: 13px; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 13px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  gap: 16px;
}

/* ── CTA SECTION ── */
.cta-section { background: var(--navy); }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
  align-items: center;
}
.cta-text h2 { color: var(--white); margin-bottom: 16px; }
.cta-text p { color: rgba(255,255,255,0.65); font-size: 1rem; }
.cta-text .section-tag { margin-bottom: 16px; }

.cta-form-area {
  background: var(--white);
  padding: 36px;
}
.cta-form-area h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); background: var(--white); }
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { border: none; cursor: pointer; width: 100%; justify-content: center; }

.contact-details-bar { background: rgba(0,0,0,0.25); padding: 32px 0; }
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.cd-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-detail strong { display: block; color: var(--white); margin-bottom: 4px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-detail a { color: rgba(255,255,255,0.75); }
.contact-detail a:hover { color: var(--white); }

/* ── CHECK LIST ── */
.check-list { list-style: none; margin: 16px 0 24px; }
.check-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--mid);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ── TABS ── */
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px 8px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-content { display: none; padding-top: 16px; font-size: 14px; color: var(--mid); }
.tab-content.active { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .mega-dropdown { grid-template-columns: repeat(3, 1fr); width: min(640px, 90vw); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-layout { grid-template-columns: 220px 1fr 260px; gap: 28px; }
}

@media (max-width: 900px) {
  .topbar-left { display: none; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: fixed; inset: 72px 0 0 0; background: var(--white); overflow-y: auto; z-index: 999; padding: 16px; }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open ul li a { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .main-nav.open .mega-dropdown,
  .main-nav.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 3px solid var(--red); margin-left: 16px; width: auto; grid-template-columns: 1fr; padding: 8px; }
  .main-nav.open .svc-flyout { border-left: 3px solid var(--red); padding: 0 !important; }
  .main-nav.open .svc-fly-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 3px solid var(--border); margin-left: 12px; padding: 4px 0; min-width: 0; }
  .main-nav.open .svc-fly-label { padding: 10px 12px; font-size: 11px; border-bottom: none; }
  .main-nav.open .svc-fly-label span { display: none; }
  .main-nav.open .svc-fly-item:hover .svc-fly-label { background: none; color: var(--red); }
  .main-nav.open .svc-fly-sub a { padding: 6px 12px !important; font-size: 11px !important; }
  .main-nav.open .svc-fly-footer { background: none; border: none; padding: 6px 12px; }
  .main-nav.open .mega-col { border-right: none; padding: 8px 0; }
  .main-nav.open .mega-footer { margin-top: 4px; padding: 8px 0; }
  .hamburger { display: flex; }
  .page-layout { grid-template-columns: 1fr; }
  .svc-page-layout { grid-template-columns: 1fr; gap: 0; padding: 24px 0 60px; }
  .sidebar-nav { position: static; margin-bottom: 20px; }
  .contact-details-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  /* Sidebar: show toggle button, hide body by default */
  .sidebar-mobile-toggle { display: flex; }
  .sidebar-section-header { padding: 10px 14px; }
  /* Page banner */
  .page-banner h1 { font-size: 1.6rem; }
  .breadcrumb { font-size: 10px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section-pad { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .contact-details-grid { grid-template-columns: 1fr; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .section-header-flex { flex-direction: column; align-items: flex-start; }
  /* Header */
  .logo-text { font-size: 22px !important; }
  .header-actions .btn-primary { display: none; }
  /* Hero */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  /* Service pages: gallery */
  .svc-slide { height: 240px !important; }
  .svc-thumbs { gap: 4px; }
  .svc-thumb { width: 56px; height: 40px; }
  /* Service pages: 2-col grid becomes 1-col */
  div[style*="grid-template-columns:240px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Contact form */
  .contact-page-grid { gap: 32px; }
  .contact-map { height: 280px; }
  /* Portfolio gallery */
  .pf-main-slide { height: 260px; }
  /* Topbar */
  .topbar { font-size: 11px; }
  .topbar-right a { font-size: 11px; }
  /* Browse more cards */
  .browse-more-header { flex-direction: column; gap: 12px; }
  .browse-more-tabs { overflow-x: auto; white-space: nowrap; }
  .bm-tab { font-size: 10px; padding: 6px 12px; }
}

/* Extra small phones */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .logo-text { font-size: 20px !important; }
  h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; text-align: center; }
  .svc-slide { height: 200px !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── CLIENTS SLIDER ── */
.clients-slider-wrap {
  position: relative;
  overflow: hidden;
}
.clients-track {
  display: flex;
  transition: transform 0.5s ease;
}
.clients-track .client-logo {
  min-width: 25%; /* 4 per view */
  flex-shrink: 0;
}
.clients-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.clients-nav button {
  background: none;
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 14px;
  color: var(--mid);
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.clients-nav button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.clients-nav-dots { display: flex; gap: 6px; }
.clients-nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  border: none; transition: background 0.2s;
}
.clients-nav-dot.on { background: var(--red); }

/* ── PORTFOLIO FULL GALLERY SLIDER ── */
.pf-full-gallery {
  position: relative;
  margin-bottom: 32px;
  background: #111;
  overflow: hidden;
}
.pf-full-slides {
  display: flex;
  transition: transform 0.45s ease;
}
.pf-full-slide {
  min-width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.pf-slide-ph {
  text-align: center;
  color: rgba(255,255,255,.25);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 20px;
}
.pf-gallery-prev, .pf-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 48px; height: 48px;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.pf-gallery-prev { left: 16px; }
.pf-gallery-next { right: 16px; }
.pf-gallery-prev:hover, .pf-gallery-next:hover { background: var(--red); }
.pf-gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.pf-gallery-thumb-btn {
  flex: 1;
  height: 72px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pf-gallery-thumb-btn.active,
.pf-gallery-thumb-btn:hover {
  border-color: var(--red);
}
.pf-gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
}

/* ── PORTFOLIO BROWSE SECTION ── */
.pf-browse {
  background: var(--light);
  padding: 48px 0;
  margin-top: 48px;
}
.pf-browse-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.pf-browse-tab {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--mid);
  transition: all 0.2s;
}
.pf-browse-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.pf-browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pf-browse-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.pf-browse-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border-color: var(--red);
  transform: translateY(-2px);
}
.pf-browse-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pf-browse-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.pf-browse-info {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pf-browse-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.25;
  flex: 1;
}
.pf-browse-link {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.pf-browse-card:hover .pf-browse-link { gap: 8px; }

@media(max-width:900px){
  .clients-track .client-logo { min-width: 33.333%; }
  .pf-browse-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:600px){
  .clients-track .client-logo { min-width: 50%; }
  .pf-browse-grid { grid-template-columns: 1fr 1fr; }
  .pf-full-slide { height: 260px; }
}

/* ── COOKIE CONSENT BANNER (PDPA) ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: rgba(255,255,255,0.85);
  padding: 18px 24px;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; max-width: 680px; }
.cookie-banner a { color: var(--red); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--red-dark); }
.cookie-decline {
  background: none;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-decline:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 16px; gap: 14px; }
  .cookie-banner p { font-size: 12px; }
}

/* ── WHATSAPP FLOATING BUTTON ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 72px;
  background: #fff;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ── BACK TO TOP BUTTON ── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,119,182,0.35);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--red); }
.back-to-top svg { width: 20px; height: 20px; fill: #fff; }

@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .whatsapp-float .wa-tooltip { display: none; }
  .back-to-top { bottom: 84px; right: 20px; width: 40px; height: 40px; }
}

