/* ============================================
   JOE Design, Inc. — joedesign.com
   Global Stylesheet
   ============================================ */

:root {
  --dark:        #25245C;
  --dark-card:   #25245C;
  --dark-border: #374151;
  --orange:      #e67e22;
  --orange-dark: #d35400;
  --light:       #f9fafb;
  --white:       #ffffff;
  --text-dark:   #111827;
  --text-mid:    #4b5563;
  --text-light:  #6b7280;
  --text-muted:  #9ca3af;
  --max-width:   1100px;
  --radius:      6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}
.eyebrow {
  font-size: 14.3px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 12px;
}
.section { padding: 72px 0; }
.section--dark { background: var(--dark); }
.section--light { background: var(--light); }
.section--white { background: #efefef; }
.section--orange { background: var(--orange); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { margin-top: 8px; color: #454DC7; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 13px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}
.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--light);
  border-color: var(--light);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover { background: #1a1942; border-color: #1a1942; }

/* ---- Navigation ---- */
.nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--dark);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }

/* Mobile dropdown hover */
.nav-links.open a:hover {
  color: var(--orange);
  font-weight: 600;
}
.nav-cta .btn { padding: 10px 24px; font-size: 11px; }

/* Hamburger */
.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(--orange);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--dark);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p {
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: #d1d5db;
  font-size: 18px;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--orange); }
.footer-col h4 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: #d1d5db;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--orange); }
.footer-contact p {
  color: #d1d5db;
  font-size: 13px;
  margin-bottom: 6px;
}
.footer-contact a { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  color: #d1d5db;
  font-size: 12px;
  margin: 0;
}
.footer-bottom a { color: #d1d5db; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--orange); }

/* ---- Page Hero (interior pages) ---- */
.page-hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/images/Inside-Hero-HEADER.webp') center center / cover no-repeat;
  padding: 80px 0;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto;
}

/* ---- Two Column Layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---- Feature List ---- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}
.feature-item-text strong {
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.feature-item-text span { color: var(--text-light); font-size: 13px; }

/* ---- Pricing Cards ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan-card.featured { border: 2px solid var(--orange); }
.plan-header { padding: 24px 24px 20px; border-bottom: 1px solid var(--dark-border); }
.plan-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Oswald', sans-serif;
  white-space: nowrap;
}
.plan-name {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .symbol { color: var(--orange); font-size: 22px; font-weight: 600; align-self: flex-start; margin-top: 10px; }
.plan-price .amount { color: var(--white); font-size: 42px; font-weight: 700; font-family: 'Oswald', sans-serif; }
.plan-price .decimal { color: var(--white); font-size: 22px; font-weight: 600; }
.plan-price .period { color: var(--text-muted); font-size: 13px; margin-left: 4px; }
.plan-features { padding: 20px 24px; flex: 1; }
.plan-features ul { list-style: none; }
.plan-features li {
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e67e22' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.plan-footer { padding: 20px 24px 24px; }
.plan-footer .btn { width: 100%; text-align: center; display: block; }

/* ---- Pricing section: purple theme ---- */
.pricing-section { background: #411974; }
.pricing-section .eyebrow { color: var(--orange); }
.pricing-section .plan-card.featured { border-color: #653CB7; }
.pricing-section .plan-badge { background: var(--orange); }
.pricing-section .plan-price .symbol { color: var(--orange); }
.pricing-section .plan-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e67e22' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.pricing-section .plan-features li { color: #ffffff; }

/* ---- Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card { text-align: center; padding: 12px; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; color: var(--text-dark); margin-bottom: 10px; }
.step-card p { font-size: 13px; color: var(--text-light); }

/* ---- Blurb / Icon Items ---- */
.blurb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blurb {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blurb-icon {
  width: 44px;
  height: 44px;
  background: rgba(230, 126, 34, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blurb-icon svg { width: 22px; height: 22px; color: var(--orange); stroke: var(--orange); }
.blurb h3 { font-size: 16px; color: var(--text-dark); }
.blurb p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: var(--orange); font-size: 14px; letter-spacing: 3px; }
.testimonial-quote {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin: 0;
}
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 14px; color: var(--text-dark); }
.testimonial-role { font-size: 12px; color: var(--text-light); }

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.12); }
.portfolio-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.portfolio-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.portfolio-cat {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
}
.portfolio-card h3 { font-size: 17px; color: var(--text-dark); }
.portfolio-card p { font-size: 13px; color: var(--text-light); margin: 0; }
.portfolio-result { font-size: 13px; color: var(--text-mid); font-weight: 600; margin-top: 4px; }

/* ---- Case Study (featured) ---- */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.case-study img { border-radius: 10px; }
.case-study-metrics { display: flex; gap: 32px; margin: 22px 0; }
.case-study-metric .num {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  color: var(--orange);
  line-height: 1;
}
.case-study-metric .label { font-size: 12px; color: var(--text-light); }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .case-study { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}
@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---- CTA Banner ---- */
.cta-banner { text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 16px; max-width: 560px; margin: 0 auto 32px; }
.cta-banner .phone { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 20px; }
.cta-banner .phone a { color: var(--white); font-weight: 600; }

/* ---- Contact Form ---- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: si-fadein 0.6s ease forwards 1.4s;
  pointer-events: none;
}
.scroll-indicator__label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'Oswald', sans-serif;
}
.scroll-indicator__line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, #c8a96e, transparent);
  transform-origin: top;
  animation: si-drop 1.8s ease-in-out infinite;
}
@keyframes si-fadein {
  to { opacity: 1; }
}
@keyframes si-drop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ---- Hero Canvas ---- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- FAQ Accordion ---- */
.faq-jumpnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.faq-jumpnav a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 11px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.faq-jumpnav a:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}
.faq-category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 20px;
  scroll-margin-top: 90px;
}
.faq-category-head:first-of-type { margin-top: 0; }
.faq-category-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-category-head h2 { font-size: 20px; color: var(--dark); margin: 0; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.faq-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: rgba(230,126,34,0.35); }
.faq-item[open] { border-color: var(--orange); }
.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(230,126,34,0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--orange); color: var(--white); }
.faq-answer {
  padding: 0 0 20px;
  color: var(--text-mid);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--orange); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .blurb-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Websites page mobile tweaks ---- */
@media (max-width: 900px) {
  #whats-included { padding-top: 60px !important; }
}

/* ---- iPhone scroll animation — mobile override ---- */
@media (max-width: 900px) {
  #joe-scene {
    height: auto !important;
  }
  /* release sticky, collapse to normal flow */
  #joe-scene > div {
    position: relative !important;
    height: auto !important;
    padding: 52px 30px 60px !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }
  /* hide canvas */
  #joe-phone-canvas { display: none !important; }
  /* inner flex row → single column */
  #joe-scene > div > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
  }
  /* each side column → full width, flush left */
  #joe-scene > div > div:last-child > div {
    width: 100% !important;
    text-align: left !important;
  }
  /* show all items immediately */
  #joe-l1, #joe-l2, #joe-l3,
  #joe-r1, #joe-r2, #joe-r3 {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 30px; }
  .section { padding: 52px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--dark-border);
  }
  .nav-links.open + .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .blurb-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
