/* Base palette: rgb(169,166,164) */
:root {
  --stone: rgb(169, 166, 164);
  --stone-950: rgb(45, 44, 43);
  --stone-800: rgb(74, 72, 71);
  --stone-600: rgb(120, 118, 116);
  --stone-400: rgb(189, 187, 185);
  --stone-200: rgb(225, 224, 223);
  --stone-100: rgb(242, 242, 241);
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--stone-950); background: var(--white); }
body { margin: 0; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 9999; background: var(--stone-950); border-bottom: 1px solid var(--stone-950); pointer-events: auto; color: var(--white); }
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: 72px; }
.logo { font-family: "Playfair Display", serif; font-weight: 600; letter-spacing: .02em; position: relative; z-index: 10001; }
.site-nav { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.site-nav a { padding: .5rem .75rem; border-radius: 10px; color: var(--white); }
.site-nav a:hover { background: rgba(255,255,255,0.12); }
.site-nav .cta { background: rgba(255,255,255,0.16); color: var(--white); }
.site-nav .cta:hover { background: rgba(255,255,255,0.28); }

.nav-toggle { display: none; border: none; background: transparent; width: 44px; height: 44px; align-items: center; justify-content: center; gap: 4px; margin-left: auto; position: relative; z-index: 10001; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* Prevent underlying content from intercepting taps when header overlaps */
@media (max-width: 820px) {
  .page-hero, .section, .fullscreen-section { position: relative; z-index: 1; }
}

@media (max-width: 820px) {
  /* Right-side drawer menu */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(84vw, 360px);
    transform: translateX(100%);
    transition: transform .25s ease;
    background: var(--stone-950);
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 10000;
  }
  .site-header.is-open .site-nav { transform: translateX(0%); }
  .nav-toggle { display: inline-flex; }
}

/* Backdrop behind mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 9999;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--white), var(--stone-100)); border-bottom: 1px solid var(--stone-200); }
.hero-content { padding: 4.5rem 0 3rem; text-align: center; }
.hero h1 { font-family: "Playfair Display", serif; font-size: clamp(28px, 6vw, 48px); line-height: 1.05; margin: 0; }
.hero p { color: var(--stone-800); max-width: 62ch; margin: .75rem auto 0; }
.actions { margin-top: 1.25rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.1rem; border-radius: 12px; font-weight: 600; background: #000; color: #fff; border: 1px solid #000; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn.primary { background: #000; color: #fff; border-color: #000; box-shadow: 0 10px 30px var(--shadow); }
.btn.primary:hover { background: #8b5e34; border-color: #8b5e34; }
.btn.ghost { background: #000; color: #fff; border-color: #000; }
.btn.ghost:hover { background: #8b5e34; border-color: #8b5e34; }
.btn.full { width: 100%; }

/* Sections */
.section { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 1.25rem; }
.section-header h2 { font-family: "Playfair Display", serif; margin: 0; font-size: clamp(22px, 4vw, 32px); }
.section-header p { color: var(--stone-800); margin-top: .25rem; }

/* Cards */
.grid.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: var(--white); border: 1px solid #8b5e34; border-radius: 14px; padding: 1rem; box-shadow: 0 6px 18px var(--shadow); }
.card h3 { margin: .75rem 0 .25rem; font-size: 1.05rem; }
.card p { color: var(--stone-800); margin: 0; }
.card-media { height: 140px; border-radius: 10px; background: radial-gradient(100% 100% at 50% 0%, var(--stone-200), var(--stone-400)); }

/* Split */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: center; }
.split-media { background: linear-gradient(135deg, var(--stone-200), var(--stone-400)); border-radius: 14px; height: 260px; box-shadow: 0 10px 30px var(--shadow); }
.split-content p { color: var(--stone-800); }
.bullets { padding-left: 1.1rem; color: var(--stone-800); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.service { background: var(--white); border: 1px solid #8b5e34; border-radius: 12px; padding: 1rem; }
.service h3 { margin: 0 0 .25rem; }
.service p { margin: 0; color: var(--stone-800); }

/* Contact */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; gap: .35rem; margin-bottom: .9rem; }
input, textarea { font: inherit; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--stone-200); background: var(--white); color: var(--stone-950); }
input:focus, textarea:focus { outline: 3px solid rgba(169,166,164,0.35); border-color: var(--stone-400); }
.form-note { margin-top: .5rem; color: var(--stone-800); }

