/* 
  Brand: popsvaultiesvaultticker.com
  Aesthetic: Soft Modern (Refined rounded geometry, muted colors, glass panels)
*/

:root {
  --midnight-orchid: #29263D;
  --event-teal: #4FAFA7;
  --soft-electric-blue: #8DBFD0;
  --lavender-mist: #C8C1DE;
  --warm-apricot: #E7A27D;
  --venue-sage: #AEBEAF;
  --cloud-cream: #F6F3EC;
  --pale-stone: #E3E0D8;
  --graphite: #383842;
  --deep-plum: #201F2D;
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.6);
  --focus-ring: var(--event-teal);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--graphite);
  background-color: var(--cloud-cream);
  line-height: 1.6;
  min-width: 320px;
  position: relative;
}

/* Background Atmosphere for Glass Refraction */
.bg-atmosphere {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 20%, rgba(200, 193, 222, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(141, 191, 208, 0.15) 0%, transparent 40%);
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

a {
  color: var(--event-teal);
  text-decoration: none;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--midnight-orchid);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--midnight-orchid);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

h1 { font-size: 3rem; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 16px; }

/* Layout & Spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  min-width: 0;
}

section {
  padding: 64px 0;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--graphite);
  opacity: 0.9;
}

/* Header */
.site-header {
  background: rgba(246, 243, 236, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pale-stone);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--midnight-orchid);
  font-size: 1.125rem;
  text-decoration: none;
}

.brand svg {
  width: 24px;
  height: 24px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--graphite);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-link[aria-current="page"] {
  color: var(--midnight-orchid);
  border-bottom: 2px solid var(--event-teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--midnight-orchid);
  color: var(--cloud-cream);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--event-teal);
  color: var(--midnight-orchid);
}

.btn-primary {
  background: var(--warm-apricot);
  color: var(--midnight-orchid);
}
.btn-primary:hover {
  background: var(--event-teal);
  color: var(--cloud-cream);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--midnight-orchid);
  margin-bottom: 4px;
  transition: 0.2s;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 560px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--event-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(41, 38, 61, 0.08);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* Glass Card Architecture */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-card .card-image {
  border-radius: 16px;
  width: 100%;
  height: 240px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(41, 38, 61, 0.06);
}

/* MANDATORY GAP */
.service-card .card-gap {
  height: 32px;
  width: 100%;
}

/* SEPARATE GLASS CONTENT PANEL */
.service-card .card-content {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(41, 38, 61, 0.04);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--event-teal);
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--graphite);
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--midnight-orchid);
  opacity: 0.8;
}

.card-meta span {
  background: var(--pale-stone);
  padding: 4px 12px;
  border-radius: 12px;
}

.card-cta {
  align-self: flex-start;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-cta::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card-cta:hover::after {
  transform: translateX(4px);
}

/* Editorial Content Sections */
.editorial-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

.editorial-main h2 { margin-top: 40px; }
.editorial-main h3 { margin-top: 32px; }
.editorial-main ul, .editorial-main ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.editorial-main li {
  margin-bottom: 8px;
}

.sidebar-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--pale-stone);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--pale-stone);
}

th {
  background: var(--lavender-mist);
  color: var(--midnight-orchid);
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--midnight-orchid);
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--pale-stone);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--event-teal);
  box-shadow: 0 0 0 3px rgba(79, 175, 167, 0.2);
}

input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: #d32f2f;
}

.form-success {
  display: none;
  background: var(--venue-sage);
  color: var(--deep-plum);
  padding: 24px;
  border-radius: 8px;
  margin-top: 24px;
  font-weight: 600;
}
.form-success.is-visible { display: block; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep-plum);
  color: var(--cloud-cream);
  padding: 24px;
  z-index: 9999;
  display: none;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
  display: block;
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text { flex: 1 1 300px; }
.cookie-text p { margin: 0; font-size: 0.9rem; }

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1px solid var(--cloud-cream);
  background: transparent;
  color: var(--cloud-cream);
  cursor: pointer;
}
.btn-sm:hover { background: rgba(255,255,255,0.1); }
.btn-accept {
  background: var(--warm-apricot);
  color: var(--midnight-orchid);
  border-color: var(--warm-apricot);
}
.btn-accept:hover { background: #d9916b; color: var(--midnight-orchid); }

/* Footer */
.site-footer {
  background: var(--midnight-orchid);
  color: var(--cloud-cream);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand h4, .footer-links h4 {
  color: var(--venue-sage);
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--lavender-mist);
  margin-bottom: 8px;
}

.footer-domain {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--warm-apricot);
}

.footer-domain:hover {
  color: var(--event-teal);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
  color: var(--lavender-mist);
}

.footer-links a:hover {
  color: var(--cloud-cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: var(--lavender-mist);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-meta { justify-content: center; }
  .hero-content p { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .editorial-layout { grid-template-columns: 1fr; }
  .sidebar-panel { position: static; }
}

@media (max-width: 768px) {
  .header-inner { height: 52px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--cloud-cream);
    flex-direction: column;
    padding: 24px clamp(24px, 5vw, 64px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--pale-stone);
  }
  .main-nav.is-active { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 40px 0; }
}

@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;
  }
}