/* ====================================================
   GLOBAL BASE & THEME
==================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Shared theme variables (match homepage feel) */
:root {
  --purple: #4b0082;
  --purple-glass: rgba(75, 0, 130, 0.7);
  --purple-deep: rgba(20, 0, 60, 0.95);
  --white: #ffffff;
  --gold: #ffcc00;
  --gold-deep: #ffaa00;
  --hover-glow: rgba(255, 255, 255, 0.18);
}

body {
  font-family: Arial, sans-serif;
  color: #ffffff;
  background-image: url("https://wallpaperaccess.com/full/322494.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;        /* 👈 needed for the overlay */
}

/* Layout wrapper so footer behaves */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main fills space between fixed header and footer */
main {
  flex: 1 0 auto;
  padding-top: 260px;  /* clear fixed header */
  padding-bottom: 80px;

  /* 👇 needed for the dark glass overlay */
  position: relative;
  z-index: 0;
  overflow: hidden; /* keeps the overlay neatly clipped */
}

/* ============================================
   DARK GLASS OVERLAY BETWEEN HEADER & FOOTER
   (sits over background image, behind content)
============================================ */
main::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(10, 10, 10, 0.65);   /* dark grey, semi-transparent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;          /* behind .terms-container & content */
  pointer-events: none; /* don't block clicks */
}


/* ============================================
   HEADER — MATCH HOMEPAGE STYLE EXACTLY
============================================ */

/* Glass header container */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;

  background: rgba(75, 0, 130, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* glossy overlay strip, like homepage */
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
}


/* keep header children above the gloss */
header * {
  position: relative;
  z-index: 1;
}

/* inner layout (title + buttons) */
.header-inner {
  width: min(1400px, 95%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;   /* 🔼 was 12px 20px */
}

/* centre title exactly like homepage */
.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}


/* button row on the right */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* contact page: never hide header on scroll */
header.hidden {
  top: 0;
  transition: none;
}



/* ============================================
   ICON BUTTONS (cart, login, menu) — homepage match
============================================ */

.icon-btn,
.cart-btn,
.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #ffffff;     /* pure white outline */
  background-color: transparent; /* transparent inside */
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Hover glow */
.icon-btn:hover,
.cart-btn:hover,
.menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.18); /* glass glow */
  transform: translateY(-1px);
}

/* Lucide icons inside buttons */
.icon-btn svg,
.cart-btn svg,
.menu-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* PNG login icon — use same black PNG but force it to render white */
.login-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* black → white */
  pointer-events: none;
}

/* tooltip anchor spans – we only use them for titles */
.tooltip-anchor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ====================================================
   SIDE MENU (slide-out)
==================================================== */
.menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;

  background: var(--purple-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: right 0.3s ease;
  z-index: 2500;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.4);
}

.menu.open {
  right: 0;
}

.menu .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 26px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
}

.menu a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: var(--hover-glow);
}

/* ====================================================
   CONTACT PANEL
==================================================== */
.terms-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 28px 40px;

  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.12),
    rgba(0, 0, 0, 0.82)
  );
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  min-height: 560px; /* tall enough to help push footer down */
}

.terms-container > h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2rem;
  text-align: left;
}

/* wrapper */
.contact-wrapper {
  margin-top: 10px;
}

/* two-column layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

/* shared card styling */
.contact-card {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  padding: 20px 20px 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* form fields */
.contact-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.contact-row label {
  font-size: 0.95rem;
  margin-bottom: 4px;
  opacity: 0.85;
}

.contact-row input,
.contact-row select,
.contact-row textarea {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.contact-row input:focus,
.contact-row select:focus,
.contact-row textarea:focus {
  border-color: #4da6ff;
  box-shadow: 0 0 0 1px rgba(77, 166, 255, 0.6);
}

.contact-row textarea {
  min-height: 120px;
  resize: vertical;
}

/* submit button */
.contact-submit {
  width: 100%;
  padding: 10px 0;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;

  background: linear-gradient(135deg, #1f7aff, #3ac8ff);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
}

.contact-note {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* right-hand info lists */
.contact-details,
.contact-reasons {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.contact-details li,
.contact-reasons li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-label {
  font-weight: 600;
}

.contact-disclaimer {
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ====================================================
   MODALS (login/register/forgot)
==================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  background: rgba(10, 10, 35, 0.96);
  margin: 10% auto;
  padding: 26px 24px 24px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  color: #ffffff;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.modal-content input {
  width: 100%;
  margin: 8px 0;
  padding: 8px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  box-sizing: border-box;
}

.modal-content button {
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border-radius: 6px;
  border: none;
  background: #111;
  color: #f5f5f5;
  font-weight: 600;
  cursor: pointer;
}

.modal-content button:hover {
  background: #222;
  color: #00bfff;
}

.modal-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-sub-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

.modal-switch-btn {
  border: none;
  background: none;
  color: #ffcc00;
  cursor: pointer;
  font-weight: 600;
}

/* close button */
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}

/* animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   FOOTER
==================================================== */
footer {
  text-align: center;
  padding: 10px;
  background: #333333;
  color: #ffffff;
}

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 900px) {
  main {
    padding-top: 260px;
    padding-bottom: 80px;
  }

  /* Header stays same height, just tighter spacing */
  .header-inner {
    padding-inline: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 6px;
  }

  /* Title on the LEFT, can wrap onto two lines */
  .site-title {
    position: static;        /* remove absolute centring */
    left: auto;
    transform: none;
    margin: 0;

    flex: 1 1 auto;          /* let it take space and wrap */
    max-width: 70%;          /* keeps room for icons on the right */

    font-size: 1.3rem;       /* smaller so it fits nicely */
    letter-spacing: 0.08em;  /* less wide */
    line-height: 1.1;
    text-align: left;
    white-space: normal;     /* allow wrapping */
  }

  /* Icons stay on the right */
  .header-buttons {
    margin-left: 0;
    justify-content: flex-end;
  }

  /* Slightly smaller buttons on mobile */
  .icon-btn,
  .cart-btn,
  .menu-btn {
    width: 32px;
    height: 32px;
  }

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

  .terms-container {
    padding: 24px 16px 30px;
  }

  .modal-content {
    margin-top: 18%;
  }

  .menu {
    width: 100%;
    right: -100%;
  }

  .menu.open {
    right: 0;
  }
}
