/*
Theme Name: West Roseville Counseling Offices
Theme URI: https://westrosevillecounseling.com/
Author: West Roseville Counseling Offices
Description: Custom theme from the approved 2026 rental-office homepage mockup.
Version: 1.0.6
Text Domain: west-roseville
*/

    :root {
      --paper: #F3EEE4;
      --paper-2: #E8E0D2;
      --cream: #FAF6EE;
      --ink: #1B2117;
      --ink-soft: #3A4134;
      --muted: #5A6152;
      --clay: #B2462E;
      --clay-dark: #8C3622;
      --olive: #656A41;
      --olive-soft: #8A8E68;
      --rule: #D2C8B6;
      --forest: #222A1E;
      --max: 1120px;
      --ease: cubic-bezier(.2,.7,.2,1);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }

    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
      font-size: 1.125rem;
      line-height: 1.65;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 400;
      opacity: 0.045;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    }

    ::selection { background: #E4C4B6; color: var(--ink); }

    a { color: var(--clay); text-underline-offset: 0.18em; }
    a:hover { color: var(--clay-dark); }
    img { max-width: 100%; display: block; }
    h1, h2, h3 { font-family: Fraunces, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; color: var(--ink); }
    p { margin: 0 0 1em; }
    p:last-child { margin-bottom: 0; }

    .skip {
      position: absolute; left: -999px; top: 0;
      background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; z-index: 500;
    }
    .skip:focus { left: 1rem; top: 1rem; }

    .wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
    @media (max-width: 640px) { .wrap { width: min(var(--max), calc(100% - 2rem)); } }

    .eyebrow {
      display: inline-flex; align-items: center; gap: 0.7rem;
      font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--olive); margin: 0 0 1rem;
    }
    .eyebrow::before {
      content: ""; width: 18px; height: 2px; background: var(--clay); flex: 0 0 auto;
    }

    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 0.45rem; min-height: 2.85rem; padding: 0.65rem 1.2rem;
      background: var(--clay); color: #fff; border: 1px solid var(--clay);
      border-radius: 2px; font: 600 0.95rem/1 "Source Sans 3", sans-serif;
      text-decoration: none; letter-spacing: 0.01em;
      transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), color .18s var(--ease);
    }
    .btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; transform: translateY(-1px); }
    .btn:focus-visible, .nav a:focus-visible, .menu-btn:focus-visible, .wordmark:focus-visible, .phone-link:focus-visible, .map-link:focus-visible, .quiet-line a:focus-visible {
      outline: 2px solid var(--clay); outline-offset: 3px;
    }

    /* Header */
    .site-header {
      position: sticky; top: 0; z-index: 50;
      background: var(--paper);
      border-bottom: 1px solid var(--rule);
    }
    .header-inner {
      width: min(var(--max), calc(100% - 3rem));
      margin-inline: auto;
      display: flex; align-items: center; justify-content: space-between;
      gap: 1.5rem; min-height: 4.35rem;
    }
    .wordmark { text-decoration: none; color: inherit; line-height: 1.05; }
    .wordmark .wm-a {
      display: block; font-family: Fraunces, serif; font-size: 1.28rem; font-weight: 500;
      letter-spacing: -0.02em; color: var(--ink);
    }
    .wordmark .wm-b {
      display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--olive); margin-top: 0.15rem;
    }
    .nav { display: flex; align-items: center; gap: 1.65rem; }
    .nav a {
      color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; font-weight: 500;
    }
    .nav a:hover { color: var(--clay); }
    .header-cta { flex: 0 0 auto; }
    .nav .btn { display: none; }
    .nav-toggle { display: none; }

    .menu-btn {
      display: none; background: none; border: 0; color: var(--ink);
      font: 600 0.95rem/1 "Source Sans 3", sans-serif; cursor: pointer; padding: 0.4rem 0;
    }

    @media (max-width: 860px) {
      .header-inner { width: min(var(--max), calc(100% - 2rem)); min-height: 4rem; }
      .menu-btn { display: inline-flex; }
      .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--rule);
        padding: 0.6rem 1rem 1.1rem;
      }
      .nav a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--rule); }
      .nav .btn { display: inline-flex; margin-top: 0.85rem; width: 100%; }
      .header-cta { display: none; }
      .nav-toggle:checked ~ .nav { display: flex; }
    }

    /* Hero */
    .hero { padding: 4.75rem 0 3.25rem; }
    .hero-kicker { margin-bottom: 1.15rem; }
    .hero h1 {
      font-size: clamp(2.25rem, 5.2vw, 4.1rem);
      font-optical-sizing: auto;
      max-width: 16ch;
      margin: 0 0 1.4rem;
    }
    .hero h1 em { font-style: italic; font-weight: 400; color: var(--ink); }
    .hero-lead {
      max-width: 38rem; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.55;
      margin: 0 0 1.85rem;
    }
    .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.4rem; }
    .phone-link {
      color: var(--ink); font-weight: 600; text-decoration: none;
      border-bottom: 1px solid var(--rule); padding-bottom: 0.1rem;
    }
    .phone-link:hover { color: var(--clay); border-bottom-color: var(--clay); }

    /* Office plate */
    .office-plate { padding: 0 0 4.5rem; }
    .office-frame {
      width: min(var(--max), calc(100% - 3rem));
      margin-inline: auto;
    }
    .office-frame img {
      width: 100%; height: clamp(220px, 42vw, 420px);
      object-fit: cover; object-position: center 58%;
      border-radius: 2px;
    }
    .office-cap {
      display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
      margin-top: 0.7rem; font-size: 0.86rem; color: var(--muted); letter-spacing: 0.01em;
    }
    .office-cap strong { color: var(--ink-soft); font-weight: 600; }

    /* Sections */
    section { padding: 5rem 0; scroll-margin-top: 4.6rem; }
    .section-head { margin-bottom: 2.4rem; max-width: 38rem; }
    .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 0 0 0.7rem; }
    .section-head p { color: var(--ink-soft); }

    /* What’s included */
    #offices {
      background: var(--cream);
      border-top: 1px solid var(--rule);
      border-bottom: 1px solid var(--rule);
    }
    .amen-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 2.5rem;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .amen-list li {
      border-top: 1px solid var(--rule);
      padding: 1.15rem 0 1.25rem;
    }
    .amen-list h3 {
      font-size: clamp(1.25rem, 2.2vw, 1.5rem);
      margin: 0 0 0.4rem;
    }
    .amen-list p { color: var(--ink-soft); font-size: 1.05rem; }

    /* Who it’s for */
    .who-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.25rem;
    }
    .who-col { padding-top: 1.15rem; border-top: 1px solid var(--rule); }
    .who-col .num {
      font-family: Fraunces, serif; font-style: italic; font-size: 1.15rem;
      color: var(--clay); margin: 0 0 0.7rem;
    }
    .who-col h3 { font-size: 1.55rem; margin: 0 0 0.7rem; }
    .who-col p { color: var(--ink-soft); font-size: 1.05rem; }

    /* Address */
    #address { border-top: 1px solid var(--rule); }
    .addr-split {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 2.4rem 3rem;
      align-items: start;
    }
    .addr-block address {
      font-style: normal;
      color: var(--ink-soft);
      line-height: 1.55;
      margin: 0 0 1.1rem;
      font-size: 1.12rem;
    }
    .addr-block h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 0 0 0.85rem; }
    .map-link {
      display: inline-block;
      font-weight: 600;
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid var(--rule);
      padding-bottom: 0.08rem;
    }
    .map-link:hover { color: var(--clay); border-bottom-color: var(--clay); }
    .quiet-line {
      margin-top: 2.4rem;
      padding-top: 1.3rem;
      border-top: 1px solid var(--rule);
      color: var(--muted);
      font-size: 1.02rem;
      max-width: 40rem;
    }
    .quiet-line a { font-weight: 600; }

    /* Close */
    #inquire {
      background: var(--cream);
      border-top: 1px solid var(--rule);
    }
    .close-inner { max-width: 38rem; }
    #inquire h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 0.9rem; }
    #inquire p { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 1.4rem; }
    .close-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1.3rem; font-size: 1.02rem; }
    .close-meta a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
    .close-meta a:hover { color: var(--clay); border-bottom-color: var(--clay); }

    /* Footer */
    footer {
      background: var(--ink); color: #C9C4B6; padding: 2.6rem 0 2.1rem; font-size: 0.95rem;
    }
    .foot-grid {
      display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 2rem;
      margin-bottom: 2rem;
    }
    footer .wm-a { color: var(--cream); font-size: 1.22rem; }
    footer .wm-b { color: #A8AD86; }
    footer a { color: #E4DFD2; text-decoration: none; }
    footer a:hover { color: #fff; }
    .foot-col h4 {
      margin: 0 0 0.55rem; font-size: 0.75rem; letter-spacing: 0.14em;
      text-transform: uppercase; color: #A8AD86; font-weight: 600; font-family: "Source Sans 3", sans-serif;
    }
    .foot-col p, .foot-col li { margin: 0 0 0.35rem; }
    .foot-col ul { list-style: none; padding: 0; margin: 0; }
    .foot-bottom {
      display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
      padding-top: 1.2rem; border-top: 1px solid #3A4234; color: #8E8A7C; font-size: 0.86rem;
    }

    @media (max-width: 900px) {
      .who-grid, .addr-split { grid-template-columns: 1fr; gap: 1.6rem; }
      .amen-list { grid-template-columns: 1fr; }
      .foot-grid { grid-template-columns: 1fr 1fr; }
      .office-frame { width: min(var(--max), calc(100% - 2rem)); }
    }
    @media (max-width: 640px) {
      .hero { padding: 3.1rem 0 2.2rem; }
      section { padding: 3.4rem 0; }
      .office-plate { padding-bottom: 3rem; }
      .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; }
      .hero-lead { font-size: 1.08rem; }
    }

    /* Photo gallery */
    #photos { border-top: 1px solid var(--rule); }
    .photo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.7rem;
    }
    .photo-cell { margin: 0; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
    .photo-cell img {
      display: block; width: 100%; height: 220px; object-fit: cover;
    }
    .photo-cell:nth-child(1) img,
    .photo-cell:nth-child(6) img { height: 280px; }

    /* Hourly home card */
    #hourly {
      background: var(--cream);
      border-top: 1px solid var(--rule);
      border-bottom: 1px solid var(--rule);
    }
    .hourly-card {
      max-width: 36rem;
      padding: 1.8rem 1.9rem 1.9rem;
      border: 1px solid var(--rule);
      background: var(--paper);
    }
    .hourly-card h3 { font-size: 1.7rem; margin: 0 0 0.55rem; }
    .hourly-card p { color: var(--ink-soft); margin: 0 0 1.15rem; }

    /* Book page */
    .page-hero { padding-bottom: 2.4rem; }
    .book-head { margin-bottom: 1.4rem; max-width: 38rem; }
    .book-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.5rem; }
    .book-head p { color: var(--ink-soft); }
    .cal-frame {
      background: #fff;
      border: 1px solid var(--rule);
      overflow: hidden;
    }
    .cal-frame iframe { display: block; min-height: 640px; }
    .book-note {
      margin-top: 1.4rem;
      color: var(--muted);
      font-size: 1.02rem;
      max-width: 40rem;
    }
    .book-note a { font-weight: 600; }

    /* Inner page fallback */
    .entry { padding: 4.4rem 0 5rem; }
    .entry h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.2rem; }
    .entry .content { max-width: 40rem; color: var(--ink-soft); }

    @media (max-width: 900px) {
      .photo-grid { grid-template-columns: 1fr 1fr; }
      .photo-cell img, .photo-cell:nth-child(1) img, .photo-cell:nth-child(6) img { height: 200px; }
    }
    @media (max-width: 640px) {
      .photo-grid { grid-template-columns: 1fr; }
      .photo-cell img, .photo-cell:nth-child(1) img, .photo-cell:nth-child(6) img { height: 220px; }
    }

    .hourly-card-photo { display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; align-items: center; max-width: 44rem; }
    .hourly-card-photo img { width: 100%; height: 160px; object-fit: cover; display: block; }
    .book-split { display: grid; grid-template-columns: 280px 1fr; gap: 1.6rem; align-items: center; margin-bottom: 1.5rem; }
    .book-photo { margin: 0; }
    .book-photo img { width: 100%; height: 200px; object-fit: cover; display: block; }
    @media (max-width: 640px) {
      .hourly-card-photo, .book-split { grid-template-columns: 1fr; }
      .hourly-card-photo img, .book-photo img { height: 200px; }
    }

    .avail-list { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
    .avail-list li {
      display: grid; grid-template-columns: 7rem 1fr; gap: 1rem;
      border-top: 1px solid var(--rule); padding: 0.85rem 0;
    }
    .avail-list strong { font-family: Fraunces, serif; font-size: 1.15rem; }
    .avail-list span { color: var(--ink-soft); }
    @media (max-width: 640px) {
      .avail-list li { grid-template-columns: 1fr; gap: 0.2rem; }
    }

    .photo-cell figcaption {
      font-size: 0.86rem; color: var(--ink-soft); padding: 0.45rem 0 0; font-weight: 600;
    }

    #rates { background: var(--cream); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
    .rate-table-wrap { overflow-x: auto; }
    .rate-table { width: 100%; max-width: 40rem; border-collapse: collapse; font-size: 1.05rem; }
    .rate-table th, .rate-table td { text-align: left; padding: 0.85rem 0.9rem 0.85rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
    .rate-table thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); font-family: "Source Sans 3", sans-serif; font-weight: 600; border-top: 0; }
    .rate-table tbody th { font-family: Fraunces, serif; font-weight: 500; font-size: 1.15rem; }
    .rate-table td { color: var(--ink-soft); }
    .rate-note { color: var(--muted); margin: 1.1rem 0 0; max-width: 40rem; font-size: 1.02rem; }
    .rate-note a { font-weight: 600; }
    .hero-lead a { font-weight: 600; }

    #faq { border-top: 1px solid var(--rule); }
    .faq { max-width: 40rem; }
    .faq-item { border-top: 1px solid var(--rule); padding: 1.15rem 0 1.2rem; }
    .faq-item h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
    .faq-item p { color: var(--ink-soft); margin: 0; }
