/* ==========================================================================
   Refract Envo - Design System & Modern Styling
   Style: Modern Glass Prism & Metallic Accent Furniture
   Palette:
     - Obsidian Black: #09090B
     - Cobalt Metal: #1E3A8A
     - Cobalt Accent: #3B82F6
     - Crystal Silver: #E2E8F0
     - Silver Metallic: #94A3B8
     - Glass White: rgba(255, 255, 255, 0.07)
     - Border Prism: rgba(226, 232, 240, 0.15)
   Typography:
     - Headings & Primary: 'Outfit', sans-serif
     - Tech/Accent & Specs: 'Roboto Mono', monospace
   ========================================================================== */

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

:root {
  --bg-obsidian: #09090B;
  --bg-card: rgba(18, 20, 29, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --cobalt-dark: #1E3A8A;
  --cobalt-accent: #3B82F6;
  --cobalt-glow: rgba(59, 130, 246, 0.4);
  --crystal-silver: #E2E8F0;
  --metallic-silver: #94A3B8;
  --pure-white: #FFFFFF;
  --text-muted: #A1A1AA;
  --border-prism: rgba(226, 232, 240, 0.18);
  --border-glow: rgba(59, 130, 246, 0.5);
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  --glass-backdrop: blur(16px);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --prism-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(30, 58, 138, 0.2) 100%);
  --metal-gradient: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 50%, #475569 100%);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-obsidian);
  color: var(--crystal-silver);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(30, 58, 138, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--pure-white);
  font-weight: 700;
  line-height: 1.2;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cobalt-accent);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}

.header.scrolled {
  background: rgba(9, 9, 11, 0.9);
  border-bottom-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: var(--transition-fast);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pure-white);
}

.logo-prism {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cobalt-accent), var(--cobalt-dark));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--cobalt-glow);
  position: relative;
}

.logo-prism::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-obsidian);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  z-index: 1;
}

.logo-prism-inner {
  width: 14px;
  height: 14px;
  background: var(--pure-white);
  transform: rotate(45deg);
  z-index: 2;
  box-shadow: 0 0 8px #FFFFFF;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--cobalt-accent);
  font-weight: 300;
}

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

.nav-link {
  text-decoration: none;
  color: var(--metallic-silver);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--pure-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt-accent), var(--crystal-silver));
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Glass Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cobalt-accent) 0%, var(--cobalt-dark) 100%);
  color: var(--pure-white);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--crystal-silver);
  border: var(--glass-border);
  backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pure-white);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--metallic-silver);
  margin-bottom: 2.5rem;
  max-width: 540px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prism-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background: var(--prism-gradient);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.prism-img-wrapper {
  width: 100%;
  height: 420px;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  position: relative;
}

.prism-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.prism-card:hover .prism-img-wrapper img {
  transform: scale(1.06);
}

.prism-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 15px;
}

.prism-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: var(--cobalt-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.prism-badge-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pure-white);
}

.prism-badge-sub {
  font-size: 0.8rem;
  color: var(--metallic-silver);
  font-family: var(--font-mono);
}

/* Feature Grid & Glass Cards */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--metallic-silver);
  font-size: 1.05rem;
  font-weight: 300;
}

.glass-card {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: rgba(18, 20, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--cobalt-accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(59, 130, 246, 0.2);
}

.product-img-box {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  background: #0f111a;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(9, 9, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crystal-silver);
}

.product-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cobalt-accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--metallic-silver);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pure-white);
  font-family: var(--font-mono);
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--metallic-silver);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--cobalt-accent);
  color: var(--pure-white);
  border-color: var(--cobalt-accent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Review Cards */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  position: relative;
}

.review-stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.review-quote {
  font-size: 1rem;
  color: var(--crystal-silver);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt-accent), var(--cobalt-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--pure-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-name {
  font-weight: 600;
  color: var(--pure-white);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--metallic-silver);
  font-family: var(--font-mono);
}

/* Appointment Form */
.form-box {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--glass-shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-control {
  width: 100%;
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem 0.5rem 1rem;
  color: var(--pure-white);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--cobalt-accent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  background: rgba(9, 9, 11, 0.8);
}

.floating-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--metallic-silver);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
  top: 0.3rem;
  font-size: 0.75rem;
  color: var(--cobalt-accent);
  font-weight: 600;
}

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

/* Legal Pages Styling */
.legal-content {
  background: var(--bg-card);
  border: var(--glass-border);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--radius-lg);
  padding: 4rem;
  margin-top: 110px;
  margin-bottom: 80px;
  box-shadow: var(--glass-shadow);
}

.legal-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cobalt-accent);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p, .legal-content ul, .legal-content ol {
  color: var(--crystal-silver);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.75rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--metallic-silver);
  margin-bottom: 2rem;
  display: block;
}

/* Footer */
.footer {
  background: #050507;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
  padding: 80px 0 30px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--metallic-silver);
  font-size: 0.95rem;
  margin-top: 1.25rem;
  max-width: 320px;
  font-weight: 300;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--metallic-silver);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--cobalt-accent);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--metallic-silver);
  font-family: var(--font-mono);
}

/* GDPR Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 25px;
  left: 25px;
  right: 25px;
  max-width: 520px;
  background: rgba(18, 20, 29, 0.92);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(20px);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  z-index: 9999;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--metallic-silver);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cookie-btn-accept {
  background: var(--cobalt-accent);
  color: var(--pure-white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--crystal-silver);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-consent-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cobalt-accent);
  margin-top: 0.75rem;
  display: block;
}

/* Dynamic Scroll Reveal Classes */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Map Simulation Styling */
.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    linear-gradient(rgba(9, 9, 11, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 11, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}

.map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid var(--cobalt-accent);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can be toggled with mobile JS */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
