:root {
  --cream: #FFF0F7;
  --sage: #8B4ACB;
  --sage-dark: #6E3AA3;
  --coral: #FF4DA6;
  --charcoal: #333333;
  --gold: #D36CFF;
  --line: #F0D6FF;
  --white: #FFFFFF;
  --nav-pink: #FF99CC;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
}

img { max-width: 100%; display: block; }

.hidden { display: none !important; }

/* LOGIN */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
}

.login-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.login-paw { font-size: 36px; margin-bottom: 8px; }

.login-card h1 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--charcoal);
}

.login-sub {
  margin: 0 0 28px;
  color: var(--sage-dark);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 12px;
}

#login-form { text-align: left; }

#login-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--charcoal);
}

#login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
}

#login-form input:focus {
  outline: none;
  border-color: var(--coral);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 56px;
}

#toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  background: none;
  border: none;
  color: var(--sage-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
}

#toggle-password:hover {
  color: var(--coral);
}

#login-form button[type="submit"] {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}

#login-form button[type="submit"]:hover { background: #cc007a; }

.error {
  color: #C0392B;
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

/* DASHBOARD */
.topbar {
  height: 64px;
  background: var(--sage-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.topbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

.topbar-brand span {
  font-weight: 400;
  opacity: 0.7;
  font-size: 13px;
  margin-left: 6px;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
}

.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.dashboard-body {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  flex-shrink: 0;
}

.nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
  cursor: pointer;
}

.nav-btn:hover { background: var(--cream); }

.nav-btn.active {
  background: var(--sage);
  color: var(--white);
}

.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 6px;
}

.editor-panel {
  flex: 1;
  padding: 32px 40px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.editor-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-status {
  font-size: 13px;
  color: var(--sage-dark);
  font-weight: 700;
  min-width: 100px;
}

.btn-admin-primary, .btn-secondary {
  padding: 10px 18px;
  border-radius: 9px;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-admin-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-admin-primary:hover { background: #cc007a; }

.btn-secondary {
  background: var(--white);
  border: 1.5px solid var(--sage);
  color: var(--sage-dark);
}
.btn-secondary:hover { background: var(--cream); }

.sections-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-card {
  background: var(--white);
  border: 1.5px solid var(--sage);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.header-card-label {
  font-weight: 700;
  color: var(--sage-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.header-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 10px 0 5px;
}

.header-card input,
.header-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}

.header-card input:focus,
.header-card textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.image-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.image-preview {
  width: 90px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  flex-shrink: 0;
}

.image-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.image-upload-controls input[type="file"] {
  font-family: var(--font-body);
  font-size: 13px;
}

.upload-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--sage-dark);
  min-height: 14px;
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.color-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.color-card input[type="color"] {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.color-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.color-card-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
}

.color-card-desc {
  font-size: 12px;
  color: #777;
}

.color-card-hex {
  font-size: 12px;
  font-family: monospace;
  color: var(--sage-dark);
}

.section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.section-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-card-head span {
  font-weight: 700;
  color: var(--sage-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px 8px;
  color: var(--charcoal);
  opacity: 0.6;
}
.icon-btn:hover { opacity: 1; }

.section-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 10px 0 5px;
}

.section-card input,
.section-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
}

.section-card textarea {
  min-height: 80px;
  resize: vertical;
}

.section-card input:focus,
.section-card textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--sage-dark);
  font-weight: 600;
}

@media (max-width: 720px) {
  .dashboard-body { flex-direction: column; }
  .sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .nav-btn { white-space: nowrap; width: auto; }
  .editor-panel { padding: 24px 20px; }
}

/* ==================================================
   PUBLIC SITE STYLES (Home, About, Services, etc.)
================================================== */
/* PAGE HEADER BANNER */
.page-header {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage) center/contain no-repeat;
  background-image: var(--header-bg-image, none), linear-gradient(135deg, var(--sage), var(--sage-dark));
  text-align: center;
  overflow: hidden;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.page-header-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.page-header-content h1 {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--white);
  margin: 0 0 10px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.page-header-content p {
  font-size: 16px;
  color: var(--white);
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  white-space: pre-line;
}

/* NAV */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 16px 20px;
  background: var(--nav-pink);
}

