/* ═══════════════════════════════════════════
   BRANDOR — Premium Web Design Agency
   Clearpath Build · SEED_12_Playful_Contemporary
   TYPE_04_Bold_Urban (Space Grotesk + Inter)
   ═══════════════════════════════════════════ */

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

:root {
  /* Brand Colours */
  --blue-primary: #003BEF;
  --blue-secondary: #00AEEF;
  --blue-deep: #0024A0;
  --blue-light: #E8F4FD;
  --blue-glow: rgba(0, 174, 239, 0.15);
  --blue-gradient: linear-gradient(135deg, #003BEF 0%, #00AEEF 100%);
  --blue-gradient-r: linear-gradient(135deg, #00AEEF 0%, #003BEF 100%);
  --blue-gradient-subtle: linear-gradient(135deg, rgba(0,59,239,0.06) 0%, rgba(0,174,239,0.06) 100%);

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --grey-100: #F0F2F5;
  --grey-200: #E1E5EB;
  --grey-300: #C4CAD4;
  --grey-500: #6B7280;
  --grey-700: #374151;
  --grey-900: #0F172A;
  --dark: #080D1A;

  /* Typography — TYPE_04_Bold_Urban */
  --font-heading: 'Barlow', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  /* SCALE_02_Bold_Commercial */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;
  --text-7xl: 5rem;

  /* GEOM_01_Soft_Modular */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Shadows — CARD_STYLE: shadowed */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-glow: 0 4px 24px rgba(0,59,239,0.2);
  --shadow-glow-lg: 0 8px 40px rgba(0,59,239,0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;
}

/* ── Typography ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { font-size: var(--text-base); line-height: 1.7; color: var(--grey-700); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Floating Navigation (No Traditional Header) ── */
.nav-trigger {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-base) var(--ease-out);
}

.nav-trigger:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

.nav-trigger .hamburger {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-trigger .hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
  transform-origin: center;
}

.nav-trigger.active .hamburger span:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}
.nav-trigger.active .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-trigger.active .hamburger span:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

/* Logo floating */
.nav-logo {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 1000;
  height: 55px;
  transition: opacity var(--duration-base) var(--ease-out);
}
.nav-logo img {
  height: 100%;
  width: auto;
}

/* Full-screen overlay nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-overlay .nav-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-overlay .nav-links a {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out);
}

.nav-overlay.active .nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active .nav-links a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-links a:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.active .nav-links a:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.active .nav-links a:nth-child(4) { transition-delay: 0.4s; }

.nav-overlay .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: var(--blue-gradient);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-overlay .nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-overlay .nav-links a:hover {
  color: var(--blue-secondary);
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--blue-gradient);
  z-index: 1001;
  width: 0%;
  transition: width 50ms linear;
}

/* ── Texture ── Subtle noise applied via background-image on dark/light sections (see .hero, .authority-section, .problem-section rules) ── */


section {
  position: relative;
  overflow: hidden;
}

.section-pad {
  padding: var(--space-3xl) 0;
}

/* SURFACE_04 Tinted Panels */
.bg-tinted {
  background: var(--blue-gradient-subtle);
}

.bg-dark {
  background: var(--dark);
  color: var(--white);
}

.bg-dark p { color: var(--grey-300); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }

.bg-brand {
  background: var(--blue-gradient);
  color: var(--white);
}

.bg-brand p { color: rgba(255,255,255,0.85); }

/* Section label badge — ICON_04_Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,59,239,0.08);
  color: var(--blue-primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.bg-dark .section-badge {
  background: rgba(0,174,239,0.15);
  color: var(--blue-secondary);
}

.bg-brand .section-badge {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.section-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0,59,239,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0,174,239,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 120px;
  margin-bottom: var(--space-xl);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: var(--text-7xl);
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   INTERACTIVE HEADING - PREMIUM WORD HOVER
   ============================================ */

.interactive-heading {
  cursor: default;
}

.interactive-heading .word {
  display: inline-block;
  position: relative;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Desktop hover effect */
@media (hover: hover) {
  .interactive-heading .word:hover {
    color: #00AEEF;
  }
  
  .interactive-heading .word.gradient-text:hover {
    background: #00AEEF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* Mobile tap effect - active state */
.interactive-heading .word:active {
  color: #00AEEF;
}

.interactive-heading .word.gradient-text:active {
  background: #00AEEF;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile tap effect - tapped class for sustained highlight */
.interactive-heading .word.tapped {
  color: #00AEEF;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-heading .word.gradient-text.tapped {
  background: #00AEEF;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.hero .hero-sub {
  font-size: var(--text-xl);
  color: var(--grey-300);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Carousel (HERO_05_Collage) ── */
.carousel-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2xl);
  width: max-content;
  animation: carouselScroll 40s linear infinite;
}

@keyframes carouselScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-slide {
  flex-shrink: 0;
  width: 700px;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.carousel-devices {
  display: flex;
  gap: var(--space-md);
  align-items: flex-end;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  height: 220px; /* fixed height for uniform appearance */
}

.device-desktop {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  height: 100%;
}

.device-desktop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.device-mobile {
  width: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  height: 100%;
}

.device-mobile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.carousel-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-md) 0;
  height: 80px; /* fixed height for all logos */
}

.carousel-logo img {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: transform 0.3s ease;
}

/* ── Buttons — BTN_04_Block_CTA + pill shape ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue-gradient);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

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

.btn-secondary.on-light {
  color: var(--grey-900);
  border-color: var(--grey-200);
}

.btn-secondary.on-light:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.btn-block {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 18px 40px;
  font-size: var(--text-lg);
  text-align: center;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ── Problem Section ── */
.problem-section {
  padding: var(--space-3xl) 0;
  background: var(--off-white);
}

.problem-section .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.problem-section h2 {
  margin-bottom: var(--space-sm);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.problem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-gradient);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.problem-card:hover::before { opacity: 1; }
.problem-card:hover .problem-icon,
.problem-card:hover h3,
.problem-card:hover p { color: var(--white); position: relative; z-index: 1; }

.problem-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(0,59,239,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--blue-primary);
  transition: all var(--duration-base) var(--ease-out);
}

.problem-icon svg { width: 28px; height: 28px; }

.problem-card h3 {
  margin-bottom: var(--space-xs);
  transition: color var(--duration-base) var(--ease-out);
}

.problem-card p {
  font-size: var(--text-sm);
  transition: color var(--duration-base) var(--ease-out);
}

/* ── Services Snapshot ── */
.services-snapshot {
  padding: var(--space-3xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.service-snap-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
}

.service-snap-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0,59,239,0.15);
}

.service-snap-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--blue-primary);
  transition: all var(--duration-base) var(--ease-out);
}

