/* ============================================================
   Edge4Ward Pty Ltd — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- Icon System ---- */
[data-icon] { display:flex; align-items:center; justify-content:center; }
svg.e4w-icon {
  display: block;
  flex-shrink: 0;
  /* stroke/fill inherit from currentColor set on parent or the element itself */
}

/* ---- Custom Properties ---- */
:root {
  --navy:        #0B1F3A;
  --navy-mid:    #1A3C6E;
  --navy-light:  #2A527E;
  --orange:      #F04E23;
  --orange-dark: #D03D14;
  --orange-light:#FF6B2B;
  --blue:        #1565C0;
  --blue-light:  #1E88E5;
  --white:       #FFFFFF;
  --off-white:   #F7F9FC;
  --gray:        #F1F3F7;
  --border:      #E2E8F0;
  --text:        #1A202C;
  --text-muted:  #64748B;
  --shadow-sm:   0 2px 8px rgba(11,31,58,.08);
  --shadow-md:   0 4px 24px rgba(11,31,58,.12);
  --shadow-lg:   0 8px 48px rgba(11,31,58,.16);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.25s ease;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }

::selection { background: rgba(240,78,35,.25); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: #C3CEDC; border-radius: 6px; border: 3px solid var(--off-white); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-light); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); line-height: 1.75; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  background: rgba(240,78,35,.1);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.text-accent { color: var(--orange); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 60%, var(--orange-dark) 100%);
  background-size: 150% 150%;
  background-position: 0% 0%;
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(240,78,35,.25);
}
.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,78,35,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,31,58,.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  /* "Forward Stack" mark — unique to Edge4Ward */
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><rect width='40' height='40' rx='9' fill='%23142E54'/><rect x='0.5' y='0.5' width='39' height='39' rx='8.5' fill='none' stroke='rgba(255,255,255,0.14)'/><polygon points='9,12 21,20 9,28' fill='rgba(255,255,255,0.92)'/><polygon points='15,9 32,20 15,31' fill='%23F04E23'/></svg>") no-repeat center / cover;
  font-size: 0; /* hide legacy E4W text */
  transition: transform var(--transition);
}
.logo:hover .logo-mark { transform: translateX(2px); }
.logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  color: rgba(255,255,255,.8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
  opacity: .7;
}
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -180px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 740px;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
}
.mega-item:hover { background: var(--off-white); }

.mega-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mega-item-text .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}
.mega-item-text .desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mega-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mega-footer a {
  font-size: 0.875rem;
  color: var(--orange);
  font-weight: 600;
}
.mega-footer a:hover { text-decoration: underline; }

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,.8);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .mobile-nav-cta {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse 900px 600px at 85% 0%, rgba(240,78,35,.16) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 0% 100%, rgba(30,136,229,.14) 0%, transparent 60%),
    linear-gradient(135deg, #081729 0%, var(--navy) 45%, #0F3460 100%);
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  min-height: 640px;
  display: flex;
  align-items: center;
}

/* Giant brand-mark watermark on the right */
.hero::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><polygon points='2,5 22,22 2,39' fill='rgba(255,255,255,0.035)'/><polygon points='14,5 42,22 14,39' fill='rgba(240,78,35,0.10)'/></svg>") no-repeat center / contain;
  pointer-events: none;
  animation: heroDrift 9s ease-in-out infinite;
}

@keyframes heroDrift {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-52%) translateX(14px); }
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 65% 35%, black 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 65% 35%, black 20%, transparent 78%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,78,35,.18) 0%, transparent 70%);
  right: -100px;
  top: -100px;
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

.hero .text-accent {
  background: linear-gradient(95deg, #FF8A50 0%, var(--orange) 55%, #FF6B2B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-glow, .hero-badge::before { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,78,35,.15);
  border: 1px solid rgba(240,78,35,.3);
  color: #FF9A78;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  position: relative;
  padding-left: 16px;
}
.stat::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--orange), rgba(240,78,35,.2));
}
.stat strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}


/* ============================================================
   TRUSTED BY / TICKER
   ============================================================ */
