/* Catherine Bachand - Custom Styles */

:root {
  --color-primary: #5C4033;
  --color-primary-dark: #3A2820;
  --color-accent: #C4956A;
  --color-accent-light: #D4AD84;
  --color-warm-bg: #FAF6F1;
  --color-warm-bg-alt: #F0E8DF;
  --color-text: #2D2926;
  --color-text-light: #6B5E54;
  --color-white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

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

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-accent-light);
}

.nav.scrolled .nav-links a {
  color: var(--color-text);
}

.nav.scrolled .nav-links a:hover {
  color: var(--color-accent);
}

/* On pages with light background nav */
.nav-light .nav-logo img {
  height: 45px;
}

.nav-light .nav-links a {
  color: var(--color-text);
  opacity: 0.8;
}

.nav-light .nav-links a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.nav-light .hamburger span {
  background: var(--color-text);
}

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

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s;
}

.nav.scrolled .hamburger span {
  background: var(--color-text);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-credit {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-style: italic;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 2rem;
}

.section-warm {
  background: var(--color-warm-bg);
}

.section-alt {
  background: var(--color-warm-bg-alt);
}

.section-dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

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

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

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.section-dark .section-header h2 {
  color: var(--color-white);
}

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

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: var(--color-warm-bg);
}

.page-hero h1 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92, 64, 51, 0.3);
}

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

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92, 64, 51, 0.3);
}

.btn-sold-out {
  background: #999;
  color: var(--color-white);
  cursor: default;
  pointer-events: none;
}

/* ===== CONFERENCE CARDS ===== */
.conferences-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.conference-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.conference-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.conference-date {
  text-align: center;
  min-width: 80px;
}

.conference-date .day {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.conference-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.conference-date .year {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.conference-info h3 {
  margin-bottom: 0.3rem;
  color: var(--color-primary-dark);
}

.conference-info p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

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

/* ===== BOOK SECTION ===== */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.book-cover {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.book-cover:hover {
  transform: rotate(-2deg) scale(1.02);
}

.book-cover img {
  width: 100%;
  display: block;
}

.book-info h2 {
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.book-info p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ===== VIDEO (vertical 9:16) ===== */
.video-container {
  border-radius: 12px;
  margin: 2rem auto;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.video-container video {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .video-container {
    max-width: 100%;
  }
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #E5DDD5;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  display: block;
}

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

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-warm-bg);
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.3rem;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--color-accent-light);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== FORM STATUS ===== */
.form-status {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #E8F5E9;
  color: #2E7D32;
}

.form-status.error {
  display: block;
  background: #FFEBEE;
  color: #C62828;
}

/* ===== PLACEHOLDER IMAGE ===== */
.placeholder-img {
  background: linear-gradient(135deg, var(--color-warm-bg-alt), var(--color-accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text) !important;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .page-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .conference-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .conference-card .btn {
    justify-self: center;
  }

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

  .book-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

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

/* ===== ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: none;
}

.nav-overlay.active {
  display: block;
}
