/*
Theme Name: AJS-SK Property Care
Version: 1.0.0
Text Domain: ajs-sk
*/
/* AJS-SK Real Estate Inc. */
:root {
  color-scheme: light;
  --navy: #142333;
  --navy-deep: #101d2b;
  --ivory: #f7f4ee;
  --copper: #b76b46;
  --button: #964c2b;
  --ink: #102131;
  --muted: #43515a;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
p, li { line-height: 1.65; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(2.05rem, 4.5vw, 3.2rem); line-height: 1.08; }
.shell { width: min(100% - 7vw, 92rem); margin-inline: auto; }
:focus-visible { outline: 3px solid #d98150; outline-offset: 5px; }
.skip { position: absolute; transform: translateY(-150%); padding: .75rem 1.25rem; background: white; z-index: 5; }
.skip:focus { transform: translateY(0); }

.header { background: var(--navy); color: white; position: relative; z-index: 1; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .01em; }
.brand small { font-size: 1rem; }
.brand-mark { width: 66px; height: 44px; border-right: 1px solid var(--copper); position: relative; }
.brand-mark::before {
  content: "";
  width: 32px;
  height: 32px;
  border: solid #dd8e61;
  border-width: 5px 0 0 5px;
  transform: rotate(45deg);
  position: absolute;
  left: 10px;
  top: 9px;
}
.brand-mark i {
  position: absolute;
  left: 20px;
  bottom: 8px;
  width: 5px;
  height: 5px;
  background: #dd8e61;
  box-shadow: 7px 0 #dd8e61, 0 7px #dd8e61, 7px 7px #dd8e61;
}
nav { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); }
nav a { text-decoration: none; font-weight: 650; }
nav a:hover { text-decoration: underline; text-underline-offset: .45em; text-decoration-color: var(--copper); }
.nav-contact { border: 1px solid var(--copper); padding: .65rem 1.15rem; border-radius: .25rem; }
.menu-toggle { display: none; }

.hero { background: var(--navy-deep) url("assets/hero.jpg") center 53% / cover no-repeat; color: white; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #101d2b 0%, #101d2bea 25%, #101d2b80 56%, #101d2b0d 92%); }
.hero-inner { position: relative; min-height: 490px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 3.25rem 2vw; }
.location { color: #f1b48f; font-size: .8rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .85rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800; max-width: 12.5em; line-height: 1; margin-bottom: 1rem; text-wrap: balance; }
.hero p:not(.location) { max-width: 36rem; color: #f5f0ea; margin-bottom: 1.65rem; }
.button { display: inline-flex; align-items: center; gap: .85rem; background: var(--button); color: white; text-decoration: none; border-radius: .35rem; padding: .9rem 1.2rem; font-weight: 750; }
.button:hover { background: #7c3d22; }

.services { padding-block: 2.25rem 4rem; }
.services h2 { margin-bottom: 1.25rem; }
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: .9rem; }
.service { grid-column: span 2; border: 1px solid #b87956; border-radius: .55rem; overflow: hidden; background: #fffdfa; }
.service.featured { grid-column: span 3; }
.service summary { position: relative; display: flex; align-items: end; min-height: clamp(9rem, 18vw, 15rem); isolation: isolate; cursor: pointer; list-style: none; overflow: hidden; }
.service.featured summary { min-height: clamp(12rem, 23vw, 19rem); }
.service summary::-webkit-details-marker { display: none; }
.service summary:focus-visible { outline-offset: -5px; }
.service-photo { position: absolute; inset: 0; z-index: -2; background: var(--navy) center / cover no-repeat; transition: transform .25s ease; }
.service summary:hover .service-photo { transform: scale(1.04); }
.service summary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0d1721f5, #0d172100 75%); }
.rental { background-image: url("assets/rental.jpg"); }
.maintenance { background-image: url("assets/maintenance.jpg"); }
.residential { background-image: url("assets/residential.jpg"); }
.commercial { background-image: url("assets/commercial.jpg"); }
.investment { background-image: url("assets/investment.jpg"); }
.service-label { display: flex; align-items: center; gap: .75rem; width: 100%; color: white; font-weight: 750; font-size: clamp(1.05rem, 1.75vw, 1.6rem); line-height: 1.16; padding: 1rem 1.1rem; }
.service-label::before { content: ""; width: 3px; flex: 0 0 3px; align-self: stretch; background: #e99663; }
.service-label::after { content: "+"; margin-left: auto; font-size: 1.35em; color: #f5b889; }
.service[open] .service-label::after { content: "−"; }
.service ul { padding: .1rem 1.2rem 0 2rem; }
.service li + li { margin-top: .25rem; }

.portfolio { border-top: 1px solid #d9c7b8; padding-block: 2rem 3rem; }
.portfolio h2 { margin-bottom: 1rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.portfolio-card { background: #fffdfa; border: 1px solid #d9c7b8; border-top: 3px solid var(--copper); border-radius: .35rem; padding: 1.25rem; overflow-wrap: anywhere; }
.portfolio-card h3 { margin-bottom: .5rem; }
.portfolio-category { color: var(--button); font-size: .9rem; font-weight: 700; margin-bottom: .5rem; }
.portfolio-description { white-space: pre-line; margin-bottom: 0; }

.about { background: #eee8df; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.about-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.about-photo { min-height: 340px; border: 1px solid var(--copper); border-radius: .35rem; background: var(--navy) url("assets/about.jpg") center / cover no-repeat; }
.about p, .about li { color: var(--muted); }
.about h2 { margin-bottom: 1rem; }
.about h3 { margin-bottom: .5rem; font-size: 1.35rem; }
.about ul { margin: 0; padding-left: 1.2rem; }
.about li::marker { color: var(--button); }

.estimate { background: var(--navy); color: white; padding-block: clamp(2.5rem, 6vw, 5rem); }
.estimate-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.estimate h2 { margin-bottom: 1rem; }
.estimate p:last-child { margin-bottom: 0; }
.contact-status { color: #edc1a7; }
.estimate address { padding: .5rem 0 .5rem 1.25rem; border-left: 2px solid var(--copper); font-style: normal; line-height: 1.65; }
.footer { background: var(--navy-deep); color: #e5ddd6; padding-block: 1.2rem; font-size: .88rem; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 70px; flex-wrap: wrap; }
  .menu-toggle:not([hidden]) { display: block; color: white; background: transparent; border: 1px solid var(--copper); border-radius: .25rem; padding: .55rem .85rem; font: inherit; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + nav { display: none; }
  nav { flex: 1 0 100%; flex-wrap: wrap; padding-bottom: 1rem; gap: .85rem 1.25rem; }
  .hero { background-position: 69% center; }
  .hero::before { background: linear-gradient(0deg, #101d2b 2%, #101d2beb 28%, #101d2b75 60%, #101d2b14 100%); }
  .hero-inner { min-height: 520px; justify-content: end; padding: 9rem 0 2rem; }
  .hero h1 { text-wrap: initial; }
  .services { padding-block: 2rem 2.5rem; }
  .service-grid, .about-inner, .estimate-inner { grid-template-columns: minmax(0, 1fr); }
  .service, .service.featured { grid-column: auto; }
  .service summary, .service.featured summary { min-height: clamp(12rem, 55vw, 20rem); }
  .about-photo { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-photo { transition: none; }
}

.service-link { display: flex; min-height: clamp(12rem, 22vw, 19rem); align-items: end; position: relative; isolation: isolate; text-decoration: none; background: var(--navy); }
.service-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.service-link::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #101d2b, transparent 78%); z-index: -1; }
.service-link .service-label { margin: 0; }
.service-link .service-label::after { content: "→"; }
.portfolio-card img { display: block; width: 100%; height: auto; margin-bottom: 1rem; }
.detail { max-width: 66rem; padding-block: 3rem; }
.detail h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.06; }
.detail img { height: auto; }
.detail .button { margin-top: 1.5rem; }
/* Photo-led service directory and framed property portfolio. */
.hero-inner { min-height: 540px; }
.hero h1 { max-width: 11.8em; text-wrap: initial; }
.services { padding-top: clamp(2.5rem, 6vw, 5rem); }
.service-link { border-radius: .3rem; }
.service-link:hover .service-image { opacity: .82; }
.service-label { padding: 1.2rem; }
.portfolio-card { border-radius: .2rem; padding: 1.5rem; }
.portfolio-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.about-photo { outline: 1px solid var(--copper); outline-offset: .5rem; }
.estimate a { text-underline-offset: .2em; }
@media (max-width: 760px) {
    .hero-inner { min-height: 500px; }
    .about-photo { margin-inline: .5rem; }
}
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 1.5rem; }
.section-intro h2 { margin: 0; }
.section-intro p { max-width: 29rem; margin: 0; color: var(--muted); }
.hero::before { background: linear-gradient(90deg, #101d2bf5, #101d2bd9 31%, #101d2b23 75%); }
.estimate .button { margin-top: .3rem; }
.contact-card { border: 1px solid #b76b46; border-radius: .3rem; padding: 1.4rem; background: #101d2b; }
.contact-card address { border: 0; padding: 0; }
.contact-card strong { display: inline-block; font-size: 1.2rem; margin-bottom: .45rem; }
.social-link { display: inline-flex; gap: .35rem; margin: 1rem .85rem 0 0; color: #f1b48f; }
@media (max-width: 760px) {
    .section-intro { align-items: start; flex-direction: column; }
    .hero::before { background: linear-gradient(0deg, #101d2b 3%, #101d2bf0 32%, #101d2b10 90%); }
}
.header { box-shadow: 0 1px 0 #eab28a35; }
.hero-inner { min-height: clamp(32rem, 48vw, 43rem); }
.hero h1 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.055em; line-height: .98; max-width: 12em; font-size: clamp(2.8rem, 6.3vw, 6rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.5rem; }
.hero-services { color: #fff; text-underline-offset: .35em; }
.section-intro { padding-bottom: 1.25rem; border-bottom: 1px solid #caa07f; }
.section-intro h2, .about h2, .estimate h2, .portfolio h2 { font-family: Georgia, serif; font-weight: 500; }
.service-grid { gap: clamp(.9rem, 1.7vw, 1.5rem); }
.service { border: 0; border-radius: 0; }
.service-link { min-height: clamp(12rem, 19vw, 16rem); border-radius: 0; }
.service.featured .service-link { min-height: clamp(16rem, 24vw, 22rem); }
.service-link .service-label { padding: 1.25rem; }
.service-link .service-label::after { display: grid; place-items: center; flex: 0 0 2.25rem; height: 2.25rem; border: 1px solid #e6ad85; border-radius: 50%; font-size: 1.15rem; }
.service-link:hover .service-label::after { background: #efbf9e; color: #142333; }
.contact-card { box-shadow: 7px 7px 0 #b76b4640; }
.socials { display: flex; gap: .65rem; margin-top: 1rem; }
.social-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #b76b46; border-radius: 50%; color: #f1b48f; }
.social-icon svg { width: 1.2rem; height: 1.2rem; }
a.social-icon:hover { background: #f1b48f; color: #142333; }
@media (max-width: 760px) {
    .hero-inner { min-height: 34rem; }
    .service.featured .service-link { min-height: 14rem; }
}
@media (max-width: 760px) {
    .header-inner { min-height: 64px; }
    .brand { gap: .65rem; }
    .brand strong { font-size: 1.45rem; }
    .brand small { font-size: .84rem; }
    .brand-mark { width: 52px; }
    .brand-mark::before { left: 6px; }
    .brand-mark i { left: 16px; }
    .menu-toggle:not([hidden]), nav a { min-height: 44px; }
    nav a { display: inline-flex; align-items: center; }
    .hero { background-position: 70% 45%; }
    .hero::before { background: linear-gradient(0deg, #101d2b 0%, #101d2bf2 37%, #101d2b60 72%, #101d2b14 100%); }
    .hero-inner { min-height: clamp(31rem, 70svh, 37rem); padding: 8rem 0 1.65rem; }
    .hero h1 { font-size: clamp(2.4rem, 9.2vw, 3.75rem); max-width: 13em; }
    .hero p:not(.location) { margin-bottom: 1rem; }
    .hero-actions { width: 100%; gap: .45rem; flex-direction: column; align-items: stretch; }
    .hero-actions .button { justify-content: space-between; }
    .hero-services { display: flex; gap: .45rem; align-items: center; min-height: 44px; }
    .section-intro { gap: .65rem; }
    .service-link, .service.featured .service-link { min-height: clamp(12rem, 54vw, 16rem); }
    .service-link .service-label { padding: .85rem; }
    .estimate-inner { gap: 1.35rem; }
    .contact-card { padding: 1rem; }
    .social-icon { width: 44px; height: 44px; }
}
.service-copy { width: 100%; }
.service-link .service-copy .service-label { padding-bottom: .3rem; }
.service-copy p { margin: 0; padding: 0 1.25rem 1rem 2.2rem; color: #fff; font-size: .9rem; line-height: 1.35; }
.service-link::before { background: linear-gradient(0deg, #101d2b 4%, #101d2be5 26%, transparent 90%); }
@media (max-width: 760px) {
    .service-copy p { padding-inline: 1.8rem .85rem; }
}
