/* ============================================================
   Zachariah Law Chambers — shared stylesheet
   ============================================================ */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500&display=swap');

/* --- Reset & box model --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Design tokens --- */
:root {
  --bg:         #faf8f5;
  --text:       #1a1a1a;
  --navy:       #1e2a44;
  --gold:       #a07e3e;
  --border:     #e5e1d8;
  --nav-text:   #f0ebe0;
  --link:       #1e2a44;
  --link-hover: #a07e3e;
  --max-width:  700px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* --- Base --- */
html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.3rem; }

strong { font-weight: 500; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover, a:focus {
  color: var(--link-hover);
}

/* --- Layout container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Site header --- */
.site-header {
  background-color: var(--navy);
  padding: 1.1rem 0 0.6rem;
  border-bottom: 3px solid var(--gold);
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.site-symbol {
  height: 1.4em;
  width: auto;
  flex-shrink: 0;
}

.site-name:hover {
  color: #c4a060;
}

/* --- Navigation --- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.15rem;
  align-items: center;
}

.site-nav a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background-color: rgba(255,255,255,0.1);
  color: var(--gold);
}

/* --- Page hero / intro block --- */
.page-intro {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-intro h1 {
  margin-bottom: 0.75rem;
}

.page-intro p {
  font-size: 1.05rem;
  max-width: 60ch;
}

/* --- Main content area --- */
.page-content {
  padding-bottom: 3rem;
}

.page-content section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-content section:last-child {
  border-bottom: none;
}

/* --- Practice area list (home page) --- */
.practice-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.practice-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.practice-list li:last-child {
  border-bottom: none;
}

.practice-list a {
  font-weight: 500;
}

/* --- Highlight box (LAO, key info) --- */
.highlight-box {
  background-color: #f0ede6;
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 2px 2px 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* --- CTA button --- */
.btn {
  display: inline-block;
  background-color: var(--navy);
  color: var(--nav-text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  margin-top: 0.5rem;
}

.btn:hover, .btn:focus {
  background-color: #2c3d60;
  color: var(--nav-text);
}

/* --- Disclaimer box --- */
.disclaimer-box {
  background-color: #f5f2ed;
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: #444;
  border-radius: 2px;
}

.disclaimer-box p {
  margin-bottom: 0;
}

/* --- Contact form --- */
.contact-form {
  margin: 1.5rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c8c4bc;
  border-radius: 2px;
  background-color: #fff;
  color: var(--text);
  line-height: 1.5;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* --- Resources links list --- */
.resource-group {
  margin-bottom: 2rem;
}

.resource-group h3 {
  margin-bottom: 0.75rem;
}

.resource-list {
  list-style: none;
  padding-left: 0;
}

.resource-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list .resource-desc {
  display: block;
  color: #555;
  font-size: 0.88rem;
  margin-top: 0.1rem;
}

.resource-sublist {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.4rem 0 0.2rem;
}

.resource-sublist li {
  border-bottom: none;
  padding: 0.15rem 0;
  font-size: 0.9rem;
}

/* --- Address block --- */
.address-block {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

/* --- Office photo --- */
.office-photo {
  margin: 0 0 1.25rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.office-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Anna's portrait --- */
.anna-photo {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.anna-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.anna-photo figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.5rem;
}

.home-portrait {
  max-width: 600px;
}

/* --- Contact form: fieldset + radio group --- */
.contact-form fieldset {
  border: 1px solid #c8c4bc;
  padding: 0.6rem 1rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.contact-form legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0 0.4rem;
}

.contact-form .radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.35rem;
}

.contact-form .radio-row label {
  font-weight: 400;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
}

.contact-form .radio-row input[type="radio"] {
  width: auto;
  margin: 0;
}

/* --- Photo placeholder --- */
.photo-placeholder {
  width: 160px;
  height: 200px;
  background-color: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #888;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* --- Testimonials (home page) --- */
.testimonial {
  margin: 0 0 1.75rem;
  padding: 0.25rem 0 0 1.25rem;
  border-left: 3px solid var(--gold);
}

.testimonial:last-of-type {
  margin-bottom: 1.5rem;
}

.testimonial blockquote {
  margin: 0 0 0.6rem;
  padding: 0;
}

.testimonial blockquote p {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #2a2a2a;
  margin-bottom: 0;
}

.testimonial figcaption {
  font-size: 0.88rem;
  color: #555;
}

.testimonial-name {
  display: block;
  font-weight: 500;
  color: var(--text);
}

.testimonial-matter {
  display: block;
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.1rem;
  color: #666;
}

.testimonial-disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* --- Site footer --- */
.site-footer {
  background-color: var(--navy);
  color: var(--nav-text);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.footer-firm {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
  display: block;
}

.site-footer a {
  color: var(--nav-text);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-disclaimer {
  color: #b8b4ac;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
}

/* --- Mobile: 600px and up --- */
@media (min-width: 600px) {
  h1 { font-size: 2.25rem; }

  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Desktop: 900px and up --- */
@media (min-width: 900px) {
  h1 { font-size: 2.5rem; }

  .site-name {
    font-size: 1.8rem;
  }

  .site-nav a {
    font-size: 0.88rem;
    padding: 0.35rem 0.7rem;
  }

  .site-footer .container {
    grid-template-columns: 2fr 1fr 2fr;
  }
}

/* --- Skip link for accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}
