/* ============================================
   MASONS CORP PRODUCTION — Global Styles
   Design inspired by michaelgstudios.com
   Colors: Warm cream, gold/taupe accents, dark charcoal
   Fonts: Pinyon Script, Gilda Display, Nunito Sans, El Messiri
   ============================================ */

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

:root {
  --bg: #FAF8F5;
  --bg-cream: rgba(241, 236, 230, 0.25);
  --bg-cream-solid: #F3EFE9;
  --accent: #9A8E80;
  --accent-light: #B8AC9E;
  --dark: #6E665C;
  --dark-warm: #7E766C;
  --text: #4A4238;
  --text-body: #3D362D;
  --text-muted: #9A8E80;
  --white: #FFFFFF;
  --overlay-dark: rgba(61, 54, 45, 0.85);
  --overlay-medium: rgba(61, 54, 45, 0.5);
  --border: rgba(178, 169, 158, 0.3);

  --font-script: 'Pinyon Script', cursive;
  --font-serif: 'Gilda Display', Georgia, serif;
  --font-sans: 'Nunito Sans', sans-serif;
  --font-heading: 'El Messiri', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

/* --- UTILITY CLASSES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

.text-center { text-align: center; }
.text-justify { text-align: justify; }

/* --- TYPOGRAPHY --- */
.script-heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.25;
  color: var(--accent);
}

.label-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.sub-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}

.intro-tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 20px);
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(6.5px, 2.2vw, 13px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 600px) {
  .intro-tagline { letter-spacing: 0.15em; }
}

@media (max-width: 400px) {
  .intro-tagline { letter-spacing: 0.08em; }
}

.intro-tagline-sep {
  display: inline-block;
  width: 1px;
  height: 1.4em;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}

.intro-tagline-main {
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.body-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  color: var(--text-body);
}

.accent-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 20px auto;
}

.accent-line-left {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 20px 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  transition: all 0.3s;
  cursor: pointer;
}

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

.btn-primary:hover {
  opacity: 0.7;
}

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

.btn-secondary:hover {
  opacity: 0.7;
}

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

.btn-light:hover {
  opacity: 0.7;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header-nav a {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.3s;
}

.header-nav a:hover {
  opacity: 0.5;
}

.header-nav .nav-cta {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 8px;
  transition: opacity 0.3s;
}

.header-nav .nav-cta:hover {
  opacity: 0.7;
}

/* Header right section — social + theme toggle */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-social a {
  color: var(--text);
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.nav-social a:hover { opacity: 0.5; }

/* Mobile hamburger */
.hamburger {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: all 0.3s;
}

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

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

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

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 88px 24px 32px;
  overflow-y: auto;
  background: var(--bg-cream-solid);
  opacity: 0;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu-hero {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 40px;
}

.mobile-menu-hero-img {
  flex: 1;
  height: 220px;
  overflow: hidden;
  border-radius: 2px;
}

.mobile-menu-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.mobile-menu-links a {
  font-family: 'Gilda Display', serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus {
  color: var(--accent);
}

.mobile-menu .social-links {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 16px;
}

.mobile-menu .social-links a {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-menu .social-links a:hover {
  color: var(--text);
}

/* ============================================
   HERO — Sliding Gallery
   ============================================ */
.hero {
  margin-top: 70px;
  background: var(--bg-cream);
  padding: 0;
  margin-bottom: 0;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 80vh;
  max-height: 720px;
  min-height: 450px;
  cursor: grab;
  user-select: none;
}

.hero-carousel:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 14px;
  height: 100%;
  will-change: transform;
  touch-action: pan-y pinch-zoom;
}

.carousel-slide {
  flex: 0 0 44%;
  min-width: 44%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 62%;
    min-width: 62%;
  }
}

/* Placeholder gradient for images */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #C9BEB0, #B2A99E, #9A9088);
}

.img-placeholder-alt {
  background: linear-gradient(145deg, #D4CBC0, #BFB5A8, #A89E94);
}

.img-placeholder-dark {
  background: linear-gradient(145deg, #8A827A, #706860, #5A524A);
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
  padding: 60px 50px 80px;
  text-align: center;
}

.intro-section .script-heading {
  margin-bottom: 24px;
}

.intro-section .accent-icon {
  width: 20px;
  height: 20px;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.intro-section .sub-heading {
  margin-bottom: 32px;
}

/* ============================================
   MEET / ABOUT SECTION
   ============================================ */
.meet-section {
  padding: 20px 0;
}

.about-hero {
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/thomas-william-Q3PzwHKpEdc-unsplash.webp');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  opacity: 0.3;
  filter: saturate(0.85);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 35%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 80%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 35%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 80%
  );
}

.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
  align-items: center;
}

.meet-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.meet-image .img-placeholder {
  position: absolute;
  inset: 0;
}

.meet-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(61, 54, 45, 0.15));
}

