:root {
  --green: #034531;
  --green-dark: #023024;
  --gold: #b8892f;
  --cream: #f7f4eb;
  --ink: #1c1c1c;
  --line: #d9d3c2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Georgia', 'Iowan Old Style', serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Georgia', serif; color: var(--green); margin-top: 0; }

a { color: var(--green); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 760px; }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 12px;
}
.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  font-size: 15px;
  color: var(--green);
}
.main-nav a:first-child { margin-left: 0; }
.main-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--green);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    z-index: 20;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    margin-left: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: none; }
}

/* Hero */
.hero {
  background: var(--green);
  color: white;
  padding: 72px 0;
  text-align: center;
}
.hero h1 { color: white; font-size: 2.2rem; max-width: 720px; margin: 0 auto 16px; }
.hero-subtitle { font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; opacity: 0.92; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: #cf9f3f; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: white; }
.section h2 { font-size: 1.8rem; margin-bottom: 28px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 22px;
  border-radius: 4px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; }

.contact-list { list-style: none; padding: 0; font-size: 1.05rem; }
.contact-list li { margin-bottom: 10px; }

.see-more { margin-top: 24px; }
.see-more a { text-decoration: none; font-weight: bold; }

.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 16px; }

.phone-callout { font-size: 1.1rem; }
.phone-callout a { font-weight: bold; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  max-width: 560px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: bold;
  font-size: 0.95rem;
}
.contact-form input, .contact-form textarea {
  font: 1rem system-ui, sans-serif;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.contact-form button { align-self: flex-start; }

/* Honeypot: hidden from sighted users, still reachable by bots that
   ignore CSS, which is the point. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal-data { margin-top: 32px; }
.legal-data dt { font-weight: bold; color: var(--green); margin-top: 12px; }
.legal-data dd { margin: 0; }

/* Footer */
.site-footer {
  background: var(--green);
  color: white;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.footer-links a { color: white; margin: 0 10px; text-decoration: underline; font-size: 0.9rem; }
.footer-note { font-size: 0.85rem; opacity: 0.8; margin: 0; }

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 30;
}
.whatsapp-float:hover { background: #20bd5a; }

/* Admin */
.admin-body { font-family: system-ui, sans-serif; background: var(--cream); }
.login-box {
  max-width: 360px;
  margin: 80px auto;
  background: white;
  padding: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-align: center;
}
.login-box form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.error { color: #a4262c; font-weight: bold; }
.notice { background: #e4f2ea; border: 1px solid var(--green); color: var(--green-dark); padding: 12px 16px; border-radius: 4px; }

.admin-header {
  background: var(--green);
  color: white;
}
.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}
.admin-header-actions { display: flex; align-items: center; gap: 16px; }
.admin-header-actions a { color: white; }
.admin-top-nav { display: flex; gap: 20px; }
.admin-top-nav a { color: white; text-decoration: none; font-size: 0.95rem; }
.admin-top-nav a:hover { text-decoration: underline; }
.admin-page-title { font-family: system-ui, sans-serif; font-size: 1.4rem; color: var(--green); }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-body .breadcrumb { font-family: system-ui, sans-serif; margin-bottom: 4px; }
.admin-body .breadcrumb a { color: var(--green); text-decoration: none; font-size: 0.9rem; }
.admin-body .breadcrumb a:hover { text-decoration: underline; }
.admin-body code { background: var(--cream); padding: 1px 5px; border-radius: 3px; font-size: 0.85em; }

.post-admin-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.post-admin-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: system-ui, sans-serif;
}
.post-admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.post-admin-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: #999;
}
.post-admin-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.post-admin-actions { display: flex; align-items: center; gap: 14px; }

.badge {
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 1px 7px;
  border-radius: 10px;
}

.message-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.message-item {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  font-family: system-ui, sans-serif;
}
.message-item.message-new { border-left-color: var(--gold); }
.message-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.message-date { color: #777; font-size: 0.85rem; margin-left: auto; }
.message-contact { display: flex; gap: 16px; font-size: 0.9rem; color: #444; margin-bottom: 10px; flex-wrap: wrap; }
.message-emailed { font-style: italic; }
.message-body { white-space: pre-wrap; margin: 0 0 12px; }

.admin-main { padding: 32px 24px 80px; }
.admin-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.admin-toc a { text-decoration: none; }

.admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card h2 { font-family: system-ui, sans-serif; font-size: 1.3rem; }
.admin-card form { display: flex; flex-direction: column; gap: 14px; }
.admin-card label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; color: #333; }
.admin-card input[type=text], .admin-card input[type=email], .admin-card input[type=password], .admin-card textarea {
  font: inherit;
  font-family: system-ui, sans-serif;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.hint { font-size: 0.85rem; color: #555; }

.service-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.service-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.service-form { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.service-form input, .service-form textarea { font-family: system-ui, sans-serif; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.service-order { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.admin-subform { border-top: 1px dashed var(--line); padding-top: 16px; }
.admin-subform-top { border-top: none; border-bottom: 1px dashed var(--line); padding-top: 0; padding-bottom: 20px; margin-bottom: 20px; }

.page-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}
.page-form { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.page-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.page-form-row label { flex: 1; min-width: 180px; }
.page-form input, .page-form textarea {
  font-family: system-ui, sans-serif;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.page-form-actions { display: flex; align-items: center; gap: 14px; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.checkbox-label input { width: auto; }

.child-pages {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.child-page-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cream);
  border-radius: 4px;
  padding: 12px;
}
.child-page-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.page-intro { font-size: 1.1rem; max-width: 640px; }

.breadcrumb { font-size: 0.9rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.post-list { list-style: none; padding: 0; }
.post-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { padding-top: 0; }
.post-item h2 { font-size: 1.3rem; margin-bottom: 4px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { color: var(--gold); }
.post-date { font-size: 0.85rem; color: #777; margin: 0 0 8px; }

.post-item-with-thumb { display: flex; gap: 18px; align-items: flex-start; }
.post-list-thumb {
  width: 200px;
  height: 150px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  flex: 0 0 auto;
}
.post-hero-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
  display: block;
}
.post-inline-image {
  margin: 28px auto;
}
.post-inline-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.post-inline-image figcaption {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin-top: 8px;
}
/* Size presets, chosen per image in the admin (not full-bleed by default,
   so a picture never renders larger than intended). */
.post-inline-image.img-size-small { max-width: 280px; }
.post-inline-image.img-size-medium { max-width: 480px; }
.post-inline-image.img-size-large { max-width: 720px; }
.post-inline-image.img-size-full { max-width: 100%; }

@media (max-width: 480px) {
  .post-item-with-thumb { flex-direction: column; }
  .post-list-thumb { width: 100%; height: 220px; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  justify-content: center;
  gap: 28px;
}
.team-card { text-align: center; }
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--gold);
}
.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  font-family: system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: bold;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.team-role { color: var(--gold); font-weight: bold; font-size: 0.9rem; margin: 0 0 8px; }
.team-bio { font-size: 0.92rem; }

.team-thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.link-btn {
  background: none;
  border: none;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 2px 6px;
}
.link-btn:disabled { opacity: 0.3; cursor: default; text-decoration: none; }
.link-btn-danger { color: #a4262c; }

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 44px 0; }
}
