/* ==========================================================================
   ATVI STUDIOS - UNIFIED DESIGN SYSTEM & STYLESHEET (MULTI-PAGE)
   ========================================================================== */

/* DESIGN TOKENS (DARK & LIGHT MODE) */
:root,
[data-theme="dark"] {
  --bg-deep: #060919;
  --bg-main: #0a0f28;
  --bg-card: rgba(20, 30, 72, 0.85);
  --bg-card-hover: rgba(30, 44, 102, 0.95);
  --bg-glass: rgba(16, 24, 58, 0.8);
  --border-glass: rgba(145, 175, 255, 0.22);
  --border-glow: rgba(107, 134, 255, 0.5);
  --text-main: #f4f6ff;
  --text-muted: #a6b2dd;
  --text-dim: #7280b2;
  --heading-color: #ffffff;
  --primary: #f5b544;
  --primary-glow: rgba(245, 181, 68, 0.45);
  --accent-cyan: #38bdf8;
  --accent-purple: #7c5cff;
  --accent-rose: #ff4d79;
  --accent-emerald: #10b981;
  --header-bg: rgba(6, 9, 25, 0.85);
  --header-bg-scrolled: rgba(20, 30, 72, 0.94);
  --input-bg: rgba(10, 16, 42, 0.8);
  --card-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 22px rgba(107, 134, 255, 0.12);
  --footer-bg: #050816;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 74px;
}



/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  overflow-x: clip;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(107, 134, 255, 0.12), transparent 70%),
    radial-gradient(circle at 90% 40%, rgba(245, 181, 68, 0.06), transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(124, 92, 255, 0.06), transparent 60%);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  transition: color 0.3s ease;
}

p {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* CONTAINER & UTILITIES */
.container {
  width: min(1280px, 92vw);
  margin-inline: auto;
}

.page-hero-banner {
  padding: 100px 0 28px;
  position: relative;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(107, 134, 255, 0.15), transparent 70%);
}

.page-hero-banner h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  margin-bottom: 14px;
}

.page-hero-banner p {
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 720px;
  margin-inline: auto;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 24px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
}

/* BESPOKE STUDIO LABELS (NON-AI EDITORIAL DESIGN) */
.section-label,
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-label::before,
.badge-tag::before {
  content: '';
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-cyan);
  margin-right: 2px;
}





.tag-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 181, 68, 0.1);
  border: 1px solid rgba(245, 181, 68, 0.25);
}



.section-title {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 16px;
}

.section-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--heading-color) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ffa31a);
  color: #0b0f24 !important;
  box-shadow: 0 8px 24px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px var(--primary-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 181, 68, 0.4);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
}

/* GLASS PANEL */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(245, 181, 68, 0.4);
}

.screen-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 40%), rgba(107, 134, 255, 0.06), transparent 70%);
  mix-blend-mode: screen;
}





/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 0;
  box-sizing: border-box;
  transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-radius 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    height 0.3s ease;
}

header.site-header.scrolled {
  top: 14px;
  width: min(1200px, 94vw);
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 32, 80, 0.94) 0%, rgba(14, 20, 56, 0.96) 50%, rgba(10, 15, 45, 0.98) 100%);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(145, 175, 255, 0.32);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 24px rgba(107, 134, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}



.site-header .container.nav-container,
.site-header .nav-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 36px;
  box-sizing: border-box;
  transition: padding 0.3s ease;
}

header.site-header.scrolled .container.nav-container,
header.site-header.scrolled .nav-container {
  padding: 0 26px 0 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--heading-color);
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 135px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.45));
}

.site-footer .brand-logo-img {
  height: 40px;
  max-width: 150px;
}

.brand-symbol {
  display: none;
}

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

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--heading-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.site-header .btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--heading-color);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
}

/* MOBILE DRAWER */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.mobile-nav-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
}

.mobile-nav-drawer a.active {
  color: var(--primary);
}

/* ==========================================================================
   BRAND PILLARS & CORE VALUES SECTION
   ========================================================================== */
.pillars-section {
  position: relative;
  overflow: hidden;
  padding: 85px 0;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(107, 134, 255, 0.12), transparent 70%),
    radial-gradient(circle at 90% 80%, rgba(245, 181, 68, 0.06), transparent 50%),
    radial-gradient(circle at 10% 30%, rgba(56, 189, 248, 0.06), transparent 55%);
}

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

@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.pillar-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background-color 0.35s ease;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--pillar-accent, var(--primary)), transparent);
  opacity: 0.65;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(var(--pillar-rgb, 107, 134, 255), 0.12), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(var(--pillar-rgb, 107, 134, 255), 0.45);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45), 0 0 26px rgba(var(--pillar-rgb, 107, 134, 255), 0.2);
}

.pillar-card:hover::before {
  opacity: 1;
  height: 4px;
}

.pillar-card:hover::after {
  opacity: 1;
}

.pillar-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(var(--pillar-rgb, 107, 134, 255), 0.12);
  border: 1px solid rgba(var(--pillar-rgb, 107, 134, 255), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pillar-accent, var(--primary));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 0 22px rgba(var(--pillar-rgb, 107, 134, 255), 0.4);
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
}

.pillar-num-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover .pillar-num-badge {
  color: var(--pillar-accent, var(--primary));
  border-color: rgba(var(--pillar-rgb, 107, 134, 255), 0.35);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.pillar-card:hover h3 {
  color: #ffffff;
}



.pillar-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}

/* ==========================================================================
   FOOTER - EYE-CATCHING LUXURY STATIC EXECUTIVE SYSTEM
   ========================================================================== */
