/*
Theme Name: Timmi Law
Theme URI: https://example.test/
Author: Codex
Description: Editorial, minimal WordPress theme for a premium law firm.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: timmi-law
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

:root {
  --logo-bg: #ffffff;
  --sand: #ffffff;
  --paper: #ffffff;
  --ink: #1e252b;
  --muted: #62635d;
  --line: #e4e0da;
  --brass: #98002e;
  --hover-red: #98002e;
  --deep: #182027;
  --deep-soft: #24303a;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Plus Jakarta Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.68;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(0.92);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.site-footer .footer-inner,
.wp-site-blocks > .wp-block-group,
.entry-content > .wp-block-group {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 142px;
}

.brand-logo img,
.footer-logo img {
  width: 100%;
  height: auto;
  filter: none;
}

.brand-logo img {
  display: block;
}

.brand span {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-top: 8px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  text-decoration: none;
}

.header-cta,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  min-height: 52px;
  padding: 0 22px;
  text-decoration: none;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--hover-red);
  border-color: var(--hover-red);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: transparent;
  color: var(--hover-red);
  border-color: var(--hover-red);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 88px);
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  font-size: clamp(26px, 3vw, 36px);
}

p {
  margin: 0;
}

.entry-content > .wp-block-group {
  padding-block: 72px;
}

.entry-content > .wp-block-group + .wp-block-group {
  border-top: 1px solid var(--line);
}

.eyebrow {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: end;
  min-height: calc(100vh - 82px);
  padding-block: 84px 64px;
}

.hero-text {
  max-width: 760px;
}

.lead {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
  max-width: 690px;
  margin-top: 30px;
}

.hero .wp-block-buttons {
  margin-top: 38px;
}

.portrait-frame {
  min-height: 520px;
  background: #f7f4ef;
  display: grid;
  align-items: end;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.entry-content > .wp-block-group.hero--landscape {
  display: block;
  width: 100%;
  min-height: calc(100vh - 82px);
  padding: clamp(120px, 18vh, 220px) max(20px, calc((100vw - 1180px) / 2));
  background-image: linear-gradient(90deg, rgba(10, 20, 31, 0.7) 0%, rgba(10, 20, 31, 0.47) 44%, rgba(10, 20, 31, 0.1) 100%), url("assets/hero-alps.webp");
  background-position: center;
  background-size: cover;
  color: var(--paper);
}

.hero--landscape .hero-text {
  position: relative;
  max-width: 720px;
}

.hero--landscape h1,
.hero--landscape .lead {
  color: var(--paper);
}

.hero--landscape .eyebrow {
  color: var(--paper);
}

.hero--landscape .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.hero--landscape .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  border-color: #f2efea;
  background: #f2efea;
  color: var(--ink);
}

.hero--landscape .is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--paper);
}

@media (max-width: 760px) {
  .entry-content > .wp-block-group.hero--landscape {
    background-image: linear-gradient(90deg, rgba(10, 20, 31, 0.7) 0%, rgba(10, 20, 31, 0.47) 44%, rgba(10, 20, 31, 0.1) 100%), url("assets/hero-alps-960.webp");
    min-height: calc(100svh - 72px);
    padding-block: 96px;
    background-position: 58% center;
  }
}

.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.kicker {
  color: var(--muted);
  font-size: 15px;
  max-width: 260px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 44px;
}

.service-card {
  min-height: 280px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card h3 {
  font-size: 31px;
  margin-bottom: 22px;
}

.service-card p {
  color: var(--muted);
  font-size: 16px;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--brass);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.feature img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.feature img.profile-photo {
  aspect-ratio: 3 / 5;
  filter: none;
  object-position: center 35%;
}

.dark-band {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-inline: auto;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  color: var(--ink);
  overflow: hidden;
}

.entry-content > .wp-block-group.dark-band,
.wp-site-blocks > .wp-block-group.dark-band {
  padding: clamp(56px, 7vw, 82px) clamp(28px, 6vw, 72px);
}

.dark-band > .wp-block-group {
  width: 100%;
  margin-inline: auto;
  padding: 0;
}

.dark-band h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  max-width: 980px;
}

.dark-band .lead {
  font-size: clamp(18px, 1.8vw, 22px);
  max-width: 720px;
  margin-top: 26px;
}

.dark-band .wp-block-buttons,
.dark-band .wp-block-button {
  margin-top: 26px;
}

.dark-band p {
  color: var(--muted);
}

.dark-band .eyebrow {
  color: var(--brass);
}

.page-hero {
  padding-block: 94px 58px;
}

.page-hero .lead {
  max-width: 780px;
}

.accordion-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 26px;
}

details[open] summary::after {
  content: "-";
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 32px;
}

.details-grid h3,
.details-grid h4,
.process-step h3 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.details-grid p,
.details-grid li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-step {
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  color: var(--ink);
}

.timeline {
  border-top: 1px solid var(--line);
  margin-top: 38px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row strong {
  color: var(--brass);
}

.contact-grid,
.form-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 7vw, 84px);
}

.info-list {
  border-top: 1px solid var(--line);
}

.info-list p {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-content .info-list {
  border-top: 0;
}

.privacy-content h2 {
  margin: 54px 0 16px;
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

.privacy-content .info-list h2:first-child {
  margin-top: 0;
}

.privacy-content .info-list p {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: 17px;
  line-height: 1.72;
}

.privacy-content .info-list a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.map-placeholder {
  min-height: 360px;
  background: #faf8f5;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.notice {
  border-left: 2px solid var(--brass);
  background: #faf8f5;
  padding: 24px 28px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f5;
  color: var(--ink);
  font: inherit;
  padding: 14px 15px;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox-label input {
  width: auto;
  margin-top: 7px;
}

body.intake-modal-open {
  overflow: hidden;
}

.intake-launcher {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  width: 64px;
  min-height: 64px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(21, 20, 21);
  box-shadow: 0 18px 52px rgba(24, 32, 39, 0.22);
  color: var(--paper);
}

.intake-launcher__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
}

.intake-launcher:hover {
  background: rgb(21, 20, 21);
}

.intake-launcher svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.intake-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: none;
  visibility: hidden;
}

.intake-modal[hidden] {
  display: none;
}

.intake-modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.intake-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 32, 39, 0.52);
  opacity: 0;
  transition: opacity 180ms ease;
}

.intake-modal[aria-hidden="false"] .intake-modal__backdrop {
  opacity: 1;
}

.intake-modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(680px, calc(100vh - 56px));
  overflow: auto;
  border: 1px solid rgba(24, 32, 39, 0.18);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 26px 80px rgba(24, 32, 39, 0.26);
  outline: none;
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.intake-modal[aria-hidden="false"] .intake-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.intake-modal__close {
  position: sticky;
  top: 18px;
  float: right;
  z-index: 1;
  width: 44px;
  min-height: 44px;
  margin: 18px 18px 0 0;
  padding: 0;
  border-color: var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.intake-modal__intro,
.intake-modal__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 6vw, 76px);
  min-height: 560px;
  padding: clamp(42px, 5vw, 70px) clamp(44px, 6vw, 80px);
}

.intake-modal__form {
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  min-height: auto;
}

.intake-modal__intro[hidden],
.intake-modal__form[hidden] {
  display: none;
}

.intake-modal__copy h2,
.intake-modal__form h2 {
  font-family: var(--sans);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 700;
  line-height: 1;
}

.intake-modal__copy p,
.intake-modal__form p {
  max-width: 500px;
  color: #737982;
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.42;
  margin-top: 22px;
}

.intake-modal__start {
  margin-top: 32px;
  min-width: 290px;
  min-height: 58px;
  padding-inline: 26px;
  font-size: 17px;
}

.intake-steps {
  display: grid;
  gap: 0;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  align-items: center;
  padding: 12px 0;
}

.intake-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 74px;
  bottom: -12px;
  width: 2px;
  background: var(--line);
}

.intake-steps span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}

.intake-steps small,
.intake-steps strong {
  display: block;
  font-family: var(--sans);
}

.intake-steps small {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.intake-steps strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.intake-modal__form form {
  align-self: start;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink);
  margin-top: 60px;
}

.footer-inner {
  padding-block: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  font-size: 15px;
}

.footer-inner a,
.footer-inner p {
  color: var(--muted);
}

.footer-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
  background: var(--logo-bg);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding-block: 16px;
  }

  .brand-logo {
    width: 132px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .header-cta {
    width: fit-content;
  }

  .hero,
  .split,
  .feature,
  .contact-grid,
  .form-grid,
  .details-grid,
  .process,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 56px;
  }

  .portrait-frame {
    min-height: auto;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .intake-launcher {
    right: 18px;
    bottom: 18px;
    width: 64px;
    min-height: 64px;
  }

  .intake-launcher__icon {
    width: 64px;
    height: 64px;
  }

  .intake-modal__intro,
  .intake-modal__form {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 42px 24px;
  }

  .intake-modal__copy h2,
  .intake-modal__form h2 {
    font-size: 42px;
  }

  .intake-steps {
    align-content: start;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .split {
    grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(32px, 5vw, 56px);
  }

  .split .kicker {
    max-width: none;
  }

  .split h2 {
    font-size: clamp(38px, 5.2vw, 50px);
  }
}

@media (max-width: 640px) {
  .header-inner,
  .site-footer .footer-inner,
  .wp-site-blocks > .wp-block-group,
  .entry-content > .wp-block-group {
    width: min(100% - 28px, 1180px);
  }

  .dark-band {
    width: min(100% - 28px, 1180px);
  }

  .entry-content > .wp-block-group.dark-band,
  .wp-site-blocks > .wp-block-group.dark-band {
    padding: 42px 22px;
  }

  .dark-band h2 {
    font-size: 34px;
  }

  .dark-band .lead {
    font-size: 18px;
    margin-top: 22px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 124px;
  }

  .main-nav {
    font-size: 13px;
    gap: 10px 16px;
  }

  .header-cta,
  .wp-block-button,
  .wp-block-button__link,
  input[type="submit"] {
    width: 100%;
  }

  .wp-block-buttons {
    width: 100%;
  }

  .entry-content > .wp-block-group {
    padding-block: 52px;
  }

  .hero {
    padding-block: 44px;
  }

  .lead {
    font-size: 18px;
  }

  .intake-modal {
    padding: 12px;
  }

  .intake-launcher {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    width: 52px;
    padding: 0;
    border-radius: 999px;
  }

  .intake-launcher__icon {
    width: 52px;
    height: 52px;
  }

  .intake-launcher svg {
    width: 28px;
    height: 28px;
  }

  .intake-modal__panel {
    max-height: calc(100vh - 24px);
  }

  .intake-modal__copy p,
  .intake-modal__form p {
    font-size: 18px;
  }

  .intake-modal__start {
    width: 100%;
    min-width: 0;
  }

  .intake-steps li {
    grid-template-columns: 54px 1fr;
    gap: 18px;
  }

  .intake-steps span {
    width: 54px;
    height: 54px;
  }

  .intake-steps li:not(:last-child)::after {
    left: 26px;
    top: 70px;
  }

  .intake-steps small {
    font-size: 15px;
  }

  .intake-steps strong {
    font-size: 17px;
  }

  .service-card,
  .process-step {
    min-height: auto;
    padding: 24px;
  }

  summary::after {
    float: none;
    margin-left: 12px;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice--error {
  border-left-color: #b00020;
}

.not-found {
  padding-block: clamp(80px, 14vh, 160px);
}

details[id] {
  scroll-margin-top: 110px;
}