.service-snap-card:hover .service-snap-icon {
  background: var(--blue-gradient);
  color: var(--white);
}

.service-snap-icon svg { width: 24px; height: 24px; }

.service-snap-card h4 {
  font-size: var(--text-base);
  margin-bottom: 4px;
}

.service-snap-card p {
  font-size: var(--text-sm);
  color: var(--grey-500);
}

/* ── Authority / Trust Section ── */
.authority-section {
  padding: var(--space-3xl) 0;
  background: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  color: var(--white);
}

.authority-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--grey-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration-base) var(--ease-out);
}

.testimonial-card:hover {
  border-color: rgba(0,174,239,0.3);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: var(--text-lg);
  color: var(--grey-200);
  margin-bottom: var(--space-md);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-quote::before {
  content: '"';
  font-size: var(--text-3xl);
  color: var(--blue-secondary);
  font-style: normal;
  font-weight: 700;
  line-height: 0;
  position: relative;
  top: 8px;
  margin-right: 4px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--white);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--grey-500);
}

/* ── CTA Panel ── */
.cta-panel {
  padding: var(--space-3xl) 0;
  background: var(--blue-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-panel h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-panel p {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  font-size: var(--text-lg);
  position: relative;
}

.cta-panel .btn {
  background: var(--white);
  color: var(--blue-primary);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  position: relative;
}

.cta-panel .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ── Portfolio Page ── */
.page-header {
  padding: calc(var(--space-3xl) + 60px) 0 var(--space-2xl);
  text-align: center;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0,59,239,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  font-size: var(--text-6xl);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--grey-300);
  font-size: var(--text-xl);
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding: var(--space-3xl) 0;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
  border: 1px solid var(--grey-200);
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0,59,239,0.15);
}

