/* Custom styles for Pacific Trade & Tech Inc */

:root {
  --brand-navy: #0b1d3a;
  --brand-blue: #1e40af;
  --brand-cyan: #06b6d4;
  --brand-gold: #f59e0b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
}

/* Brand link */
.brand-mark {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  height: 70vh;
  min-height: 480px;
  max-height: 720px;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.85) 0%, rgba(30, 64, 175, 0.55) 60%, rgba(6, 182, 212, 0.45) 100%);
}

.slide-content {
  z-index: 10;
  pointer-events: none;
}

.slide-content > * {
  pointer-events: auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-btn.prev {
  left: 1.25rem;
}

.slider-btn.next {
  right: 1.25rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.slider-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 9999px;
}

/* Hero pattern overlay */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.18) 0, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(245, 158, 11, 0.18) 0, transparent 50%);
}

/* Service card hover */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(11, 29, 58, 0.35);
  border-color: var(--brand-cyan);
}

/* Stat counter card */
.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.95));
  backdrop-filter: blur(8px);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Nav active link */
.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  transition: width 0.25s ease;
}

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

.nav-link.active {
  color: #1e40af;
}

/* Social icon hover */
.social-icon {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: var(--brand-blue);
  color: #fff;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* Section heading accent */
.section-eyebrow {
  display: inline-block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CTA gradient */
.cta-gradient {
  background: linear-gradient(135deg, #0b1d3a 0%, #1e3a8a 50%, #06b6d4 100%);
}

/* Page banner */
.page-banner {
  background:
    linear-gradient(135deg, rgba(11, 29, 58, 0.92) 0%, rgba(30, 64, 175, 0.78) 60%, rgba(6, 182, 212, 0.65) 100%),
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.25), transparent 50%);
}

/* ============================================
   Dark theme switcher
   ============================================ */
:root {
  --dt-bg: #ffffff;
  --dt-bg-alt: #f8fafc;
  --dt-surface: #ffffff;
  --dt-text: #0f172a;
  --dt-text-muted: #475569;
  --dt-border: #e2e8f0;
  --dt-header-bg: #ffffff;
  --dt-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-theme="dark"] {
  --dt-bg: #0b1220;
  --dt-bg-alt: #111a2e;
  --dt-surface: #131c33;
  --dt-text: #e2e8f0;
  --dt-text-muted: #94a3b8;
  --dt-border: #1f2a44;
  --dt-header-bg: rgba(11, 18, 32, 0.85);
  --dt-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --brand-navy: #0b1220;
  color-scheme: dark;
}

html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background-color: var(--dt-bg);
  color: var(--dt-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Generic surface helpers */
html[data-theme="dark"] .bg-white { background-color: var(--dt-surface) !important; }
html[data-theme="dark"] .bg-slate-50 { background-color: var(--dt-bg-alt) !important; }
html[data-theme="dark"] .bg-slate-100 { background-color: #1a2540 !important; }
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-slate-700 { color: var(--dt-text) !important; }
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500 { color: var(--dt-text-muted) !important; }
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-300 { border-color: var(--dt-border) !important; }
html[data-theme="dark"] .divide-slate-100 > * + *,
html[data-theme="dark"] .divide-slate-200 > * + * { border-color: var(--dt-border) !important; }
html[data-theme="dark"] .placeholder\:text-slate-400::placeholder,
html[data-theme="dark"] .placeholder\:text-slate-500::placeholder { color: #64748b !important; }
html[data-theme="dark"] .hover\:bg-slate-100:hover { background-color: #1a2540 !important; }
html[data-theme="dark"] .hover\:bg-slate-50:hover { background-color: rgba(26, 37, 64, 0.6) !important; }
html[data-theme="dark"] .ring-slate-200 { --tw-ring-color: var(--dt-border) !important; }
html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow,
html[data-theme="dark"] .shadow-md { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important; }

/* Site header / navigation */
html[data-theme="dark"] #siteHeader,
html[data-theme="dark"] header.sticky {
  background-color: var(--dt-header-bg) !important;
  border-color: var(--dt-border) !important;
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] #siteHeader.bg-white\/90,
html[data-theme="dark"] header.bg-white\/90 {
  background-color: rgba(11, 18, 32, 0.9) !important;
}

html[data-theme="dark"] #siteHeader .brand-text {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] #siteHeader .brand-subtext {
  color: #94a3b8 !important;
}

html[data-theme="dark"] #navMenu a,
html[data-theme="dark"] #navMenu .nav-link {
  color: #cbd5e1;
}

html[data-theme="dark"] #navMenu a:hover,
html[data-theme="dark"] #navMenu a.active,
html[data-theme="dark"] #navMenu .nav-link:hover,
html[data-theme="dark"] #navMenu .nav-link.active {
  color: #60a5fa;
}

html[data-theme="dark"] #siteHeader.header-scrolled,
html[data-theme="dark"] .header-scrolled {
  background-color: rgba(11, 18, 32, 0.95) !important;
}

/* Mobile menu drawer */
html[data-theme="dark"] #mobileMenu {
  background-color: var(--dt-bg-alt) !important;
  border-color: var(--dt-border) !important;
}

html[data-theme="dark"] #mobileMenu a {
  color: var(--dt-text);
}

