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

:root {
  /* Porcelain Blue Color Theme */
  --bg: #f8faff; /* Near-white background (MANDATORY LIGHT THEME) */
  --text: #1a1a2e; /* Deep navy for readability */
  --text-muted: #5a6b8a;
  --accent: #2c5282; /* Rich porcelain blue */
  --accent-light: #e2e8f0;
  --silver: #cbd5e0;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing & Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-glass: 0 8px 32px 0 rgba(44, 82, 130, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(44, 82, 130, 0.1);

  /* Section Spacing */
  --section-pad: 60px; /* Compact professional: 50-70px */
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  max-width: 100vw;
}

/* Background Texture: Geometric SVG pattern (subtle circles) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232c5282' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; border-radius: var(--radius-md); }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1200px; /* Centered grid constrained to 1200px */
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* Section Dividers: Full-width accent stripe */
section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px; /* 4-8px tall strip */
  background: var(--accent);
  opacity: 0.1;
}

/* Gradient Usage: Linear gradient section accents (alternate sections) */
section:nth-of-type(even) {
  background: linear-gradient(3deg, #f8faff 0%, #edf2f7 100%);
}

/* === OVERLAY NAV (Transparent on Hero, Hidden until Scroll) === */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  transform: translateY(-100%); /* Hidden Until Scroll */
}

.main-navigation.visible {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--accent-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text);
  padding: 5px 0;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
}

/* === HERO SLIDER (Full-Screen Hero Slider) === */
.hero-slider {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

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

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

/* Testimonial Hero Overlay */
.slide-content {
  max-width: 800px;
  text-align: center;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.hero-quote {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--accent);
}

.hero-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-attribution img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--white);
}

.hero-name {
  text-align: left;
}

.hero-name span {
  display: block;
  font-weight: 700;
}

.hero-name small {
  color: var(--text-muted);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* === NEWSPAPER BROADSHEET LAYOUT (Index Page) === */
.broadsheet-layout {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .broadsheet-layout {
    grid-template-columns: 1fr 350px; /* Sidebar + scrolling content (30-35% sidebar) */
  }
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1.1;
  font-weight: 800;
}

h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === UI BLOCKS === */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px var(--accent);
  filter: brightness(1.2);
}

/* Floating fixed CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
}

/* Feature Grid (High Density) */
.feature-grid {
  display: grid;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-light);
  box-shadow: var(--shadow-glass);
  transition: 0.3s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Stats Row */
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-container { grid-template-columns: repeat(4, 1fr); }
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.stat-item p {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Gallery (Broadsheet Style) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonial Sorter (Interactive Element) */
.testimonial-sorter {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.filter-chip {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--accent-light);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.filter-chip.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.search-box {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--accent-light);
  font-family: inherit;
  width: 250px;
}

/* Testimonial Grid (3-column masonry) */
.testimonial-grid {
  columns: 1;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonial-grid { columns: 2; }
}

@media (min-width: 1024px) {
  .testimonial-grid { columns: 3; }
}

.testimonial-card {
  break-inside: avoid;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--accent-light);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.stars {
  color: #f6ad55;
  margin-bottom: 10px;
}

/* Marquee (Bonus Section 1) */
.marquee-wrapper {
  overflow: hidden;
  background: var(--white);
  padding: 40px 0;
  border-top: 1px solid var(--accent-light);
  border-bottom: 1px solid var(--accent-light);
}

.marquee-content {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

.partner-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--silver);
  font-size: 1.5rem;
  white-space: nowrap;
}

/* Awards Bar (Bonus Section 2) */
.awards-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  background: rgba(44, 82, 130, 0.03);
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

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

.award-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.award-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Newsletter Footer */
.main-footer {
  background: var(--white);
  padding: 80px 0 30px;
  border-top: 8px solid var(--accent);
}

.footer-top {
  display: grid;
  gap: 50px;
  margin-bottom: 50px;
}

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

.footer-newsletter h4 {
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-light);
  background: var(--bg);
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--accent-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--white);
}

/* Inner Page Styles */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
  text-align: center;
}

.breadcrumbs {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.expert-tip {
  background: var(--white);
  border-left: 5px solid var(--accent);
  padding: 30px;
  margin: 40px 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-glass);
}

.expert-tip blockquote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 15px;
}

.expert-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.expert-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Breadcrumbs Separator */
.breadcrumbs span { margin: 0 10px; opacity: 0.5; }

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .hero-quote { font-size: 1.8rem; }
  .nav-links {
    display: none; /* Mobile menu logic in JS */
  }
  .menu-toggle { display: block; }
}

/* Animations */
.stagger-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.stagger-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Detailed Article Styles */
.article-content {
  font-size: 1.1rem;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

.article-content p { margin-bottom: 1.5rem; }
.article-content h2 { margin-top: 3rem; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }

/* Pricing Cards */
.pricing-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-light);
  text-align: center;
  transition: 0.3s;
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(44, 82, 130, 0.15);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 20px 0;
}

.price span { font-size: 1rem; color: var(--text-muted); }

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 20px;
}
