/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f0f0;
  color: #2c3e50;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

header .site-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

header .breadcrumb {
  font-size: 0.8rem;
  color: #888;
}

header .breadcrumb a {
  color: #3a9fd5;
  text-decoration: none;
}

header .breadcrumb a:hover { text-decoration: underline; }

nav.lang-nav {
  display: flex;
  gap: 6px;
}

nav.lang-nav a {
  display: inline-block;
  padding: 4px 8px;
  background-color: #3a9fd5;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background-color 0.2s;
}

nav.lang-nav a:hover,
nav.lang-nav a.active { background-color: #2980b9; }

/* ── SIDEBAR NAV (Handyman inner pages) ── */
.layout {
  display: flex;
  min-height: calc(100vh - 57px);
}

aside.sidebar {
  width: 220px;
  min-width: 220px;
  background-color: #2c3e50;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

/* Sidebar title as a link */
aside.sidebar .sidebar-title-link {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}
aside.sidebar .sidebar-title-link:hover { color: #3a9fd5; border-left: none; background: none; }

aside.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

aside.sidebar a:hover {
  background-color: rgba(255,255,255,0.07);
  color: #fff;
  border-left-color: #3a9fd5;
}

aside.sidebar a.active {
  background-color: rgba(58,159,213,0.18);
  color: #fff;
  border-left-color: #3a9fd5;
  font-weight: 700;
}

aside.sidebar .sb-icon {
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
}

aside.sidebar .sidebar-back {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.5) !important;
}
aside.sidebar .sidebar-back:hover {
  color: #fff !important;
  background: none;
  border-left-color: transparent;
}

/* ── MAIN CONTENT ── */
main.content {
  flex: 1;
  padding: 48px 56px;
  max-width: 860px;
}

main.content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c3e50;
}

main.content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #2c3e50;
}

main.content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
}

main.content .tag {
  display: inline-block;
  background: #e8f4fb;
  color: #2980b9;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ── CARD GRID (category / menu pages) ── */
.card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 57px);
  padding: 40px 20px;
}

.card-grid h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.card-grid .subtitle {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 48px;
  text-align: center;
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background-color: #3a9fd5;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: background-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.card:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

.card .icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.card .label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── MENU LIST (Handyman sub-pages) ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  background-color: #3a9fd5;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s, transform 0.15s;
}

.menu-card:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.menu-card .m-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  color: #2c3e50;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3a9fd5;
}

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

.btn {
  display: inline-block;
  padding: 11px 28px;
  background-color: #3a9fd5;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn:hover { background-color: #2980b9; }

/* ── TABLE ── */
table.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9rem;
}

table.price-table th {
  background-color: #3a9fd5;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

table.price-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e0e0e0;
  color: #444;
}

table.price-table tr:nth-child(even) td { background-color: #f7f7f7; }

/* ── CALENDAR GRID ── */
.avail-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.avail-day {
  padding: 10px 4px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
}

.avail-day.available { background: #d4edda; color: #155724; }
.avail-day.busy      { background: #f8d7da; color: #721c24; }
.avail-day.header    { background: transparent; color: #888; font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .layout { flex-direction: column; }
  aside.sidebar { width: 100%; min-width: unset; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  aside.sidebar a { padding: 8px 12px; font-size: 0.8rem; }
  main.content { padding: 24px 20px; }
}
