/*
Theme Name: Century Law Corporation
Theme URI: https://centurylawcorp.com
Author: Century Law Corporation
Description: One-page theme for Century Law Corporation. Contact details, section copy, and images are editable under Appearance > Customize. Practice areas and people are editable as their own post types.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: centurylaw
*/

:root {
  --paper: #F4F2ED;
  --ink: #14140F;
  --night: #0E0E0B;
  --body: #4A463E;
  --body-soft: #5A554C;
  --eyebrow: #8A8378;
  --eyebrow-dark: #8E877B;
  --rule: rgba(20, 20, 15, .14);
  --rule-soft: rgba(20, 20, 15, .12);
  --rule-light: rgba(244, 242, 237, .34);
  --dim: #C9C3B8;
  --stripe: #E7E3DA;
  --serif: Newsreader, Georgia, serif;
  --sans: Jost, Helvetica, Arial, sans-serif;
  --pad-x: clamp(28px, 6vw, 110px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #6B6459; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; text-wrap: balance; }
input, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.clc-field input:focus-visible, .clc-field textarea:focus-visible { outline: none; }

.clc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 14px 20px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.clc-skip:focus { left: 12px; top: 12px; color: var(--paper); }

.clc-eyebrow {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--eyebrow);
}
.clc-dark .clc-eyebrow { color: var(--eyebrow-dark); }

.clc-pill {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  padding: 17px 28px; border-radius: 999px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .35s ease;
}
.clc-pill:hover { background: #33302A; color: var(--paper); }

/* ---------- header ---------- */
.clc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(244, 242, 237, 0);
  border-bottom: 1px solid rgba(20, 20, 15, 0);
  backdrop-filter: blur(14px);
  transition: background .5s ease, border-color .5s ease;
}
.clc-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--rule-soft);
}
.clc-header-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  height: 96px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height .5s ease;
}
.clc-header.is-scrolled .clc-header-inner { height: 76px; }

.clc-logo { display: flex; align-items: center; gap: 14px; }
.clc-logo img { display: block; width: auto; }
.clc-logo .clc-mark { height: 30px; }
.clc-logo .clc-word { height: 26px; opacity: .92; }

.clc-nav {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
}
/* Generated menus (Appearance > Menus) match the hand-written nav. */
.clc-nav-list {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
  list-style: none; margin: 0; padding: 0;
}
.clc-nav-list li { display: block; }
.clc-nav-list a { display: block; }
.clc-nav a, .clc-nav-list a { position: relative; padding-bottom: 5px; }
.clc-nav a::after, .clc-nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16, .84, .44, 1);
}
.clc-nav a:hover::after, .clc-nav a.is-active::after,
.clc-nav-list a:hover::after, .clc-nav-list .current-menu-item a::after { transform: scaleX(1); }

.clc-header-cta {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-left: clamp(18px, 3vw, 44px);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 12px 24px; white-space: nowrap;
  transition: background .3s ease, color .3s ease;
}
.clc-header-cta:hover { background: var(--ink); color: var(--paper); }
.clc-cta-label {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #6B6459;
}
.clc-header-cta:hover .clc-cta-label { color: rgba(244, 242, 237, .72); }
.clc-cta-num { font-size: 15px; letter-spacing: .02em; }

