:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bg-page: #f7f4ee;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfbfa;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0ece1;
  
  --text-main: #1c1917;
  --text-muted: #665f57;
  --text-light: #948c82;
  
  --border: #e7e2d6;
  --border-focus: #c25e2e;
  
  --accent: #1e3a8a;
  --accent-hover: #172554;
  --craft: #c25e2e;
  --craft-light: rgba(194, 94, 46, 0.08);
  --craft-hover: #a34b21;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(35, 25, 15, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(35, 25, 15, 0.07);
  --shadow-lg: 0 24px 48px -12px rgba(35, 25, 15, 0.12);
  --shadow-glow: 0 0 24px rgba(194, 94, 46, 0.18);

  --container: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 10% 10%, rgba(194, 94, 46, 0.04) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(30, 58, 138, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Brand Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  transition: all 0.3s ease;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}
.brand-link:hover .brand-logo {
  transform: scale(1.03);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-title span {
  color: var(--craft);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--craft);
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-contact:hover {
  background: var(--craft-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.btn-admin:hover {
  color: var(--text-main);
  border-color: var(--craft);
  background: var(--craft-light);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--craft);
}
.breadcrumbs .sep {
  color: var(--text-light);
  font-size: 0.8rem;
}
.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 600;
}

/* Main Container */
main.main-content {
  flex: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Hero Section */
.hero {
  margin-bottom: 3.25rem;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--craft);
  margin-bottom: 0.75rem;
  background: var(--craft-light);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--craft);
  font-weight: 500;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
}

/* Sections Grid (Home Page) */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--craft), #e08b5f);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(194, 94, 46, 0.35);
}

.section-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--craft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.section-card:hover .section-icon {
  transform: scale(1.08) rotate(-2deg);
  background: var(--craft-light);
}

.section-icon svg {
  width: 32px;
  height: 32px;
}

.count-badge {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.section-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.section-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  flex: 1;
}

/* Subsections Tags inside Card */
.subsections-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sub-tag {
  font-size: 0.76rem;
  background: var(--bg-page);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.section-card:hover .sub-tag {
  border-color: rgba(194, 94, 46, 0.25);
  color: var(--text-main);
}

/* Category Inner Page */
.category-header {
  margin-bottom: 2.25rem;
}

.category-header-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.category-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: var(--text-main);
  line-height: 1.15;
}

/* Subsections Pills Nav */
.subsections-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: pointer;
}

.pill-item:hover {
  border-color: var(--craft);
  color: var(--text-main);
}

.pill-item.active {
  background: var(--craft);
  border-color: var(--craft);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(194, 94, 46, 0.25);
}

.pill-count {
  font-size: 0.74rem;
  opacity: 0.8;
  background: rgba(0,0,0,0.06);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}
.pill-item.active .pill-count {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* Subsections Cards Grid (if section has multiple subsections) */
.subsections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.sub-card:hover {
  border-color: var(--craft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sub-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.sub-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.sub-card .sub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--craft);
  font-weight: 600;
}

/* Photo Gallery Grid */
.gallery-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--craft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 5, 0.85) 0%, rgba(15, 10, 5, 0.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  color: #ffffff;
}

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

.overlay-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.overlay-tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-state strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14, 10, 6, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-image-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-btn svg { width: 26px; height: 26px; }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.25s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox-info {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  max-width: 90vw;
}

.lightbox-title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-counter {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.75rem;
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 15, 10, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.active {
  display: flex;
  opacity: 1;
}

.contact-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.active .contact-box {
  transform: scale(1);
}

.contact-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
}

.contact-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.contact-link-item:hover {
  border-color: var(--craft);
  background: var(--craft-light);
  transform: translateY(-2px);
}

.contact-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(247, 244, 238, 0.8);
  padding: 2.5rem 1.5rem 2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header { padding: 0.75rem 1rem; }
  main.main-content { padding: 1.5rem 1rem 3rem; }
  .brand-logo { height: 36px; }
  .brand-title { font-size: 1rem; }
  .brand-tagline { font-size: 0.65rem; }
  .btn-contact span { display: none; }
  .btn-contact { padding: 0.5rem 0.75rem; }
  .sections-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .lightbox-prev { left: 10px; width: 44px; height: 44px; }
  .lightbox-next { right: 10px; width: 44px; height: 44px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox-info { bottom: 12px; font-size: 0.76rem; padding: 0.45rem 0.9rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
