/*
Theme Name: Digi Converge Media
Theme URI: https://digi.oceanfilmhouse.com
Description: Official WordPress & Elementor child theme for Digi Converge Media. Premium international digital growth, creative, technology, and AI agency design system - Light Edition.
Author: Digi Converge Media
Template: astra
Version: 2.4.0
*/

:root {
  /* Brand Color System - Clean Modern Light Theme */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;

  --gold-primary: #D97706;
  --gold-bright: #F59E0B;
  --gold-deep: #B45309;
  --gold-glow: rgba(217, 119, 6, 0.12);

  --text-primary: #1E293B;
  --text-secondary: #334155;
  --text-muted: #64748B;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-gold: rgba(217, 119, 6, 0.35);
  --border-gold-hover: rgba(217, 119, 6, 0.65);

  /* Typography System */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Container & Grid Tokens (Max Width: 1240px) */
  --container-max-width: 1240px;
  --container-pad-desktop: 36px;
  --container-pad-tablet: 28px;
  --container-pad-mobile: 20px;

  /* Component Dimensions */
  --header-height-desktop: 74px;
  --header-height-mobile: 68px;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows - Crisp Light Mode Shadows */
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 20px -2px rgba(217, 119, 6, 0.15);
  --shadow-button-glow: 0 4px 18px rgba(217, 119, 6, 0.25);
  --shadow-button-glow-hover: 0 8px 28px rgba(217, 119, 6, 0.40);
}

/* ==================================================
   1. BASE RESETS & ROOT BEHAVIORS
   ================================================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  background-color: var(--bg-primary) !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-sans) !important;
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dcm-menu-open {
  overflow: hidden !important;
  height: 100vh !important;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================================================
   2. UNIFIED CONTAINER & ALIGNMENT SYSTEM
   ================================================== */
.dcm-container,
.dcm-homepage-container,
.dcm-page-container {
  width: 100%;
  max-width: var(--container-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-pad-desktop) !important;
  padding-right: var(--container-pad-desktop) !important;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-parent:not(.e-con-full) {
  max-width: var(--container-max-width) !important;
}

/* ==================================================
   3. GLOBAL TYPOGRAPHY SYSTEM
   Headings: Space Grotesk | Body/UI: Inter
   ================================================== */
h1, .dcm-h1 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  color: var(--text-primary) !important;
  font-size: clamp(48px, 4.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  margin-top: 0;
  margin-bottom: 24px;
  word-break: break-word;
}

h2, .dcm-h2 {
  font-family: var(--font-display) !important;
  font-weight: 700;
  color: var(--text-primary) !important;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-top: 0;
  margin-bottom: 16px;
  word-break: break-word;
}

h3, .dcm-h3 {
  font-family: var(--font-display) !important;
  font-weight: 600;
  color: var(--text-primary) !important;
  font-size: 24px;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 12px;
}

h4, .dcm-h4 {
  font-family: var(--font-display) !important;
  font-weight: 600;
  color: var(--text-primary) !important;
  font-size: 18px;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 10px;
}

h5, h6 {
  font-family: var(--font-display) !important;
  font-weight: 600;
  color: var(--text-primary) !important;
}

p, .dcm-body {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 18px;
  max-width: 680px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* Eyebrows & Labels */
.dcm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.dcm-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 100%;
}

/* ==================================================
   4. HEADER REFINEMENT (Light Mode)
   Desktop: 74px height, 36px padding, vertically centered
   Mobile: 68px height, 20px padding
   ================================================== */
.dcm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-desktop);
  z-index: 99999;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.dcm-header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.dcm-header-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Official Logo Display */
