/* ========================================
   BASE STYLES
   ======================================== */

:root {
  --bg: #fdfaf7;
  --bg-alt: #f7f0ea;
  --card-bg: #fff;
  --border: #e7d8c9;
  --accent: #5a2539;
  --accent-soft: #e0cfe8;
  --text-main: #f7efe7;
  --text-muted: #928072;
  --error: #c0392b;
  --text-light: #EDE8D0;
  --text-light-muted: #D4C9B8;
  --overlay-dark: rgba(0, 0, 0, 0.35);
  --radius-large: 18px;
  --radius-medium: 12px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.05);
}

/* Fonts */
@font-face {
  font-family: 'Lucy Rose';
  src: local('Lucy Rose'),
       url('../fonts/LucyRose.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: "Lora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(.section-contact) {
  background: transparent;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main:has(.section-contact) {
  background: transparent;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  width: min(1120px, 100% - 1.5rem);
  margin: 0 auto;
}

@media (min-width: 480px) {
  .container {
    width: min(1120px, 100% - 2rem);
  }
}

@media (min-width: 768px) {
  .container {
    width: min(1120px, 100% - 3rem);
  }
}

.section {
  padding: 2rem 0;
}

@media (min-width: 480px) {
  .section {
    padding: 3rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0.3rem 0 0.7rem;
  letter-spacing: 0.02em;
  font-display: swap;
}

.section-intro {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 0.98rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-muted);
}

/* Large eyebrow variant (used in intro sections) */
.eyebrow-large {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  letter-spacing: 0.18em;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}

.logo {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-display: swap;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Navigation */
.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
  transition-duration: 0.25s;
}

/* Mobile nav toggle */
.nav-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.nav-toggle-line {
  width: 20px;
  height: 1.5px;
  background-color: var(--text-main);
  border-radius: 999px;
}

/* Mobile nav dropdown */
.site-nav.is-open {
  display: block;
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--accent);
  border-bottom: 1px solid rgba(231, 216, 201, .3);
  padding: .8rem 1.5rem 1.2rem;
}

.site-nav.is-open ul {
  flex-direction: column;
  gap: .8rem;
  align-items: flex-end;
}

.site-nav.is-open a {
  color: var(--text-main);
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .site-nav ul {
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.6rem;
  min-height: 44px;
  border-radius: 999px;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent));
  color: #fffaf5;
  box-shadow: var(--shadow-soft);
  font-family: "Playfair Display", serif;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--accent);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background-color: var(--accent);
}

.btn-full {
  width: 100%;
}

/* ========================================
   PRE-HERO SECTION
   ======================================== */

.pre-hero {
  min-height: 50vh;
  max-height: 70vh;
  height: 55vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  padding: 2rem 1rem;
  overflow: hidden;
}

.pre-hero::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url("../images/home-pre-hero-background.jpg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  filter: blur(1.1px);
  z-index: -1;
}

.pre-hero .pre-hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.pre-hero .hero-photos,
.pre-hero .hero-photos img,
.pre-hero .pre-hero-logo > img {
  margin: 0;
  padding: 0;
}