.site-nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--white);
}

.btn-primary {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
}
.btn-primary:hover { background: var(--sage-dark); }

/* DYNAMIC CONTENT SECTIONS */
#content-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.content-block.reverse { flex-direction: row-reverse; }

.content-block-text { flex: 1; min-width: 280px; }

.content-block-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--charcoal);
}

.content-block-text p {
  font-size: 16px;
  color: #5A5348;
  margin: 0;
}

.content-block-image { flex: 1; min-width: 280px; }

.content-block-image img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--line);
}

/* CTA STRIP */
.cta-strip {
  text-align: center;
  background: var(--sage);
  color: var(--white);
  padding: 56px 24px;
  margin-top: 32px;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 20px;
}

.cta-strip .btn-primary {
  background: var(--white);
  color: var(--sage-dark);
}
.cta-strip .btn-primary:hover { background: var(--cream); }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 36px 24px;
  background: var(--charcoal);
  color: var(--cream);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 10px;
}

.footer-contact p {
  margin: 4px 0;
  font-size: 13px;
}

.footer-contact a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 700;
}
.footer-contact a:hover { text-decoration: underline; }

.footer-credentials {
  margin: 14px 0 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

.footer-area {
  margin: 0 0 14px;
  font-size: 12px;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; }

.footer-note {
  font-size: 12px;
  opacity: 0.6;
  margin: 0;
}

@media (max-width: 720px) {
  .page-header { min-height: 200px; }
  .page-header-content h1 { font-size: 28px; }
  .site-nav { gap: 8px 14px; padding: 12px; }
  .site-nav a { font-size: 13px; }
  .content-block, .content-block.reverse { flex-direction: column; padding: 32px 0; }
  #content-sections { padding: 0 20px; }
}

/* ==================================================
   INNER PAGE CONTAINER (About, Services, Forms, Gallery, Reviews, Policies, Contact)
================================================== */

.page-container {
  width: calc(100% - 30px);
  max-width: 900px;
  margin: 35px auto;
  padding: 32px 36px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-block { margin-bottom: 30px; }
.page-block:last-child { margin-bottom: 0; }

.page-block h2 {
  font-family: var(--font-display);
  color: var(--sage);
  font-size: 22px;
  margin: 0 0 10px;
}

.page-block p {
  white-space: pre-line;
  margin: 0 0 10px;
  color: #444;
}

.page-block img {
  border-radius: 12px;
  margin-top: 10px;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: var(--line);
}

.empty-note {
  text-align: center;
  color: #999;
  padding: 30px 10px;
  font-style: italic;
}

/* PRICING (Services page) */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.price-card {
  width: 220px;
  padding: 16px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--cream);
  text-align: center;
}

.price-card h3 {
  color: var(--coral);
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 16px;
}

.price-card p {
  white-space: pre-line;
  margin: 0;
  font-size: 14px;
  color: #444;
}

/* FORM CARDS (Forms page) */
.forms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.form-card {
  width: 260px;
  padding: 24px 20px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-card h3 {
  color: var(--sage);
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 10px;
}

.form-card p {
  color: #555;
  font-size: 14px;
  margin: 0 0 16px;
}

.form-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--coral), var(--sage));
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.form-btn:hover { opacity: 0.9; }

/* GALLERY GRID (Gallery page) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}
.gallery-grid img:hover { transform: scale(1.04); }

.gallery-grid figcaption {
  padding: 8px;
  text-align: center;
  font-weight: 700;
  color: var(--sage-dark);
  font-size: 13px;
}

/* REVIEWS (Reviews page) */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-box strong {
  color: var(--sage);
  font-size: 15px;
}

.review-box p {
  white-space: pre-line;
  margin: 6px 0 0;
  color: #444;
}

/* DISCLAIMER / NOTE BOX */
.disclaimer-box {
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: var(--cream);
  margin-top: 24px;
}

.disclaimer-box h2 {
  font-family: var(--font-display);
  color: var(--sage);
  font-size: 18px;
  margin: 0 0 8px;
}

.disclaimer-box p {
  margin: 0;
  color: #444;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .page-container { padding: 24px 20px; }
  .price-card, .form-card { width: 100%; max-width: 340px; }
}