/* ── Reset & Core Styles ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #eee9df;
  --bg-nav:      rgba(238, 233, 223, 0.96);
  --bg-card:     #f8f4eb;
  --bg-card-dim: #ddd6c8;
  --text:        #292a27;
  --text-sub:    #55554f;
  --text-dim:    #77756c;
  --border:      #c9c0b1;
  --brown-dark:  #4b382b;
  --brown:       #755037;
  --brown-light: #b49170;
  --cream:       #f8f4eb;
  --olive:       #6d725d;
  --olive-light: #8a907a;
  --radius:      8px;
  --nav-h:       76px;
  --shadow:      0 4px 20px rgba(75, 56, 43, 0.06);
  --shadow-lg:   0 10px 30px rgba(75, 56, 43, 0.1);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--olive);
  color: var(--cream);
}

.btn-secondary:hover {
  background: var(--olive-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--cream);
}

/* ── Header / Navigation ──────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: bold;
}

.brand-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--brown-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-sub);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--brown);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0;
  height: 2px;
  background: var(--brown);
  transition: var(--transition);
}

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

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(circle at top, #FAF8F5, var(--bg));
  position: relative;
}

.hero h1 {
  font-size: 56px;
  color: var(--brown-dark);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero p {
  font-size: 20px;
  color: var(--text-sub);
  max-width: 800px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ── Info Cards ──────────────────────────────────────────── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brown-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(117, 80, 55, 0.1);
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 24px;
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.card p {
  color: var(--text-sub);
}

/* ── Gallery Grid ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-card-dim);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

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

/* ── Lightbox Modal ──────────────────────────────────────── */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(41, 42, 39, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  box-shadow: var(--shadow-lg);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 36px;
  color: var(--cream);
  cursor: pointer;
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-container {
  max-width: 650px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brown-dark);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px var(--border-glow);
}

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

.form-success, .form-error {
  display: none;
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 500;
  margin-bottom: 24px;
}

.form-success {
  background: rgba(109, 114, 93, 0.15);
  color: var(--olive);
  border: 1px solid var(--olive);
}

.form-error {
  background: rgba(199, 84, 80, 0.15);
  color: #c75450;
  border: 1px solid #c75450;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 60px 0 30px;
  margin-top: auto;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--brown-light);
}

.footer-bottom {
  border-top: 1px solid rgba(238, 233, 223, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--border);
}

.admin-trigger {
  opacity: 0.4;
  cursor: pointer;
}

.admin-trigger:hover {
  opacity: 1;
  color: #fff;
}

/* ── Admin Mode Elements ─────────────────────────────────── */
.admin-editing-outline {
  outline: 2px dashed var(--olive) !important;
  outline-offset: 4px;
  min-height: 1.5em;
  position: relative;
}

[data-reframeable="true"] {
  transition: transform 0.1s ease-out;
}

.admin-saved-tip {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
  vertical-align: middle;
  animation: fadeIn 0.2s, fadeOut 0.2s 1.5s forwards;
}

#admin-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: var(--brown-dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10000;
  font-weight: 600;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

#admin-bar button {
  background: var(--brown);
  border: none;
  color: var(--cream);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

#admin-bar button:hover {
  background: var(--olive);
}

/* Admin Login Modal */
#admin-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.admin-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
  width: 320px;
  box-shadow: var(--shadow-lg);
}

.admin-modal-box h2 {
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.admin-modal-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  outline: none;
}

#admin-pw-error {
  color: #c75450;
  font-size: 13px;
  margin-bottom: 15px;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-modal-actions button {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#admin-login-btn {
  background: var(--brown);
  color: var(--cream);
}

#admin-cancel-btn {
  background: #ddd;
  color: var(--text-sub);
}

/* Editable list helper */
.admin-list-item-text {
  outline: none;
  display: inline-block;
}

.admin-remove-item-btn {
  background: none;
  border: none;
  color: #c75450;
  font-size: 20px;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
}