footer.site-footer {
  padding: 28px 0 28px;
  background-color: #070c20;
  background-image:
    radial-gradient(circle at 88% 50%, rgba(56, 189, 248, 0.16), transparent 50%),
    radial-gradient(circle at 12% 60%, rgba(124, 92, 255, 0.15), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.65);
}

.footer-carpet-glow-fan {
  display: none !important;
}

.footer-carpet-track {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}



.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--heading-color);
  margin-bottom: 18px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: var(--text-muted);
  font-size: 14.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.22s ease, transform 0.22s ease, text-shadow 0.22s ease;
  position: relative;
  width: fit-content;
}

.footer-nav-list a::before {
  content: '›';
  font-size: 14px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.22s ease;
}

.footer-nav-list a:hover {
  color: var(--heading-color);
  transform: translateX(4px);
  text-shadow: 0 0 12px var(--primary-glow);
}

.footer-nav-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-item a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-contact-item a:hover {
  opacity: 0.85;
}

.footer-bottom-bar {
  padding-top: 26px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-bottom-tags {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 15, 0.85);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content-box {
  width: min(840px, 94vw);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-backdrop.open .modal-content-box {
  transform: scale(1);
}

.modal-header-bar {
  padding: 18px 24px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading-color);
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #ffffff;
}

/* ==========================================================================
   INPUTS & FORMS
   ========================================================================== */
.input-field,
.textarea-field,
.select-field {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--input-bg);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.select-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f5b544' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

.select-field option {
  background-color: #0c1433;
  color: #ffffff;
  padding: 14px 18px;
  font-size: 15px;
}

.select-field option:checked {
  background-color: #162454;
  color: var(--primary);
}

.input-field:focus,
.textarea-field:focus,
.select-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  background: rgba(16, 24, 60, 0.9);
}

.textarea-field {
  min-height: 140px;
  resize: vertical;
}

/* ==========================================================================
   GLOBAL RESPONSIVE ARCHITECTURE (ANY DEVICE COMPATIBILITY)
   ========================================================================== */

/* 1. Large Laptops & Desktops (max-width: 1280px) */
@media (max-width: 1280px) {
  .container {
    width: min(100% - 48px, 1200px);
  }
}

/* 2. Laptops & Compact Desktops (max-width: 1120px) */
@media (max-width: 1120px) {
  .nav-menu {
    gap: 12px;
  }

  .nav-link {
    font-size: 13px;
  }

  .site-header .btn-sm {
    padding: 7px 14px;
    font-size: 13px;
  }
}

/* 3. Tablets & iPads (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }
  
  .container {
    width: min(100% - 40px, 960px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .page-hero-banner {
    padding: 85px 0 24px;
  }

  .contact-layout-grid,
  .estimator-container-box {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .estimator-container-box {
    padding: 32px 24px !important;
  }
}

/* 4. Tablets Portrait & Mobile Widescreen (max-width: 860px) */
@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
  }

  header.site-header.scrolled {
    top: 8px;
    width: min(100% - 24px, 94vw);
    height: 58px;
  }

  .site-header .nav-container {
    padding: 0 16px !important;
  }

  .brand-logo-img {
    height: 30px;
    max-width: 110px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* 5. Mobile Phones (max-width: 640px) */
@media (max-width: 640px) {
  :root {
    --header-height: 62px;
    --radius-lg: 16px;
    --radius-xl: 20px;
  }

  .container {
    width: 100% !important;
    padding-inline: 16px !important;
  }

  .page-hero-banner {
    padding: 78px 0 20px;
  }

  .page-hero-banner h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .section-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .section-lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .section-label,
  .badge-tag {
    font-size: 11px;
    gap: 6px;
    letter-spacing: 0.1em;
  }

  /* Buttons & CTAs */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-sm {
    padding: 7px 12px;
    font-size: 12px;
  }

  .hero-actions,
  .btn-group,
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn,
  .btn-group .btn,
  .hero-btn-group .btn,
  .btn-block {
    width: 100%;
  }

  /* Header adjustments for small screens */
  .site-header .btn-sm {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  /* Mobile Drawer */
  .mobile-nav-drawer {
    padding: 60px 20px 40px;
    justify-content: flex-start;
    overflow-y: auto;
    gap: 18px;
  }

  .mobile-nav-drawer a {
    font-size: 19px;
  }

  /* Modals */
  .modal-backdrop {
    padding: 12px;
  }

  .modal-content-box {
    width: 100%;
    border-radius: var(--radius-lg);
  }

  .modal-header-bar {
    padding: 14px 16px;
  }

  /* Forms & Inputs (Prevents iOS Safari auto-zoom) */
  .input-field,
  .textarea-field,
  .select-field {
    font-size: 16px;
    padding: 14px 16px;
  }

  .contact-form-panel,
  .estimator-container-box,
  .service-box {
    padding: 22px 16px !important;
  }

  /* Footer on mobile */
  footer.site-footer {
    padding: 20px 0 20px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    align-items: center;
  }
}

/* 6. Extra Small / Compact Devices (max-width: 380px) */
@media (max-width: 380px) {
  .brand-logo-img {
    height: 26px;
    max-width: 95px;
  }

  .site-header .nav-container {
    padding: 0 10px !important;
  }

  .page-hero-banner h1 {
    font-size: 26px;
  }

  .section-title {
    font-size: 22px;
  }
}

/* 7. High-DPI / Touch Enhancements */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .icon-btn,
  .btn:not(.btn-sm),
  .footer-nav-list a,
  .mobile-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}