.meet-content {
  padding: 20px 0;
}

.meet-content .label-heading {
  margin-bottom: 20px;
}

.meet-content .script-heading {
  font-size: 52px;
  margin-bottom: 28px;
}

.meet-content .body-text {
  margin-bottom: 18px;
}

.meet-content .btn {
  margin-top: 12px;
}

/* Publication logos row */
.press-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.press-logos span {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--accent);
  opacity: 0.4;
}

/* ============================================
   TESTIMONIAL — Full width with background
   ============================================ */
.testimonial-section {
  position: relative;
  padding: 200px 50px;
  text-align: center;
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8A827A, #6A625A, #4A4240);
}

.testimonial-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 54, 45, 0.55);
}

.testimonial-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(61, 54, 45, 0.6);
}

.testimonial-content .accent-line {
  background: var(--accent-light);
  margin-bottom: 40px;
}

.testimonial-content .quote {
  font-family: var(--font-script);
  font-size: 48px;
  line-height: 1.4;
  margin-bottom: 40px;
  font-weight: 400;
}

.testimonial-content .attribution {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}

.testimonial-content .accent-line-bottom {
  width: 60px;
  height: 1px;
  background: var(--accent-light);
  margin: 30px auto 0;
}

/* ============================================
   EXPERIENCE / SERVICES TIMELINE
   ============================================ */
.experience-section {
  padding: 120px 50px;
}

.experience-header {
  text-align: center;
  margin-bottom: 80px;
}

.experience-header .script-heading {
  margin-bottom: 16px;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto 80px;
  align-items: center;
}

.experience-item:nth-child(even) {
  direction: rtl;
}

.experience-item:nth-child(even) > * {
  direction: ltr;
}

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

.experience-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.experience-text .label-heading {
  margin-bottom: 12px;
}

.experience-text h3 {
  font-family: var(--font-script);
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--accent);
}

.experience-text .body-text {
  margin-bottom: 16px;
}

.experience-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto 80px;
}

/* ============================================
   GALLERY SLIDESHOW
   ============================================ */
.gallery-slideshow {
  padding: 80px 0;
  background: var(--bg-cream);
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 8px;
  transition: transform 0.8s ease;
}

.gallery-track .slide-item {
  flex: 0 0 auto;
  width: 400px;
  height: 550px;
  overflow: hidden;
  position: relative;
}

.gallery-track .slide-item .img-placeholder {
  width: 100%;
  height: 100%;
}

/* ============================================
   PORTFOLIO GRID — 3 columns
   ============================================ */
.portfolio-section {
  padding: 120px 50px;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-header .script-heading {
  margin-bottom: 16px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item .portfolio-img {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
}

.portfolio-item .portfolio-img .img-placeholder {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.portfolio-item:hover .img-placeholder {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 54, 45, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: background 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
  background: rgba(61, 54, 45, 0.35);
}

.portfolio-overlay-text {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s;
  text-align: center;
  color: var(--white);
}

.portfolio-item:hover .portfolio-overlay-text {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay-text h3 {
  font-family: var(--font-script);
  font-size: 32px;
  margin-bottom: 6px;
}

.portfolio-overlay-text span {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ============================================
   TESTIMONIALS SLIDER
   ============================================ */
.testimonials-slider-section {
  position: relative;
  padding: 200px 50px;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-slider-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6A625A, #4A4240, #3A3230);
}

.testimonials-slider-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 54, 45, 0.6);
}

.testimonials-slider {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  text-align: center;
  color: var(--white);
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-slide .accent-line {
  background: var(--accent-light);
  margin-bottom: 36px;
}

.testimonial-slide .quote {
  font-family: var(--font-script);
  font-size: 44px;
  line-height: 1.45;
  margin-bottom: 32px;
}

.testimonial-slide .attribution {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.testimonial-slide .attribution-detail {
  font-family: var(--font-serif);
  font-size: 14px;
  opacity: 0.5;
}

.slider-arrows {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 18px;
}

.slider-arrow:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   NAVIGATE SECTION — Internal page links
   ============================================ */
.navigate-section {
  padding: 120px 50px;
}

.navigate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.navigate-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.navigate-link {
  display: block;
  font-family: var(--font-script);
  font-size: 48px;
  color: var(--accent);
  transition: opacity 0.3s;
  position: relative;
}

.navigate-link:hover {
  opacity: 0.5;
}

.navigate-link::after {
  content: '→';
  font-family: var(--font-serif);
  font-size: 20px;
  margin-left: 16px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}

.navigate-link:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.navigate-image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

/* ============================================
   INQUIRE CTA SECTION
   ============================================ */
.inquire-cta {
  position: relative;
  padding: 200px 50px;
  text-align: center;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inquire-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7A726A, #5A524A, #3A3230);
}

.inquire-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 54, 45, 0.55);
}

.inquire-cta-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(61, 54, 45, 0.6);
}

.inquire-cta-content .accent-line {
  background: var(--accent-light);
  margin-bottom: 32px;
}

.inquire-cta-content .script-heading {
  color: var(--white);
  font-size: 56px;
  margin-bottom: 24px;
}

.inquire-cta-content .sub-heading {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.inquire-cta-content .body-text {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.inquire-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.inquire-cta-item .label-heading {
  color: var(--accent-light);
  margin-bottom: 8px;
}

.inquire-cta-item p {
  font-family: var(--font-serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 120px 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info .label-heading {
  margin-bottom: 16px;
}

.contact-info .script-heading {
  font-size: 48px;
  margin-bottom: 24px;
  color: var(--accent);
}

.contact-info .body-text {
  margin-bottom: 20px;
}

.contact-detail {
  margin-bottom: 20px;
}

.contact-detail .label-heading {
  margin-bottom: 6px;
}

.contact-detail p {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-body);
}

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

.contact-form label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 15px;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text-body);
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-bottom-color: var(--dark);
}

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

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-cream-solid);
  color: var(--text);
  padding: 80px 50px 0;
}

.footer-thumbnails-wrap {
  max-width: 1100px;
  margin: 0 auto 60px;
  overflow: hidden;
}

.footer-thumbnails {
  display: flex;
  gap: 4px;
  width: max-content;
  animation: footer-scroll 90s linear infinite;
}

.footer-thumbnails:hover {
  animation-play-state: paused;
}

@keyframes footer-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-thumbnails { animation: none; }
}

