/* ====================================================
   ARQ Interior Design Studio - Services page styles
   Loaded after custom.css by services.html only.
   Order: tokens, nav state, breadcrumb banner, main services,
   additional services, consultation CTA, breakpoints
   (widest to narrowest).
   ==================================================== */

:root {
  --sv-ivory: #fbf9f6;
  --sv-beige: #f3efe8;
  --sv-ink: #25221d;
  --sv-body: #625d55;
  --sv-gold: #97834c;
  --sv-gold-dark: #7a6733;
  --sv-line: #ddd3c0;
  --sv-section-y: 60px;
  --sv-head-gap: 32px;
}

/* active item in the shared navigation */
.main-menu ul li a[aria-current="page"] {
  color: var(--accent-secondary-color);
}

/* ---------- Shared helpers ---------- */
.sv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--accent-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sv-gold-dark);
}

.sv-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--sv-gold);
}

.sv-h2 {
  margin: 0 0 16px;
  font-family: var(--accent-font);
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--sv-ink);
}

.sv-sub {
  margin: 0 0 14px;
  font-family: var(--accent-font);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--sv-gold-dark);
}

.sv-lead {
  max-width: 640px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sv-body);
}

.sv-head {
  margin-bottom: var(--sv-head-gap);
}

/* ---------- Page banner ----------
   Markup and shared .page-header / .page-header-box rules are identical to the About page.
   The only banner rule About adds in its own stylesheet is the H1 size, repeated here. */
.page-header-box h1 {
  font-size: clamp(34px, 6vw, 72px);
}

/* ---------- 2. Main services ---------- */
.sv-main {
  background: var(--sv-ivory);
  padding: var(--sv-section-y) 0;
}

.sv-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sv-card {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  background: var(--sv-beige);
  border: 1px solid var(--sv-line);
  overflow: hidden;
}

.sv-card-media {
  position: relative;
  margin: 0;
  min-height: 260px;
}

.sv-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-in-out;
}

.sv-card:hover .sv-card-media img {
  transform: scale(1.05);
}

.sv-card-body {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
}

.sv-no {
  display: block;
  margin-bottom: 12px;
  font-family: var(--accent-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--sv-gold-dark);
}

.sv-card h3 {
  margin: 0 0 12px;
  font-family: var(--accent-font);
  font-size: clamp(22px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--sv-ink);
}

.sv-card p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sv-body);
}

.sv-link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 3px;
  font-family: var(--accent-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sv-gold-dark);
  border-bottom: 1px solid var(--sv-gold);
  transition: color 0.3s ease-in-out, letter-spacing 0.3s ease-in-out;
}

.sv-link i {
  margin-left: 8px;
  font-size: 11px;
}

.sv-link:hover {
  color: var(--sv-ink);
}

/* Our Expertise introduction: centred block (Specialized Services keeps its left-aligned intro) */
.sv-main .sv-head {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sv-main .sv-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 3. Additional services ---------- */
.sv-extra {
  background: var(--sv-beige);
  padding: var(--sv-section-y) 0;
  border-top: 1px solid var(--sv-line);
}

.sv-extra-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.sv-item {
  grid-column: span 2;
  position: relative;
  padding: 24px 26px 26px;
  background: var(--sv-ivory);
  border: 1px solid var(--sv-line);
}

.sv-item:nth-child(n + 4) {
  grid-column: span 3;
}

.sv-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 44px;
  height: 2px;
  background: var(--sv-gold);
  transition: width 0.5s ease-in-out;
}

.sv-item:hover::before {
  width: calc(100% + 2px);
}

.sv-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sv-item-top .sv-no {
  margin: 0;
}

.sv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 17px;
  color: var(--sv-gold-dark);
  border: 1px solid var(--sv-line);
  border-radius: 50%;
}

.sv-item h3 {
  margin: 0 0 8px;
  font-family: var(--accent-font);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sv-ink);
}

.sv-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sv-body);
}

/* ---------- 4. Consultation CTA ----------
   Same layout, frame and spacing as the About page CTA (.ab-cta in about-page.css).
   The section itself is ivory (not About's beige) so it separates clearly from the beige Specialized Services section above. */
.sv-cta {
  background: var(--sv-ivory);
  padding: 52px 0;
  text-align: left;
}

.sv-cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 48px;
  align-items: center;
  width: fit-content;
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 48px;
  background: #fbf9f6;
  border: 1px solid rgba(151, 131, 76, 0.55);
}

/* architectural corner accents (as on About) */
.sv-cta-banner::before,
.sv-cta-banner::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid #97834c;
}

.sv-cta-banner::before {
  top: -9px;
  left: -9px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.sv-cta-banner::after {
  right: -9px;
  bottom: -9px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.sv-cta-title {
  margin: 0 0 14px;
  font-family: var(--accent-font);
  font-size: clamp(34px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #25221d;
  text-wrap: balance;
}

.sv-cta-text {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #4f4a42;
  text-wrap: pretty;
}

.sv-cta-banner .btn-default {
  padding: 21px 56px 21px 32px;
  font-size: 16px;
  white-space: nowrap;
}

/* the site's custom cursor follower (gold dot) is hidden while the pointer is over the CTA, as on About */
body:has(.sv-cta:hover) .cb-cursor {
  display: none;
}

/* ====================================================
   Breakpoints - widest to narrowest
   ==================================================== */
@media only screen and (max-width: 1279px) {
  .sv-cta-banner {
    padding: 34px 40px;
  }

  .sv-card {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  }

  .sv-card-body {
    padding: 22px 22px 20px;
  }

  .sv-item {
    padding: 22px 22px 24px;
  }
}

@media only screen and (max-width: 1099px) {
  .sv-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .sv-card {
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  }
}

@media only screen and (max-width: 991px) {
  .sv-cta-banner {
    grid-template-columns: minmax(0, 1fr);
    justify-content: normal;
    width: auto;
    row-gap: 24px;
    padding: 36px 34px;
  }

  .sv-cta-title {
    font-size: clamp(30px, 5.2vw, 40px);
  }

  :root {
    --sv-section-y: 48px;
    --sv-head-gap: 28px;
  }

  .sv-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .sv-item,
  .sv-item:nth-child(n + 4) {
    grid-column: span 1;
  }

  .sv-item:last-child {
    grid-column: 1 / -1;
  }
}

@media only screen and (max-width: 767px) {
  .sv-cta {
    padding: 40px 0;
  }

  .sv-cta-banner {
    padding: 30px 22px 32px;
  }

  .sv-cta-text {
    font-size: 17px;
  }

  .sv-cta-action {
    justify-self: stretch;
  }

  .sv-cta-banner .btn-default {
    display: block;
    padding: 20px 52px 20px 30px;
    font-size: 17px;
    text-align: center;
  }

  :root {
    --sv-section-y: 40px;
    --sv-head-gap: 24px;
  }

  .sv-lead {
    font-size: 16px;
  }

  .sv-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .sv-card-media {
    min-height: 0;
    height: 210px;
  }

  .sv-card-body {
    padding: 22px 20px 22px;
  }

  .sv-extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sv-item:last-child {
    grid-column: auto;
  }

}

/* content must never depend on the scroll-reveal script */
@media (prefers-reduced-motion: reduce) {
  .wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
  }
}
