/*
Theme Name: Northshore Digital Agency
Theme URI: https://northshoredigitalagency.com
Author: Northshore Digital Agency
Author URI: https://northshoredigitalagency.com
Description: A premium glassmorphism Gutenberg block theme for Northshore Digital Agency — a Long Island-based digital agency specializing in custom websites, SEO, AI tools, and custom software.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northshore-theme
*/

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* --- Primary Palette (from logo) --- */
  --color-navy: #1B2D5B;
  --color-navy-dark: #0F1B3A;
  --color-navy-light: #2A4178;
  --color-gold: #D4A017;
  --color-gold-light: #E8B931;
  --color-gold-pale: #FFF3D0;
  --color-white: #FFFFFF;
  --color-off-white: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-400: #9CA3AF;
  --color-gray-600: #4B5563;
  --color-gray-800: #1F2937;

  /* --- Semantic Colors --- */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* --- Core Gradients --- */
  --gradient-hero: linear-gradient(135deg, #0F1B3A 0%, #1B2D5B 30%, #2A4178 60%, #1B2D5B 100%);
  --gradient-gold: linear-gradient(135deg, #D4A017 0%, #E8B931 100%);
  --gradient-cta: linear-gradient(135deg, #D4A017 0%, #E8B931 50%, #D4A017 100%);
  --gradient-section-fade: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);

  /* --- Glassmorphism Gradients --- */
  --gradient-glass-shine: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
  --gradient-glass-border: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.3) 100%);
  --gradient-glass-navy: linear-gradient(135deg, rgba(27,45,91,0.6) 0%, rgba(42,65,120,0.4) 100%);
  --gradient-glass-gold: linear-gradient(135deg, rgba(212,160,23,0.15) 0%, rgba(232,185,49,0.05) 100%);
  --gradient-orb-blue: radial-gradient(circle at 30% 20%, rgba(42,65,120,0.4) 0%, transparent 60%);
  --gradient-orb-gold: radial-gradient(circle at 70% 80%, rgba(212,160,23,0.2) 0%, transparent 60%);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(42,65,120,0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(212,160,23,0.1) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(27,45,91,0.08) 0%, transparent 50%);

  /* --- Standard Shadows --- */
  --shadow-sm: 0 1px 2px rgba(27, 45, 91, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(27, 45, 91, 0.08), 0 2px 4px -2px rgba(27, 45, 91, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(27, 45, 91, 0.1), 0 4px 6px -4px rgba(27, 45, 91, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(27, 45, 91, 0.1), 0 8px 10px -6px rgba(27, 45, 91, 0.05);
  --shadow-gold: 0 4px 14px rgba(212, 160, 23, 0.3);

  /* --- Glass Shadows --- */
  --shadow-glass: 0 8px 32px rgba(27, 45, 91, 0.12), 0 2px 8px rgba(27, 45, 91, 0.06);
  --shadow-glass-hover: 0 16px 48px rgba(27, 45, 91, 0.18), 0 4px 12px rgba(27, 45, 91, 0.08);
  --shadow-glass-gold: 0 8px 32px rgba(212, 160, 23, 0.2), 0 2px 8px rgba(212, 160, 23, 0.1);
  --shadow-glass-inset: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  --shadow-glass-elevated: 0 24px 64px rgba(27, 45, 91, 0.2), 0 8px 24px rgba(27, 45, 91, 0.1);

  /* --- Spacing Scale --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Layout Constraints --- */
  --content-width: 1200px;
  --wide-width: 1400px;
  --narrow-width: 720px;
  --gutter: 1.5rem;
  --gutter-lg: 2.5rem;

  /* --- Border Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ==========================================================================
   2. Base Reset & Defaults
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-gray-600);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--color-gray-800);
  line-height: 1.2;
}

h1 {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-gold);
}

/* Mobile typography */
@media (max-width: 639px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1rem; }
  body { font-size: 1rem; }
}

/* ==========================================================================
   4. Glassmorphism Design System
   ========================================================================== */

/* --- Glass Card (Light backgrounds) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass), var(--shadow-glass-inset);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-glass-hover), var(--shadow-glass-inset);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Glass Card (Dark / Navy backgrounds) --- */
.glass-card-dark {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass), var(--shadow-glass-inset);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.glass-card-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass-hover);
  transform: translateY(-4px);
}

/* --- Glass Card Featured (Gold shimmer) --- */
.glass-card-featured {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 2px solid rgba(212, 160, 23, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass-gold), var(--shadow-glass-inset);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.glass-card-featured:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: var(--shadow-glass-elevated), var(--shadow-glass-inset);
  transform: translateY(-6px);
}

/* --- Luminous top-edge highlight --- */
.glass-card::before,
.glass-card-dark::before,
.glass-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  z-index: 1;
  pointer-events: none;
}

.glass-card-featured::before {
  background: linear-gradient(90deg, transparent, rgba(212,160,23,0.5), transparent);
}

/* --- Glass Background (floating orbs) --- */
.glass-bg {
  position: relative;
  overflow: hidden;
}

.glass-bg::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,65,120,0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: float-orb 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.glass-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.12) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation: float-orb 25s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

.glass-bg > * {
  position: relative;
  z-index: 1;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ==========================================================================
   5. Scroll Animations
   ========================================================================== */

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay utilities */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ==========================================================================
   6. Accessibility
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-navy);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Focus indicator */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-fade-up {
    opacity: 1;
    transform: none;
  }
}
