:root {
  --navy: #1c2b3a;
  --navy-light: #26394d;
  --paint-orange: #ef6c30;
  --paint-orange-dark: #d4551f;
  --evergreen: #1f4d3a;
  --evergreen-light: #2f6b4f;
  --mist: #7fa3ad;
  --cream: #faf6ef;
  --white: #ffffff;
  --gray: #6b7580;
  --border: #e3ddd0;
  --success: #2f8f5b;
  --danger: #c94a3f;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(28, 43, 58, 0.08);
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

a {
  color: inherit;
}

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

/* ---- Header ---- */
header.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 0;
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--white);
}

.brand .swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--paint-orange);
  display: inline-block;
  transform: rotate(-8deg);
}

nav.site-nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
  opacity: 0.9;
}

nav.site-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 130px;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--evergreen) 100%);
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ctext x='10' y='60' font-size='40'%3E%F0%9F%8C%B2%3C/text%3E%3Ctext x='80' y='120' font-size='28'%3E%F0%9F%8C%B2%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 90px;
  display: block;
  z-index: 1;
}

.hero h1 {
  font-size: 2.9rem;
  margin: 0 0 12px;
}

.hero p.tagline {
  font-size: 1.15rem;
  color: #cdd6df;
  max-width: 620px;
  margin: 0 auto 24px;
}

.hero-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  backdrop-filter: blur(2px);
}

.button-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(28, 43, 58, 0.18);
}

.btn-primary {
  background: var(--paint-orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--paint-orange-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-full {
  width: 100%;
  text-align: center;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-accept {
  background: var(--success);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---- Sections ---- */
section {
  padding: 64px 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-lead {
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 640px;
}

.about-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--paint-orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  font-family: var(--font-display);
  position: relative;
  border: 3px dashed rgba(28, 43, 58, 0.35);
  outline: 3px solid var(--white);
  outline-offset: 6px;
}

.avatar-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--evergreen);
  border: 3px solid var(--cream);
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pill {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  margin: 4px 8px 0 0;
  color: var(--navy);
}

.text-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 1.02rem;
}

.text-box + .text-box {
  margin-top: 16px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.price-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.warranty-box {
  background: #fff4ec;
  border: 1px solid #f0c9a8;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.touchup-card {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-stars {
  color: var(--paint-orange);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-quote {
  font-style: italic;
  color: var(--navy);
  font-size: 0.96rem;
  margin: 0 0 14px;
}

.review-author {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray);
}

.review-sample-tag {
  font-weight: 400;
  font-style: italic;
  opacity: 0.75;
}

.section-divider {
  display: block;
  width: 100%;
  height: 70px;
}

.contact-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.contact-box a.email-link {
  color: var(--paint-orange);
  font-weight: 600;
  text-decoration: none;
}

footer {
  position: relative;
  padding: 36px 0 28px;
  text-align: center;
  color: #cdd8d2;
  font-size: 0.85rem;
  background: var(--evergreen);
  margin-top: 40px;
}

footer .footer-tagline {
  margin-top: 6px;
  color: #a9bcb2;
}

footer a {
  color: #e7ded0;
}

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--cream);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--paint-orange);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  font-size: 2.2rem;
  line-height: 1;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: var(--border);
  cursor: pointer;
  transition: color 0.1s ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--paint-orange);
}

.hint {
  color: var(--gray);
  font-size: 0.82rem;
  margin-top: 4px;
}

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.alert-error {
  background: #fbeceb;
  color: var(--danger);
  border: 1px solid #f0c4c0;
}

.alert-success {
  background: #eaf6ef;
  color: var(--success);
  border: 1px solid #bfe4cd;
}

.confirmation {
  text-align: center;
  padding: 20px 0;
}

.confirmation .big-check {
  font-size: 3rem;
  color: var(--success);
}

/* ---- Dashboard ---- */
.dash-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: flex-start;
}

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

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.appt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
}

.appt-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.1s ease;
}

.appt-item:hover {
  border-color: var(--paint-orange);
}

.appt-item.selected {
  border-color: var(--paint-orange);
  box-shadow: 0 0 0 2px rgba(239, 108, 48, 0.25);
}

.appt-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.appt-name {
  font-weight: 700;
}

.appt-address {
  color: var(--gray);
  font-size: 0.88rem;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.status-pending {
  background: #fdf1dc;
  color: #a5730c;
}

.status-accepted {
  background: #e3f5ea;
  color: var(--success);
}

.status-declined {
  background: #fbeceb;
  color: var(--danger);
}

.status-published {
  background: #e3f5ea;
  color: var(--success);
}

.detail-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 300px;
}

.detail-empty {
  color: var(--gray);
  text-align: center;
  padding: 80px 20px;
}

.detail-row {
  margin-bottom: 16px;
}

.detail-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 3px;
}

.detail-row .value {
  font-size: 1.02rem;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 800px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar-circle {
    margin: 0 auto;
  }
  .cards-2 {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