html[data-theme="dark"] #mobileMenu a:hover {
  color: #60a5fa;
  background-color: rgba(96, 165, 250, 0.1);
}

/* Cards / generic sections */
html[data-theme="dark"] .card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .stat-card {
  background-color: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
  color: var(--dt-text);
}

html[data-theme="dark"] .card h1,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4,
html[data-theme="dark"] .service-card h1,
html[data-theme="dark"] .service-card h2,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .service-card h4,
html[data-theme="dark"] .feature-card h1,
html[data-theme="dark"] .feature-card h2,
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .feature-card h4,
html[data-theme="dark"] .team-card h1,
html[data-theme="dark"] .team-card h2,
html[data-theme="dark"] .team-card h3,
html[data-theme="dark"] .team-card h4,
html[data-theme="dark"] .testimonial-card h1,
html[data-theme="dark"] .testimonial-card h2,
html[data-theme="dark"] .testimonial-card h3,
html[data-theme="dark"] .testimonial-card h4,
html[data-theme="dark"] .stat-card h1,
html[data-theme="dark"] .stat-card h2,
html[data-theme="dark"] .stat-card h3,
html[data-theme="dark"] .stat-card h4 {
  color: var(--dt-text);
}

/* Section alternates */
html[data-theme="dark"] section.bg-slate-50,
html[data-theme="dark"] section.bg-slate-100 {
  background-color: var(--dt-bg-alt) !important;
}

html[data-theme="dark"] section.bg-white {
  background-color: var(--dt-bg) !important;
}

/* Forms */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: var(--dt-surface) !important;
  color: var(--dt-text) !important;
  border-color: var(--dt-border) !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  border-color: #60a5fa !important;
  --tw-ring-color: rgba(96, 165, 250, 0.35) !important;
}

/* Footer */
html[data-theme="dark"] footer {
  background-color: #0a1020 !important;
  color: var(--dt-text);
  border-color: var(--dt-border);
}

html[data-theme="dark"] footer a {
  color: #94a3b8;
}

html[data-theme="dark"] footer a:hover {
  color: #60a5fa;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block !important;
}

html[data-theme="dark"] .theme-icon-sun.hidden {
  display: block !important;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none !important;
}

html[data-theme="dark"] .theme-icon-moon.hidden {
  display: none !important;
}

html:not([data-theme="dark"]) .theme-icon-moon {
  display: block !important;
}

html:not([data-theme="dark"]) .theme-icon-moon.hidden {
  display: block !important;
}

html:not([data-theme="dark"]) .theme-icon-sun {
  display: none !important;
}

html:not([data-theme="dark"]) .theme-icon-sun.hidden {
  display: none !important;
}

/* Page banner & CTA slight darken in dark mode */
html[data-theme="dark"] .page-banner {
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(30, 64, 175, 0.55) 60%, rgba(6, 182, 212, 0.45) 100%),
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.18), transparent 50%);
}

/* ----- Brand logo (PNG) ----- */
.brand-logo {
  display: block;
  height: 3.25rem;   /* ~52px — fits the h-20 header on desktop */
  width: auto;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-logo-footer {
  display: block;
  height: 4rem;      /* ~64px — footer is larger, plenty of space */
  width: auto;
  /* Footer is always on a dark slate-900 background, so flip the navy logo to white */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* In dark mode, the header is also on a dark surface — invert the logo too */
html[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

/* Small-screen header — shrink the logo so the mobile menu still fits */
@media (max-width: 640px) {
  .brand-logo {
    height: 2.5rem;
  }
}
