/* ---------- BASIC LAYOUT ---------- */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Spectral", cursive, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;

  display: flex;
  flex-direction: column;

  background: #EFE0CD;
}
main {
  width: 100%;
  box-sizing: border-box;
  padding: 130px 40px 0;
}

.about-content {
  width: 100%;
}

.about-content h1 {
  margin: 0 0 10px;
  font-size: 36px;
}

.about-content p {
  margin: 0 0 28px;
  width: 100%;
  line-height: 1.8;
  font-size: 20px;
  text-align: left;
}

.about-content .story-text {
  text-align: justify;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 8px;
}

.member-card {
  text-align: center;
}

.member-card img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto 10px;
}

.member-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

.member-card-centered {
  margin: 28px auto 0;
  width: 100%;
  max-width: 260px;
}

body::-webkit-scrollbar {
  width: 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  z-index: 10;
  transition: padding 220ms ease, background-color 220ms ease, backdrop-filter 220ms ease, box-shadow 220ms ease;
  will-change: padding, background-color;
}

/* Expanded state when at top */
.navbar.at-top {
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Compact state when scrolled */
.navbar:not(.at-top) {
  padding: 8px 34px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.navbar li {
  float: left;
}

.navbar a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 12px 16px;
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: font-size 160ms ease, padding 160ms ease;
}

.navbar a:hover {
  text-decoration: underline;
}

.navbar.at-top a {
  font-size: 20px;
}

/* ---------- LOGO ---------- */
.logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.logo {
  height: 350px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* ---------- SEARCH ICON ---------- */
.search-container {
  position: absolute;
  right: 230px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customize-container {
  position: absolute;
  right: 270px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.searchlogo {
  height: 30px;
  width: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.searchlogo:hover {
  transform: scale(1.1);
}

.customize-container .searchlogo {
  height: 42px;
}

/* ---------- CART ICON ---------- */
.cart-container {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cartlogo {
  height: 32px;
  width: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.cartlogo:hover {
  transform: scale(1.1);
}

/* red notification badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* ---------- SEARCH MODAL ---------- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-modal {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: all;
}

.search-input {
  width: 400px;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  outline: none;
  font-family: "Spectral", serif;
}

.search-input:focus {
  background: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ---------- MODAL POPUP ---------- */
.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* when modal is visible */
.modal-container.show {
  opacity: 1;
  pointer-events: all;
}

/* modal box */
.modal {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

/* fade-in when shown */
.modal-container.show .modal {
  opacity: 1;
}

/* expands on hover */
.modal-container.show .modal:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 1100;
}

/* image styling */
.modal img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.modal:hover img {
  transform: scale(1.05);
}

/* ==================== TABLET & PHONE RESPONSIVE ==================== */

/* ---------- TABLET (portrait and small landscape) ---------- */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 20px;
  }
  .navbar.at-top {
    padding: 18px 20px;
  }
  .navbar:not(.at-top) {
    padding: 6px 20px;
  }

  .logo {
    height: 100px;
  }
  .navbar:not(.at-top) .logo {
    height: 40px;
  }
}

/* ---------- PHONE (portrait) ---------- */
@media (max-width: 768px) {
  /* prevent horizontal scrolling */
  body {
    overflow-x: hidden;
    max-width: 100vw;

  background: #EFE0CD;
  }

  .logo,
  .logo-link {
    display: none !important;
  }

  .navbar {
    justify-content: space-between;
    padding: 10px 16px;
    position: relative;
    overflow: visible;
  }
  .navbar.at-top {
    padding: 16px 16px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .navbar:not(.at-top) {
    padding: 8px 16px;
  }

  .navbar ul {
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .navbar a {
    font-size: 15px;
    padding: 8px 10px;
  }
  .navbar.at-top a {
    font-size: 16px;
  }

  .cart-container {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .cartlogo {
    height: 28px;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }

  .modal-container {
    flex-direction: row;
    gap: 8px;
    padding: 16px;
    max-width: none;
    width: auto;
    overflow-x: visible;
    overflow-y: visible;
    justify-content: center;
    align-items: center;
  }

  .modal {
    width: 90px;
    max-width: 90px;
    padding: 8px;
    flex-shrink: 0;
  }

  .modal img {
    width: 100%;
    height: auto;
  }

  /* main content: centered with padding */
  main {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 80px;
    align-items: center;
    justify-content: flex-start;
  }

  main h1 {
    font-size: 24px;
    text-align: center;
    max-width: 100%;
    line-height: 1.5;
  }

  .contact-info {
    max-width: 100%;
    text-align: left;
    padding: 0;
  }

  .contact-info p {
    font-size: 15px;
    line-height: 1.8;
    word-wrap: break-word;
  }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width: 480px) {
  .navbar a {
    font-size: 13px;
    padding: 6px 8px;
  }
  .navbar.at-top a {
    font-size: 15px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}


.site-footer {
  margin-top: auto;
}

body > main {
  margin-bottom: 120px;
}


/* ---------- USER ICON ---------- */
.userlogo {
  height: 34px;
  width: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease;
}

.userlogo:hover {
  transform: scale(1.1);
}

/* ---------- USER MODAL ---------- */
.user-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.user-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.user-modal {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2101;
  opacity: 0;
  pointer-events: none;
  width: 480px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 20px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.user-modal.active {
  opacity: 1;
  pointer-events: all;
}

.user-modal label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.user-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-family: "Spectral", serif;
}

.user-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 8px;
}

.user-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-family: "Spectral", serif;
  font-weight: 600;
  cursor: pointer;
}

.signup-btn {
  background: #111;
  color: #fff;
}

.login-btn {
  background: #e6e6e6;
  color: #111;
}


.signup-modal {
  top: 95px;
  opacity: 0;
  transform: translate(-50%, -12px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.signup-modal.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.signup-modal h3 {
  margin: 0 0 12px;
  font-size: 24px;
  text-align: center;
}

.signup-modal .user-input {
  border: 1px solid #b9c0cf;
  background: #f7f8fc;
  border-radius: 10px;
  padding: 12px 14px;
}

.signup-modal .user-input:focus {
  border-color: #7f8aa3;
  box-shadow: 0 0 0 3px rgba(127, 138, 163, 0.18);
  outline: none;
}

.signup-submit-btn {
  background: #111;
  color: #fff;
}

.signup-modal .login-btn {
  background: #eceff5;
  color: #111;
}



/* ---------- PAGE TRANSITION OVERLAY ---------- */
html,
body {
  background: #EFE0CD;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, #1f1f1f 0%, #565656 50%, #1f1f1f 100%);
  transform: translateY(0%);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 9999;
}

body.page-entered::before {
  transform: translateY(-100%);
}

body.no-page-transition::before {
  transition: none;
}

body.page-exit::before {
  transform: translateY(0%);
}

/* ---------- EMAIL VALIDATION ---------- */
.email-error {
  display: block;
  min-height: 16px;
  margin: -6px 0 10px;
  font-size: 12px;
  color: #cc1f1f;
}

.signup-message {
  min-height: 16px;
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
}


.login-message {
  min-height: 16px;
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
}


/* ---------- WEBSITE SETTINGS (GLOBAL) ---------- */
body.transitions-off::before {
  display: none;
}

body.site-dark {
  background: #131313;
  color: #ededed;
}

body.site-dark .navbar {
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.site-dark .navbar.at-top {
  background: rgba(255, 255, 255, 0.2);
}

body.site-dark .navbar:not(.at-top) {
  background: rgba(255, 255, 255, 0.16);
}

body.site-dark .navbar a {
  color: #0e0e0e;
}

body.site-dark .site-footer {
  background: rgba(255, 255, 255, 0.2);
  color: #111;
}


/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 11;
}

.mobile-menu-btn img {
  height: 28px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  width: 100%;
}

.mobile-menu li {
  float: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu a {
  display: block;
  padding: 16px 22px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}

.mobile-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}
/* MOBILE SITE-WIDE PATCH */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  background: #EFE0CD;
  }

  .header {
    overflow: visible !important;
  }

  .header,
  .navbar,
  main,
  .site-footer,
  footer {
    max-width: 100vw;
    overflow-x: clip;
  }

  .navbar {
    padding: 8px 10px !important;
    min-height: 72px;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    overflow: visible;
  }

  .navbar ul {
    display: none;
  }

  .mobile-menu-btn {
    display: block !important;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 12;
  }

  .mobile-menu-btn img {
    height: 26px;
    width: auto;
  }

  .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    max-height: calc(100dvh - 72px);
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 220ms;
  }

  .mobile-menu ul {
    display: block !important;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .logo {
    display: block !important;
    height: 236px !important;
    max-width: 480px;
    object-fit: contain;
    position: absolute !important;
    top: 50% !important;
    left: 42% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0;
    z-index: 11;
  }

  .search-container,
  .question-container,
  .user-container,
  .cart-container {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .search-container { right: 108px !important; }
  .customize-container { right: 132px !important; }
  .customize-container .searchlogo { height: 24px !important; }
  .question-container { right: 78px !important; }
  .user-container { right: 50px !important; }
  .cart-container { right: 28px !important; }

  .user-container .userlogo {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .cart-badge {
    height: 16px !important;
    width: 16px !important;
    font-size: 11px !important;
  }

  .site-footer,
  footer {
    padding: 10px 12px !important;
  }

  .site-footer > div,
  footer > div {
    white-space: normal !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
  }

  .site-footer span,
  footer span {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .navbar ul {
    padding-right: 108px;
  }

  .navbar a,
  .navbar.at-top a {
    font-size: 11px !important;
    padding: 5px 6px !important;
  }

  .logo {
    height: 196px !important;
    max-width: 400px;
    position: absolute !important;
    top: 50% !important;
    left: 40% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0;
    z-index: 11;
  }

  .search-container { right: 108px !important; }
  .customize-container { right: 132px !important; }
  .customize-container .searchlogo { height: 24px !important; }
  .question-container { right: 78px !important; }
  .user-container { right: 50px !important; }
  .cart-container { right: 28px !important; }

  .searchlogo,
  .questionlogo,
  .userlogo,
  .cartlogo {
    height: 22px !important;
  }

  .site-footer span,
  footer span {
    font-size: 11px !important;
  }
}


