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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Warm Concrete Palette */
  --bg: #f4f2ef;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #4a4a4a;
  --accent: #ff4d4d; /* Red/Orange accent */
  --accent-hover: #e60000;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-glass: 0 4px 20px rgba(0,0,0,0.05);
  --glass-border: rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

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

img, video {
  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;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.section-tight {
  padding: 60px 0;
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
}

/* === NAVIGATION === */
/* Top Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(244, 242, 239, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link.active {
  color: var(--accent);
}

/* Bottom Tab Bar (Mandatory Scheme) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: var(--card-bg);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1001;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  gap: 4px;
}

.bottom-nav-item i {
  font-size: 1.4rem;
}

.bottom-nav-item.active {
  color: var(--accent);
}

body {
  padding-bottom: 80px; /* Space for bottom nav */
  padding-top: 70px;    /* Space for top nav */
}

/* === BUTTONS === */
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px; /* Pill */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-attachment: fixed; /* Parallax */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,77,77,0.15) 0%, rgba(26,26,46,0) 70%);
  pointer-events: none;
  animation: pulse-spotlight 8s infinite alternate;
}

@keyframes pulse-spotlight {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* === LAYOUT: SIDEBAR + CONTENT (Index) === */
.index-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .index-layout {
    flex-direction: row;
  }

  .sidebar {
    width: 30%;
    height: calc(100vh - 150px);
    position: sticky;
    top: 100px;
    padding-right: 40px;
  }

  .main-content {
    width: 70%;
  }
}

/* === CARDS & GRIDS === */
.grid-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* === MARQUEE === */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  gap: 80px;
  align-items: center;
}

.marquee-item {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: #ddd;
  text-transform: uppercase;
}

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

/* === ROI CALCULATOR === */
.calculator-container {
  max-width: 600px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.calc-result {
  background: var(--text);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 2rem;
}

.calc-result span {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
}

/* === TESTIMONIALS === */
.video-testimonial {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.play-btn:hover {
  transform: scale(1.1);
}

/* === AWARDS === */
.awards-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 40px 0;
  opacity: 0.7;
}

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

.award-item i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* === FOOTER (Magazine Colophon Style) === */
.footer {
  background: #fff;
  border-top: 1px solid var(--text);
  padding: 80px 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.colophon-info {
  border-right: 1px solid var(--glass-border);
  padding-right: 40px;
}

.footer h4 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.8rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* === INNER PAGE SPECIFICS === */
.page-header {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.breadcrumbs {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.inner-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  padding: 80px 0;
}

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

.inner-sidebar {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* Utils */
.reading-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2rem;
  display: block;
}

.accent-text { color: var(--accent); }

/* MOBILE MENU */
#mobile-menu-toggle {
  display: block;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  #mobile-menu-toggle { display: none; }
}

.mobile-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}

.mobile-overlay.active {
  transform: translateY(0);
}

.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}
