/* 
  Sylwia Bieńko Photography - Custom Stylesheet
  Elegant, Minimalist, Warm and Premium Aesthetic
  Fonts: Cormorant Garamond (Serif), Montserrat (Sans-serif), Corinthia (Script)
*/

/* --- CUSTOM VARIABLES --- */
:root {
  /* Background */
  --color-bg: #FAF6F0;
  --color-bg-alt: #F3EFE9;

  /* Brand / Accent */
  --color-primary: #C19A6B;
  --color-primary-dark: #A58055;
  --color-primary-light: #E7DFD5;

  /* Text */
  --color-text: #3A332E;
  --color-text-muted: #7A7067;
  --color-white: #FFFFFF;
  --color-black: #1E1A17;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', Helvetica, sans-serif;
  --font-script: 'Corinthia', cursive;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;

  /* Layout */
  --container-width: 1200px;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 15px;
  position: relative;
}

img, svg, iframe, video {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* --- UTILITIES & LAYOUT --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.script-accent {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: -15px;
  position: relative;
  z-index: 2;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  margin-bottom: 50px;
  display: block;
}

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

/* --- SCROLL REVEAL EFFECT --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 25px 0;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(193, 154, 107, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-icon {
  width: 160px;
  height: 40px;
  background-color: var(--color-text);
  -webkit-mask: url('images/logo.svg') no-repeat center;
  mask: url('images/logo.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: var(--transition-smooth);
}

.logo-text {
  font-family: var(--font-script);
  font-size: 2.4rem;
  letter-spacing: 1px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--color-text);
  transition: var(--transition-smooth);
}

.logo-subtext {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 3px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition-smooth);
}

/* Header transparent state — white text over hero photos */
header:not(.scrolled) .logo-text {
  color: rgba(255, 255, 255, 0.95);
}

header:not(.scrolled) .logo-icon {
  background-color: rgba(255, 255, 255, 0.95);
}

header:not(.scrolled) .logo-subtext {
  color: rgba(231, 223, 213, 0.85);
}

header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

header:not(.scrolled) .nav-link::after {
  background-color: rgba(255, 255, 255, 0.7);
}

header:not(.scrolled) .menu-toggle span {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  transition: var(--transition-smooth);
  transform-origin: left center;
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--color-bg-alt);
  overflow: hidden;
  padding: 0;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.8s ease-in-out, transform 1.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 0.55;
  transform: scale(1);
  z-index: 2;
}

/* Responsive visibility overrides for Hero Slider slides */
@media (max-width: 768px) {
  .hero-slide.show-desktop {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hero-slide.show-mobile {
    display: none !important;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, rgba(20, 16, 12, 0.55) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(250, 246, 240, 0.05) 0%, rgba(250, 246, 240, 0.95) 100%);
  z-index: 3;
}

.hero .container {
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
}

.hero-subtitle {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--color-primary-dark);
  margin-bottom: -10px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s forwards 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s forwards 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title span {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary);
  margin-top: 5px;
}

.hero-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 35px;
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s forwards 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-btn:hover {
  background-color: transparent;
  color: var(--color-black);
  letter-spacing: 3px;
}

