/* O’Shea Legal — homepage concept. Editorial Dublin chambers. */

:root {
  --ivory: #F6F1E8;
  --ivory-deep: #E8DFD0;
  --ink: #1A1D16;
  --ink-soft: #2E342C;
  --forest: #1F3D2B;
  --forest-deep: #15281D;
  --brass: #B08D57;
  --brass-soft: #C4A574;
  --brass-line: rgba(176, 141, 87, 0.42);
  --mist: rgba(246, 241, 232, 0.72);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  --header: 72px;
  --concept: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body.is-nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, p, ul, blockquote, figure, address {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 80;
  padding: 12px 16px;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

::selection {
  background: var(--forest);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.kicker {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.kicker-ink { color: var(--forest); }
.kicker-brass { color: var(--brass-soft); }

/* Sticky chrome: concept bar + header stay together */
.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
}

.concept-bar {
  min-height: var(--concept);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-deep);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.35;
}

/* Header */
.site-header {
  position: relative;
  height: var(--header);
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--brass-line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
  margin-right: auto;
}

.wordmark-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--forest);
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wordmark-legal {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
}

.nav {
  display: none;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--brass-line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header.is-open .nav-toggle-bars { background: transparent; }
.site-header.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  background: var(--forest);
  color: var(--ivory);
  padding: 16px 24px 32px;
  border-top: 1px solid var(--brass-line);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.2;
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(176, 141, 87, 0.28);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-solid {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

.btn-solid:hover {
  background: var(--forest-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--brass-line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brass);
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn-brass:hover {
  background: var(--brass-soft);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--concept) - var(--header));
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 22%;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(21, 40, 29, 0.18) 0%, rgba(21, 40, 29, 0.22) 34%, rgba(21, 40, 29, 0.88) 100%),
    linear-gradient(90deg, rgba(21, 40, 29, 0.72) 0%, rgba(21, 40, 29, 0.28) 55%, rgba(21, 40, 29, 0.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
  margin-left: max((100% - var(--wrap)) / 2, var(--gutter));
  margin-right: var(--gutter);
  width: min(640px, calc(100% - (var(--gutter) * 2)));
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero .lead {
  margin-top: 24px;
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--mist);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.hero-phone {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 44px;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
}

.hero-phone-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

/* Facts */
.facts {
  background: var(--ivory);
  border-top: 1px solid var(--brass-line);
  border-bottom: 1px solid var(--brass-line);
  padding: 48px 0;
}

.facts-grid {
  display: grid;
  gap: 32px;
}

.fact-num {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--forest);
}

.fact-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fact-copy {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 32ch;
}

/* Practice */
.practice {
  padding: 88px 0 96px;
  background:
    linear-gradient(180deg, var(--ivory) 0%, #F3EDE2 100%);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 48px;
}

.section-head h2,
.firm-copy h2,
.visit-copy h2,
.enquire-intro h2,
.form-success h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-dek {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.practice-grid {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--brass-line);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 200ms var(--ease);
}
.card:hover {
  border-color: var(--brass);
}

.card-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--brass);
}

.card h3 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}

.card p {
  color: var(--ink-soft);
}

.card ul {
  margin-top: auto;
  padding: 20px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card li {
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border: 1px solid var(--brass-line);
  color: var(--forest);
}


.practice-figure {
  margin: 0 0 32px;
  overflow: hidden;
  max-height: 420px;
}
.practice-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 62%;
}
.chapter {
  margin: 0;
  position: relative;
  background: var(--ink);
}
.chapter img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.92;
}
.chapter figcaption {
  position: absolute;
  left: max((100% - var(--wrap)) / 2, var(--gutter));
  bottom: 24px;
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.08em;
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}

/* Firm */
.firm {
  display: grid;
  background: var(--ivory);
}

.firm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  min-height: 320px;
  max-height: 520px;
}

.firm-copy {
  padding: 48px var(--gutter) 64px;
}

.firm-copy > p {
  margin-top: 16px;
  max-width: 42ch;
}

.claims {
  list-style: none;
  padding: 32px 0 0;
  display: grid;
  gap: 24px;
}

.claims li {
  padding-left: 20px;
  border-left: 1px solid var(--brass);
}

