/* =====================================================================
   DEV ENTERPRISES — SHARED STYLES
   Brand colours, base layout, top bar, navigation, mobile menu, footer,
   back-to-top and logo lockup. Loaded on every page by includes/header.php.
   Page-only styles live in assets/css/pages/<page>.css
   ===================================================================== */

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

:root {
  /* DEV ENTERPRISES BRAND — colours sampled from the logo */
  --brand: #E07B34;          /* logo orange (the "D") */
  --brand-dark: #C85332;     /* logo burnt red-orange */
  --brand-light: #F2B250;    /* logo amber */
  --brand-gold: #F9CC55;     /* logo flame tip */
  --brand-rgb: 224,123,52;
  --brand-grad: linear-gradient(135deg, #F9CC55 0%, #E07B34 50%, #C85332 100%);
  --ink: #10243C;            /* deep navy (text + dark sections) */
  --ink-mid: #21476C;        /* logo navy flame */
  --ink-deep: #0A1A2C;
  --ink-rgb: 16,36,60;
  --gray-light: #F4F7FA;
  --gray-mid: #8C96A3;
  --white: #FFFFFF;
  --section-pad: 80px 0;
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; overflow-x: hidden; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.topbar { background: var(--ink); color: #C3CBD4; font-size: 12px; padding: 9px 0; }

.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

.topbar a { color: #C3CBD4; text-decoration: none; }

.topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.topbar-right { display: flex; gap: 10px; align-items: center; }

.topbar-right a { width: 28px; height: 28px; border: 1px solid #4A5A6E; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: border-color var(--transition), color var(--transition); }

.topbar-right a:hover { border-color: var(--brand); color: var(--brand); }

.tb-sep { color: #4A5A6E; }

.tb-dot { display: flex; align-items: center; gap: 6px; }

nav { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; max-width: var(--container); margin: 0 auto; height: 72px; }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: var(--radius); transition: color var(--transition), background var(--transition); display: block; }

.nav-links a:hover { color: var(--brand); background: #FFF4EC; }

.nav-links a.active { color: var(--brand); }

.nav-links .has-dropdown { position: relative; }

.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 10px; }

.nav-links .dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); box-shadow: 0 8px 32px rgba(0,0,0,0.12); border-radius: var(--radius-lg); min-width: 240px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity var(--transition), transform var(--transition); border-top: 3px solid var(--brand); overflow: hidden; }

.nav-links .has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }

.nav-links .dropdown a { padding: 11px 20px; border-radius: 0; border-bottom: 1px solid #ECF0F5; font-size: 13px; }

.nav-links .dropdown a:last-child { border-bottom: none; }

.btn-nav { background: var(--brand); color: var(--white) !important; padding: 10px 22px !important; border-radius: 3px !important; font-weight: 600 !important; margin-left: 8px; }

.btn-nav:hover { background: var(--brand-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: none; }

.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

.mobile-menu { display: none; flex-direction: column; background: var(--white); padding: 16px 24px; border-top: 1px solid #ECF0F5; gap: 4px; }

.mobile-menu.open { display: flex; }

.mobile-menu a { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid #F4F7FA; }

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu a:hover { color: var(--brand); }

.mobile-sub a { font-size: 13px; color: #6B7887; padding: 7px 0 7px 16px; }

.back-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--brand); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition); z-index: 999; box-shadow: 0 4px 16px rgba(var(--brand-rgb),0.4); }

.back-top.show { opacity: 1; pointer-events: all; }

.back-top:hover { transform: translateY(-3px); }

footer { background: var(--ink-deep); padding: 72px 0 0; color: rgba(255,255,255,0.7); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }

.footer-logo { height: 52px; width: auto; display: block; }

.footer-about p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 24px; }

.footer-social { display: flex; gap: 10px; }

.footer-social a { width: 36px; height: 36px; border: 1px solid #3A4A5E; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #9DA7B3; text-decoration: none; font-size: 14px; transition: border-color var(--transition), color var(--transition); }

.footer-social a:hover { border-color: var(--brand); color: var(--brand); }

footer h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--white); margin-bottom: 20px; position: relative; padding-bottom: 12px; }

footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--brand); }

footer ul { list-style: none; }

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

footer ul li a { font-size: 13.5px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition), padding-left var(--transition); display: flex; align-items: center; gap: 8px; }

footer ul li a::before { content: '→'; font-size: 11px; color: var(--brand); }

footer ul li a:hover { color: var(--brand); padding-left: 4px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 13.5px; color: rgba(255,255,255,0.55); }

.footer-contact .fc-icon { width: 32px; height: 32px; background: rgba(var(--brand-rgb),0.12); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 14px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid #1F3148; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 8px; }

.footer-bottom a { color: var(--brand); text-decoration: none; }

.footer-legal { display: inline-flex; align-items: center; gap: 10px; }

.footer-legal a { color: rgba(255,255,255,0.6); transition: color var(--transition); }

.footer-legal a:hover { color: var(--brand); }

.footer-legal .fl-sep { color: rgba(255,255,255,0.25); }

.nav-links .dropdown a.active { color: var(--brand); background: #FFF4EC; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display:none; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  :root { --section-pad:56px 0; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
}

/* ── LOGO LOCKUP (icon + DEV / ENTERPRISES wordmark) ── */
/* ── DEV ENTERPRISES: logo lockup ── */
.brand-word { display: flex; flex-direction: column; justify-content: center; line-height: 0.9; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; }
.brand-word .bw-1 { font-size: 31px; letter-spacing: 0.08em; color: var(--ink-mid); }
.brand-word .bw-2 { font-size: 12.5px; letter-spacing: 0.29em; font-weight: 700; color: var(--brand); margin-top: 3px; }
.brand-word.light .bw-1 { color: #FFFFFF; }
.brand-word.light .bw-2 { color: var(--brand-light); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; text-decoration: none; }
@media (max-width: 480px) { .nav-logo img { height: 44px; } .brand-word .bw-1 { font-size: 26px; } .brand-word .bw-2 { font-size: 10.5px; } }