/* Footer */
.site-footer { border-top: 1px solid var(--stone-950); padding: 2rem 0; background: var(--stone-950); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; width: 100%; }
.footer-nav a { color: var(--white); }
.footer-nav a:hover { color: var(--stone-200); }

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--white);
  color: var(--stone-950);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Page hero */
.page-hero { padding: 3rem 0 1.25rem; border-bottom: 1px solid var(--stone-200); background: var(--stone-100); }
.page-hero h1 { font-family: "Playfair Display", serif; margin: 0; font-size: clamp(26px,5vw,40px); }
.page-hero p { color: var(--stone-800); margin: .5rem 0 0; max-width: 72ch; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.gallery-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--stone-200); border-radius: 16px; box-shadow: 0 10px 30px var(--shadow); overflow: hidden; }
.media-frame { position: relative; aspect-ratio: 3 / 2; background: var(--stone-100); margin: 0; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-meta { padding: 1rem; }
.gallery-meta h2 { margin: 0 0 .35rem; font-size: 1.25rem; font-family: "Playfair Display", serif; }
.gallery-meta p { margin: 0; color: var(--stone-800); }

@media (max-width: 960px) {
  .gallery-card { grid-template-columns: 1fr; }
}

/* Fullscreen two-column gallery */
.fullscreen-section { padding: 0; }
.fullscreen-gallery { display: grid; gap: 0; }
.fullscreen-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100vh; }
.fullscreen-item { position: relative; width: 100%; height: 100%; overflow: hidden; }
.fullscreen-item img { width: 100%; height: 100%; object-fit: cover; }
.fullscreen-caption { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); background: rgba(0,0,0,0.45); color: #fff; padding: .4rem .7rem; border-radius: 8px; font-weight: 600; letter-spacing: .01em; }

@media (max-width: 820px) {
  .fullscreen-row { grid-template-columns: 1fr; height: auto; }
  .fullscreen-item { height: 70vh; }
}

/* Borders and alignment for fullscreen gallery */
.fullscreen-row { border-bottom: 1px solid var(--stone-200); }
.fullscreen-row:first-child { border-top: 1px solid var(--stone-200); }
.fullscreen-item:not(:last-child) { border-right: 1px solid var(--stone-200); }

@media (max-width: 820px) {
  .fullscreen-item { border-right: none; border-bottom: 1px solid var(--stone-200); }
  .fullscreen-item:last-child { border-bottom: none; }
}

html, body { overflow-x: hidden; }
.fullscreen-section .container { padding: 0; max-width: none; } 

/* Search */
.search-section { border-bottom: 1px solid var(--stone-200); background: var(--white); }
.search-form { display: flex; gap: .5rem; align-items: center; }
.search-form input[type="search"] { flex: 1; min-width: 0; }
.search-message { margin-top: .5rem; color: var(--stone-800); }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; } 

/* Override: remove vertical borders to avoid right-side border */
.fullscreen-item { border-right: none !important; } 

/* Remove left/right borders on fullscreen gallery */
.fullscreen-row { border-left: none !important; border-right: none !important; }
.fullscreen-item { border-left: none !important; border-right: none !important; }

