/*
Theme Name: SVC Marketplace
Author: SVC
Description: Responsive UAE classifieds and advertiser dashboard.
Version: 1.0.0
Requires PHP: 7.4
*/
:root {
  --ink: #152e2d;
  --forest: #12473c;
  --paper: #faf9f4;
  --line: #d9ded6;
  --muted: #49675a;
  --accent: #d7fb81;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    sans-serif;
}
a {
  color: var(--forest);
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ad6400;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  background: white;
  padding: 1rem;
  z-index: 9;
}
.wrap,
.bar {
  width: min(1220px, 93%);
  margin: auto;
}
.bar,
nav,
.actions,
.section-head {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.bar,
.section-head {
  justify-content: space-between;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar {
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 2.25rem;
  letter-spacing: -0.085em;
  line-height: 1;
  text-decoration: none;
}
.brand span {
  font: 650 0.67rem/1.2 system-ui;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 7rem;
}
.bar nav a {
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
}
.action,
button,
input[type='submit'] {
  border: 0;
  background: var(--forest);
  color: white;
  border-radius: 0.55rem;
  padding: 0.8rem 1.15rem;
  font: 650 1rem system-ui;
  cursor: pointer;
  text-decoration: none;
}
main {
  min-height: 60vh;
  padding: 2rem 0 4rem;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 2.1rem 0 1rem;
}
h3 {
  font-size: 1.18rem;
  margin: 0.45rem 0;
}
.hero {
  background: var(--forest);
  color: white;
  border-radius: 1.2rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.hero div {
  align-self: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}
.hero h1 {
  margin: 0.7rem 0;
  font-size: clamp(3.2rem, 6.5vw, 6.6rem);
}
.hero small,
.card small {
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.hero small {
  color: var(--accent);
}
.hero img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.search,
.contacts,
.svc-form,
.account-grid section,
#loginform {
  border: 1px solid var(--line);
  background: white;
  border-radius: 0.85rem;
  padding: 1.25rem;
}
.search {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0 2rem;
}
.search label {
  flex: 1 1 150px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
}
input,
select,
textarea {
  display: block;
  font: inherit;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #a5b4a9;
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  margin-top: 0.25rem;
}
input[type='checkbox'] {
  width: auto;
  display: inline;
}
.price {
  flex-basis: 100%;
}
.price label {
  max-width: 14rem;
  display: inline-block;
  margin-right: 1rem;
}
.section-head {
  margin: 2.2rem 0 0.9rem;
}
.section-head h2 {
  margin: 0;
}
.terms,
.grid,
.account-grid {
  display: grid;
  gap: 1rem;
}
.terms {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.terms a,
.card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
}
.terms a,
.card a {
  color: inherit;
  text-decoration: none;
}
.terms a {
  padding: 0.9rem 1rem;
}
.terms span,
.card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card a {
  display: block;
  height: 100%;
}
.card-img,
.type-art {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.type-art {
  display: grid;
  align-content: end;
  background: #dce6d9;
  color: #315749;
  font-weight: 700;
  padding: 1rem;
}
.card-copy {
  padding: 1.05rem;
}
.card small {
  color: var(--muted);
  font-size: 0.67rem;
}
.detail,
.svc-form,
#loginform {
  max-width: 780px;
}
.detail {
  margin: auto;
}
.cover,
.prose img {
  max-width: 100%;
  height: auto;
}
.cover {
  border-radius: 0.8rem;
}
.contacts {
  margin: 1.2rem 0;
}
.contacts h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}
.actions a {
  display: grid;
  place-items: center;
  background: var(--forest);
  color: white;
  border-radius: 50%;
  width: 46px;
  height: 46px;
}
.prose {
  overflow-wrap: anywhere;
}
.account-grid {
  grid-template-columns: 1fr 1fr;
}
.svc-form {
  display: grid;
  gap: 1rem;
}
.notice {
  padding: 1rem;
  background: #e1edce;
}
.page-numbers {
  padding: 0.4rem;
}
.reviews {
  margin-top: 2rem;
}
.comment-list {
  padding-left: 1rem;
}
footer {
  background: #123d35;
  color: white;
  padding: 1.5rem 0;
}
footer a {
  color: white;
}
button:hover,
.action:hover {
  background: #245f50;
}
.card:hover,
.terms a:hover {
  border-color: var(--forest);
}
@media (max-width: 800px) {
  .terms,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bar nav {
    order: 3;
    width: 100%;
    gap: 1rem;
  }
  .hero {
    grid-template-columns: 1.2fr 1fr;
  }
}
@media (max-width: 560px) {
  .hero,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .hero img {
    height: 170px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .terms {
    gap: 0.5rem;
  }
  .wrap,
  .bar {
    width: 92%;
  }
  main {
    padding-top: 1rem;
  }
  .search {
    align-items: stretch;
  }
  .search button {
    width: 100%;
  }
  .section-head {
    align-items: baseline;
  }
  .section-head a {
    font-size: 0.85rem;
  }
}

.category-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  color: var(--forest);
  margin: 0 0 0.6rem;
}
