/* ============================================
   EMBER. — Global Stylesheet
   ============================================ */

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

:root {
  --ember: #E8724A;
  --ember-hover: #D4623C;
  --ember-light: #F09A7A;
  --ember-glow: rgba(232, 114, 74, 0.15);
  --dark: #0A0A0A;
  --dark-soft: #1A1A1A;
  --dark-mid: #2A2A2A;
  --light: #F8F6F3;
  --light-soft: #EDE9E4;
  --white: #FFFFFF;
  --text: #3A3A3A;
  --text-muted: #7A7A7A;
  --text-light: rgba(255,255,255,0.45);
  --border: rgba(0,0,0,0.06);
  --border-light: rgba(255,255,255,0.08);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
}

nav.scrolled {
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 48px;
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--dark);
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--ember); }

.nav-links a.active { color: var(--ember); }

.nav-cta {
  background: var(--dark) !important;
  color: white !important;
  padding: 10px 28px !important;
  border-radius: 6px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--ember) !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ember);
  color: white;
  padding: 16px 36px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--ember-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 114, 74, 0.3);
}

.btn-primary.large {
  font-size: 16px;
  padding: 18px 44px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  padding: 16px 36px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: white;
}

.btn-secondary.light {
  color: white;
  border-color: rgba(255,255,255,0.2);
}

.btn-secondary.light:hover {
  border-color: white;
  background: white;
  color: var(--dark);
}

/* ---- SECTION DEFAULTS ---- */
section { padding: 120px 48px; }

.section-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
}

/* Dark section variants */
.dark-section { background: var(--dark); }
.dark-section .section-heading { color: white; }
.dark-section .section-sub { color: var(--text-light); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-soft);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  width: fit-content;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--ember);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--dark);
  max-width: 900px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--ember);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--ember-light), var(--ember));
  opacity: 0.08;
  filter: blur(80px);
  pointer-events: none;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 180px 48px 80px;
  background: var(--dark);
}

.page-hero .section-heading {
  color: white;
  font-size: clamp(40px, 5vw, 64px);
  max-width: 700px;
}

.page-hero .section-sub {
  color: var(--text-light);
  max-width: 520px;
  margin-top: 16px;
}

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  background: var(--light);
  padding: 48px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- CARDS ---- */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 36px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  border-color: transparent;
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--light-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ember);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.card-link:hover { gap: 12px; }

/* ---- GRID LAYOUTS ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-2-asym {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

/* ---- PROCESS STEPS ---- */
.process-step { position: relative; }

.step-number {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 20px;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.process-step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light);
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-quote {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}

.author-title {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- PORTFOLIO ITEMS ---- */
.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-soft);
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}

.portfolio-item:hover { transform: scale(0.98); }

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-soft), var(--dark));
  color: white;
  padding: 40px;
  text-align: center;
}

.project-type {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-light);
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--dark);
  text-align: center;
  padding: 120px 48px;
}

.cta-section .section-heading {
  color: white;
  max-width: 680px;
  margin: 0 auto 20px;
}

.cta-section .section-sub {
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 44px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border-light);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: white;
}

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

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

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

/* ---- CONTENT BLOCKS ---- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 16px;
}

.content-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.content-text ul {
  margin-bottom: 28px;
}

.content-text ul li {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 2px;
  background: var(--ember);
}

.content-visual {
  background: var(--dark-soft);
  border-radius: 12px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

/* ---- PRICING ---- */
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 36px;
  transition: all 0.4s var(--ease);
}

.pricing-card.featured {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

.pricing-card.featured h3 { color: white; }
.pricing-card.featured .pricing-price { color: white; }
.pricing-card.featured .pricing-desc { color: var(--text-light); }
.pricing-card.featured ul li { color: rgba(255,255,255,0.7); }
.pricing-card.featured ul li::before { background: var(--ember); }

.pricing-badge {
  display: inline-block;
  background: var(--ember);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-card ul {
  margin-bottom: 32px;
}

.pricing-card ul li {
  font-size: 14px;
  color: var(--text);
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.pricing-card ul li:last-child { border-bottom: none; }

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ember);
  font-weight: 700;
  font-size: 13px;
}

/* ---- CONTACT FORM ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: white;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ember);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

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

.faq-question {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--ember); }

.faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
  padding-top: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

/* ---- ANIMATIONS ---- */
/* Reveal initial state handled by JS (GSAP) so content stays
   visible even if scripts fail to load or ScrollTrigger misfires. */

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-asym { grid-template-columns: 1fr; }
  .content-block { grid-template-columns: 1fr; gap: 40px; }
  .content-block.reverse { direction: ltr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 20px 28px; }
  section { padding: 80px 28px; }
  .page-hero { padding: 140px 28px 60px; }
  .hero { padding: 120px 28px 60px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-left { flex-direction: column; gap: 12px; }
  .container { padding: 0 28px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 20px; }
  .stat-number { font-size: 32px; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px); }
}