/* Hero Socials */
.hero-socials {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s forwards 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-social-link {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(58, 51, 46, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  color: var(--color-text);
  background-color: rgba(250, 246, 240, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-social-link:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-black);
  cursor: pointer;
  opacity: 0;
  /* Use dedicated keyframe that preserves translateX(-50%) centering */
  animation: heroRevealCenter 1.2s forwards 1.2s ease-out;
}

.scroll-indicator .mouse {
  width: 20px;
  height: 32px;
  border: 1px solid var(--color-text-muted);
  border-radius: 10px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 2px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 1px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.6s infinite ease-in-out;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dedicated animation for centered elements (preserves translateX(-50%)) */
@keyframes heroRevealCenter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* --- ABOUT ME SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  padding: 20px;
}

.about-image-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 90%;
  border: 1px solid var(--color-primary);
  z-index: 1;
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image-border {
  transform: translate(15px, 15px);
}

.about-image {
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.06);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image-wrapper:hover .about-image img {
  transform: scale(1.03);
}

.about-content {
  padding-left: 20px;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 25px;
  color: var(--color-primary-dark);
  line-height: 1.4;
  border-left: 2px solid var(--color-primary);
  padding-left: 20px;
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.about-text p {
  margin-bottom: 15px;
}

.about-signature {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--color-text);
  margin-top: 15px;
  display: block;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 24px;
  border: 1px solid rgba(193, 154, 107, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  background-color: transparent;
  display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: scale(1.05);
}

/* Portfolio Carousels Outer Wrapper */
.portfolio-carousels {
  margin-top: 20px;
}

/* Portfolio Carousels Layout */
.portfolio-carousel-wrapper {
  margin-bottom: 50px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-carousel-wrapper:last-child {
  margin-bottom: 0;
}

.portfolio-carousel-wrapper.hidden {
  display: none !important;
}

.carousel-header {
  margin-bottom: 14px;
  text-align: left;
}

.carousel-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1px;
}

.carousel-subtitle {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
}

/* Carousel outer container – buttons are positioned absolute inside */
.carousel-container {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* JS sets --carousel-item-w on each .carousel-track for pixel-accurate sizing */
.carousel-track .portfolio-item {
  flex-shrink: 0;
  width: var(--carousel-item-w, calc(25% - 13.5px));
  aspect-ratio: 3 / 4;
}

/* ── Elegant floating circle arrows ─────────────────────────────────── */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(193, 154, 107, 0.35);
  box-shadow: 0 4px 20px rgba(58, 51, 46, 0.10);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.carousel-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary-dark);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
  flex-shrink: 0;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.carousel-nav-btn:hover:not(:disabled) {
  background: var(--color-black);
  border-color: var(--color-black);
  box-shadow: 0 6px 25px rgba(30, 26, 23, 0.18);
  transform: translateY(-50%) scale(1.07);
}

.carousel-nav-btn:hover:not(:disabled) svg {
  stroke: var(--color-white);
}

/* Fully invisible (not just faded) when there is nowhere to go */
.carousel-nav-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 26, 23, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

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

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item-category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary-light);
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.portfolio-item-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-white);
  font-weight: 300;
  margin-top: 5px;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  transition-delay: 0.05s;
}

.portfolio-item:hover .portfolio-item-category,
.portfolio-item:hover .portfolio-item-title {
  transform: translateY(0);
}

.portfolio-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  color: var(--color-white);
  transform: translateY(15px);
  transition: var(--transition-smooth);
  transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-item-icon {
  transform: translateY(0);
  background-color: var(--color-white);
  color: var(--color-black);
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 26, 23, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  border: 4px solid var(--color-bg-alt);
}

.lightbox.active img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: fixed;
  top: 25px;
  right: 25px;
  color: var(--color-white);
  font-size: 2.5rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  z-index: 2100;
  line-height: 1;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0.5;
  user-select: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-nav:hover {
  opacity: 1;
  color: var(--color-primary);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- OFFER SECTION --- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.offer-card {
  background-color: var(--color-bg);
  border: 1px solid rgba(193, 154, 107, 0.15);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.offer-card:hover {
  transform: translateY(-10px);
  border-color: rgba(193, 154, 107, 0.3);
  box-shadow: 0 20px 40px rgba(193, 154, 107, 0.08);
}

.offer-card:hover::before {
  transform: scaleX(1);
}

/* Featured Card style */
.offer-card.featured {
  background-color: var(--color-bg-alt);
  border-color: rgba(193, 154, 107, 0.3);
}

.offer-card.featured::before {
  transform: scaleX(1);
}

.offer-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 15px;
}

.offer-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 15px;
}

.offer-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: 35px;
}

.offer-list {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.offer-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(193, 154, 107, 0.1);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-list li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
}

