/* =======================
   Global Variables
======================= */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;

  --color-bg-light: #fefdfb;
  --color-bg-gradient: #f9f6f1;
  --color-text-dark: #333;
  --color-gold: #d4af37;
  --color-gold-dark: #b9982c;
  --color-accent-dark: #3c2f2f;
  --color-accent-hover: #5c4747;
  --color-footer-bg: #f4f0ea;
}

/* =======================
   Base Styling
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background: linear-gradient(to bottom, var(--color-bg-light) 0%, var(--color-bg-gradient) 100%);
  color: var(--color-text-dark);
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

h1.lifted-text {
  color: #f4e4b2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.center-text {
  text-align: center;
}

.gold {
  color: var(--color-gold);
}

.gold-filled {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background-color: var(--color-gold);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  transition: background 0.3s, box-shadow 0.3s;
}
.gold-filled:hover {
  background-color: var(--color-gold-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.full-bleed {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

/* =======================
   Hero Section
======================= */
.hero {
  background: url('assets/hero-banner.png') center/cover no-repeat;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 8rem 1rem 6rem;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.hero .tagline {
  font-style: italic;
  font-size: 1.2rem;
  color: #f4e4b2;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Prevent background-attachment: fixed jank on mobile */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    padding: 6rem 1rem 4rem;
  }
}

/* =======================
   Navigation
======================= */
.navbar {
  background: #fff;
  padding: 0.8rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.navbar a {
  text-decoration: none;
  color: var(--color-accent-dark);
  font-weight: bold;
  transition: color 0.3s;
}
.navbar a:hover,
.navbar a.active {
  color: var(--color-gold);
}

/* =======================
   Quote Banner
======================= */
.quote-banner {
  text-align: center;
  background: var(--color-bg-gradient);
  padding: 3rem 1rem;
  font-style: italic;
  font-size: 1.2rem;
  color: #5a4a42;
}
#rotating-quote {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}
#rotating-quote .quote-text {
  display: block;
  font-style: italic;
  font-size: 1.3rem;
  color: #5a4a42;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}
#rotating-quote .quote-author {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--color-gold);
}

/* =======================
   Section Wrappers
======================= */
section {
  padding: 4rem 1rem;
}
.container {
  max-width: 900px;
  margin: 0 auto;
}
.homepage-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
}
.homepage-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* =======================
   Steps (Approach)
======================= */
.steps {
  list-style-type: none;
  padding-left: 0;
  line-height: 1.8;
}

/* =======================
   Contact Form
======================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input[type="file"] {
  border: 1px solid #ccc;
  padding: 0.5rem;
  background: #fff;
  font-size: 0.9rem;
}
button[type="submit"] {
  background: var(--color-gold);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s;
}
button[type="submit"]:hover {
  background: var(--color-gold-dark);
}

/* Visually Hidden Labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =======================
   Footer
======================= */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--color-footer-bg);
  font-size: 0.9rem;
  color: #777;
}
footer a {
  color: var(--color-accent-dark);
  text-decoration: underline;
}
footer a:hover {
  color: var(--color-gold);
}

/* =======================
   Animations
======================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* =======================
   Back to Top Button
======================= */
#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 25px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--color-accent-dark);
  color: white;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-size: 1.2rem;
  transition: opacity 0.3s, background 0.3s;
}
#backToTop:hover {
  background-color: var(--color-accent-hover);
}

/* =======================
   FAQ Section
======================= */
.faq-controls {
  text-align: center;
  margin: 2rem 0 1rem;
}
#toggle-all-btn {
  background: var(--color-accent-dark);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
#toggle-all-btn:hover {
  background: var(--color-accent-hover);
}

.faq-container {
  padding: 2rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.faq-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  padding: 1.5rem 2rem;
  cursor: pointer;
  position: relative;
}
.faq-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.faq-box.locked {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.faq-question {
  font-weight: bold;
  font-size: 1.1rem;
  color: #2c2c2c;
  padding-left: 1.5rem;
}
.faq-answer {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.8rem;
  display: none;
  line-height: 1.6;
  padding-left: 1.5rem;
}
.faq-box.open .faq-answer {
  display: block;
}

/* Subtle dropdown indicator */
.faq-toggle-icon {
  position: absolute;
  top: 1.6rem;
  left: 1.2rem;
  width: 10px;
  height: 10px;
  border-left: 2px solid #aaa;
  border-bottom: 2px solid #aaa;
  transform: rotate(-45deg);
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.6;
}
.faq-box.open .faq-toggle-icon {
  transform: rotate(45deg);
  opacity: 0.9;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }
  #rotating-quote .quote-text {
    font-size: 1.1rem;
  }
  #rotating-quote .quote-author {
    font-size: 0.9rem;
  }
  .faq-question {
    font-size: 1rem;
  }
  .faq-answer {
    font-size: 0.9rem;
  }
}