/* Share button styles */
/* Unified share button (rectangular, black with glowing gradient border) */
.share-button,
.gallery-share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(#000, #000) padding-box,
              linear-gradient(135deg, #d4af37, #4da3ff, #ffffff) border-box;
  border: 2px solid transparent;
  color: #ffffff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35), 0 0 18px rgba(77, 163, 255, 0.25);
  z-index: 10;
}

/* Keep gallery buttons hidden until hover on desktop for cleanliness */
.gallery-share-btn { opacity: 0; }
.gallery-item:hover .gallery-share-btn { opacity: 1; }

.share-button:hover,
.gallery-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5), 0 0 22px rgba(77, 163, 255, 0.35);
}

.share-button svg,
.gallery-share-btn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.share-button .share-text,
.gallery-share-btn .share-text {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
}

.share-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  min-width: 160px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.share-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--stone-800);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.share-option:hover {
  background: var(--stone-100);
  color: var(--stone-950);
}

.share-option svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--stone-950);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Collections refactor */
.collections-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.collections-nav a {
  padding: .4rem .7rem;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--stone-800);
}

.collections-nav a:hover {
  background: var(--stone-100);
}

.collection-section { padding: 1.5rem 0; border-top: 1px solid var(--stone-200); }
.collection-section h2 { font-family: "Playfair Display", serif; margin: 0 0 .75rem; font-size: clamp(18px, 3vw, 24px); }
.collection-grid { display: grid; grid-template-columns: 40% 40%; justify-content: center; gap: 2rem 4rem; }
.collection-card { position: relative; background: var(--white); border: 1px solid #8b5e34; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px var(--shadow); }
.collection-card img { width: 100%; height: 320px; object-fit: cover; background: var(--stone-100); }
.collection-card figcaption { padding: .6rem .75rem; font-weight: 600; color: var(--stone-950); font-size: .9rem; border-top: 1px solid var(--stone-200); }

/* Position share button similar to gallery */
.collection-card .gallery-share-btn { position: absolute; top: 12px; right: 12px; opacity: 1; transform: none; }
.collection-card .gallery-share-dropdown { top: 45px; right: 12px; }

@media (max-width: 768px) {
  .collection-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .collection-card img { height: 220px; }
}

/* Collections search UX */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12000;
}
.loader-spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  background: var(--stone-950);
  color: var(--white);
  padding: .6rem .9rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 12001;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }

.collection-card.highlight { outline: 3px solid #ffd166; box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.35), 0 6px 18px var(--shadow); }

/* Center modal for no-results and errors */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  background: var(--white);
  color: var(--stone-950);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: 1px solid var(--stone-200);
  width: min(92vw, 560px);
  padding: 1rem 1rem 1.2rem;
  position: relative;
}
.modal h3 { margin: 0 0 .35rem; font-family: "Playfair Display", serif; }
.modal p { margin: 0 0 .75rem; color: var(--stone-800); }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--stone-950);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-suggestions { margin-top: .5rem; }
.modal-suggestions a { color: var(--stone-950); text-decoration: underline; }

.scroll-to-top:hover {
  background: var(--stone-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 820px) {
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* Edge Profiles Grid */
.edge-profiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.profile-frame {
  background: var(--white);
  border: 1px solid #8b5e34;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow);
}

.profile-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--stone-100);
}

.profile-caption {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--stone-950);
  background: var(--white);
  border-top: 1px solid var(--stone-200);
}

@media (max-width: 1024px) {
  .edge-profiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .edge-profiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .profile-image {
    height: 150px;
  }
  
  .profile-caption {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

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

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  background: var(--white);
  border: 1px solid #8b5e34;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--stone-100);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}


.gallery-caption {
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* removed old circular gallery share styles in favor of unified styles above */

.gallery-share-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  min-width: 140px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.gallery-share-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gallery-share-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--stone-800);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.gallery-share-option:hover {
  background: var(--stone-100);
  color: var(--stone-950);
}

.gallery-share-option svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  
  .gallery-image {
    height: 180px;
  }
  
  .gallery-share-btn {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .gallery-image {
    height: 160px;
  }
} 