.dcm-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.dcm-brand-logo {
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dcm-logo:hover .dcm-brand-logo {
  transform: scale(1.02);
  opacity: 0.95;
}

/* Desktop Navigation Menu */
.dcm-nav {
  display: flex;
  align-items: center;
}

.dcm-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dcm-nav-menu > li {
  position: relative;
}

.dcm-nav-menu a {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dcm-nav-menu a:hover,
.dcm-nav-menu .current-menu-item > a {
  color: var(--gold-deep);
}

/* Dropdown Sub-Menu */
.dcm-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 275px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 0;
  list-style: none;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  display: none;
  z-index: 10000;
}

.dcm-nav-menu li:hover > .sub-menu {
  display: block;
}

.dcm-nav-menu .sub-menu li a {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.dcm-nav-menu .sub-menu li a:hover {
  color: var(--gold-deep);
  background: rgba(217, 119, 6, 0.06);
  padding-left: 24px;
}

/* Header Action CTA */
.dcm-header-cta {
  display: flex;
  align-items: center;
}

/* ==================================================
   5. UNIFIED BUTTON SYSTEM
   Height: 48px | Font: 14px, 600 weight | Padding: 0 24px
   ================================================== */
.btn-gold,
a.btn-gold,
button.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(135deg, #FFC62A 0%, #F4B400 60%, #D99A00 100%);
  color: #1E293B !important;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-button-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-gold:hover,
a.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-glow-hover);
  color: #1E293B !important;
  filter: brightness(1.04);
}

.btn-outline,
a.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-outline:hover,
a.btn-outline:hover {
  background: rgba(217, 119, 6, 0.06);
  border-color: var(--gold-primary);
  color: var(--gold-deep) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ==================================================
   6. MOBILE HAMBURGER BUTTON & DRAWER
   ================================================== */
.dcm-hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.25s ease;
  z-index: 100001;
}

.dcm-hamburger-btn:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: var(--border-gold);
}

.dcm-hamburger-btn .bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.3s ease;
}

.dcm-hamburger-btn.active {
  background: rgba(217, 119, 6, 0.12);
  border-color: var(--gold-primary);
}

.dcm-hamburger-btn.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
  background: var(--text-primary);
}

.dcm-hamburger-btn.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.dcm-hamburger-btn.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--text-primary);
}

/* Mobile Drawer */
.dcm-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  height: calc(100dvh - var(--header-height-mobile));
  background: #FFFFFF;
  z-index: 99990;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.dcm-mobile-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dcm-drawer-content {
  padding: 24px 20px 48px;
  max-width: 500px;
  margin: 0 auto;
}

.dcm-drawer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.dcm-drawer-list > li {
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.dcm-drawer-link {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.dcm-drawer-link:hover {
  color: var(--gold-deep);
  padding-left: 6px;
}

.dcm-drawer-parent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dcm-drawer-parent-row .dcm-drawer-link {
  flex: 1;
}

.dcm-sub-toggle {
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 10px;
}

.dcm-sub-toggle svg {
  transition: transform 0.3s ease;
}

.dcm-has-sub.open .dcm-sub-toggle {
  background: var(--gold-primary);
  color: #FFFFFF;
}

.dcm-has-sub.open .dcm-sub-toggle svg {
  transform: rotate(180deg);
}

.dcm-drawer-sublist {
  display: none;
  list-style: none;
  padding: 8px 0 12px 14px;
  margin: 0 0 10px;
  border-left: 2px solid var(--gold-primary);
  background: #F8FAFC;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.dcm-has-sub.open .dcm-drawer-sublist {
  display: block;
}

.dcm-drawer-sublist li a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.dcm-drawer-sublist li a:hover {
  color: var(--gold-deep);
  padding-left: 6px;
}

.dcm-drawer-cta-wrap {
  margin-bottom: 24px;
}

.dcm-drawer-contacts {
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* ==================================================
   7. CONTENT & SECTION SPACING
   ================================================== */
.dcm-site-content {
  padding-top: var(--header-height-desktop);
  min-height: 80vh;
  background-color: var(--bg-primary);
}

.dcm-section {
  padding: 88px 0;
}

.dcm-section-large {
  padding: 105px 0;
}

/* Service & Feature Cards */
.dcm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dcm-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card-hover);
}

.dcm-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.dcm-card-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

.dcm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dcm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ==================================================
   8. CLEAN LIGHT FOOTER
   ================================================== */
.dcm-footer {
  background: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 35px;
  color: var(--text-secondary);
  font-size: 14px;
}

.dcm-footer-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad-desktop);
}

.dcm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 45px;
}

.dcm-footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.dcm-footer-logo {
  height: auto;
  max-height: 64px;
  width: auto;
  max-width: 195px;
  display: block;
  object-fit: contain;
}