.clc-nav-toggle {
  display: none; background: none; border: 1px solid var(--ink);
  border-radius: 999px; padding: 10px 18px; cursor: pointer;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- hero ---------- */
.clc-hero {
  min-height: 100svh;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: stretch;
}
.clc-hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: clamp(120px, 14vh, 200px) var(--pad-x) clamp(72px, 9vh, 120px);
}
.clc-hero h1 {
  font-size: clamp(46px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.02em;
}
.clc-hero-lede {
  margin: 0; max-width: 34ch;
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.72; color: var(--body);
}
.clc-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- image areas ---------- */
.clc-figure { position: relative; overflow: hidden; background: var(--stripe); }
.clc-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clc-figure.is-empty {
  background-image: repeating-linear-gradient(112deg, rgba(20, 20, 15, .055) 0 2px, transparent 2px 13px);
  display: flex; align-items: flex-end; padding: 26px;
}
.clc-figure.is-empty.clc-figure-alt {
  background-image: repeating-linear-gradient(68deg, rgba(20, 20, 15, .055) 0 2px, transparent 2px 13px);
}
.clc-hero-figure { min-height: 56vh; }
.clc-hero-figure img { object-position: 50% 42%; }
.clc-hero-figure img { transform: scale(1.04); opacity: 0; transition: transform 2.2s cubic-bezier(.16, .84, .44, 1), opacity 1.1s ease; }
.clc-hero-figure img.is-loaded { transform: none; opacity: 1; }
.no-js .clc-hero-figure img, .clc-no-motion .clc-hero-figure img { transform: none; opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .clc-hero-figure img { transform: none; opacity: 1; transition: none; } }

/* The hero photo sits under the transparent fixed header at rest; this scrim
   keeps the ink nav readable before the header picks up its own background.
   Only needed in the 2-column hero — below 900px the figure moves under the copy. */
@media (min-width: 901px) {
  .clc-hero-figure::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px;
    z-index: 1; pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(244, 242, 237, .97) 0,
      rgba(244, 242, 237, .93) 68px,
      rgba(244, 242, 237, .55) 104px,
      rgba(244, 242, 237, 0) 100%
    );
  }
}

/* ---------- dark bands ---------- */
.clc-dark { background: var(--night); color: var(--paper); }
.clc-section {
  padding: clamp(40px, 5vw, 72px) var(--pad-x) clamp(48px, 6vw, 88px);
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.clc-section > .clc-wrap { width: 100%; }
.clc-wrap { max-width: 1280px; margin: 0 auto; }

.clc-firm-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(48px, 7vw, 110px); align-items: center;
}
.clc-firm-mark { display: flex; justify-content: center; }
.clc-firm-mark img { width: clamp(150px, 17vw, 250px); height: auto; display: block; opacity: .95; }
.clc-firm-copy { display: flex; flex-direction: column; gap: 22px; max-width: 56ch; }
.clc-firm-copy h2 { font-size: clamp(34px, 3.9vw, 60px); line-height: 1.08; }
.clc-firm-copy p { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.78; color: var(--dim); }
.clc-underline-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--rule-light); padding-bottom: 10px;
  transition: border-color .3s ease;
}
.clc-underline-link:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ---------- section heads ---------- */
.clc-head {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center; margin-bottom: clamp(14px, 1.8vw, 26px);
}
.clc-head .clc-eyebrow,
.clc-firm-copy .clc-eyebrow,
.clc-contact-copy .clc-eyebrow { font-size: 16px; letter-spacing: .22em; }
.clc-head h2 { font-size: clamp(34px, 4vw, 62px); line-height: 1.06; }