.offer-btn {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px;
  border: 1px solid var(--color-black);
  cursor: pointer;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.offer-card:hover .offer-btn,
.offer-card.featured .offer-btn {
  background-color: var(--color-black);
  color: var(--color-white);
}

.offer-btn:hover {
  background-color: transparent !important;
  color: var(--color-black) !important;
  letter-spacing: 3px;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  width: 100%;
}

.contact-grid > * {
  min-width: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

/* Intro paragraph in the contact section (replaces former inline style) */
.contact-intro {
  color: var(--color-text-muted);
  margin-bottom: 30px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-details {
  margin-top: 30px;
  min-width: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  transition: var(--transition-smooth);
  min-width: 0;
}

.contact-item > div:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  border: 1px solid rgba(193, 154, 107, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary-dark);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.contact-item-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.contact-item-content {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text);
  transition: var(--transition-smooth);
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-item:hover .contact-item-content {
  color: var(--color-primary-dark);
}

/* Social icons */
.contact-socials {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-link {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(193, 154, 107, 0.25);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  color: var(--color-text-muted);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background-color: var(--color-bg-alt);
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 35px;
}

.form-input {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid rgba(193, 154, 107, 0.3);
  background-color: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.form-label {
  position: absolute;
  top: 10px;
  left: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Float label styles */
.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: -15px;
  font-size: 0.65rem;
  color: var(--color-primary-dark);
  letter-spacing: 2px;
}

.form-input:focus {
  border-bottom-color: var(--color-black);
}

.form-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 18px 40px;
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-btn:hover {
  background-color: transparent;
  color: var(--color-black);
  letter-spacing: 3px;
}

.form-status {
  margin-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  font-family: var(--font-sans);
  letter-spacing: 1px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.form-status.success {
  opacity: 1;
  color: #557A46;
}

.form-status.error {
  opacity: 1;
  color: #B2533E;
}

/* --- FOOTER --- */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
}

footer .logo-icon {
  background-color: var(--color-white);
  margin-bottom: 8px;
}

footer .logo-text {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--color-white);
  letter-spacing: 1px;
  font-weight: 400;
  margin-bottom: 4px;
}

footer .logo-subtext {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 30px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-bottom: 35px;
}

.footer-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  font-family: var(--font-sans);
}

.footer-copy-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.footer-copy-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Rules Page Content Styles (WYSIWYG markup rendering) */
.rules-page-content {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  text-align: left;
}

.rules-page-content h1,
.rules-page-content h2,
.rules-page-content h3 {
  font-family: var(--font-serif);
  color: var(--color-black);
  font-weight: 400;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.rules-page-content h1 {
  font-size: 2.2rem;
}

.rules-page-content h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--color-primary-light);
  padding-bottom: 8px;
}

.rules-page-content h3 {
  font-size: 1.25rem;
}

.rules-page-content p {
  margin-bottom: 1.2rem;
}

.rules-page-content ul,
.rules-page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 24px;
}

.rules-page-content li {
  margin-bottom: 0.6rem;
}

.rules-page-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.rules-page-content a:hover {
  color: var(--color-primary-dark);
}

/* Quill WYSIWYG Indentation, Alignment & Nested List Support */
.rules-page-content li.ql-indent-1:not(.ql-direction-rtl) {
  margin-left: 2em;
  padding-left: 0;
}

.rules-page-content li.ql-indent-2:not(.ql-direction-rtl) {
  margin-left: 4em;
  padding-left: 0;
}

.rules-page-content li.ql-indent-3:not(.ql-direction-rtl) {
  margin-left: 6em;
  padding-left: 0;
}

.rules-page-content li.ql-indent-4:not(.ql-direction-rtl) {
  margin-left: 8em;
  padding-left: 0;
}

.rules-page-content li.ql-indent-5:not(.ql-direction-rtl) {
  margin-left: 10em;
  padding-left: 0;
}

.rules-page-content :not(li).ql-indent-1:not(.ql-direction-rtl) {
  padding-left: 2em;
}

.rules-page-content :not(li).ql-indent-2:not(.ql-direction-rtl) {
  padding-left: 4em;
}

.rules-page-content :not(li).ql-indent-3:not(.ql-direction-rtl) {
  padding-left: 6em;
}

.rules-page-content :not(li).ql-indent-4:not(.ql-direction-rtl) {
  padding-left: 8em;
}

.rules-page-content :not(li).ql-indent-5:not(.ql-direction-rtl) {
  padding-left: 10em;
}

.rules-page-content ul ul,
.rules-page-content ol ol,
.rules-page-content ul ol,
.rules-page-content ol ul {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  padding-left: 24px;
}

.rules-page-content .ql-align-center {
  text-align: center;
}

.rules-page-content .ql-align-right {
  text-align: right;
}

.rules-page-content .ql-align-justify {
  text-align: justify;
}

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */

@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }



  .carousel-header {
    padding-left: 45px;
  }

  .offer-grid {
    gap: 20px;
  }

  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .script-accent {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  /* Navigation for mobile */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Ensure menu links are always readable (dark) on the mobile menu's light background */
  header:not(.scrolled) .nav-menu .nav-link {
    color: var(--color-text);
  }

  header:not(.scrolled) .nav-menu .nav-link:hover,
  header:not(.scrolled) .nav-menu .nav-link.active {
    color: var(--color-primary);
  }

  header:not(.scrolled) .nav-menu .nav-link::after {
    background-color: var(--color-primary);
  }

  /* Hamburger transform when menu active */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
  }

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

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

  /* Ensure the active hamburger/close button is always dark and readable */
  .menu-toggle.active span {
    background-color: var(--color-text) !important;
  }

  /* Hero Section Mobile Spacing Fixes */
  .hero .container {
    padding-top: 80px;
  }

  .hero-subtitle {
    font-size: clamp(2rem, 8vw, 2.6rem);
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.3;
    margin-bottom: 25px;
  }

  .hero-btn {
    padding: 12px 28px;
  }

  /* Layout changes */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .about-content {
    padding-left: 0;
  }

  /* Signature margins on mobile */
  .about-text {
    margin-bottom: 15px;
  }

  .about-signature {
    margin-top: 10px;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    max-width: 100%;
  }

  .contact-info {
    width: 100%;
    max-width: 100%;
  }

  .contact-form {
    padding: 30px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-item-content {
    font-size: 1.1rem;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .lightbox-content {
    max-width: 95%;
  }

  .lightbox-prev {
    left: -50px;
  }

  .lightbox-next {
    right: -50px;
  }

  /* Footer RWD for Tablet & Mobile */
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 25px;
  }

  .footer-link {
    white-space: nowrap;
  }

  /* Carousel mobile styles */
  .portfolio-carousel-wrapper {
    margin-bottom: 40px;
  }

  .carousel-header {
    padding-left: 0;
    text-align: center;
  }

  .carousel-nav-btn {
    width: 30px;
    height: 30px;
    /* must match width for perfect circle */
  }

  .carousel-nav-btn svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-item-content {
    font-size: 0.95rem;
  }



  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  .lightbox-content {
    max-height: 70%;
  }

  /* Vertical stack for footer navigation on small mobile screens */
  .footer-nav {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }
}

