/* ========================
   Menu Page Styles
   ======================== */
@import "base.css";

/* Menu-specific variable overrides */

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--wine-deep);
  color: #e7e7da;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================
   Page Structure
   ======================== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 60px);
  position: relative;
}

/* Shared velvet background for cover and detail pages */
.page-cover,
.detail-page {
  background: linear-gradient(
      to right,
      rgba(81, 9, 9, 0.6) 0%,
      rgba(156, 18, 18, 0.6) 100%
    ),
    url("../content/service-bg-velvet.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* iOS Safari fix: prevents background from disappearing after scroll */
@supports (-webkit-touch-callout: none) {
  .page-cover,
  .detail-page,
  .about-page {
    background-attachment: scroll;
  }
}

/* ========================
   Cover Page (Page 1)
   ======================== */
.cover {
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding-top: 0;
}

@media (max-width: 768px) {
  .cover {
    padding-top: 80px;
  }
}

.cover__logo {
  display: none;
}

.cover__title {
  font-family: "Black Mango", "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 20vw, 150px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.cover__subtitle {
  /* font-family: "Playfair Display", Georgia, serif; */
  font-family: "Qwitcher Grypen", cursive;
  font-style: normal;
  font-size: clamp(28px, 10vw, 120px);
  font-weight: 400;
  color: #94c1cd;
  margin-top: -5%;
  margin-bottom: clamp(40px, 6vw, 80px);
  transform: rotate(-5deg);
}

.cover__tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(30px, 5vw, 60px);
}

.cover__tier {
  text-align: left;
}

.cover__tier-title {
  font-family: "Black Mango", "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.cover__tier-subtitle {
  font-size: clamp(10px, 1.2vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94c1cd;
  margin-bottom: 16px;
  font-weight: 500;
}

.cover__tier-desc {
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

/* Napkin image on cover */
.cover__napkin {
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(200px, 40vw, 500px);
  height: auto;
  opacity: 0.4;
  pointer-events: none;
}

/* ========================
   Detail Pages (Pages 2-4)
   ======================== */
.detail-page {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}

.detail-logo {
  display: none;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: clamp(30px, 5vw, 60px);
}

.detail-title {
  font-family: "Black Mango", "Playfair Display", Georgia, serif;
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-price {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 8px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
}

.detail-intro {
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.detail-intro strong {
  font-style: italic;
}

.detail-pricing {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 600;
  margin-top: 20px;
  letter-spacing: 0.05em;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-group h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(16px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feature-group h3 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feature-group p,
.feature-group ul {
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.feature-group ul {
  list-style: none;
  padding-left: 20px;
}

.feature-group ul li {
  position: relative;
  margin-bottom: 4px;
}

.feature-group ul li::before {
  content: "■";
  position: absolute;
  left: -20px;
  top: 5px;
  color: var(--blue);
  font-size: 8px;
}

/* ========================
   About Page (Page 5)
   ======================== */
.about-page {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../content/hero-texture.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
}

.about-logo {
  display: none;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-header {
  margin-bottom: clamp(30px, 5vw, 60px);
}

.about-title {
  font-family: "Black Mango", "Playfair Display", Georgia, serif;
  font-size: clamp(60px, 14vw, 160px);
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: 10%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-left p {
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.about-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.about-tagline {
  text-align: right;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-signature {
  font-family: "Qwitcher Grypen", cursive;
  font-style: normal;
  font-size: clamp(40px, 6vw, 80px);
  color: var(--blue);
  margin-bottom: 30px;
}

.about-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  text-align: center;
  font-size: clamp(11px, 1.3vw, 13px);
  line-height: 1.8;
  margin-top: clamp(40px, 6vw, 80px);
}

.team-column {
  display: flex;
  flex-direction: column;
}

.team-column p {
  margin-bottom: 8px;
}

.about-footer {
  margin-top: 40px;
  text-align: center;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: 0.05em;
}

/* ========================
   Responsive Adjustments
   ======================== */
@media (max-width: 768px) {
  .about-page {
    background-attachment: scroll;
  }

  .detail-content,
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-right {
    align-items: flex-start;
  }

  .about-tagline {
    text-align: left;
  }

  .about-team {
    grid-template-columns: 1fr;
    text-align: left;
  }

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

  .cover__napkin {
    width: 60vw;
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .cover__logo {
    font-size: 24px;
  }

  .detail-logo {
    font-size: 20px;
  }
}

/* ========================
   Back to Home Button
   ======================== */
.back-home {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  left: clamp(20px, 3vw, 40px);
  background: rgba(169, 203, 211, 0.3);
  color: var(--wine-deep);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  z-index: 1000;
  text-transform: uppercase;
}

.back-home:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-home {
    top: 15px;
    left: 15px;
    padding: 10px 10px;
  }
}

/* ========================
   Global PN Logo
   ======================== */
.global-logo {
  position: fixed;
  top: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  width: clamp(90px, 16vw, 180px);
  height: auto;
  z-index: 1000;
}

@media (max-width: 768px) {
  .global-logo {
    top: 15px;
    right: 15px;
    width: clamp(75px, 22vw, 140px);
  }
}

/* ========================
   Napkin Graphic
   ======================== */
.napkin-graphic {
  position: absolute;
  right: -25%;
  top: 30%;
  transform: translateY(-50%);
  width: clamp(400px, 50vw, 800px);
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 768px) {
  .napkin-graphic {
    width: clamp(300px, 60vw, 500px);
    right: -30%;
    top: 20%;
    opacity: 0.3;
  }
}

/* ========================
   Scroll-up Animation
   ======================== */
/* Note: @keyframes fadeIn is defined in base.css */

.page {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Stagger the animations for each page */
.page:nth-child(1) {
  animation-delay: 0s;
}

.page:nth-child(2) {
  animation-delay: 0.1s;
  opacity: 0;
}

.page:nth-child(3) {
  animation-delay: 0.2s;
  opacity: 0;
}

.page:nth-child(4) {
  animation-delay: 0.3s;
  opacity: 0;
}

.page:nth-child(5) {
  animation-delay: 0.4s;
  opacity: 0;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
    opacity: 1;
  }
}

/* ========================
   Back to Top Button
   ======================== */
.back-to-top {
  display: block;
  margin: clamp(40px, 6vw, 80px) auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(169, 203, 211, 0.4);
  background: rgba(169, 203, 211, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-light);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* ========================
   Print Styles
   ======================== */
@media print {
  .page {
    page-break-after: always;
  }
}