.dcm-footer-col h4 {
  color: var(--text-primary) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.dcm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dcm-footer-col ul li {
  margin-bottom: 10px;
}

.dcm-footer-col ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.dcm-footer-col ul li a:hover {
  color: var(--gold-deep);
  padding-left: 4px;
}

.dcm-footer-bottom {
  padding-top: 25px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.dcm-footer-bottom a {
  color: var(--text-muted);
}

.dcm-footer-bottom a:hover {
  color: var(--gold-deep);
}

/* ==================================================
   9. GLOBAL FORM STYLES & CONTROLS
   ================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: #F8FAFC !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: #1E293B !important;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}

/* ==================================================
   10. RESPONSIVE BREAKPOINT AUDIT & REFINEMENTS
   ================================================== */
@media (max-width: 1280px) {
  .dcm-nav-menu {
    gap: 18px;
  }
  .dcm-nav-menu a {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-pad-desktop: var(--container-pad-tablet);
  }
  .dcm-header-container,
  .dcm-footer-container,
  .dcm-container,
  .dcm-homepage-container,
  .dcm-page-container {
    padding-left: var(--container-pad-tablet) !important;
    padding-right: var(--container-pad-tablet) !important;
  }
  .dcm-nav-menu {
    gap: 16px;
  }
  .dcm-nav-menu a {
    font-size: 12.5px;
  }
  h1, .dcm-h1 {
    font-size: 46px;
  }
  h2, .dcm-h2 {
    font-size: 36px;
  }
  .dcm-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .dcm-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  :root {
    --header-height-desktop: var(--header-height-mobile);
  }
  .dcm-header {
    height: var(--header-height-mobile);
  }
  .dcm-header.scrolled {
    height: 66px;
  }
  .dcm-site-content {
    padding-top: var(--header-height-mobile);
  }
  .dcm-mobile-drawer {
    display: block;
    top: var(--header-height-mobile);
    height: calc(100vh - var(--header-height-mobile));
    height: calc(100dvh - var(--header-height-mobile));
  }
  .dcm-header.scrolled + .dcm-mobile-drawer {
    top: 66px;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
  }
  .dcm-nav, .dcm-header-cta {
    display: none !important;
  }
  .dcm-hamburger-btn {
    display: flex !important;
  }
  .dcm-section {
    padding: 65px 0;
  }
  .dcm-section-large {
    padding: 75px 0;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad-desktop: var(--container-pad-mobile);
  }
  .dcm-header-container,
  .dcm-footer-container,
  .dcm-container,
  .dcm-homepage-container,
  .dcm-page-container {
    padding-left: var(--container-pad-mobile) !important;
    padding-right: var(--container-pad-mobile) !important;
  }
  .dcm-brand-logo {
    max-height: 40px;
    max-width: 160px;
  }
  h1, .dcm-h1 {
    font-size: 38px;
    line-height: 1.1;
  }
  h2, .dcm-h2 {
    font-size: 32px;
    line-height: 1.2;
  }
  h3, .dcm-h3 {
    font-size: 22px;
  }
  p, .dcm-body {
    font-size: 15.5px;
  }
  .dcm-grid-2,
  .dcm-grid-3,
  .dcm-grid-4 {
    grid-template-columns: 1fr;
  }
  .dcm-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .dcm-brand-logo {
    max-height: 38px;
    max-width: 145px;
  }
  h1, .dcm-h1 {
    font-size: 36px;
    line-height: 1.12;
  }
  h2, .dcm-h2 {
    font-size: 30px;
    line-height: 1.22;
  }
  h3, .dcm-h3 {
    font-size: 20px;
  }
  p, .dcm-body {
    font-size: 15px;
  }
  .dcm-section {
    padding: 55px 0;
  }
  .dcm-section-large {
    padding: 65px 0;
  }
  .btn-gold,
  a.btn-gold,
  .btn-outline,
  a.btn-outline {
    height: 46px;
    font-size: 13.5px;
    padding: 0 20px;
  }
  .dcm-footer {
    padding: 50px 0 25px;
  }
}

@media (max-width: 390px) {
  .dcm-brand-logo {
    max-height: 36px;
    max-width: 135px;
  }
  h1, .dcm-h1 {
    font-size: 34px;
  }
  h2, .dcm-h2 {
    font-size: 28px;
  }
}