.trusted {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 0;
}
.trusted-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}
.trusted-label {
  color: rgba(255,255,255,.35);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.trusted-logos {
  display: flex;
  gap: 48px;
  align-items: center;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.trusted-track {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-shrink: 0;
  animation: marquee 28s linear infinite;
}
.trusted-logos:hover .trusted-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 48px)); }
}
.trusted-logo {
  color: rgba(255,255,255,.25);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.trusted-logo:hover { color: rgba(255,255,255,.55); }
@media (prefers-reduced-motion: reduce) {
  .trusted-track { animation: none; }
}


/* ============================================================
   PRODUCTS HUB
   ============================================================ */
.products-section { background: var(--white); }

.cat-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.cat-btn {
  padding: 8px 22px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover {
  border-color: rgba(240,78,35,.45);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.product-card:hover .product-link { gap: 11px; }

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.product-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.product-card p {
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 20px;
}

.product-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: auto;
}
.product-link:hover { gap: 10px; }

.products-cta-row {
  text-align: center;
}


/* ============================================================
   VALUE PROPS
   ============================================================ */
.value-props { background: var(--off-white); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-card:hover .value-icon { transform: scale(1.08) rotate(-3deg); }

.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: transform var(--transition);
  box-shadow: 0 6px 18px rgba(11,31,58,.25);
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.value-card p  { font-size: 0.9rem; }


/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-inner {
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: 5rem;
}
.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--orange);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}
.about-badge span { display: block; font-size: 1.5rem; font-weight: 800; }

.about-content .section-tag { text-align: left; }
.about-content h2 { margin-bottom: 20px; }
.about-content p  { margin-bottom: 16px; }

.about-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.about-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(240,78,35,.1);
  color: var(--orange);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ============================================================
   PORTFOLIO TEASER
   ============================================================ */
.portfolio-section { background: var(--off-white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.portfolio-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.portfolio-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 12px;
}

.portfolio-body { padding: 24px; }
.portfolio-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.portfolio-body p  { font-size: 0.875rem; }

.portfolio-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.portfolio-read-more {
  color: var(--orange);
  font-weight: 600;
}


/* ============================================================
   BLOG TEASER
   ============================================================ */
.blog-section { background: var(--white); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
}
.blog-card:hover {
  border-color: rgba(240,78,35,.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy-mid), #0F3460);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-body { padding: 24px; }
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-tag {
  background: rgba(240,78,35,.1);
  color: var(--orange);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.blog-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-body p  { font-size: 0.875rem; }


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background:
    radial-gradient(ellipse 700px 420px at 50% 120%, rgba(240,78,35,.22) 0%, transparent 65%),
    linear-gradient(135deg, #081729 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  left: -120px;
  top: -120px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><polygon points='2,5 22,22 2,39' fill='rgba(255,255,255,0.03)'/><polygon points='14,5 42,22 14,39' fill='rgba(240,78,35,0.08)'/></svg>") no-repeat center / contain;
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080F1C;
  color: rgba(255,255,255,.6);
  padding: 72px 0 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--orange), var(--navy-mid) 60%, transparent) 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .logo-name { font-size: 1.2rem; color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 0.875rem; line-height: 1.7; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}
.footer-bottom a {
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 20px; }


/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background:
    radial-gradient(ellipse 700px 420px at 90% 0%, rgba(240,78,35,.14) 0%, transparent 60%),
    linear-gradient(135deg, #081729 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><polygon points='2,5 22,22 2,39' fill='rgba(255,255,255,0.035)'/><polygon points='14,5 42,22 14,39' fill='rgba(240,78,35,0.10)'/></svg>") no-repeat center / contain;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.05rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: .4; }


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(255,255,255,.6);
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--orange); font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: 0.85rem; }

.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: 28px;
  padding: 0 0 40px 0;
  position: relative;
}
.timeline-dot {
  width: 42px;
  height: 42px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-content { padding-top: 6px; }
.timeline-content h3 { font-size: 1rem; margin-bottom: 4px; }
.timeline-year { font-size: 0.8rem; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.timeline-content p { font-size: 0.875rem; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(240,78,35,.1);
  color: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.contact-item-text span  { font-size: 0.875rem; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { margin-bottom: 6px; }
.contact-form-wrap .form-sub { font-size: 0.875rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; justify-content: center; padding: 14px; }


/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.35rem; margin: 40px 0 12px; color: var(--navy); }
.legal-content h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.legal-content p  { color: var(--text); font-size: 0.95rem; margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { font-size: 0.95rem; color: var(--text); margin-bottom: 8px; list-style-type: disc; }
.legal-content a { color: var(--orange); }
.legal-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal-toc {
  background: var(--off-white);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.legal-toc h4 { font-size: 0.9rem; margin-bottom: 12px; }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { font-size: 0.875rem; margin-bottom: 6px; }
.legal-toc a { color: var(--navy); }
.legal-toc a:hover { color: var(--orange); }


/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.divider { height: 1px; background: var(--border); }
.hidden { display: none !important; }

/* ---- Filter reveal ---- */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-in { animation: cardIn .35s ease both; }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(240,78,35,.4);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .about-teaser { grid-template-columns: 1fr; gap: 48px; }
  .about-image { height: 280px; }
}

@media (max-width: 768px) {
  .section-pad     { padding: 64px 0; }
  .section-pad-sm  { padding: 48px 0; }

  .nav-links,
  .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 72px 0 60px; min-height: auto; }
  .hero-stats { gap: 28px; }
  .stat strong { font-size: 1.6rem; }

  .contact-layout  { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .mega-menu { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid, .blog-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { padding: 14px 28px; }
}
