/*
Theme Name: WCSHM Modern
Theme URI: https://wcshm.com/
Author: WCSHM
Description: A responsive, resident-focused theme for West Coast Seniors Housing Management.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: wcshm
*/

:root {
  --navy: #102f35;
  --navy-deep: #092126;
  --sage: #8fa89d;
  --sage-light: #dce7e0;
  --cream: #f7f3eb;
  --sand: #e8ddcd;
  --gold: #c69c61;
  --ink: #163036;
  --muted: #647579;
  --white: #fff;
  --line: rgba(16, 47, 53, .14);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.page-shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { margin-bottom: 20px; color: #657d75; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light, .light { color: rgba(255,255,255,.78); }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; }
.button { min-height: 54px; padding: 0 24px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--navy); }
.button-navy { background: var(--navy); color: var(--white); }
.text-link { padding-bottom: 5px; border-bottom: 1px solid currentColor; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 94px; display: flex; align-items: center; gap: 44px; padding: 0 max(40px, calc((100vw - 1240px)/2)); color: var(--navy); background: rgba(247,243,235,.96); border-bottom: 1px solid rgba(16,47,53,.13); box-shadow: 0 8px 30px rgba(9,33,38,.06); }
.brand { margin-right: auto; }
.brand-lockup { margin-right: auto; display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 43px; height: 43px; object-fit: contain; }
.brand-words { display: grid; color: #3c2023; line-height: 1; }
.brand-words strong { font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-words small { margin-top: 5px; font-size: .54rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.custom-logo-link img { width: auto; max-width: 246px; max-height: 58px; }
.desktop-nav { display: flex; gap: 28px; font-size: .78rem; font-weight: 700; }
.desktop-nav .menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.desktop-nav .sub-menu { position: absolute; min-width: 210px; margin: 12px 0 0; padding: 16px; background: var(--navy-deep); list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.desktop-nav li { position: relative; }
.desktop-nav li:hover > .sub-menu, .desktop-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.desktop-nav .sub-menu li + li { margin-top: 9px; }
.desktop-nav a { opacity: .84; transition: opacity .2s; }
.desktop-nav a:hover { opacity: 1; }
.header-cta { display: grid; place-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(16,47,53,.48); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; display: grid; gap: 5px; padding: 10px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 23px; height: 2px; background: var(--navy); }
.mobile-menu nav { position: absolute; top: 50px; right: 0; width: 230px; padding: 20px; display: grid; gap: 12px; color: white; background: var(--navy-deep); box-shadow: 0 20px 35px rgba(0,0,0,.24); }
.mobile-menu .menu, .mobile-menu .sub-menu { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mobile-menu .sub-menu { gap: 8px; padding: 9px 0 0 14px; color: rgba(255,255,255,.74); }
.site-header--solid { position: relative; background: rgba(247,243,235,.98); }
.admin-bar .site-header:not(.site-header--solid) { top: 32px; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 14px; color: var(--navy); background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; min-height: 880px; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy-deep); }
.hero-image { position: absolute; inset: 0; background: url('assets/hero-welcome.jpeg') center/cover no-repeat; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,25,29,.92) 0%, rgba(7,30,34,.75) 38%, rgba(7,30,34,.14) 74%), linear-gradient(0deg, rgba(6,27,31,.35), transparent 48%); }
.hero-content { position: relative; padding-top: 80px; }
.hero-content h1 { max-width: 730px; margin-bottom: 30px; font-size: clamp(3.8rem, 7vw, 7.1rem); }
.hero-copy { max-width: 640px; margin-bottom: 38px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; }
.button-row { display: flex; align-items: center; gap: 32px; }
.hero-stats { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--cream); color: var(--navy); }
.hero-stats div { min-height: 126px; display: flex; align-items: center; gap: 16px; padding: 26px 38px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { font: 400 clamp(2rem, 4vw, 3.6rem)/1 Georgia,serif; }
.hero-stats span { max-width: 105px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; line-height: 1.35; text-transform: uppercase; }

.welcome { display: grid; grid-template-columns: .94fr 1fr; gap: clamp(70px, 9vw, 145px); align-items: center; padding-block: 160px; }
.welcome-images { position: relative; min-height: 670px; }
.image-tall { width: 74%; height: 610px; object-fit: cover; }
.image-small { position: absolute; right: 0; bottom: 22px; width: 47%; height: 330px; object-fit: cover; border: 12px solid white; }
.image-note { position: absolute; left: -30px; bottom: 5px; width: 220px; padding: 24px; background: var(--navy); color: white; font: italic 1.25rem/1.35 Georgia,serif; }
.welcome-copy h2 { max-width: 610px; margin-bottom: 28px; }
.welcome-copy .lead { color: var(--ink); font-size: 1.25rem; line-height: 1.6; }
.welcome-copy p:not(.eyebrow) { max-width: 610px; color: var(--muted); }
.welcome-copy .text-link { margin-top: 20px; color: var(--navy); }

.services { padding-block: 135px; background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1.6fr .65fr; gap: 90px; align-items: end; margin-bottom: 65px; }
.section-heading h2 { max-width: 800px; margin: 0; }
.section-heading > p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { position: relative; min-height: 390px; padding: 50px 40px 42px; border-right: 1px solid var(--line); }
.service-card:last-child { border: 0; }
.service-card > svg, .service-icon { width: 34px; height: 34px; margin-bottom: 54px; color: #6b877d; font: 400 2.25rem/1 Georgia, serif; }
.card-number { position: absolute; top: 42px; right: 34px; color: #8c9a9a; font: italic 1rem Georgia,serif; }
.service-card h3 { margin-bottom: 18px; font: 400 1.75rem/1.2 Georgia,serif; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-card a { position: absolute; left: 40px; bottom: 42px; display: inline-flex; align-items: center; gap: 8px; color: #567369; font-size: .78rem; font-weight: 700; }
.service-button { margin-top: 48px; }

.difference { display: grid; grid-template-columns: 1fr 1fr; min-height: 800px; background: var(--navy); color: var(--white); }
.difference-photo img { width: 100%; height: 100%; object-fit: cover; }
.difference-copy { padding: clamp(70px, 9vw, 135px); }
.difference-copy h2 { margin-bottom: 34px; font-size: clamp(2.8rem, 5vw, 5.2rem); }
.difference-copy > p:not(.eyebrow) { max-width: 650px; color: rgba(255,255,255,.72); }
.difference-copy ul { display: grid; gap: 13px; margin: 35px 0 42px; padding: 0; list-style: none; }
.difference-copy li { padding-left: 27px; position: relative; color: rgba(255,255,255,.9); font-size: .9rem; }
.difference-copy li::before { content: ''; position: absolute; top: .65em; left: 0; width: 12px; height: 1px; background: var(--gold); }

.communities { min-height: 620px; display: grid; grid-template-columns: .9fr 1.1fr; margin-block: 135px; background: var(--sage); }
.community-panel { padding: 80px; background: var(--navy); color: var(--white); }
.community-panel h2 { margin-bottom: 24px; font-size: clamp(2.8rem, 4.5vw, 4.8rem); }
.community-panel > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.community-panel .button { margin-top: 25px; }
.community-map { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 46px 34px 34px; background: var(--sage-light); }
.community-map img { display: block; width: min(100%, 620px); max-height: 430px; object-fit: contain; }
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; }
.map-legend span { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

.news { padding-bottom: 140px; }
.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.news-heading h2 { margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-grid article > span { display: block; margin-bottom: 12px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-art { height: 285px; display: grid; place-items: center; padding: 40px; color: white; text-align: center; background: var(--navy); }
.news-art b { font: 400 2.1rem/1.15 Georgia,serif; letter-spacing: -.02em; }
.art-2 { background: #768e85; }.art-3 { color: var(--navy); background: var(--sand); }
.news-grid h3 { margin: 22px 0 14px; font: 400 1.4rem/1.3 Georgia,serif; }
.news-grid article > a { display: inline-flex; align-items: center; gap: 7px; color: #58736b; font-size: .75rem; font-weight: 700; }

footer { padding-top: 85px; background: var(--navy-deep); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .5fr 1.35fr 1.25fr; gap: 58px; padding-bottom: 75px; }
.footer-brand .brand-lockup { margin-bottom: 25px; }.footer-brand .brand-words { color: white; }.footer-brand p { max-width: 300px; }
footer h3 { color: white; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
footer h2 { color: white; font: 700 .72rem/1.4 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
footer a, footer p { display: block; margin-bottom: 9px; font-size: .82rem; }
.footer-contact > strong { display: block; margin-bottom: 8px; color: white; font-size: .76rem; letter-spacing: .1em; }
.footer-contact address { margin-top: 20px; font-style: normal; }
.footer-contact address b { display: block; margin: 17px 0 5px; color: white; font-size: .76rem; letter-spacing: .04em; }
.footer-contact address a { margin-bottom: 2px; }
footer .menu { margin: 0; padding: 0; list-style: none; }
.footer-ack p { line-height: 1.7; }
.legal { display: flex; gap: 24px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; }

.inner-hero { min-height: 470px; display: flex; align-items: end; padding-block: 100px 80px; color: white; background-color: var(--navy); background-position: center; background-size: cover; }
.inner-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3.5rem, 7vw, 7rem); }
.inner-hero .page-shell > p:not(.eyebrow) { max-width: 700px; margin-top: 24px; color: rgba(255,255,255,.76); font-size: 1.12rem; }
.entry-content { padding-block: 100px 130px; font-size: 1.05rem; }
.entry-content > * { max-width: 820px; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content h2 { margin: 70px 0 24px; font-size: clamp(2.2rem, 4.5vw, 4.4rem); }
.entry-content h3 { margin: 48px 0 18px; font: 400 1.75rem/1.25 Georgia, serif; }
.entry-content p, .entry-content li { color: #536b70; }
.entry-content a { color: #496e64; text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; }
.entry-narrow { width: min(880px, calc(100% - 80px)); }
.entry-featured { margin: -40px 0 70px; }
.front-editor-content { margin-block: 24px; }
.archive-grid, .community-archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-block: 100px 60px; }
.portfolio-section { padding-block: 100px 60px; }
.portfolio-heading { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 50px; margin-bottom: 45px; }
.portfolio-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.2rem); }
.portfolio-heading > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.portfolio-filters button { padding: 12px 17px; border: 1px solid #9bada7; border-radius: 999px; color: var(--navy); background: transparent; font: 700 .72rem/1 Arial,sans-serif; cursor: pointer; }
.portfolio-filters button:hover, .portfolio-filters button.active { border-color: var(--navy); color: white; background: var(--navy); }
.portfolio-count { margin: 24px 0; color: var(--muted); font-size: .76rem; font-weight: 700; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 34px 24px; }
.portfolio-card { overflow: hidden; background: white; box-shadow: 0 10px 35px rgba(16,47,53,.09); }
.portfolio-card[hidden] { display: none; }
.portfolio-image { display: block; height: 220px; overflow: hidden; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portfolio-image:hover img { transform: scale(1.025); }
.portfolio-card-body { padding: 27px; }
.portfolio-card-body > span { color: #58736b; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.portfolio-card h3 { min-height: 58px; margin: 10px 0 22px; font-size: 1.55rem; }
.portfolio-card dl { margin: 0 0 24px; border-top: 1px solid var(--line); }
.portfolio-card dl div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.portfolio-card dt { color: var(--muted); }.portfolio-card dd { margin: 0; font-weight: 700; }
.portfolio-link { display: inline-flex; align-items: center; gap: 6px; color: #567369; font-size: .76rem; font-weight: 700; }
.archive-card, .community-card { border: 1px solid var(--line); background: white; }
.archive-card > a img, .community-card-image img { width: 100%; height: 260px; object-fit: cover; }
.archive-card > div, .community-card > div { padding: 30px; }
.archive-card h2, .community-card h2 { margin: 8px 0 14px; font-size: 1.8rem; }
.archive-card p, .community-card p { color: var(--muted); font-size: .92rem; }
.card-meta { color: #637d75; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-placeholder { min-height: 260px; display: grid; place-items: center; color: white; background: var(--navy); font: 400 1.8rem Georgia, serif; }
.pagination { padding-bottom: 100px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination .current { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); }
.pagination .current { color: white; background: var(--navy); }
.not-found { min-height: 650px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.not-found h1 { max-width: 780px; font-size: clamp(3.2rem, 7vw, 6.5rem); }
.not-found p:not(.eyebrow) { max-width: 590px; color: var(--muted); }
.not-found .button { margin-top: 20px; }

@media (max-width: 1050px) {
  .desktop-nav, .header-cta { display: none; }.mobile-menu { display: block; }
  .hero { min-height: 800px; }.hero-stats div { padding-inline: 25px; }
  .welcome { grid-template-columns: 1fr; }.welcome-images { max-width: 650px; }.welcome-copy { max-width: 760px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }.section-heading > p { max-width: 580px; }
  .service-card { padding-inline: 28px; }.service-card a { left: 28px; }
  .difference-copy { padding: 70px 55px; }
  .communities { grid-template-columns: 1fr; }.community-map { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid, .community-archive { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 40px, 1240px); }
  .site-header { height: 78px; padding-inline: 20px; }.brand-mark { width: 36px; height: 36px; }.brand-words strong { font-size: 1rem; }.brand-words small { font-size: .44rem; }
  .hero { min-height: 840px; align-items: flex-start; padding-top: 145px; }.hero-content { padding-top: 0; }.hero-content h1 { font-size: clamp(3.4rem, 15vw, 5.2rem); }.hero-copy { font-size: 1rem; }
  .button-row { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-stats { grid-template-columns: 1fr; position: relative; left: auto; bottom: auto; width: calc(100% - 40px); margin: 55px auto 0; transform: none; }.hero-stats div { min-height: 80px; padding-block: 16px; border-right: 0; border-bottom: 1px solid var(--line); }.hero-stats strong { min-width: 95px; }
  .welcome { gap: 70px; padding-block: 100px; }.welcome-images { min-height: 530px; }.image-tall { height: 480px; }.image-small { height: 265px; }.image-note { left: -10px; width: 190px; }
  .services { padding-block: 90px; }.service-grid { grid-template-columns: 1fr; }.service-card { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .difference { grid-template-columns: 1fr; }.difference-photo { height: 470px; }.difference-copy { padding: 80px 25px; }
  .communities { width: 100%; margin-block: 0 100px; }.community-panel { padding: 75px 25px; }.community-map { min-height: 360px; padding: 30px 18px; }
  .news { padding-bottom: 90px; }.news-heading { align-items: flex-start; flex-direction: column; }.news-grid { grid-template-columns: 1fr; }.news-art { height: 230px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }.legal { flex-direction: column; gap: 6px; }
  .admin-bar .site-header:not(.site-header--solid) { top: 46px; }
  .inner-hero { min-height: 390px; padding-block: 80px 60px; }
  .entry-content { width: min(100% - 40px, 1240px); padding-block: 75px 95px; }
  .archive-grid, .community-archive { grid-template-columns: 1fr; padding-block: 70px 45px; }
  .portfolio-heading { grid-template-columns: 1fr; gap: 18px; }.portfolio-grid { grid-template-columns: 1fr; }.portfolio-image { height: 235px; }.portfolio-card h3 { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
