/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --cream:        #FAF8F4;
  --cream-alt:    #F2EBE1;
  --brown:        #8E7D69;
  --brown-light:  #B8A68E;
  --brown-dark:   #4A3A2E;
  --gold:         #C4A265;
  --text:         #2D2318;
  --text-muted:   #7A6A5A;
  --white:        #FFFFFF;

  --ff-heading: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --section-pad: clamp(72px, 9vw, 128px);
  --radius:      6px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.heading-2 {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--brown-dark);
  letter-spacing: 0.01em;
}
.heading-2 em {
  font-style: italic;
  color: var(--brown);
}
.heading-2--light { color: var(--white); }

.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.label--gold { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

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

.btn--outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn--outline:hover {
  background: var(--brown);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--brown-dark);
  border-color: var(--white);
}
.btn--light:hover {
  background: transparent;
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.section { padding: var(--section-pad) 0; }
.section--alt  { background: var(--cream-alt); }
.section--dark { background: var(--brown-dark); }

.section__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__desc {
  margin-top: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.header.scrolled {
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
  padding: 10px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo-img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity var(--transition);
}
.nav__logo-img:hover { opacity: 0.8; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brown);
  transition: width var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--brown); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta { padding: 10px 22px; font-size: 0.72rem; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 44px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  .nav__menu.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 20px;
  }
  .nav__link { font-size: 1rem; }
  .nav__cta  { padding: 14px 36px; font-size: 0.82rem; }
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 15% 60%, rgba(196,162,101,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 85% 20%, rgba(142,125,105,0.11) 0%, transparent 55%),
    linear-gradient(155deg, #FAF8F4 0%, #F3E9D8 55%, #EDE0CC 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero__logo-wrap {
  position: relative;
}
.hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(196,162,101,0.3);
  animation: pulse-ring 3s ease infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.6; }
  50%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

.hero__logo {
  width: clamp(148px, 18vw, 220px);
  height: clamp(148px, 18vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 24px 64px rgba(74,58,46,0.2),
    0 6px 20px rgba(74,58,46,0.12);
}

.hero__tagline {
  font-family: var(--ff-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.025em;
  max-width: 500px;
}

.hero__cta { margin-top: 4px; }

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brown-light);
  z-index: 1;
  animation: bob 2.8s ease infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.about__visual { position: relative; }

.about__frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.about__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(196,162,101,0.15);
  pointer-events: none;
  z-index: 2;
}

/* Decorative offset border */
.about__frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1.5px solid rgba(196,162,101,0.25);
  border-radius: var(--radius);
  z-index: -1;
  transform: translate(14px, 14px);
}

.about__img-clip {
  height: clamp(340px, 45vw, 540px);
  overflow: hidden;
}
.about__img {
  width: 100%;
  height: auto;
  margin-top: -45px; /* crop phone status bar */
  display: block;
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--brown-dark);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  z-index: 3;
  box-shadow: 0 10px 40px rgba(74,58,46,0.28);
  line-height: 1.3;
  min-width: 170px;
}
.about__badge-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.about__badge-name {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
}
.about__badge-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__text p { color: var(--text-muted); }
.about__text strong { color: var(--text); font-weight: 500; }
.about__btns { margin-top: 8px; }

@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__badge { bottom: -16px; right: 16px; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services__grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover { background: #FDFCF9; }

.service-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 28px;
}
.service-card__name {
  font-family: var(--ff-heading);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
}
.service-card__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--brown-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  transition: all var(--transition);
}
.service-card.open .service-card__icon {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--white);
  transform: rotate(45deg);
}

.service-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card.open .service-card__body { max-height: 500px; }

.service-card__list {
  padding: 0 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-card__list li {
  font-size: 0.87rem;
  color: var(--text-muted);
  padding: 7px 0 7px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
  line-height: 1.4;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 1px;
  background: var(--gold);
}
.service-card__list li:last-child { border-bottom: none; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__item:first-child {
    grid-column: 1 / -1;
  }
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.gallery__clip {
  height: 420px;
  overflow: hidden;
  background: var(--cream-alt);
}
.gallery__img {
  width: 100%;
  margin-top: -42px; /* crop phone status bar */
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery__item:hover .gallery__img { transform: scale(1.04); }

.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(45,35,24,0.55));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery__cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__content {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.contact__desc {
  color: rgba(255,255,255,0.6);
  max-width: 420px;
}
.contact__btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text);
  padding: 52px 0 32px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer__logo {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.footer__logo-link:hover .footer__logo { opacity: 1; }
.footer__tagline {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.04em;
}
.footer__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }
.footer__copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.22);
  margin-top: 8px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal--delay { transition-delay: 0.15s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ABOUT PLACEHOLDER
   ============================================================ */
.about__img-placeholder {
  aspect-ratio: 3 / 4;
  background: var(--cream-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(142, 125, 105, 0.28);
}
.about__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--brown-light);
  text-align: center;
  padding: 24px;
}
.about__placeholder-inner svg { opacity: 0.5; }
.about__placeholder-inner span {
  font-family: var(--ff-heading);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--brown);
  opacity: 0.7;
}
.about__placeholder-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 180px;
  line-height: 1.5;
}

/* Gallery CTA — row of buttons */
.gallery__cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   HEADING-1 (for inner pages)
   ============================================================ */
.heading-1 {
  font-family: var(--ff-heading);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--brown-dark);
  letter-spacing: 0.01em;
}

/* ============================================================
   PAGE HERO (galeria.php + other inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(100px, 14vw, 160px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  text-align: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(196,162,101,0.08) 0%, transparent 55%),
    linear-gradient(160deg, #FAF8F4 0%, #F2E9DA 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero__desc {
  margin-top: 16px;
  font-family: var(--ff-heading);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================================
   GALLERY PAGE (galeria.php)
   ============================================================ */
.gal-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 840px) { .gal-page__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gal-page__grid { grid-template-columns: 1fr; } }

.gal-page__item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-alt);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gal-page__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.gal-page__clip {
  height: 320px;
  overflow: hidden;
}
.gal-page__img {
  width: 100%;
  height: auto;
  margin-top: -42px;
  display: block;
  transition: transform 0.5s ease;
}
.gal-page__item:hover .gal-page__img { transform: scale(1.04); }

.gal-page__info {
  padding: 16px 20px 20px;
}
.gal-page__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.gal-page__title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brown-dark);
}

.gal-page__cta {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gal-empty {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 480px) {
  .btn { padding: 13px 24px; }
  .gallery__clip { height: 280px; }
  .about__badge { right: 12px; bottom: -12px; }
  .gal-page__clip { height: 240px; }
}
