/* ============================================
   Sandy Stuart Studios — Main Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&family=Dancing+Script:wght@600&display=swap');

/* --- CSS Variables --- */
:root {
  --midnight: #0d0a1a;
  --deep-navy: #12102a;
  --burgundy: #6b1a2e;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-light: #d4c9b0;
  --accent-teal: #2a7a7a;
  --accent-rose: #c0446a;
  --shadow: rgba(0,0,0,0.4);
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--midnight);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.gold-text { color: var(--gold); }
.script-text { font-family: 'Dancing Script', cursive; font-size: 1.3em; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 10, 26, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-logo span {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1em;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: linear-gradient(135deg, var(--burgundy), var(--accent-rose));
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-rose), var(--burgundy)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(192, 68, 106, 0.4);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,10,26,0.3) 0%,
    rgba(13,10,26,0.2) 40%,
    rgba(13,10,26,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--midnight);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1rem auto;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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

/* ============================================
   FEATURED CATEGORIES
   ============================================ */
.categories {
  background: var(--deep-navy);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(201, 168, 76, 0.4);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,26,0.9) 0%, rgba(13,10,26,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.category-card-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.category-card-overlay p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.category-link {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.category-card:hover .category-link::after {
  transform: translateX(5px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/about_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.about-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text h2 {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-text .signature {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--gold-light);
  margin-top: 2rem;
}

.about-image-frame {
  position: relative;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: -15px; left: -15px;
  right: 15px; bottom: 15px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  opacity: 0.4;
}

.about-image-frame img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  height: 450px;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.fact-item {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.fact-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.fact-label { font-size: 0.8rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================
   E-BOOKS SECTION
   ============================================ */
.ebooks {
  position: relative;
  overflow: hidden;
  background: var(--deep-navy);
}

.ebooks-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/ebooks_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.ebooks-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ebook-card {
  background: rgba(13, 10, 26, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.ebook-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.2);
}

.ebook-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--burgundy), var(--midnight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.ebook-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebook-info {
  padding: 1.5rem;
}

.ebook-info h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.ebook-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.ebook-price {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

/* ============================================
   TESTIMONIALS / QUOTE SECTION
   ============================================ */
.quote-section {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--midnight) 50%, var(--deep-navy) 100%);
}

.quote-section blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.quote-section cite {
  color: var(--gold);
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0.1em;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter {
  background: var(--deep-navy);
  text-align: center;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.newsletter h2 { color: var(--gold); margin-bottom: 0.8rem; }
.newsletter p { color: var(--text-light); margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.85rem 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #080612;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.footer-links h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links ul li a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover { color: var(--gold); padding-left: 5px; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

/* ============================================
   PAGE HEADERS (inner pages)
   ============================================ */
.page-header {
  padding: 10rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--deep-navy), var(--midnight));
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.page-header h1 { color: var(--white); margin-bottom: 0.8rem; }
.page-header p { color: var(--text-light); font-size: 1.1rem; }

/* ============================================
   SHOP / PRODUCT GRID
   ============================================ */
.shop-section {
  background: var(--midnight);
  padding: 5rem 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--deep-navy);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.product-image {
  height: 240px;
  background: linear-gradient(135deg, #1a1030, #2a1040);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-info {
  padding: 1.2rem;
}

.product-info h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.product-info p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--burgundy), var(--accent-rose));
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}

.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 68, 106, 0.4);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: 5rem 2rem;
  background: var(--midnight);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 { color: var(--gold); margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.contact-detail .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-frame { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(13, 10, 26, 0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  }

  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .ebooks-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}
