/* Base layout */
html, body { margin: 0; height: 100%; }
body { overflow: hidden;}
.layout { display: flex; height: 100vh; width: 100vw; }

/* Sidebar */
.sidebar {
  width: 12.5vw;
  min-width: 320px;
  background: #6D2323;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  font-family: "IBM Plex Mono", monospace;
  position: sticky;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation */
.menu, .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: .5rem .75rem;
  border-radius: .4rem;
  font-size: 1.5rem;
}
.menu a:hover { background: #333; }

.brand-row{
  display: flex;
  align-items: center;
  gap: .5rem;
}
.wordmark{
  height: 60px;
  max-width: 200px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Submenu */
.submenu {
  display: none;
  padding-left: 1rem;
}
.has-submenu.active > .submenu {
  display: block;
}
.submenu a {
  color: #ccc;
  padding: .4rem .75rem;
}
.submenu a:hover {
  background: #2b2b2b;
  color: #fff;
}



/* Content area */
.content {
  position: relative;
  flex: 1;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  background: url(/images/background_3a.png) center/cover no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  scroll-behavior: smooth;
  scroll-snap-type:y proximity;
}
.content img{
  border-radius: 24px;
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.content::before{
  content: "";
  display: flex;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, var(--overlay-opacity, 0));
  pointer-events: none;
  transition: background 0.25s ease;
  z-index: 0;
}
.title-pill{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 9999px;
  padding: .85rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: min(90vw, 980px);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.panel{
  min-height: 100vh;
  padding: 2rem;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.panel p{
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 30px;
  padding: .85rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin: 0;
  max-width: min(90vw, 980px);
  line-height: 1.55;
  text-align: center;
}
.title-pill h3{
  font-size: 1.5rem;
  font-family: "Manrope", sans-serif;
}
#s3 .warranty_img{
  display: block;
  max-width: min(100%, 960px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
span.bold_p{
  font-weight: bold;
}
.stacked{
  display: flex;
  flex-direction: column;
  width: 100%;
}
.rocky{
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
}
h2#animation{
  margin-top: 2rem;
}
.panel h2{
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.5rem;
}
.panel#s2{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.code_imgs{
  display: block;
  max-width: min(100%, 960px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.pill-btn{
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.pill-btn:active{
  transform: translateY(1px) scale(.99);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.12);
}
.title-pill h1{
  margin: 0;
  line-height: 1.1;
  font-size: clamp(1.75rem, 3vw, 3rem);
}
.title-pill h1::after{
  display: none;
}
.title-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.title-pill:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(100, 35, 35, .35), 0 8px 24px rgba(0,0,0,.08);
}
.price-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-tier:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.tier-img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tier-img:hover {
  opacity: 0.85;
}

.price-tier img{
  width: 300px;
  height: 200px;
}
/* Pressed/Click state */
.title-pill:active,
.title-pill.is-active{
  transform: translateY(1px) scale(0.99);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.12),
    0 2px 12px rgba(0,0,0,.08);
  background: #f9fafb;
  border-color: rgba(0,0,0,.08);
}
.content h1{
  font-family: "IBM Plex Mono", monospace;
}
h1{
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    color: #6D2323;
}
h1::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #C74B50;
    transition: width 0.3s ease;
}
h1:hover::after{
    width: 100%;
}

/* Mobile (≤430px) */
@media (max-width: 430px) {
  body { overflow: auto;}
  .layout { flex-direction: column; }

  .sidebar {
    width: 100vw;
    height: auto;
    padding: 1rem 1rem;
    overflow: visible;
    position: static;
  }

  .menu-toggle { display: inline-block; }

  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .sidebar.open .nav {
    max-height: 70vh;
    overflow: auto;
  }

  .submenu {
    padding-left: 1rem;
  }

  .content {
    overflow: visible;
    background: url(/images/background_3b.png);
  }

  .title-pill {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  margin: auto;            /* centers inside parent */
  text-align: center;      /* centers text */
  height: fit-content;
  } 

  .panel {
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  min-height: 100vh;       /* fills full viewport height */
  }

  .panel p{
    font-size: 1rem;
  }

  .title-pill h1 {
    font-size: clamp(1rem, 6vw, 2.5rem);
  }

  section h2{
    color: white;
    text-align: center;
  }

  .stacked img{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
  }

  
  
  
  body.animation-page .title-pill{
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
    margin: auto;            /* centers inside parent */
    text-align: center;      /* centers text */
    height: fit-content;
  }

  body.animation-page .title-pill h2{
    color: black;
  }

}

/* Tablet (768px–1024px): left sidebar fills screen height; content bg reaches bottom */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Keep two-column layout */
  .layout {
    flex-direction: row;
    height: 100dvh;        /* anchor both columns to viewport */
    width: 100vw;
  }

  body { overflow: hidden; } /* allow .content to scroll, not body */

  /* Sidebar: fixed-width, full-height, sticks to top */
  .sidebar {
    width: 320px;
    min-width: 280px;
    height: 100dvh;        /* fill to end of screen */
    position: sticky;
    top: 0;
    align-self: stretch;  /* ensure full column height */
    overflow-y: auto;
    padding: 1rem;
    background: #6D2323;
  }

  /* Always show nav on tablet (no dropdown collapse needed) */
  .menu-toggle { display: none; }
  .nav { max-height: none; overflow: visible; }

  /* Content: scrolls independently, bg covers to bottom */
  .content {
    flex: 1;
    min-height: 100dvh;    /* extend background image to bottom */
    height: 100dvh;
    overflow-y: auto;
    padding: 2rem;
    background: url(/images/background_3a.png) center/cover no-repeat;
    background-size: cover;
  }

  /* Typographic & spacing tweaks */
  .panel {
    padding: 1.5rem;
    gap: 1rem;
  }
  .panel h2 { text-align: center; font-size: 2rem; }
  .panel p  { font-size: 1rem; line-height: 1.6; max-width: 900px; }

  /* Pricing grid: comfortable tablet layout */
  #pricing .stacked > div[style*="grid"] {
    
    width: min(980px, 90vw);
  }
  .price-tier { max-width: 420px; margin: 0 auto; }
  .tier-img { max-width: 260px; }

  /* Title pill sizing */
  .title-pill h1 { font-size: clamp(1.6rem, 2.6vw, 2.8rem); text-align: center; }

  .pricing-grid{
    height: 1800px;
  }

    /* Reorder pricing title under Performance Tune-Up paragraph (tablet only) */
   #tuneup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    gap: 3rem;
    visibility: visible;      /* make sure it’s shown */
  }

  #tuneup h2 {
    font-size: 2rem;
    text-align: center;
  }

  #tuneup p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 900px;
    text-align: center;
  }

   body.contact-page .sidebar{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    min-width: 280px;
    height: auto;
    overflow-y: auto;
    background: #6D2323;
    padding: 1rem;
  }

  body.contact-page .content{
    margin-left: 320px;
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 2rem;
    background:url(/images/background_3a.png) center/cover no-repeat;
  }

  body.contact-page .layout {
    /*flex-direction: row;*/
    height: 100dvh;
    width: 100vw;
  }

  body.contact-page .content {
    min-height: 100vh;
    overflow-y: auto;
  }

  body.contact-page{ overflow: hidden; }
  body.animation-page{ overflow: hidden; }

  

}