.claims-title {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.claims-body {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.firm-aside {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 46ch;
  padding-top: 24px;
  border-top: 1px solid var(--brass-line);
}

/* Testimonials */
.words {
  position: relative;
  padding: 88px 0 96px;
  background: var(--forest-deep);
  color: var(--ivory);
  overflow: hidden;
}

.words::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/library-wall.jpg") center / cover no-repeat;
  opacity: 0.14;
  mix-blend-mode: luminosity;
}

.words .wrap {
  position: relative;
}

.section-head-light .section-dek,
.section-head-light h2 {
  color: var(--ivory);
}

.quotes {
  display: grid;
  gap: 24px;
}

.quotes blockquote {
  padding: 8px 0 0;
  border-top: 1px solid var(--brass-line);
}

.quotes blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.28;
}

.quotes blockquote p::before {
  content: "“";
  color: var(--brass);
  font-style: normal;
  margin-right: 2px;
}

.quotes footer {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

/* Visit */
.visit {
  display: grid;
  background: var(--ivory);
}

.visit-copy {
  padding: 56px var(--gutter) 48px;
}

.visit-copy > p {
  margin-top: 16px;
  max-width: 40ch;
}

.visit-copy address {
  font-style: normal;
  margin: 28px 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  display: grid;
}

.visit-contacts {
  list-style: none;
  padding: 0 0 28px;
  display: grid;
  gap: 12px;
}

.visit-contacts li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  min-height: 44px;
}

.visit-contacts span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.visit-contacts a {
  text-decoration: none;
  border-bottom: 1px solid var(--brass-line);
  width: fit-content;
}

.visit-media {
  position: relative;
}

.visit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  min-height: 360px;
  max-height: 640px;
}

.visit-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  background: rgba(246, 241, 232, 0.9);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* Enquire */
.enquire {
  background: var(--forest);
  color: var(--ivory);
  padding: 88px 0 96px;
}

.enquire-grid {
  display: grid;
  gap: 40px;
}

.enquire-intro > p {
  margin-top: 16px;
  color: var(--mist);
  max-width: 42ch;
}

.enquire-direct {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enquire-direct a {
  font-family: var(--serif);
  font-size: 28px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.form,
.form-success {
  background: var(--ivory);
  color: var(--ink);
  padding: 28px 24px 32px;
}

.form-success h2 {
  margin: 8px 0 16px;
}

.form-success a {
  color: var(--forest);
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--brass-line);
  border-radius: 0;
  background: transparent;
  appearance: none;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%),
    linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 6px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 12px;
}

.footer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-bottom-color: var(--brass);
}

.footer-legal {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(246, 241, 232, 0.7);
  display: grid;
  gap: 12px;
  max-width: 72ch;
}

.footer-concept {
  color: var(--brass-soft);
}

/* Desktop */
@media (min-width: 800px) {
  :root { --gutter: 32px; }

  .concept-bar { letter-spacing: 0.16em; }

  .nav,
  .header-actions { display: flex; }

  .nav-toggle,
  .mobile-nav { display: none !important; }

  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 48px;
  }

  .practice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .card { padding: 32px 32px 36px; }

  .firm {
    grid-template-columns: 0.92fr 1.08fr;
    min-height: 640px;
  }

  .firm-media img {
    min-height: 100%;
    max-height: none;
  }

  .firm-copy {
    padding: 80px 64px 80px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .quotes {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .visit {
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
  }

  .visit-copy {
    padding: 80px 48px 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .practice-figure {
    max-height: 480px;
  }
  .practice-figure img {
    height: 480px;
  }

  .visit-media img {
    min-height: 100%;
    max-height: none;
  }

  .enquire-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 64px;
    align-items: start;
  }

  .form,
  .form-success { padding: 40px 40px 44px; }

  .field-row { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 0.8fr; }
}

@media (min-width: 1120px) {
  .practice-grid { gap: 24px; }
  .hero-inner { padding: 88px 0 96px; }
}

@media (max-width: 379px) {
  :root {
    --gutter: 20px;
    --header: 64px;
  }
  .hero h1 { font-size: 2.5rem; }
  .wordmark-name { font-size: 20px; }
}

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