/* ==========================================================================
   WEAR WING — Maison layer · CONTENT PAGES
   about / contact / faq / blog index / blog details / custom pages.
   Every rule is scoped to a page wrapper; loads after wearwing/luxe.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0 · Shared editorial atoms
   -------------------------------------------------------------------------- */
.ww-page-overline {
  display: inline-block;
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  .ww-page-overline {
    color: color-mix(in srgb, var(--color-primary) 70%, var(--ww-ink));
  }
}

/* Squared CTAs on content pages (blades hardcode radius-sm / radius-md,
   whose base rules are !important) */
.ww-about-intro .btn.radius-sm,
.ww-contact-form-card .btn.radius-md {
  border-radius: 2px !important;
}

/* --------------------------------------------------------------------------
   1 · About — editorial storytelling
   -------------------------------------------------------------------------- */
.ww-about-intro .about-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
  color: var(--ww-ink);
}

.ww-about-intro .about-content-desc {
  color: var(--color-gray-2);
  font-size: 15px;
  line-height: 1.95;
  max-width: 54ch;
}

/* Image: ivory mat + inner white hairline frame */
.ww-about-intro .about-image {
  border-radius: 0;
  background: var(--ww-ivory);
  overflow: hidden;
}

.ww-about-intro .about-image::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(253, 252, 250, 0.6);
  pointer-events: none;
  z-index: 1;
}

/* Brand feature bullets (when present) — hairline rows, no color chips */
.ww-about-intro .about-list-item {
  border-top: 1px solid var(--ww-hairline);
  padding-top: 18px;
  margin-top: 18px;
}

.ww-about-intro .about-list-item .content h3 {
  font-family: var(--font-family-base);
  font-size: 17px;
  color: var(--ww-ink);
}

.ww-about-intro .about-list-item-txt {
  color: var(--color-gray-2);
}

/* Admin-authored sections after each block: quiet chapters on paper */
.ww-about-extra .custom-section {
  border-top: 1px solid var(--ww-hairline);
  padding-top: clamp(56px, 8vw, 104px);
}

.ww-about-extra .custom-section .section-title .title {
  max-width: 26ch;
}

.ww-about-extra .custom-section p {
  max-width: 68ch;
  color: var(--color-gray-2);
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 1.35em;
}

.ww-about-extra .custom-section p strong {
  color: var(--ww-ink);
  font-weight: 600;
}

/* Oversized inline "statement" lines from the editor become serif pull lines */
.ww-about-extra .custom-section p span[style*="font-size"] {
  display: inline-block;
  font-family: var(--font-family-base);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important; /* beats inline pt size */
  line-height: 1.5;
  color: var(--ww-ink);
  margin-top: 0.4em;
}

.ww-about-extra .custom-section p span[style*="font-size"] strong {
  font-weight: 400;
}

/* Counters — hairline rows, serif numerals */
.ww-about-counter .acrivment-heading h2 {
  color: var(--ww-ink);
}

.ww-about-counter .acrivment-heading p {
  color: var(--color-gray-2);
  line-height: 1.9;
}

.ww-about-counter .about-image {
  border-radius: 0;
  background: var(--ww-ivory);
  overflow: hidden;
}

.ww-about-counter .achievement-grid::before,
.ww-about-counter .achievement-grid::after {
  display: none;
}

.ww-about-counter .achievement-item-style-1 {
  border-top: 1px solid var(--ww-hairline);
  padding: 20px 0;
}

.ww-about-counter .achievement-item-style-1 .odometer {
  font-family: var(--font-family-base);
  font-weight: 400;
  color: var(--ww-ink);
}

.ww-about-counter .achievement-item-style-1 p {
  color: var(--color-gray-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Testimonials — retire the admin color blocks; hide the section entirely
   while no testimonial has been published (empty heading otherwise) */
.ww-about-testimonial:not(:has(.testimonial-slide-item)) {
  display: none;
}

.ww-about-testimonial .section-heading h2 {
  color: var(--ww-ink);
}

.ww-about-testimonial .section-heading p {
  color: var(--color-gray-2);
}

.ww-about-testimonial .testimonial-slide-item {
  background: var(--ww-ivory) !important; /* beats per-item inline color */
  border: 1px solid var(--ww-hairline);
  border-radius: 0;
  box-shadow: none;
}

.ww-about-testimonial .testimonial-slide-item .rating-icons {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   2 · Contact — a letter to the maison
   -------------------------------------------------------------------------- */
.ww-contact .shape {
  display: none;
}

.ww-contact-intro {
  padding-top: 6px;
}

.ww-contact-title {
  font-family: var(--font-family-base);
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  line-height: 1.2;
  color: var(--ww-ink);
  max-width: 15ch;
  margin-bottom: 22px;
}

.ww-contact-lede {
  max-width: 42ch;
  color: var(--color-gray-2);
  line-height: 1.85;
  margin-bottom: 34px;
}

.ww-contact-list {
  margin: 0;
}

.ww-contact-row {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--ww-hairline);
  padding: 20px 0;
}

.ww-contact-list .ww-contact-row:last-child {
  border-bottom: 1px solid var(--ww-hairline);
}

.ww-contact-label {
  flex: 0 0 88px;
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gray-2);
  padding-top: 4px;
}

.ww-contact-value {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ww-ink);
}

