/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Sunset Gradient Light Palette */
  --bg: #fff8f0; /* Warm cream base */
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #4a4a68;
  --accent: #ff8c42; /* Pastel orange */
  --accent-soft: #f9c784;
  --accent-pink: #f7aef8;
  --accent-lavender: #b388eb;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.05);
  --glass-border: rgba(255, 255, 255, 0.4);

  --container-max: 1200px;
  --article-width: 680px;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  /* Subtle geometric pattern overlay */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 140, 66, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(179, 136, 235, 0.05) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ff8c42' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === LAYOUT: TOP MEGA-HEADER === */
.mega-header {
  background: var(--card-bg);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5%;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-mini {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
}

.contact-mini i {
  color: var(--accent);
}

.header-center {
  text-align: center;
}

.brand-name {
  font-size: 3rem;
  margin-bottom: 0.2rem;
  background: linear-gradient(45deg, var(--accent), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.social-icons a:hover {
  color: var(--accent);
}

.search-bar {
  position: relative;
  width: 250px;
}

.search-bar input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  background: #fdfdfd;
  font-size: 0.9rem;
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* === NAVIGATION: TABBED TOP NAV === */
.nav-tabs-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 5%;
  margin-top: -1px;
}

.nav-tabs {
  display: flex;
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.05);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.nav-link {
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.nav-link:last-child {
  border-right: none;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(255, 140, 66, 0.03);
}

.nav-link.active {
  color: var(--accent);
  background: #fff;
  box-shadow: inset 0 3px 0 var(--accent);
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

.article-container {
  max-width: var(--article-width);
  margin: 0 auto;
}

section {
  padding: 4rem 0;
  position: relative;
}

/* Section Spacing Strategy: Tight-then-expand */
section:nth-of-type(1), section:nth-of-type(2), section:nth-of-type(3) { padding: 60px 0; }
section:nth-last-of-type(1), section:nth-last-of-type(2) { padding: 110px 0; }

/* === PAPER TEAR DIVIDER === */
.tear-divider {
  height: 40px;
  width: 100%;
  background: var(--bg);
  clip-path: polygon(0% 0%, 5% 40%, 10% 0%, 15% 50%, 20% 0%, 25% 30%, 30% 0%, 35% 60%, 40% 0%, 45% 40%, 50% 0%, 55% 50%, 60% 0%, 65% 30%, 70% 0%, 75% 60%, 80% 0%, 85% 40%, 90% 0%, 95% 50%, 100% 0%, 100% 100%, 0% 100%);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

/* === HERO SECTION === */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,248,240,0.8), rgba(255,248,240,0.4)), url('images/img-14.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 5%;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.rotating-text {
  color: var(--accent);
  display: inline-block;
  min-width: 200px;
  border-bottom: 4px solid var(--accent-pink);
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* === CARDS & GRIDS === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 3rem;
  max-width: var(--container-max);
  margin: 3rem auto 0;
}

.counter-item .number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: var(--accent);
  display: block;
}

.counter-item .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* === VIDEO TESTIMONIALS === */
.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.video-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.transcript {
  padding: 2rem;
  background: #fff;
  font-style: italic;
}

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(45deg, var(--accent), var(--accent-pink));
  color: #fff;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(255, 140, 66, 0.2);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 140, 66, 0.3);
  filter: brightness(1.1);
}

.fixed-cta {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.fixed-cta.show {
  opacity: 1;
  visibility: visible;
}

/* === ANIMATED UNDERLINE === */
.text-link {
  position: relative;
  display: inline-block;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.text-link:hover::after {
  width: 100%;
}

/* === BLOG PREVIEW === */
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.blog-img {
  height: 250px;
  overflow: hidden;
}

.blog-img img {
  transition: transform 0.5s ease;
  border-radius: 0;
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* === PROCESS SECTION === */
.process-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
}

.process-step {
  text-align: center;
  flex: 1;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent-soft);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  z-index: 2;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 60%;
  width: 80%;
  height: 2px;
  border-top: 2px dashed var(--accent-soft);
  z-index: 1;
}

/* === INNER PAGE RICH CONTENT === */
.expert-quote {
  border-left: 5px solid var(--accent);
  background: rgba(255, 140, 66, 0.05);
  padding: 2.5rem;
  margin: 3rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.expert-quote p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.expert-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.expert-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
}

.spec-table th, .spec-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-table th {
  background: rgba(255, 140, 66, 0.05);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* === FOOTER: MAGAZINE COLOPHON === */
.footer {
  background: #fff;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.colophon-info {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 2rem;
}

.newsletter-box {
  margin-top: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
}

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* === MOBILE STYLES === */
.mobile-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .header-grid {
    grid-template-columns: 1fr auto;
  }
  .header-left, .header-right .search-bar {
    display: none;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mega-header {
    padding: 1rem 0;
  }
  .header-grid {
    display: flex;
    justify-content: space-between;
  }
  .brand-name {
    font-size: 2rem;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-tabs-container {
    display: none; /* Injected by JS mobile menu */
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .grid-3, .grid-2, .counter-grid, .footer-main {
    grid-template-columns: 1fr !important;
  }
  .process-grid {
    flex-direction: column;
  }
  .process-step::after {
    display: none;
  }
  .header-right {
    display: none;
  }
  .colophon-info {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile Menu Active State */
.mobile-menu-active .nav-tabs-container {
  display: block;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: auto;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 2rem;
}

.mobile-menu-active .nav-tabs {
  flex-direction: column;
  border: none;
}

.mobile-menu-active .nav-link {
  border-right: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