.pre-hero .eyebrow {
  margin: 0;
  padding: 0;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.pre-hero .hero-photos {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pre-hero .hero-photos img {
  width: min(640px, 60%);
  max-width: 640px;
  height: auto;
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent;
  flex-shrink: 0;
}

.pre-hero .hero-photos img,
.pre-hero .eyebrow {
  animation: fadeZoomIn 1.2s ease-out forwards;
  opacity: 0;
}

.pre-hero .eyebrow {
  animation-delay: 0.3s;
}

@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 480px) {
  .pre-hero {
    padding: 2.5rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .pre-hero {
    padding: 3rem 2rem;
  }
}

@media (max-width: 767px) {
  .pre-hero {
    min-height: 32vh;
    max-height: 40vh;
    height: 36vh;
    padding: 1.5rem 1rem;
  }
  
  .pre-hero .eyebrow {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
}

@media (max-width: 480px) {
  .pre-hero .hero-photos img {
    width: min(480px, 56%);
    max-width: 480px;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background-image: url("../images/home-hero-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100dvh;
  padding: 1.5rem 1rem;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 0;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.35);
}

.hero-box {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-large);
  background: rgba(214, 205, 174, 0.589);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(4px);
  text-transform: none;
  font-family: 'Lucy Rose', 'Playfair Display', serif;
}

.hero-box p {
  text-transform: lowercase;
}

.hero-box p::first-letter {
  text-transform: uppercase;
}

.hero-box .container {
  width: 100%;
  max-width: none;
  padding: 0 1rem;
}

.hero-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  padding: 1rem;
  max-width: 1100px;
  box-sizing: border-box;
}

.hero-copy p:first-of-type {
  font-family: inherit;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: #5d5838;
  margin: .4rem 0 .8rem;
  letter-spacing: .02em;
  margin-bottom: 2.4rem;
}

.hero .hero-copy p:last-of-type {
  font-size: clamp(1.1rem, 3vw, 1.4em);
}

.hero-copy p {
  font-size: clamp(1.05rem, 2.5vw, 1.2em);
  margin: 0;
  color: #5d5838;
  max-width: 80ch;
  line-height: 1.5;
}

.hero-photos {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero .hero-photos {
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.hero .hero-photos + p {
  margin-top: 1.8rem;
}

.hero-photos img {
  width: calc((100% - 2rem)/3);
  max-width: 460px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  border: 1px solid rgba(0, 0, 0, .04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero .hero-actions .btn {
  font-family: "Playfair Display", serif;
}

.hero-subtext {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 480px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: radial-gradient(circle at top left, var(--accent-soft), #fdfaf7);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  padding: 1px;
}

.hero-card-inner {
  background-color: rgba(255, 250, 245, 0.8);
  border-radius: inherit;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.hero-card-text {
  font-size: 0.92rem;
  color: var(--text-main);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

@media (min-width: 480px) {
  .hero {
    padding: 2rem 1.5rem;
  }

  .hero-box {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 2rem;
  }

  .hero-box {
    padding: 3rem 2rem;
  }
}

@media (max-width: 1023px) {
  .hero-copy p:first-of-type {
    margin-bottom: 1.8rem;
  }

  .hero .hero-photos {
    margin-top: 0.9rem;
    margin-bottom: 1.6rem;
  }

  .hero .hero-photos + p {
    margin-top: 1.2rem;
  }

  .hero-box {
    position: relative;
    inset: auto;
    width: calc(100% - 1rem);
    margin: 0 auto;
    border-radius: 14px;
    align-items: stretch;
    max-height: none;
    overflow: visible;
  }

  .hero-copy {
    padding: 0.5rem;
    text-align: center;
  }

  .hero-photos {
    flex-wrap: wrap;
  }

  .hero-photos img {
    width: calc((100% - 1rem)/2);
    max-width: none;
  }
}

@media (max-width: 767px) {
  .hero-photos {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .hero-photos img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: auto;
  }

  .hero-copy {
    gap: 1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-box {
    width: 100%;
    border-radius: 12px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 5.3rem 0 4.8rem;
  }

  .hero-copy p:first-of-type {
    font-size: 2.2rem;
  }
}

/* ========================================
   SERVICES SECTION
   ======================================== */

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

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  border: 1px solid rgba(231, 216, 201, .9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .02);
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 220px;
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  margin: 0 0 0.6rem;
}

.service-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.service-card-accent {
  background: radial-gradient(circle at top right, #f7edf6, #ffffff);
  border-color: rgba(184, 138, 203, 0.45);
}

@media (min-width: 768px) {
  .services-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid .service-card {
    flex: 1 1 calc(33.333% - 1rem);
  }
}

/* ========================================
   INTRO SECTIONS (Portfolio & About)
   ======================================== */

/* Shared intro section styles */
.intro-section {
  padding: 0;
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10vh;
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  pointer-events: none;
}

.intro-section .section-header {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.intro-section .eyebrow {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  letter-spacing: 0.18em;
}

.intro-section .container {
  width: min(840px, 100% - 1.5rem);
  margin: 0 auto;
}

#portfolio-intro {
  background-image: url("../images/portfolio-intro-background.png");
  background-size: auto;
  background-position: top left;
  background-repeat: repeat;
}

#about-intro {
  background-image: url("../images/about-intro-banner.png");
  background-size: 50%;
  background-position: top left;
}

@media (min-width: 480px) {
  .intro-section .container {
    width: min(840px, 100% - 2rem);
  }
}

@media (min-width: 768px) {
  .intro-section .container {
    width: min(840px, 100% - 3rem);
  }
}

@media (max-width: 767px) {
  .intro-section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .intro-section {
    padding: 2.5rem 0;
  }
}

/* ========================================
   SECTION OVERLAY PATTERN
   (Shared by About, Contact, Portfolio Gallery)
   ======================================== */

.section-with-overlay {
  position: relative;
  padding: 4.5rem 0 0 0 !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  flex: 1;
  min-height: calc(100vh - 150px);
  background-attachment: fixed;
}

.section-with-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
  pointer-events: none;
  z-index: 0;
}

.section-with-overlay .section-header {
  position: relative;
  z-index: 1;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-with-overlay .section-header .eyebrow,
.section-about .section-header .eyebrow,
.section-contact .section-header .eyebrow,
#portfolio-gallery .section-header .eyebrow {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.section-with-overlay .container {
  position: relative;
  z-index: 1;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.section-about {
  background-image: url("../images/about-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 4.5rem 0 4rem 0 !important;
  margin: 0 !important;
  flex: 1;
  min-height: calc(100vh - 150px);
  background-attachment: fixed;
}

.section-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
  pointer-events: none;
  z-index: 0;
}

.section-about .section-header {
  position: relative;
  z-index: 1;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-about .container {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem !important;
  margin-bottom: 0 !important;
}

.section-contact {
  background-image: url("../images/contact-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 4.5rem 0 0 0 !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  flex: 1;
  min-height: calc(100vh - 150px);
  background-attachment: fixed;
}

.section-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
  pointer-events: none;
  z-index: 0;
}

.section-contact .section-header {
  position: relative;
  z-index: 1;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-contact .container {
  position: relative;
  z-index: 1;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#portfolio-gallery.section {
  background-image: url("../images/portfolio-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 4.5rem 0 0 0 !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  flex: 1;
  min-height: calc(100vh - 150px);
  background-attachment: fixed;
}

#portfolio-gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
  pointer-events: none;
  z-index: 0;
}

#portfolio-gallery .section-header {
  position: relative;
  z-index: 1;
  margin: 0 auto 3rem;
  text-align: center;
}

#portfolio-gallery .container {
  position: relative;
  z-index: 1;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

#portfolio {
  background-image: url("../images/portfolio-background.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .section-with-overlay,
  .section-contact,
  #portfolio-gallery.section {
    padding: 3rem 0 0 0 !important;
  }
  
  .section-about {
    padding: 3rem 0 3rem 0 !important;
  }
}

@media (max-width: 479px) {
  .section-with-overlay,
  .section-contact,
  #portfolio-gallery.section {
    padding: 2rem 0 0 0 !important;
  }
  
  .section-about {
    padding: 2rem 0 2rem 0 !important;
  }
}

@media (min-width: 1024px) {
  .section-with-overlay,
  .section-contact,
  #portfolio-gallery.section {
    padding: 4.5rem 0 0 0 !important;
    margin-bottom: 0 !important;
  }
  
  .section-about {
    padding: 4.5rem 0 4.5rem 0 !important;
    margin-bottom: 0 !important;
  }

  .section-with-overlay .container,
  .section-contact .container,
  #portfolio-gallery .container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .section-about .container {
    margin-bottom: 0 !important;
    padding-bottom: 4.5rem !important;
  }
}

/* ========================================
   CONTENT BOX PATTERN
   (Shared by About, Contact, Portfolio boxes)
   ======================================== */

.content-box {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-large);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 2px 20px rgba(255, 255, 255, 0.05) inset;
  padding: 4.5rem 5rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.content-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.6;
  border-radius: inherit;
  z-index: 0;
}

.about-box {
  background: #8f5c699f;
  font-family: 'Lancelot', 'Playfair Display', serif;
  padding: 4.5rem 5rem !important;
  border-radius: var(--radius-large);
}

.contact-box {
  background: rgba(143, 92, 105, 0.62);
  margin-bottom: 4rem;
  gap: 2.5rem;
}

.portfolio-box {
  background: rgba(43, 39, 38, 0.658);
  justify-content: center;
  align-items: center;
  padding: 4.5rem 5rem !important;
  border-radius: var(--radius-large);
  margin-bottom: 4rem;
}

.portfolio-box .portfolio-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .content-box {
    padding: 4.5rem 5rem !important;
  }

  .contact-box {
    padding: 3.5rem 3rem;
    margin-bottom: 5rem;
    border-radius: var(--radius-large);
    flex-direction: column;
    gap: 0;
  }

  .section-about .about-box {
    margin: 0 auto;
    padding-bottom: 3.5rem !important;
  }

  .section-about .team-member:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 1023px) {
  .content-box {
    padding: 3.5rem 3rem !important;
    border-radius: var(--radius-large);
  }

  .about-box,
  .portfolio-box {
    padding: 3.5rem 3rem !important;
    border-radius: var(--radius-large);
  }

  .about-box {
    margin-bottom: 4rem;
  }

  .portfolio-box {
    margin-bottom: 4rem;
  }
}

@media (max-width: 767px) {
  .content-box {
    padding: 2.5rem 2rem !important;
    border-radius: var(--radius-medium);
    margin: 0 1rem;
    width: calc(100% - 2rem);
  }

  .about-box,
  .portfolio-box {
    padding: 2.5rem 2rem !important;
    border-radius: var(--radius-medium);
  }

  .about-box {
    margin-bottom: 3rem;
  }

  .portfolio-box {
    margin-bottom: 3rem;
  }

  .contact-box {
    margin: 0 1rem 4rem 1rem;
    padding: 2.5rem 2rem !important;
    border-radius: var(--radius-medium);
  }
}

@media (max-width: 480px) {
  .content-box {
    padding: 2rem 1.5rem !important;
    margin: 0 0.75rem;
    width: calc(100% - 1.5rem);
    border-radius: var(--radius-medium);
  }

  .about-box,
  .portfolio-box {
    padding: 2rem 1.5rem !important;
    border-radius: var(--radius-medium);
  }

  .about-box {
    margin-bottom: 2.5rem;
  }

  .portfolio-box {
    margin-bottom: 2.5rem;
  }

  .contact-box {
    margin: 0 0.75rem 3rem 0.75rem;
    padding: 2rem 1.5rem !important;
    border-radius: var(--radius-medium);
  }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-photo-placeholder {
  width: clamp(150px, 25vw, 210px);
  height: clamp(150px, 25vw, 210px);
  border-radius: 50%;
  background: linear-gradient(145deg, #f2e3d5, #f9f1e7);
  border: 1px solid rgba(231, 216, 201, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.about-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin: 0.3rem 0 0.8rem;
}

.about-content p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
}

.about-quote {
  margin: 1.3rem 0 0;
  font-style: italic;
  font-size: 0.95rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-soft);
  color: var(--text-muted);
}

@media (min-width: 480px) {
  .about-inner {
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .about-inner {
    gap: 2.5rem;
    flex-wrap: nowrap;
  }
}

/* ========================================
   TEAM MEMBERS
   ======================================== */

.team-member {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.team-member:last-child {
  margin-bottom: 0;
}

.team-member-text-image-text {
  grid-template-columns: 1fr 1fr 1fr;
}

.team-member-text-image-text .team-member-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.team-member-text-image-text .team-member-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.team-member-text-image-text .team-member-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: var(--radius-medium);
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-member-image-text-image {
  grid-template-columns: 1fr 1.5fr 1fr;
}

.team-member-image-text-image .team-member-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.team-member-image-text-image .team-member-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-medium);
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-member-image-text-image .team-member-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
  height: 100%;
}

.team-member-info {
  margin-top: 1rem;
  text-align: center;
}

.team-member-info h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.team-member-info .team-member-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
}

.team-member-content h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.team-member-role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.team-member-content p,
.team-member-text p {
  margin: 0;
  font-size: 1.4rem;
  text-align: justify;
  color: var(--text-light);
  line-height: 1.6;
}

.team-member-text p {
  margin-bottom: 1rem;
}

.team-member-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .team-member {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .team-member-text-image-text,
  .team-member-image-text-image {
    grid-template-columns: 1fr;
  }

  .team-member-image-text-image .team-member-content {
    padding: 0;
    text-align: center;
    order: 2;
  }

  .team-member-image-text-image .team-member-image:first-child {
    order: 1;
  }

  .team-member-image-text-image .team-member-image:last-child {
    order: 3;
  }

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

  .team-member-info {
    margin-top: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .team-member {
    gap: 2.5rem;
  }
}

@media (min-width: 1440px) {
  .team-member {
    gap: 3rem;
  }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-inner {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-copy {
  flex: 1;
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  margin: 0.4rem 0 0.7rem;
  color: var(--text-light);
}

.contact-copy .section-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-top: 1.5rem;
}

.contact-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-details a {
  color: var(--text-light);
  text-decoration: underline;
}

.contact-details a:hover {
  text-decoration: none;
}

@media (min-width: 480px) {
  .contact-inner {
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .contact-inner {
    gap: 2.5rem;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form-wrapper {
  flex: 1;
  position: relative;
  z-index: 1;
  width: 100%;
}

.form-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.form-intro p {
  margin: 0 0 0.75rem 0;
  color: var(--text-light);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.form-intro p:first-child {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.8;
}

.form-intro p:last-child {
  margin-bottom: 0;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  font-style: italic;
}

.form-intro a {
  color: var(--text-light);
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

.form-intro a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:has(.checkbox-group) {
  margin-bottom: 2.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.form-group label span {
  color: var(--accent);
}

.form-group label[for="message"] {
  text-transform: none;
  letter-spacing: 0.02em;
}

.form-group label.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-group label.checkbox-label input[type="checkbox"] {
  flex: 0 0 20px;
  display: block;
  margin: 0;
}

.form-group label.checkbox-label span {
  display: inline;
  line-height: 1;
  color: var(--text-light-muted);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1rem;
  min-height: 44px;
  font-family: inherit;
  font-size: clamp(0.9rem, 2vw, 1rem);
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="date"]::placeholder,
textarea::placeholder {
  color: rgba(237, 232, 208, 0.6);
}

textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
  padding: 0.75rem 1rem;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.3);
}

.form-error {
  min-height: 1rem;
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--error);
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(237, 232, 208, 0.7);
  font-style: italic;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1.2;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  flex: 0 0 20px;
  display: block;
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.25);
}

.checkbox-label input[type="checkbox"]:checked {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--text-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.checkbox-label span {
  user-select: none;
  color: var(--text-light-muted) !important;
  display: block;
  line-height: 1.2;
}

.form-success {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #256a42;
}

@media (min-width: 480px) {
  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="number"] {
    padding: 0.65rem 0.9rem;
    min-height: auto;
  }

  textarea {
    padding: 0.65rem 0.9rem;
  }
}

@media (max-width: 767px) {
  .form-intro p:first-child {
    font-size: clamp(1.05rem, 3vw, 1.15rem);
  }

  .form-intro p:last-child {
    font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  }
}

@media (min-width: 1024px) {
  .contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* ========================================
   PORTFOLIO GALLERY
   ======================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 100%;
  justify-items: center;
  align-items: start;
}

.portfolio-item {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  z-index: 1001;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-medium);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1002;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.lightbox-close:active {
  transform: scale(0.95);
}

@media (max-width: 767px) {
  .lightbox-content {
    padding: 1rem;
    max-width: 95%;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.75rem;
  }

  .lightbox-image {
    max-height: 85dvh;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  padding: 2rem 0 2.3rem;
  background-color: var(--accent);
  color: var(--text-main);
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-left {
  order: 2;
}

.footer-left p {
  margin: 0;
}

.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  order: 1;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 18px;
  height: 18px;
}

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

.social-link svg path {
  fill: currentColor;
}

.social-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.social-link:focus {
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-note {
  margin-top: 0.3rem;
  color: var(--text-main);
}

/* ========================================
   THANKS PAGE
   ======================================== */

#home-button {
  position: relative;
  overflow: hidden;
}

#progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.1s linear;
  pointer-events: none;
  z-index: 0;
}

#home-button span:not(#progress-bar) {
  position: relative;
  z-index: 1;
}

#home-button.loading {
  border-color: transparent;
  outline: none;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