.ww-contact-value a {
  color: var(--ww-ink);
  transition: color 0.3s ease;
}

.ww-contact-value a:hover {
  color: var(--color-primary);
}

/* The form: a paper card with hairline edges and whisper elevation */
.ww-contact-form-card {
  background: #fff;
  border: 1px solid var(--ww-hairline);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 24px 60px rgba(30, 29, 35, 0.04);
}

.ww-contact-form-card .form-control {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Map — full-width, muted to match the paper world */
.ww-contact-map {
  border: 1px solid var(--ww-hairline);
  overflow: hidden;
}

.ww-contact-map iframe {
  display: block;
  filter: grayscale(1) opacity(0.92);
  transition: filter 0.6s var(--ww-ease);
}

.ww-contact-map:hover iframe {
  filter: none;
}

@media (max-width: 575px) {
  .ww-contact-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   3 · FAQ — hairline accordion, serif questions
   -------------------------------------------------------------------------- */
.ww-faq .accordion.ptb-100 {
  padding: 0;
}

.ww-faq .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ww-hairline);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding: 0;
}

.ww-faq .col-12:last-child .accordion-item {
  border-bottom: 1px solid var(--ww-hairline);
}

.ww-faq .accordion-button {
  background: transparent;
  border-radius: 0;
  padding: 26px 4px 26px 0;
  font-family: var(--font-family-base);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ww-ink);
  transition: color 0.35s ease;
}

.ww-faq .accordion-button.collapsed {
  color: var(--ww-ink);
}

.ww-faq .accordion-button:hover {
  color: var(--color-primary);
}

.ww-faq .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  box-shadow: none;
}

.ww-faq .accordion-button::after {
  font-size: 13px;
  color: var(--color-gray-2);
  width: auto;
  height: auto;
  line-height: 1;
  transition: transform 0.45s var(--ww-ease);
}

.ww-faq .accordion-item .accordion-body {
  padding: 0 0 30px;
}

.ww-faq .accordion-body p {
  max-width: 62ch;
  color: var(--color-gray-2);
  font-size: 15px;
  line-height: 1.95;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4 · Blog index — editorial cards
   -------------------------------------------------------------------------- */
.ww-blog .blog-card-style-1 {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.ww-blog .blog-card-style-1 .card-image {
  background: var(--ww-ivory);
  overflow: hidden;
}

.ww-blog .blog-card-style-1 .card-image img {
  transition: transform 1.4s var(--ww-ease), opacity 0.4s ease, filter 300ms;
}

.ww-blog .blog-card-style-1:hover .card-image img {
  transform: scale(1.05);
}

.ww-blog .blog-card-style-1 .content {
  padding: 20px 0 0;
}

.ww-blog .blog-card-style-1 .info-list {
  gap: 8px 18px;
  margin-bottom: 12px;
}

.ww-blog .blog-card-style-1 .info-list .list-item {
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gray-2);
}

.ww-blog .blog-card-style-1 .info-list .list-item i {
  display: none;
}

.ww-blog .blog-card-style-1 .card-title {
  margin-bottom: 10px;
}

.ww-blog .blog-card-style-1 .card-title a {
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ww-ink);
}

.ww-blog .blog-card-style-1 .card-text {
  color: var(--color-gray-2);
  font-size: 14px;
  line-height: 1.85;
}

.ww-blog .blog-card-style-1 .card-btn {
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ww-ink);
  padding-bottom: 6px;
}

/* steady tracking — no jumpy hover */
.ww-blog .blog-card-style-1:hover .card-btn {
  letter-spacing: 0.3em;
  color: var(--color-primary);
}

.ww-blog .ww-blog-empty {
  padding: clamp(40px, 9vw, 120px) 0;
}

.ww-blog .ww-blog-empty h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  color: var(--ww-ink);
  margin-bottom: 12px;
}

.ww-blog .ww-blog-empty p {
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gray-2);
}

/* --------------------------------------------------------------------------
   5 · Blog details — long-form reading
   -------------------------------------------------------------------------- */
.ww-blog-details .blog-thumb {
  background: var(--ww-ivory);
  border-radius: 0;
  overflow: hidden;
}

.ww-blog-details .blog-details-content {
  max-width: 68ch;
}

.ww-blog-details .blog-details-content .info-list {
  gap: 8px 18px;
  margin: 18px 0 14px;
}

.ww-blog-details .blog-details-content .info-list .list-item,
.ww-blog-details .blog-details-content .info-list .list-item a {
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gray-2);
}

.ww-blog-details .blog-details-content .info-list .list-item a:hover {
  color: var(--color-primary);
}

.ww-blog-details .blog-details-content .info-list .list-item i {
  display: none;
}

.ww-blog-details .blog-details-content .title {
  font-family: var(--font-family-base);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ww-ink);
  margin-bottom: 26px;
}