/* Google reCAPTCHA v3 compliance & styling */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-notice {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 15px;
  line-height: 1.5;
  text-align: center;
  font-weight: 300;
}

.recaptcha-notice a {
  color: var(--color-primary);
  text-decoration: underline;
}

.recaptcha-notice a:hover {
  color: var(--color-primary-dark);
}

/* ==========================================
   COOKIE CONSENT BANNER & FOOTER BUTTON
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border, #e8dfd8);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
  padding: 22px 20px;
  animation: slideUpConsent 0.4s ease-out;
}

@keyframes slideUpConsent {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-content {
  flex: 1;
}

.cookie-banner-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text, #2c2927);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.cookie-banner-text {
  font-size: 0.85rem;
  color: var(--color-text-muted, #666);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-link {
  color: var(--color-primary, #a88b79);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner-link:hover {
  color: var(--color-primary-dark, #8e7261);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-primary {
  background-color: var(--color-primary, #a88b79);
  color: #fff;
  border: 1px solid var(--color-primary, #a88b79);
}

.cookie-btn-primary:hover {
  background-color: var(--color-primary-dark, #8e7261);
  border-color: var(--color-primary-dark, #8e7261);
}

.cookie-btn-secondary {
  background-color: transparent;
  color: var(--color-text, #2c2927);
  border: 1px solid var(--color-border, #d1c7bd);
}

.cookie-btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: var(--color-text, #2c2927);
}

@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .cookie-banner {
    padding: 16px 14px;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cookie-btn {
    width: 100%;
    flex: none;
    text-align: center;
    padding: 12px 14px;
    box-sizing: border-box;
  }
}