/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Midnight Rose Theme */
  --bg: #120a10;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #e07a8c; /* Dusty Rose */
  --accent-light: #f4b0be; /* Blush Pink */
  --accent-dark: #8b3d4a;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul { list-style: none; }

/* === ANIMATED MESH GRADIENT BACKGROUND === */
.mesh-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg);
  overflow: hidden;
}

.mesh-ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: mesh-move 20s infinite alternate ease-in-out;
}

.mesh-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; left: -100px; }
.mesh-2 { width: 500px; height: 500px; background: var(--accent-dark); bottom: -150px; right: -100px; animation-delay: -5s; }
.mesh-3 { width: 300px; height: 300px; background: var(--accent-light); top: 50%; left: 60%; animation-delay: -10s; }

@keyframes mesh-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.2); }
  100% { transform: translate(-50px, 150px) scale(0.8); }
}

/* === STRUCTURAL BASELINES === */
.container { max-width: 1240px; margin: 0 auto; padding: 0 5%; width: 100%; }

section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Gradual Spacing Increase */
section:nth-last-child(2) { padding: 90px 0; }
section:last-of-type { padding: 110px 0; }

/* Section Dividers: Paper Tear */
.section-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg);
  z-index: 5;
  clip-path: polygon(0% 0%, 5% 40%, 10% 10%, 15% 50%, 20% 20%, 25% 60%, 30% 30%, 35% 70%, 40% 40%, 45% 80%, 50% 50%, 55% 90%, 60% 60%, 65% 100%, 70% 70%, 75% 95%, 80% 80%, 85% 98%, 90% 85%, 95% 92%, 100% 80%, 100% 100%, 0% 100%);
}

.divider-top { top: -30px; transform: rotate(180deg); }
.divider-bottom { bottom: -30px; }

/* === NAVIGATION: Centered Logo + Overlay === */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav-overlay.scrolled {
  background: rgba(18, 10, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.nav-links-left, .nav-links-right {
  display: none; /* Mobile first */
  gap: 2rem;
  flex: 1;
}

.nav-links-left { justify-content: flex-end; margin-right: 2rem; }
.nav-links-right { justify-content: flex-start; margin-left: 2rem; }

.nav-links-left a, .nav-links-right a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 1px;
}

.nav-links-left a:hover, .nav-links-right a:hover, .nav-links-left a.active, .nav-links-right a.active {
  color: var(--accent);
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.mobile-toggle {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-links-left, .nav-links-right { display: flex; }
  .mobile-toggle { display: none; }
}

/* === HERO SLIDER (100vh) === */
.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(18, 10, 16, 0.4) 0%, rgba(18, 10, 16, 0.9) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .slide-content h1 { font-size: 2.5rem; }
}

/* Underline CTA Style */
.cta-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  position: relative;
  padding-bottom: 5px;
}

.cta-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.cta-link:hover::after {
  transform: scaleX(1);
}

/* Slider Navigation */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: var(--accent); }

/* === LAYOUT ARCHETYPE: Metro Tiles === */
.metro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .metro-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
  }
  .tile-large { grid-column: span 2; grid-row: span 2; }
  .tile-wide { grid-column: span 2; }
  .tile-tall { grid-row: span 2; }
}

.metro-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: transform 0.4s ease;
}

.metro-tile:hover { transform: translateY(-10px); }

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

.metro-tile:hover img { transform: scale(1.1); }

.tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(18, 10, 16, 0.9), transparent);
  color: white;
}

.tile-overlay h3 { margin-bottom: 0.5rem; }

/* === SERVICES GRID (High Density) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(224, 122, 140, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* === PULL QUOTE RHYTHM === */
.pull-quote-band {
  width: 100%;
  background: var(--accent-dark);
  padding: 4rem 0;
  text-align: center;
  margin: 3rem 0;
}

.pull-quote-band blockquote {
  font-family: var(--font-heading);
  font-size: 3rem;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.1;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .pull-quote-band blockquote { font-size: 2rem; }
}

/* === ANIMATED INFOGRAPHIC === */
.infographic-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent);
  display: block;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.progress-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-circle circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.circle-bg { stroke: var(--glass-border); }
.circle-val {
  stroke: var(--accent);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 2s ease-out;
}

/* === TESTIMONIAL CAROUSEL === */
.testimonial-carousel {
  display: flex;
  overflow-x: hidden;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 3rem;
  text-align: center;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.testimonial-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--accent);
  object-fit: cover;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.testimonial-author {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 1.3rem;
}

/* === MARQUEE === */
.marquee {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--glass-bg);
  padding: 2rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 2rem;
  padding: 0 3rem;
  color: var(--text-muted);
  opacity: 0.5;
  filter: grayscale(1);
}

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

/* === AWARDS BAR === */
.awards-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.award-item {
  text-align: center;
}

.award-icon {
  font-size: 3rem;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.award-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

/* === FOOTER: Magazine Colophon === */
footer {
  background: #0d070b;
  padding: 6rem 0 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 5%;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-masthead h2 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.footer-col h4 {
  color: var(--text);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--accent); }

.footer-credits {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a {
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-form input {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.8rem;
  color: white;
  flex: 1;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.newsletter-form button {
  background: var(--accent);
  border: none;
  padding: 0 1.5rem;
  color: white;
  cursor: pointer;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* === INNER PAGE SPECIFICS === */
.breadcrumbs {
  padding: 120px 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a:hover { color: var(--accent); }

.page-header {
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 { font-size: 5rem; line-height: 1; }

.rich-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 6rem;
}

.rich-content h2 { margin: 3rem 0 1.5rem; font-size: 2.5rem; color: var(--accent-light); }
.rich-content p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.rich-content ul { margin: 1.5rem 0; padding-left: 1.5rem; }
.rich-content li { margin-bottom: 0.5rem; position: relative; }
.rich-content li::before { content: '→'; position: absolute; left: -1.5rem; color: var(--accent); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 4rem;
}

.related-card {
  height: 200px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.related-card img { width: 100%; height: 100%; object-fit: cover; }
.related-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 10, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* Intersection Observer Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.stagger-item { opacity: 0; transform: translateY(20px); }
.stagger-item.visible { opacity: 1; transform: translateY(0); }

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 1rem;
}

.faq-item.active .ph-plus { transform: rotate(45deg); }

/* Utility Classes */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-4 { margin-bottom: 4rem; }