/* --------------------------------------------------------------------------
   6 · Prose — TinyMCE-authored long-form (blog body + custom pages)
   Admin content arrives with inline colors/sizes; normalize gently.
   -------------------------------------------------------------------------- */
.ww-prose {
  color: var(--color-gray-2);
}

.ww-prose p,
.ww-prose li {
  font-family: var(--font-family-body);
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--color-gray-2);
}

.ww-prose p {
  margin-bottom: 1.35em;
}

.ww-prose strong {
  color: var(--ww-ink);
  font-weight: 600;
}

.ww-prose h1,
.ww-prose h2,
.ww-prose h3,
.ww-prose h4,
.ww-prose h5,
.ww-prose h6 {
  font-family: var(--font-family-base);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ww-ink);
  margin: 1.6em 0 0.7em;
}

.ww-prose h1 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.ww-prose h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.ww-prose h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.ww-prose h4,
.ww-prose h5,
.ww-prose h6 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

/* Rebase the editor's forced heading font/size/color to our scale:
   the heading keeps its clamp size; inline-styled children inherit it */
.ww-prose :is(h1, h2, h3, h4, h5, h6),
.ww-prose :is(h1, h2, h3, h4, h5, h6) span,
.ww-prose :is(h1, h2, h3, h4, h5, h6) strong {
  font-family: var(--font-family-base) !important;
  color: var(--ww-ink) !important;
  font-weight: 400 !important;
}

.ww-prose :is(h1, h2, h3, h4, h5, h6) span,
.ww-prose :is(h1, h2, h3, h4, h5, h6) strong {
  font-size: inherit !important;
}

/* Keep deliberate accent colors (brand bronze) alive inside paragraphs */
.ww-prose span[style*="144,106,59"] strong,
.ww-prose span[style*="144, 106, 59"] strong {
  color: inherit;
}

/* The editor's default light-grey (#8d8d8d) fails AA on paper — deepen it.
   Intentional accent colors (brand bronze, etc.) are left untouched. */
.ww-prose span[style*="141,141,141"],
.ww-prose span[style*="141, 141, 141"] {
  color: var(--color-gray-2) !important;
}

.ww-prose hr {
  border: 0;
  border-top: 1px solid var(--ww-hairline);
  margin: clamp(2rem, 4vw, 3rem) 0;
  opacity: 1;
}

.ww-prose img {
  max-width: 100%;
  height: auto;
}

.ww-prose blockquote {
  border-inline-start: 1px solid var(--color-primary);
  padding-inline-start: 1.4rem;
  font-family: var(--font-family-base);
  font-size: 1.15em;
  color: var(--ww-ink);
}

/* Custom pages: hand the essay a reading measure */
.ww-custom-page .tinymce-content {
  max-width: min(760px, 100%);
}

/* --------------------------------------------------------------------------
   7 · Blog sidebar — quiet widgets
   -------------------------------------------------------------------------- */
.ww-blog-details .ww-share-row h3 {
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ww-ink);
}

.ww-blog-details .ww-share-row .social-link a {
  height: 38px;
  width: 38px;
  line-height: 36px;
  background: transparent;
  border: 1px solid var(--ww-hairline);
  border-radius: 2px;
  color: var(--ww-ink) !important; /* base rule is !important */
  font-size: 13px;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.ww-blog-details .ww-share-row .social-link a::after {
  display: none;
}

.ww-blog-details .ww-share-row .social-link a:hover {
  background: var(--ww-ink);
  border-color: var(--ww-ink);
  color: #fff !important;
}

.ww-blog-details .blog-box,
.ww-blog-details .blog-sidebar .article {
  background: transparent;
  border: 1px solid var(--ww-hairline);
  border-radius: 0;
  box-shadow: none;
  padding: 28px;
}

.ww-blog-details .blog-box h4.title,
.ww-blog-details .blog-sidebar .article > .title {
  border-bottom: 1px solid var(--ww-hairline);
  padding-bottom: 14px;
  margin-bottom: 16px;
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ww-ink);
}

.ww-blog-details .blog-box h4.title i {
  display: none;
}

.ww-blog-details .blog-box .blog-cat-list ul li a {
  font-size: 14px;
  color: var(--color-gray-2);
  border-bottom-color: var(--ww-hairline);
  transition: color 0.3s ease;
}

.ww-blog-details .blog-box .blog-cat-list ul li a i {
  display: none;
}

.ww-blog-details .blog-box .blog-cat-list ul li a:hover,
.ww-blog-details .blog-box .blog-cat-list ul li.single-category.active a {
  color: var(--ww-ink);
}

.ww-blog-details .blog-sidebar .article-item .image {
  border-radius: 0;
  background: var(--ww-ivory);
}

.ww-blog-details .article-item-title a {
  font-family: var(--font-family-base);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ww-ink);
}

.ww-blog-details .blog-sidebar .article-item .content .time {
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-2);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   8 · Motion guard
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ww-blog .blog-card-style-1 .card-image img,
  .ww-contact-map iframe {
    transition: none !important;
  }
}
