/* --- css/style.css --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@700&display=swap');

:root {
  /* Color Palette */
  --page-area: #00463d;
  --text-area: #003029;
  --btn-outline: #003e36;
  --shadow: #191919;
  --navi-bar:#003029;
  
  --hyperlinks: #feea7f;
  --text-main: #ffffff;
  
  /* Footer Specifics */
  --footer-text: lightgray;
  --footer-links: lightgray;
  --footer-height: 120px; /* Master height variable to sync scrolling panels */
  
  --site-bg: #e6e6e6;
  --footer-bg: #2e3235;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--site-bg);
  color: var(--text-main, #ffffff); 
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Force elements to inherit failsafe text colors */
h1, h2, h3, h4, h5, h6, p, span, div, li, ul, strong {
  color: var(--text-main, #ffffff);
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--hyperlinks, #ffffff);
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
  overflow-wrap: anywhere; 
  word-break: break-word;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline; 
  color: #fed600; 
}

/* --- New Utility Class for Golden Text --- */
.text-gold {
  color: #fed600;
}

/* Page Area Structure */
.page-area {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--page-area);
  box-shadow: 0px 0px 15px var(--shadow);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- New Main Two-Column Layout --- */
.main-columns {
  display: flex;
  width: 100%;
  flex: 1; 
}

/* 45% Fixed Left Column */
.hero-left {
  width: 45%;
  position: sticky;
  top: 0;
  /* Perfect height math to prevent moving/jumping when hitting the bottom */
  height: calc(100vh - var(--footer-height)); 
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 400px; 
  height: auto;
}

/* 55% Scrolling Right Column */
.hero-right {
  width: 55%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* --- Image and Text Overlay Container --- */
.promo-container {
  position: relative;
  width: 100%;
  /* Perfect height minus the footer so any surplus is cut */
  height: calc(100vh - var(--footer-height)); 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Scaled Promo Image filling the container */
.promo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Auto scales and cuts the surplus safely */
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2; /* Forces text to sit on top of the image */
  text-align: center;
  padding: 2rem;
  /* Strong black shadow for readability over the picture */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0px 0px 20px rgba(0,0,0,1);
}

.hero-text h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-text h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.store-badges img {
  height: 50px; 
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.8)); 
}

.store-badges img:hover {
  transform: scale(1.05); 
}

/* Content Sections */
.page-content {
  padding: 4rem 3rem;
  flex: 1;
}

.text-area {
  width: 100%;
  padding: 2rem 2rem;
  background-color: var(--text-area);
}

/* Enforce justification for all paragraphs inside the text area */
.text-area p {
  text-align: justify;
}

/* --- Subpage Navigation Bar --- */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--navi-bar);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
}

.back-arrow {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.nav-title {
  margin: 0;
  font-size: 1.2rem;
}

.nav-logo {
  height: 40px;
  width: auto;
}

/* --- Always-On Footer --- */
footer {
  position: sticky;
  bottom: 0;
  width: 100%; 
  height: var(--footer-height); /* Enforces exact calculated height */
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; 
  padding: 0 2rem; 
  
  /* Centered 2 Column Alignment */
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  text-align: center; 
  align-content: center;
  gap: 1.2rem;
  z-index: 1000;
  box-shadow: inset 0px 5px 30px -10px var(--shadow); 
}

footer strong {
  color: var(--footer-text); 
  display: block;
  margin-bottom: 0.5rem; 
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

footer a, footer p {
  color: var(--footer-links);
  display: block;
  margin-bottom: 0.25rem; 
  line-height: 1.3;
}

/* --- Account Deletion Form --- */
.deletion-form-container {
  margin-top: 20px;
  padding-top: 20px;
}

.delete-form {
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap; /* Allows wrapping */
  gap: 15px;
  align-items: stretch;
  width: 100%;
  max-width: 500px;
  font-family: 'Inter', sans-serif;
}

.delete-form input[type="email"] {
  flex: 1; 
  background-color: transparent; 
  border: 1px solid #ffffff; 
  color: var(--text-main);
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.delete-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.delete-form button {
  width: fit-content; 
  background-color: var(--page-area); 
  border: 1px solid #ffffff; 
  color: #ffffff; 
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500; 
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap; 
  transition: color 0.3s ease, border-color 0.3s ease;
}

.delete-form button:hover {
  border-color: var(--hyperlinks); 
  color: var(--hyperlinks); 
}

.delete-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #ffffff;
  color: #ffffff;
}

.status-msg {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.status-success {
  color: var(--site-bg);
  border: 1px var(--site-bg);
}

.status-error {
  color: var(--hyperlinks);
  border: 1px var(--hyperlinks);
}

/* --- Mobile Optimization --- */
@media screen and (max-width: 768px) {
  
  .main-columns {
    flex-direction: column; 
  }
  
  .page-area {
    width: 100%;
  }

  .hero-left {
    width: 100%;
    position: relative;
    height: auto;
    padding: 1rem;
  }
  
  .hero-logo {
    max-height: 50px;
    width: auto; 
    padding: 0 20px;
  }
  
  .hero-right {
    width: 100%;
  }
  
  .promo-container {
    height: 65vh;
    min-height: 450px;
  }

  .hero-text {
    padding: 1rem;
  }

  .text-area {
    padding: 2rem 1.5rem; 
  }

  footer {
    padding: 0 1rem; 
  }

  body {
    font-size: 0.875rem; 
  }

  .hero-text h1 {
    font-size: 1.5rem; 
  }

  .hero-text h2 {
    font-size: 1.125rem; 
  }

  footer strong {
    font-size: 0.8rem; 
  }

  footer {
    font-size: 0.7rem; 
  }

  .store-badges {
    flex-wrap: wrap; 
    gap: 0.5rem; 
  }

  .store-badges img {
    flex: 1 1 120px; 
    max-width: 150px; 
    height: auto; 
    object-fit: contain;
  }

  /* Stack the deletion form on mobile */
  .delete-form {
    flex-direction: column;
  }

  /* Make the button full-width for easier tapping */
  .delete-form button {
    width: 100%;
  }
}