.footer-thumb {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.footer-thumb:hover {
  opacity: 1;
  transform: scale(1.04);
}

.footer-thumb .img-placeholder {
  width: 100%;
  height: 100%;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand {
  font-family: 'Gilda Display', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.2;
}

.footer-desc {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-links-row {
  display: contents;
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

/* Copyright bar */
.copyright {
  background: var(--bg-cream-solid);
  border-top: 1px solid var(--border);
  padding: 16px 50px;
  text-align: center;
}

.copyright p {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-slow {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

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

/* ============================================
   UTILITY CLASSES (shared across pages)
   ============================================ */

.section-padded {
  padding: 100px 50px;
}

.section-padded-sm {
  padding: 80px 50px;
}

.bg-cream {
  background: var(--bg-cream-solid);
}

.section-heading-center {
  text-align: center;
  margin-bottom: 60px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.grid-3-tight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card-centered {
  text-align: center;
  padding: 32px 20px;
}

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

.aspect-3-4 { aspect-ratio: 3/4; overflow: hidden; }
.aspect-4-3 { aspect-ratio: 4/3; overflow: hidden; }
.aspect-3-2 { aspect-ratio: 3/2; overflow: hidden; }

.script-heading--large {
  font-size: 52px;
}

.blog-grid-section {
  padding: 0 50px 100px;
}

.inquire-info-section {
  padding: 20px 50px 100px;
}

.inquire-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.parallax-bg {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 100% !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
  will-change: auto;
  z-index: 0 !important;
  pointer-events: none;
  /* Add a warm dark tint to the image so white text stays readable and matches the theme soul */
  box-shadow: inset 0 0 0 5000px rgba(61, 54, 45, 0.45);
  /* Ultra-smooth fading to transparent at the very edges so there is no hard geometric line */
  mask-image: linear-gradient(
    to bottom,
    transparent 0px,
    rgba(0,0,0,0.05) 20px,
    rgba(0,0,0,0.15) 40px,
    rgba(0,0,0,0.30) 60px,
    rgba(0,0,0,0.50) 80px,
    rgba(0,0,0,0.75) 110px,
    black 150px,
    black calc(100% - 150px),
    rgba(0,0,0,0.75) calc(100% - 110px),
    rgba(0,0,0,0.50) calc(100% - 80px),
    rgba(0,0,0,0.30) calc(100% - 60px),
    rgba(0,0,0,0.15) calc(100% - 40px),
    rgba(0,0,0,0.05) calc(100% - 20px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0px,
    rgba(0,0,0,0.05) 20px,
    rgba(0,0,0,0.15) 40px,
    rgba(0,0,0,0.30) 60px,
    rgba(0,0,0,0.50) 80px,
    rgba(0,0,0,0.75) 110px,
    black 150px,
    black calc(100% - 150px),
    rgba(0,0,0,0.75) calc(100% - 110px),
    rgba(0,0,0,0.50) calc(100% - 80px),
    rgba(0,0,0,0.30) calc(100% - 60px),
    rgba(0,0,0,0.15) calc(100% - 40px),
    rgba(0,0,0,0.05) calc(100% - 20px),
    transparent 100%
  );
}

/* Base Blur layer: Covers everything lightly, appears entirely on hover */
.parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  transition: opacity 1s cubic-bezier(0.2, 0, 0.2, 1);
  opacity: 0; /* Initially clear */
  pointer-events: none;
}

/* Edge Blur layer: Heavily blurs ONLY the extremities, stacks over base blur, increases on hover */
.parallax-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* Uses percentages to ensure the gradient never overlaps or breaks regardless of container height */
  mask-image: linear-gradient(
    to bottom, 
    black 0%, 
    black 15%, 
    rgba(0,0,0,0) 35%, 
    rgba(0,0,0,0) 65%, 
    black 85%, 
    black 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom, 
    black 0%, 
    black 15%, 
    rgba(0,0,0,0) 35%, 
    rgba(0,0,0,0) 65%, 
    black 85%, 
    black 100%
  );
  z-index: 2;
  transition: opacity 1s cubic-bezier(0.2, 0, 0.2, 1);
  opacity: 0.4; /* Initially lightly blurred to maintain smooth edge blending */
  pointer-events: none;
}

/* On hover (only for devices with a mouse/cursor): Mid becomes blurred, extremities blur increases proportionately */
@media (hover: hover) {
  section:hover .parallax-bg::before {
    opacity: 1;
  }

  section:hover .parallax-bg::after {
    opacity: 1;
  }
}

/* Ensure content in sections stays above the fading background */
section > * {
  position: relative;
  z-index: 1;
}

/* Fallback for iOS Safari which struggles with background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .parallax-bg {
    background-attachment: scroll !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-bg {
    top: 0;
    bottom: 0;
    height: auto;
    transform: none !important;
  }
}


/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 24px; }

  /* Header */
  .header-inner { padding: 0 20px; height: 58px; }
  .header-nav { display: none; }
  .header-right { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .header-logo { font-size: 10px; letter-spacing: 0.18em; }

  /* Hero — mobile carousel */
  .hero { margin-top: 58px; padding: 0; }
  .hero-carousel {
    height: 60vh;
    max-height: 520px;
    min-height: 360px;
  }
  .carousel-slide {
    flex: 0 0 62%;
    min-width: 62%;
  }

  /* Intro */
  .intro-section { padding: 70px 24px; }
  .intro-section .script-heading { font-size: 42px; }

  /* About page grids */
  .portrait-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .portrait-grid > div[style*="grid-column: span 2"] { grid-column: span 1 !important; }
  .values-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Meet */
  .meet-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 40px;
  }
  .meet-image {
    aspect-ratio: 3/4;
    min-height: 400px;
  }
  .meet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .meet-content .script-heading { font-size: 38px; }

  /* Testimonial */
  .testimonial-section { padding: 120px 24px; min-height: 700px; }
  .testimonial-content .quote { font-size: 32px; }

  /* Experience */
  .experience-section { padding: 80px 24px; }
  .experience-item {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .experience-item:nth-child(even) { direction: ltr; }
  .experience-text h3 { font-size: 34px; }

  /* Gallery slideshow */
  .gallery-slideshow { padding: 40px 0; }
  .gallery-track .slide-item {
    width: 280px;
    height: 380px;
  }

  /* Portfolio */
  .portfolio-section { padding: 80px 24px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Testimonials slider */
  .testimonials-slider-section { padding: 120px 24px; min-height: 650px; }
  .testimonial-slide .quote { font-size: 30px; }

  /* Navigate */
  .navigate-section { padding: 80px 24px; }
  .navigate-grid { grid-template-columns: 1fr; gap: 40px; }
  .navigate-link { font-size: 36px; }

  /* Inquire CTA */
  .inquire-cta { padding: 120px 24px; min-height: 650px; }
  .inquire-cta-content .script-heading { font-size: 38px; }
  .inquire-cta-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Contact */
  .contact-section { padding: 80px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-info .script-heading { font-size: 36px; }

  /* Footer */
  .footer { padding: 60px 24px 0; }
  .footer-thumbnails { animation-duration: 60s; }
  .footer-thumb { width: 100px; height: 100px; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .copyright { padding: 16px 24px; }

  /* Utility classes — mobile overrides */
  .section-padded { padding: 80px 24px; }
  .section-padded-sm { padding: 60px 24px; }
  .section-heading-center { margin-bottom: 40px; }
  .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3-tight { grid-template-columns: 1fr; gap: 20px; }
  .script-heading--large { font-size: 36px; }
  .blog-grid-section { padding: 0 24px 60px; }
  .inquire-info-section { padding: 20px 24px 60px; }
  .inquire-info-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Typography adjustments */
  .script-heading { font-size: 42px; }
  .body-text { font-size: 14px; }
}
