/*
  Western Renovations — Cloudflare Pages property
  Visual examples library stylesheet.

  Brand tokens below are transcribed verbatim from output/brand-profile.json
  (evidenced colors/typography/radii). No hex values are invented; the only
  derived values used are the profile's own pre-approved accessible
  tints/shades (primary-tint, dark-surface-for-light-text, and the two
  secondary accessible text shades), plus plain opacity variants of white
  or the brand hues themselves for hover/focus states.
*/

:root {
  /* Evidenced source tokens */
  --color-primary: #40766c;        /* primary-600, muted sage/teal */
  --color-secondary: #D08753;      /* secondary-400, terracotta CTA color */
  --color-secondary-text: #96502A; /* evidenced accessible text-on-secondary */
  --color-link: #B36234;           /* evidenced secondary_text_on_light_bg */
  --color-text: #461C0C;           /* neutral-900, body text */
  --color-text-deep: #2A1107;      /* neutral-950, deep overlay / heading ink */
  --color-bg: #F7F5F0;             /* page background, cream */

  /* Evidenced derived tokens (from brand-profile.json derived_tokens) */
  --color-primary-tint: #F0F9F7;        /* primary-50 tint surface */
  --color-primary-dark-surface: #29403C; /* primary-900 dark surface for white text */

  /* Typography (evidenced) */
  --font-heading: "Outfit Variable", ui-sans-serif, system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-body: "Inter Variable", ui-sans-serif, system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Radii (evidenced) */
  --radius-btn: 0.5rem;   /* buttons */
  --radius-pill: 9999px;  /* pills */
  --radius-card: 0.875rem; /* cards, within 0.75-1rem */

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --shadow-sm: 0 1px 2px rgba(42, 17, 7, 0.06);
  --shadow-md: 0 6px 16px rgba(42, 17, 7, 0.10);

  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text-deep);
  line-height: 1.25;
  font-weight: 600;
}

img, svg {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: var(--space-8);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3.5rem;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-btn);
  z-index: 100;
  transition: top 150ms ease-in-out;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

*:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-bg),
    0 0 0 4px rgba(64, 118, 108, 0.55);
  border-radius: 4px;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-decoration-thickness 150ms ease-in-out;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Header */
.site-header {
  background: var(--color-text);
  border-bottom: 4px solid var(--color-secondary);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.wordmark {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-btn);
  display: inline-block;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-secondary);
  font-weight: 600;
}

/* Hero */
.hero {
  background: var(--color-primary-tint);
  padding-block: var(--space-12);
}

.hero .wrap {
  max-width: 50rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: #fff;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-secondary);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 var(--space-4);
}

.hero-lede {
  font-size: 1.0625rem;
  color: var(--color-text);
  max-width: 42rem;
  margin: 0;
}

/* Generic content sections */
.content-section {
  padding-block: var(--space-10);
  border-bottom: 1px solid rgba(64, 118, 108, 0.12);
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  font-size: 1.5rem;
  margin: 0 0 var(--space-4);
}

.content-section p {
  margin: 0 0 var(--space-4);
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Category pills (home page cross-links to examples sections) */
.category-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-2) 0 0;
}

.pill {
  display: inline-block;
  background: var(--color-primary-tint);
  color: var(--color-text-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(64, 118, 108, 0.25);
}

.pill:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* CTA banner */
.cta-banner {
  background: var(--color-primary-dark-surface);
  color: #fff;
  padding-block: var(--space-10);
}

.cta-banner p {
  max-width: 54ch;
  font-size: 1.125rem;
  margin: 0;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--color-primary-tint);
  border-top: 1px solid rgba(64, 118, 108, 0.2);
  padding-block: var(--space-8);
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  max-width: 70ch;
}

.site-footer .copyright {
  opacity: 0.75;
  margin-bottom: 0;
}

/* Examples page: gallery-style category grid */
.gallery-grid {
  padding-block: var(--space-10);
}

.gallery-grid .grid-intro {
  margin: 0 0 var(--space-6);
  font-size: 0.9375rem;
  color: var(--color-text);
  max-width: 66ch;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(64, 118, 108, 0.12);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 2rem;
  transition: box-shadow 200ms ease-out;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.card-media {
  background: linear-gradient(135deg, var(--color-primary-tint), #ffffff);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(64, 118, 108, 0.12);
}

.card-media-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary-text);
  background: var(--color-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.card-body {
  padding: var(--space-6);
  flex: 1;
}

.card-body h2 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-3);
}

.card-body p {
  font-size: 0.9375rem;
  margin: 0 0 var(--space-3);
}

.card-body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: var(--space-16);
  }

  .content-section {
    padding-block: var(--space-12);
  }
}


/* Header logo, centered */
.site-logo{height:48px;width:auto;display:block;margin:0 auto}
.site-header>div:first-child{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.6rem}

/* Header row: name (left) / logo (center) / phone number (right) */
.header-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;width:100%}
.header-row .site-logo{margin:0 auto}
.header-name{justify-self:start;font-family:var(--font-heading,inherit);font-weight:700;font-size:1.0625rem;color:#F7F5F0;text-decoration:none;margin:0}
.header-row .header-call{justify-self:end}
.header-call{display:inline-flex;align-items:center;gap:0.5rem;background-color:#96502A;color:#fff;padding:0.55rem 1rem;border-radius:9999px;font-size:0.9375rem;font-weight:600;text-decoration:none;white-space:nowrap}
.header-call:hover,.header-call:focus-visible{filter:brightness(0.92);color:#fff}
.icon-phone{width:1rem;height:1rem;fill:currentColor;flex-shrink:0}
@media (max-width:640px){
  .header-row{grid-template-columns:1fr;justify-items:center;gap:.75rem}
  .header-name{justify-self:center}
  .header-row .header-call{justify-self:center}
}

/* Footer links: redesigned (ui-ux-pro-max pass) */
.site-footer .footer-links{margin-top:1.5rem;padding-top:1.5rem;position:relative;display:flex;flex-wrap:wrap;gap:2rem 3rem}
.site-footer .footer-links::before{content:"";position:absolute;top:0;left:0;width:64px;height:2px;background:rgba(150,80,42,0.4)}
.site-footer .footer-links-col{flex:1 1 200px;min-width:180px}
.site-footer .footer-links-heading{font-family:var(--font-heading,inherit);font-weight:700;margin:0 0 .85rem;font-size:.75rem;letter-spacing:.09em;text-transform:uppercase;color:#96502A}
.site-footer .footer-social,.site-footer .footer-press{list-style:none;margin:0;padding:0}
.site-footer .footer-social{display:flex;flex-wrap:wrap;gap:.6rem}
.site-footer .footer-press{display:flex;flex-direction:column;gap:.5rem}

/* Footer link styling v2: icon-only circular social badges, plain press links */
.site-footer .footer-social a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#461C0C;color:#F7F5F0;transition:background-color .15s ease,transform .15s ease}
.site-footer .footer-social a svg{width:18px;height:18px;flex-shrink:0;fill:currentColor}
.site-footer .footer-social a:hover,.site-footer .footer-social a:focus-visible{background:#96502A;transform:translateY(-2px)}
.site-footer .footer-press a{display:inline-block;color:#461C0C;text-decoration:underline;text-underline-offset:3px;font-size:.9rem;font-weight:500;transition:color .15s ease}
.site-footer .footer-press a:hover,.site-footer .footer-press a:focus-visible{color:#96502A}
.site-footer .footer-links a:focus-visible{outline:2px solid #96502A;outline-offset:2px}
