/* ============================================
   MAKEROBOTS.IN — Prototype Stylesheet
   Warm, invitational, d.school-inspired
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #C0392B;
  --red-hover: #A93226;
  --red-light: #FADBD8;
  --orange: #E8590C;
  --orange-hover: #C94D0B;
  --orange-light: #FEE8D6;
  --charcoal: #2D2D2D;
  --warm-white: #FAF8F5;
  --warm-gray: #6B6B6B;
  --light-gray: #F0EEEB;
  --teal: #1A9E96;
  --teal-hover: #168D86;
  --whatsapp: #25D366;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1140px;
  --narrow: 800px;
  --faq-width: 720px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Containers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.container-faq {
  max-width: var(--faq-width);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.text-bold { font-weight: 600; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

h1 em, h2 em {
  color: var(--red);
  font-style: italic;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85em 2em;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-hover);
  color: #fff;
}

.btn-camp {
  background: var(--orange);
  color: #fff;
}
.btn-camp:hover {
  background: var(--orange-hover);
  color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--teal-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--red);
}
.btn-white:hover {
  background: var(--light-gray);
  color: var(--red-hover);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}
.nav-logo-img {
  height: 40px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--red);
  text-decoration: none;
}
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 0.5em 1.2em !important;
  border-radius: 6px;
}
.nav-cta:hover {
  background: var(--red-hover) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: 0.2s;
}

/* --- Hero Carousel --- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  padding: 90px 24px 110px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-orange {
  background: linear-gradient(135deg, #C94D0B 0%, #E8590C 55%, #F0891A 100%);
}
.slide-red {
  background: linear-gradient(135deg, #8B1A12 0%, #C0392B 100%);
}
.slide-dark {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D2D 100%);
}
.carousel-slide h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.carousel-slide h1 em {
  color: rgba(255,255,255,0.85);
  font-style: italic;
}
.carousel-slide .hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.slide-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4em 1.1em;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.28);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-prev:hover, .carousel-next:hover {
  background: rgba(255,255,255,0.3);
}
.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}
.dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}
.section-gray {
  background: var(--light-gray);
}
.section-heading {
  margin-bottom: 1.5rem;
}
.section-sub {
  color: var(--warm-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* --- Pillar Cards --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.pillar-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pillar-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.pillar-icon {
  margin-bottom: 1rem;
}
.pillar-card h3 {
  color: var(--red);
}

/* --- Offering Cards --- */
.offering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.offering-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.offering-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.offering-card.camp  { border-top: 4px solid var(--orange); }
.offering-card.cert  { border-top: 4px solid var(--red); }
.offering-card.mentorship { border-top: 4px solid var(--teal); }

.offering-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3em 0.9em;
  border-radius: 50px;
  display: inline-block;
  align-self: flex-start;
}
.camp .offering-label       { background: var(--orange-light); color: var(--orange); }
.cert .offering-label        { background: var(--red-light);    color: var(--red); }
.mentorship .offering-label  { background: #D0F0EE;             color: var(--teal); }

.offering-card h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}
.offering-card > p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.offering-details {
  font-size: 0.82rem;
  color: var(--warm-gray);
  padding: 0.75rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  line-height: 1.7;
}
.offering-outcome {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  padding-left: 1.4rem;
  position: relative;
}
.offering-outcome::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27AE60;
  font-weight: 700;
}
.offering-fee {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
}
.offering-fee-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--warm-gray);
}
.offering-card .btn {
  margin-top: auto;
  text-align: center;
  display: block;
}

/* --- Project Cards --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.project-placeholder {
  background: var(--light-gray);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #9c9c9c;
  font-size: 0.85rem;
}
.project-info {
  padding: 1.25rem;
}
.project-info h4 {
  margin-bottom: 0.4rem;
}
.project-info p {
  font-size: 0.9rem;
  color: var(--warm-gray);
}
.project-image {
  height: 220px;
  overflow: hidden;
  background: var(--light-gray);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.04);
}
.project-tag {
  display: inline-block;
  background: var(--light-gray);
  color: var(--warm-gray);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-top: 0.6rem;
}
.age-badge {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  margin-top: 0.6rem;
}

/* --- Steps --- */
.steps {
  margin-top: 2.5rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.step:last-child { margin-bottom: 0; }
.step-number {
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h3 {
  margin-bottom: 0.3rem;
}
.step-content p {
  color: var(--warm-gray);
}

/* --- Testimonials --- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border-top: 3px solid var(--red);
  position: relative;
}
.testimonial-quote {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--red-light);
  line-height: 1;
  margin-bottom: -0.5rem;
}
.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
}
.testimonial-author {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}
.testimonial-author strong {
  display: block;
  font-style: normal;
  color: var(--charcoal);
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-style: normal;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--red);
  padding: 60px 24px;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* --- FAQ --- */
.faq-list {
  margin-top: 2rem;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item[open] summary {
  color: var(--red);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--warm-gray);
  line-height: 1.7;
}
.faq-answer a {
  color: var(--red);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: #ccc;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer h3, .footer h4 {
  color: #fff;
}
.footer-tagline {
  font-style: italic;
  color: #999;
}
.footer a {
  color: #fff;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--red-light);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
  text-decoration: none;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pillars       { grid-template-columns: 1fr; }
  .offering-grid { grid-template-columns: 1fr; }
  .project-grid  { grid-template-columns: repeat(2, 1fr); }
  .testimonials  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 1.5rem 24px;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .carousel-slide {
    padding: 70px 16px 90px;
  }
  .carousel-slide h1 {
    font-size: 1.9rem;
  }
  .carousel-slide .hero-sub {
    font-size: 1.05rem;
  }
  .carousel-prev, .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }

  .section { padding: 60px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .step { flex-direction: row; gap: 1rem; }

  .whatsapp-float {
    padding: 14px;
    border-radius: 50%;
  }
  .whatsapp-float span { display: none; }
}