/* ---------- practice areas ---------- */
.clc-areas {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
@media (max-width: 1000px) { .clc-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clc-areas { grid-template-columns: minmax(0, 1fr); } }
.clc-area {
  padding: 44px 30px 40px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 290px;
  transition: background .45s ease;
}
.clc-area:hover { background: #EDEAE2; }
.clc-area-num { font-family: var(--serif); font-size: 15px; color: #9C9488; }
.clc-area-title {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 500; line-height: 1.5;
}
.clc-area p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--body-soft); }
.clc-area-more { margin-top: auto; font-size: 16px; color: #9C9488; }
.clc-area-more:hover { color: var(--ink); }

/* ---------- people ---------- */
.clc-people-section {
  border-top: 1px solid var(--rule-soft);
  padding-top: clamp(20px, 2.5vw, 36px);
  padding-bottom: clamp(40px, 5vw, 72px);
  min-height: 0;
  justify-content: flex-start;
}
.clc-people-section .clc-head { margin-bottom: clamp(14px, 1.6vw, 24px); }
.clc-people {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
  justify-content: center; gap: clamp(24px, 3vw, 44px);
}
.clc-person { display: flex; flex-direction: column; gap: 20px; }
.clc-person .clc-figure { aspect-ratio: 4 / 5; }
.clc-person .clc-figure.is-empty {
  background-image: repeating-linear-gradient(90deg, rgba(20, 20, 15, .06) 0 2px, transparent 2px 12px);
  padding: 18px;
}

/* Placeholder mark until headshots arrive — line weight matches the rules. */
.clc-person .clc-figure.is-empty {
  align-items: center; justify-content: center; padding: 0;
}
.clc-avatar {
  width: 38%; height: auto; display: block;
  fill: none; stroke: rgba(20, 20, 15, .3); stroke-width: 1.5;
  stroke-linecap: round;
}
.clc-person-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule);
}
.clc-person-name { display: flex; flex-direction: column; gap: 7px; }
.clc-person-name b { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 500; }
.clc-person-name span { font-size: 12.5px; color: #6B6459; letter-spacing: .04em; }
.clc-person-more { font-size: 16px; color: #9C9488; }
.clc-person-more:hover, .clc-person:hover .clc-person-more { color: var(--ink); }
.clc-person .clc-figure img { transition: transform 1.2s cubic-bezier(.16, .84, .44, 1); }
.clc-person:hover .clc-figure img { transform: scale(1.03); }

/* ---------- contact ---------- */
.clc-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(48px, 7vw, 110px);
}
.clc-contact-copy { display: flex; flex-direction: column; gap: 20px; }
.clc-contact-copy h2 { font-size: clamp(34px, 3.9vw, 58px); line-height: 1.08; }
.clc-contact-details {
  display: flex; flex-direction: column; gap: 22px;
  font-size: 15.5px; line-height: 1.7; color: var(--dim); margin-top: 8px;
}
.clc-contact-details .clc-email {
  border-bottom: 1px solid var(--rule-light); align-self: flex-start; padding-bottom: 4px;
}
.clc-form { display: flex; flex-direction: column; gap: 26px; }
.clc-field { display: flex; flex-direction: column; gap: 10px; }
.clc-field > span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--eyebrow-dark); }
.clc-field input, .clc-field textarea {
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(244, 242, 237, .28);
  padding: 10px 0; font-size: 16px; outline: none;
  transition: border-color .3s ease;
}
.clc-field textarea { resize: vertical; }
.clc-field input:focus, .clc-field textarea:focus { border-bottom-color: var(--paper); }
.clc-submit {
  align-self: flex-start; margin-top: 6px;
  background: var(--paper); color: var(--night);
  border: 0; border-radius: 999px; padding: 17px 30px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; display: inline-flex; align-items: center; gap: 14px;
  transition: background .3s ease;
}
.clc-submit:hover { background: #D9D4C9; }
.clc-submit:active { transform: translateY(1px); }
.clc-field textarea { min-height: 160px; }
.clc-thanks {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  border-top: 1px solid rgba(244, 242, 237, .18); padding-top: 40px;
}
.clc-thanks strong { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); font-weight: 300; }
.clc-thanks p { margin: 0; color: var(--dim); line-height: 1.75; max-width: 38ch; }
.clc-honeypot { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.clc-footer { background: var(--night); color: var(--paper); padding: 0 var(--pad-x) 48px; }
.clc-footer-grid {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(244, 242, 237, .16); padding-top: 52px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 44px;
}
.clc-footer-brand { display: flex; flex-direction: column; gap: 20px; }
.clc-footer-brand .clc-logo .clc-word { opacity: .9; }
.clc-footer-brand p { margin: 0; max-width: 32ch; font-size: 13.5px; line-height: 1.75; color: #9C958A; }
.clc-footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; color: var(--dim); }
.clc-footer-col h3 {
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--eyebrow-dark); margin-bottom: 6px; font-weight: 400;
}
.clc-footer-col address { font-style: normal; line-height: 1.7; }
.clc-footer-contact {
  max-width: 1280px; margin: 52px auto 0; padding-top: 40px;
  border-top: 1px solid rgba(244, 242, 237, .16);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 18px clamp(32px, 6vw, 88px);
  font-size: 14px; color: var(--dim); text-align: center;
}
.clc-footer-contact address { font-style: normal; }
.clc-footer-base {
  max-width: 1280px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(244, 242, 237, .12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 11.5px; letter-spacing: .06em; color: var(--eyebrow-dark);
}


/* ---------- inner pages (posts, pages, 404) ---------- */
.clc-page-band { background: var(--night); color: var(--paper); padding: calc(96px + clamp(48px, 7vw, 96px)) var(--pad-x) clamp(48px, 6vw, 88px); }
.clc-page-band .clc-eyebrow { color: var(--eyebrow-dark); margin-bottom: 18px; font-size: 16px; letter-spacing: .22em; }
.clc-page-band h1 { font-size: clamp(38px, 4.4vw, 68px); line-height: 1.04; }
.clc-page-body { padding: clamp(56px, 7vw, 104px) var(--pad-x); }
.clc-prose { max-width: 66ch; font-size: 17px; line-height: 1.8; color: var(--body); }
.clc-prose > * + * { margin-top: 1.2em; }
.clc-prose p { margin: 0; }
.clc-prose h2, .clc-prose h3 { color: var(--ink); line-height: 1.2; margin-top: 2em; }
.clc-prose h2 { font-size: clamp(24px, 2.2vw, 32px); }
.clc-prose h3 { font-size: clamp(20px, 1.8vw, 26px); }
.clc-prose a { border-bottom: 1px solid var(--rule); }
.clc-prose a:hover { border-bottom-color: var(--ink); }
.clc-prose img { height: auto; }
.clc-prose ul, .clc-prose ol { padding-left: 22px; }
.clc-prose blockquote { margin: 0; padding-left: 22px; border-left: 1px solid var(--rule); font-family: var(--serif); font-size: 1.15em; color: var(--ink); }
.clc-page-meta { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 26px; }
.clc-page-back { display: inline-flex; align-items: center; gap: 12px; margin-top: 48px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.clc-page-back:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ---------- reveal ---------- */
.clc-reveal { opacity: 0; transform: translateY(26px); }
.clc-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s cubic-bezier(.16, .84, .44, 1), transform 1s cubic-bezier(.16, .84, .44, 1);
}
.no-js .clc-reveal, .clc-no-motion .clc-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clc-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  .clc-hero { grid-template-columns: 1fr; }
  .clc-hero-figure { min-height: 46vh; order: 2; }
}
@media (max-width: 820px) {
  .clc-header-cta { margin-left: 16px; padding: 11px 18px; }
  .clc-cta-label { display: none; }
  .clc-nav-toggle { display: inline-flex; }
  .clc-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--pad-x) 28px;
    display: none;
  }
  .clc-nav.is-open { display: flex; }
  .clc-nav a { padding: 16px 0; width: 100%; }
  .clc-nav-list {
    flex-direction: column; align-items: flex-start; gap: 0; width: 100%;
  }
  .clc-nav-list li { width: 100%; }
}
@media (max-width: 560px) {
  .clc-header-cta { padding: 10px 14px; }
  .clc-cta-num { font-size: 14px; }
  .clc-logo .clc-word { display: none; }
}
.clc-footer-contact {
  max-width: 1280px; margin: 52px auto 0; padding-top: 40px;
  border-top: 1px solid rgba(244, 242, 237, .16);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 18px clamp(32px, 6vw, 88px);
  font-size: 14px; color: var(--dim); text-align: center;
}
.clc-footer-contact address { font-style: normal; }
@media (max-width: 620px) {
  .clc-area { min-height: 0; padding: 34px 22px 32px; }
  .clc-footer-base { justify-content: center; text-align: center; }
}

/* ---------- WordPress admin bar offset ---------- */
.admin-bar .clc-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .clc-header { top: 46px; } }

/* ---------- print ---------- */
@media print {
  .clc-header, .clc-skip, .clc-form, .clc-footer-grid { display: none !important; }
  .clc-dark, .clc-footer { background: #fff !important; color: #000 !important; }
  .clc-section { min-height: 0 !important; padding: 32px 0 !important; }
  .clc-reveal { opacity: 1 !important; transform: none !important; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: none; }
}