.admin-add-item-btn {
  background: none;
  border: 1px dashed var(--olive);
  color: var(--olive);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.admin-add-item-btn:hover {
  background: var(--cream);
}

/* ── Dashboard Layout & Views ────────────────────────────── */
.dashboard-header {
  position: relative !important;
  height: auto !important;
  background: var(--brown-dark);
  color: var(--cream);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-nav {
  display: flex;
  background: var(--bg-card-dim);
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--brown);
  color: var(--cream);
}

.dashboard-container {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: block;
}

/* Dashboard Table */
.dashboard-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th, .dashboard-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dashboard-table th {
  background: #FAF8F5;
  color: var(--brown-dark);
  font-weight: bold;
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

.status-select {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-weight: 600;
  outline: none;
}

.lead-link {
  color: var(--olive);
  text-decoration: underline;
}

.lead-message {
  max-width: 300px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 14px;
  color: var(--text-sub);
}

.service-tag {
  display: inline-block;
  background: rgba(109, 114, 93, 0.1);
  color: var(--olive);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* Dashboard Gallery Manage */
.gallery-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-manage-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card-dim);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: grab;
}

.gallery-manage-item.dragging {
  opacity: 0.5;
  border: 2px dashed var(--brown);
}

.gallery-manage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delete-img-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(199, 84, 80, 0.9);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.delete-img-btn:hover {
  background: #c75450;
}

.drag-handle {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(41, 42, 39, 0.8);
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.gallery-upload-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

/* Notifications */
.dashboard-notification {
  position: fixed;
  bottom: -60px; right: 20px;
  background: var(--olive);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: bottom 0.3s ease-out;
  z-index: 1000000;
}

.dashboard-notification.visible {
  bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: row;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0 24px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-inner nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 99;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-inner nav.active {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
  }
  .nav-links a {
    font-size: 18px;
    padding: 8px 0;
    display: block;
    width: 100%;
    text-align: center;
  }
  body {
    padding-top: var(--nav-h);
  }
  .hero h1 {
    font-size: 40px;
  }
  .dashboard-header {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    text-align: center;
  }
  .dashboard-container {
    padding: 20px;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Themes ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #1a1a1a;
  --bg-nav:      rgba(26, 26, 26, 0.96);
  --bg-card:     #242424;
  --bg-card-dim: #333333;
  --text:        #f0f0f0;
  --text-sub:    #b0b0b0;
  --text-dim:    #808080;
  --border:      #444444;
  --brown-dark:  #f8f4eb;
  --brown:       #b49170;
  --brown-light: #755037;
  --cream:       #1a1a1a;
  --olive:       #8a907a;
  --olive-light: #6d725d;
  --shadow:      0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="ocean"] {
  --bg:          #e0f0ff;
  --bg-nav:      rgba(224, 240, 255, 0.96);
  --bg-card:     #f0f8ff;
  --bg-card-dim: #b0d0f0;
  --text:        #001a33;
  --text-sub:    #003366;
  --text-dim:    #004d99;
  --border:      #99c2ff;
  --brown-dark:  #001a33;
  --brown:       #0055ff;
  --brown-light: #6699ff;
  --cream:       #ffffff;
  --olive:       #0099cc;
  --olive-light: #33bbff;
}

[data-theme="nature"] {
  --bg:          #eaf5e3;
  --bg-nav:      rgba(234, 245, 227, 0.96);
  --bg-card:     #f4fcf0;
  --bg-card-dim: #c5e0b8;
  --text:        #1f331f;
  --text-sub:    #3a593a;
  --text-dim:    #5c805c;
  --border:      #a3cc99;
  --brown-dark:  #1f331f;
  --brown:       #2e8b2e;
  --brown-light: #5cb85c;
  --cream:       #ffffff;
  --olive:       #006600;
  --olive-light: #009900;
}

[data-theme="sunset"] {
  --bg:          #fff0e6;
  --bg-nav:      rgba(255, 240, 230, 0.96);
  --bg-card:     #fff5f0;
  --bg-card-dim: #ffd1b3;
  --text:        #331a00;
  --text-sub:    #663300;
  --text-dim:    #994d00;
  --border:      #ffb380;
  --brown-dark:  #4d0000;
  --brown:       #cc3300;
  --brown-light: #ff6633;
  --cream:       #ffffff;
  --olive:       #ff9933;
  --olive-light: #ffcc66;
}
