/* ============ CSS Variables ============ */
:root {
  /* Colours */
  --bg: #FAF7F2;
  --primary: #2C3E50;
  --accent: #E2725B;
  --text: #3D3D3D;
  --hover: #D4A5A5;
  --light-bg: #F3EFE9;
  --border: #E8E4DF;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --font-accent: 'Raleway', sans-serif;
  --font-quote: 'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --max-width: 1100px;
  --header-height: 70px;
  --section-padding: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  padding-top: var(--header-height);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Page Loader ============ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.progress-bar-container {
  width: 100%;
  height: 3px;
  background-color: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.loader-percentage {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--text);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ============ Scroll Animations ============ */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============ Site Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo:hover {
  color: var(--accent);
  transition: color 0.3s ease;
}

/* Nav Links */
.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  transition: color 0.3s ease;
  padding: 4px 0;
}

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

.main-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger active state (X shape) */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Mobile Nav ============ */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
  }

  .main-nav a:hover {
    background-color: var(--light-bg);
  }
}

/* ============ Hero Slideshow ============ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============ Intro Section ============ */
.intro-section {
  padding: var(--section-padding) 0;
}

.intro-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.intro-heading {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 16px;
}

.intro-divider {
  width: 60px;
  height: 2px;
  background-color: var(--accent);
  margin: 0 auto 28px;
}

.intro-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 36px;
}

/* Shared button styles */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 32px;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-outline:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 114, 91, 0.3);
}

/* ============ Featured Section ============ */
.featured-section {
  padding: var(--section-padding) 0;
  background-color: var(--light-bg);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  color: var(--primary);
  text-align: center;
  margin-bottom: 48px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.featured-card {
  display: block;
  text-align: center;
}

.featured-img-wrap {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
}

.featured-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.featured-card:hover .featured-img-wrap img {
  transform: scale(1.03);
  opacity: 0.9;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 4px;
}

.featured-category {
  font-family: var(--font-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.featured-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============ Quote Section ============ */
.quote-section {
  padding: var(--section-padding) 0;
}

.quote-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-family: var(--font-quote);
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.quote-attribution {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ============ Homepage Responsive ============ */
@media (max-width: 1023px) {
  .hero-slideshow {
    height: 60vh;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-slideshow {
    height: 50vh;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-overlay {
    padding-bottom: 48px;
  }

  .intro-heading {
    font-size: 32px;
  }

  .intro-text {
    font-size: 16px;
  }

  .section-heading {
    font-size: 28px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .quote-text {
    font-size: 24px;
  }
}

/* ============ Page Header (Gallery/About/Contact) ============ */
.page-header {
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--bg) 100%);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Filter Section ============ */
.filter-section {
  padding: 40px 0;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ Gallery Grid ============ */
.gallery-section {
  padding: 40px 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.gallery-card {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0;
  border-radius: 2px;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  padding: 12px;
}

.gallery-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
}

.gallery-img-wrap {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: margin-bottom 0.3s ease;
}

.gallery-card:hover .gallery-img-wrap {
  margin-bottom: 24px;
}

.gallery-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-info {
  text-align: left;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 6px;
}

.gallery-card-category {
  font-family: var(--font-accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.gallery-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* ============ Lightbox ============ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  padding: 20px;
  overflow: auto;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin-bottom: 24px;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.lightbox-desc {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 600px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 16px;
  transition: opacity 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.7;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 50px;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============ Gallery Responsive ============ */
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: calc(var(--header-height) + 40px) 0 40px;
  }

  .page-title {
    font-size: 36px;
  }

  .page-subtitle {
    font-size: 15px;
  }

  .filter-section {
    padding: 32px 0;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    font-size: 11px;
    padding: 8px 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .lightbox-img {
    max-height: 60vh;
  }

  .lightbox-title {
    font-size: 22px;
  }

  .lightbox-desc {
    font-size: 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    padding: 12px;
  }

  .lightbox-close {
    font-size: 40px;
    top: 10px;
    right: 10px;
  }
}

/* ============ About Page ============ */
.about-section {
  padding: var(--section-padding) 0;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-content {
  text-align: center;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-divider {
  width: 60px;
  height: 2px;
  background-color: var(--accent);
  margin: 0 auto 32px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
  text-align: left;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* ============ Statement Section ============ */
.statement-section {
  padding: var(--section-padding) 0;
  background-color: var(--light-bg);
}

.statement-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.statement-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 16px;
}

.statement-divider {
  width: 60px;
  height: 2px;
  background-color: var(--accent);
  margin: 0 auto 28px;
}

.statement-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
}

/* ============ Mediums Section ============ */
.mediums-section {
  padding: var(--section-padding) 0;
}

.mediums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.medium-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.medium-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.medium-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 12px;
}

.medium-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* ============ About Page Responsive ============ */
@media (max-width: 1023px) {
  .mediums-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .about-heading {
    font-size: 28px;
  }

  .about-text {
    font-size: 15px;
  }

  .statement-heading {
    font-size: 26px;
  }

  .statement-text {
    font-size: 15px;
  }

  .medium-card {
    padding: 32px 20px;
  }

  .medium-name {
    font-size: 20px;
  }
}

/* ============ Contact Page ============ */
.contact-section {
  padding: var(--section-padding) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact Form */
.contact-form-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 32px;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

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

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

.btn-solid {
  background-color: var(--accent);
  border: 1.5px solid var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-info {
  background-color: var(--light-bg);
  padding: 40px 32px;
  border-radius: 2px;
}

.contact-info-heading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 32px;
}

.contact-info-item {
  margin-bottom: 28px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-label {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-info-value {
  font-size: 16px;
  color: var(--primary);
  transition: color 0.3s ease;
}

.contact-info-value:hover {
  color: var(--accent);
}

.contact-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-social svg {
  flex-shrink: 0;
}

/* Contact Page Responsive */
@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .contact-form-heading {
    font-size: 24px;
  }

  .contact-info-heading {
    font-size: 22px;
  }

  .contact-info {
    padding: 32px 24px;
  }
}

/* ============ Site Footer ============ */
.site-footer {
  background-color: var(--primary);
  color: var(--bg);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Left column */
.footer-name {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 13px;
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}

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

/* Right column */
.footer-right {
  text-align: right;
}

.footer-social-label {
  font-family: var(--font-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bg);
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
  opacity: 1;
}

/* Footer mobile */
@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .footer-right {
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
