/* =========================================================
   CheckMyReviews.com shared stylesheet
   ========================================================= */

/* Variables */
:root {
  --green: #79C76E;
  --green-hover: #66b45b;
  --green-dark: #006600;
  --green-soft: #eef8ec;
  --green-border: #cfe8ca;
  --yellow: #f5c518;
  --text: #333333;
  --muted: #777777;
  --bg: #f5f7f4;
  --card: #ffffff;
  --line: #e4eae2;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--green-dark); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: #003d00; text-decoration: underline; }

img { max-width: 100%; border: 0; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; color: var(--text); }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }

p { margin: 0 0 14px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
#header { background: var(--card); border-bottom: 1px solid var(--line); }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.logo img { display: block; height: 64px; width: auto; }

#login { display: flex; align-items: center; gap: 8px; }

#login a {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--green-dark);
}

#login a:hover { background: var(--green-soft); text-decoration: none; }
#login a:first-child { background: var(--green); color: #fff; }
#login a:first-child:hover { background: var(--green-hover); }

.header-search {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 0 16px;
}

.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; }

.greySub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

#menulocation { font-size: 14px; padding-bottom: 11px; white-space: nowrap; }
#menulocation a { font-weight: 600; margin-left: 6px; }

/* Main navigation */
#nav { background: var(--green); }
#nav .wrap { display: flex; flex-wrap: wrap; align-items: center; }

#nav a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
}

#nav a:hover { background: rgba(0, 0, 0, .12); text-decoration: none; }

/* Page layout */
#container {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  padding: 28px 0 40px;
  align-items: start;
}

/* Pages without a sidebar: add class "full" to #container */
#container.full { grid-template-columns: 1fr; }

/* Sidebar */
#leftCol {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#yellowNav {
  background: var(--yellow);
  color: #3a3000;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 14px 20px;
}

.cat-list { padding: 8px 20px 4px; }
.cat { padding: 14px 0; border-bottom: 1px solid #eef2ec; }
.cat:last-of-type { border-bottom: none; }

.cat-title { font-weight: 700; font-size: 15px; color: var(--green-dark); display: inline-block; margin-bottom: 4px; }

.cat ul { list-style: none; margin: 0; padding: 0; }

.cat li a {
  display: block;
  padding: 3px 0 3px 12px;
  font-size: 14px;
  color: var(--text);
  border-left: 2px solid var(--green-border);
}

.cat li a:hover { color: var(--green-dark); border-left-color: var(--green); text-decoration: none; }

.all-cats { padding: 16px 20px 20px; }

.all-cats a {
  display: block;
  text-align: center;
  padding: 11px 14px;
  font-weight: 700;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 8px;
}

.all-cats a:hover { background: var(--green); color: #fff; text-decoration: none; }

/* Cards and content blocks */
#companyDetailsContainerStatic { display: grid; gap: 24px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.pageTitle { font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.pageTiteMed { font-size: 22px; font-weight: 800; color: var(--green); margin: 0 0 14px; }

/* Business profile */
.profile {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: start;
}

.about { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eef2ec; }
.about .greySub { display: block; margin-bottom: 8px; color: var(--green-dark); }
.about p { margin: 0; }

#imageBox { text-align: center; }

#imageBox .main-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f2f5f1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

#imageBox .main-img img { display: block; width: 100%; height: auto; }

.thumbs { margin-top: 10px; display: flex; justify-content: center; gap: 6px; }
.thumbs img { border-radius: 4px; border: 2px solid var(--green-border); display: block; }
.viewlarger { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }

/* Info boxes */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #e8eee6;
}

.boxTitle {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 20px;
}

.greenBoxContent { background: var(--green-soft); padding: 18px 20px; }
.greenBoxFooter { height: 4px; background: var(--green); }

.refineLabel { font-weight: 700; margin-bottom: 6px; }
.textBold { font-weight: 700; }

.rating-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--green-border); }
.rating-row:last-child { border-bottom: none; }
.rating-row span:last-child { font-weight: 700; }

.cat-box strong { color: var(--green-dark); }
.cat-box ul { margin: 8px 0 0; padding-left: 20px; }

/* Reviews */
.reviews-title { font-size: 22px; font-weight: 800; color: var(--green); margin: 0 0 14px; }

.no-reviews {
  padding: 22px;
  background: var(--green-soft);
  border: 1px dashed var(--green-border);
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
}

.review {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review:last-child { border-bottom: none; }

/* Buttons */
.btn,
input[type="submit"],
input[type="button"],
button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}

.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover { background: var(--green-hover); color: #fff; text-decoration: none; }

.btn:focus-visible,
input[type="submit"]:focus-visible,
button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(121, 199, 110, .35); }

.btn.secondary {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}

.btn.secondary:hover { background: var(--green); color: #fff; }

button:disabled,
input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }

/* Forms */
label { display: inline-block; font-weight: 600; margin-bottom: 4px; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fafcfa;
  border: 1px solid #d5ddd2;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

textarea { min-height: 120px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(121, 199, 110, .25);
}

input[type="checkbox"],
input[type="radio"] { accent-color: var(--green); width: auto; margin-right: 6px; }

.form-row { margin-bottom: 16px; }

.required { color: var(--danger); }

/* Messages and validation */
.message,
.success {
  padding: 14px 18px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.error,
.validation,
.field-error {
  padding: 14px 18px;
  background: var(--danger-soft);
  border: 1px solid #f3c3bd;
  border-radius: 10px;
  color: var(--danger);
  margin-bottom: 16px;
}

span.error, span.validation { padding: 0; background: none; border: 0; margin: 0; font-size: 13px; }

/* Tables for lists and results */
table { border-collapse: collapse; }

.data-table,
.card table.list {
  width: 100%;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}

.data-table th,
.card table.list th {
  background: var(--green);
  color: #fff;
  text-align: left;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 16px;
}

.data-table td,
.card table.list td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2ec;
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: #fafcfa; }
.data-table tr:hover td { background: var(--green-soft); }

.topBorder { border-top: 1px solid var(--line); }

/* Lists and cards for providers and projects */
.listing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow .15s, transform .15s;
}

.listing:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .09); transform: translateY(-1px); }

.listing h3 a { color: var(--green-dark); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 0; }

.pagination a,
.pagination span {
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid var(--green-border);
  border-radius: 8px;
  font-weight: 600;
  background: var(--card);
}

.pagination a:hover { background: var(--green-soft); text-decoration: none; }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

/* Breadcrumbs and tags */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { font-weight: 600; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
  border-radius: 999px;
}

/* Footer */
#footer { background: #263a24; color: #cfe0cc; padding: 28px 0; }

#footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

#footer a { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .05em; }
#footer a:hover { color: var(--green); text-decoration: none; }
#footerInner { font-size: 13px; letter-spacing: .04em; }

/* Utilities */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 24px; }
.mb { margin-bottom: 24px; }
.hidden { display: none; }

/* Responsive */
@media (max-width: 900px) {
  #container { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  #imageBox { max-width: 280px; margin: 0 auto; order: -1; }
}

@media (max-width: 600px) {
  .info-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .pageTitle { font-size: 24px; }
  h1 { font-size: 24px; }
  #nav a { padding: 12px 14px; }
  .data-table { display: block; overflow-x: auto; }
}

/* Print */
@media print {
  #header, #nav, #leftCol, #footer { display: none; }
  #container { display: block; padding: 0; }
  .card, .box { box-shadow: none; border: 1px solid #ccc; }
}