.portfolio-preview {
  position: relative;
  background: var(--grey-100);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
  overflow: hidden;
}

.portfolio-preview .device-desktop {
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.portfolio-preview .device-mobile {
  width: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,59,239,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
}

.portfolio-body {
  padding: var(--space-md);
}

.portfolio-body .industry-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,59,239,0.08);
  color: var(--blue-primary);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.portfolio-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.portfolio-body p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.portfolio-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
}

.portfolio-meta dt {
  font-weight: 600;
  color: var(--grey-900);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-meta dd {
  color: var(--grey-500);
}

/* ── Services Page ── */
.service-category {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--grey-200);
}

.service-category:last-child { border-bottom: none; }

.service-category-header {
  margin-bottom: var(--space-lg);
}

.service-category-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.tier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0,59,239,0.15);
}

.tier-card.featured {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-glow);
}

.tier-badge {
  position: absolute;
  top: -1px;
  right: var(--space-md);
  background: var(--blue-gradient);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.tier-price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: var(--space-sm);
}

.tier-price span { font-size: var(--text-sm); color: var(--grey-500); font-weight: 400; }

.tier-desc {
  font-size: var(--text-sm);
  color: var(--grey-500);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.tier-features {
  flex: 1;
  margin-bottom: var(--space-md);
}

.tier-features li {
  font-size: var(--text-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-features li:last-child { border-bottom: none; }

.tier-features .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,59,239,0.08);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tier-features .check svg { width: 12px; height: 12px; }

.tier-card .btn { margin-top: auto; }

/* Two-column service layout */
.service-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}

.service-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-info-card h3 {
  margin-bottom: var(--space-xs);
}

/* ── Contact Page ── */
.contact-section {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.contact-info p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 20px; height: 20px; }

.contact-detail-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--grey-900);
}

.contact-detail-item span {
  font-size: var(--text-sm);
  color: var(--grey-500);
}

/* FORM_STYLE: minimal */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-200);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--grey-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--grey-900);
  background: var(--white);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0,59,239,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: var(--grey-300);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--grey-500);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  color: var(--grey-500);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col ul li a:hover {
  color: var(--blue-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--grey-500);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
  .hero h1 { font-size: var(--text-5xl); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .authority-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
    --text-7xl: 3.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --space-3xl: 5rem;
    --space-2xl: 4rem;
  }

  .hero h1 { font-size: var(--text-5xl); }

  .problem-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .authority-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-two-col { grid-template-columns: 1fr; }

  .carousel-slide { width: 340px; }
  .device-mobile { width: 70px; }

  /* Logos stay uniform on mobile */
  .carousel-logo {
    height: 64px;
    padding: var(--space-xs) 0;
  }
  
  .carousel-logo img {
    max-width: 140px;
    max-height: 48px;
  }

  .carousel-devices { height: 180px; }

  .nav-overlay .nav-links a {
    font-size: var(--text-3xl);
  }

  .page-header h1 { font-size: var(--text-4xl); }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; }
  .carousel-slide { width: 290px; }
  .device-mobile { width: 60px; }
  .carousel-devices { height: 150px; }
  
  .carousel-logo img {
    max-width: 120px;
    max-height: 40px;
  }
}
