/*
Theme Name: Roberts Reidlaw Custom
Theme URI: https://example.com
Author: Codex
Description: Custom theme for Roberts Reidlaw property law content.
Version: 0.1.1
*/

:root {
  --ink: #0b1a2b;
  --paper: #f6f1e8;
  --accent: #123a7a;
  --accent-2: #0b234f;
  --shadow: rgba(11, 26, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Public Sans", "Arial", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f6efe6 0%, #e7dacb 40%, #f0e7dd 70%, #e9edf4 100%);
}

header {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 72px;
  background-image: linear-gradient(180deg, rgba(11, 26, 43, 0.65), rgba(11, 26, 43, 0.45)), url("https://robertsreidlaw.com/wp-content/uploads/2025/09/aleix-ventayol-yPoM-wmzKMM-unsplash-scaled.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f4f7ff;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

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


.container {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--paper);
}

.logo {
  width: 360px;
  height: auto;
  display: block;
}

.logo-wrap {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

h1, h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin: 0 0 16px;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  max-width: 820px;
  color: #d8cfc3;
}

.hero-subtitle {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 0 0 16px;
  color: var(--paper);
}

.hero-tagline {
  font-size: 1.08rem;
  margin: 0 0 16px;
  color: #ffffff;
}

header p {
  color: var(--paper);
}

p {
  margin: 0 0 16px;
  line-height: 1.7;
  font-size: 1.02rem;
}



.about-media {
  float: right;
  width: 280px;
  margin: 6px 0 16px 24px;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 22px 40px rgba(16, 19, 21, 0.12);
  object-fit: cover;
}

.about-media figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #334463;
  font-style: italic;
}

.section {
  padding: 20px 24px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(11, 26, 43, 0.08);
}

.card h3 {
  margin-top: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.4rem;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(120deg, #123a7a, #0b234f);
  color: #f4f7ff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 26px 48px rgba(18, 58, 122, 0.35);
}

.cta a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: #0b234f;
  text-decoration: none;
  font-weight: 600;
}

.post-hero {
  margin-bottom: 32px;
}

.post-intro {
  max-width: 620px;
  font-size: 1.05rem;
}

.post-grid {
  display: grid;
  gap: 24px;
}

.post-card {
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(11, 26, 43, 0.08);
}

.post-card-title {
  margin: 0 0 8px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.6rem;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-meta {
  font-size: 0.9rem;
  color: #5b6b85;
  margin: 0 0 16px;
}

.post-excerpt p:last-child {
  margin-bottom: 0;
}

.post-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.post-single,
.page-single {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(11, 26, 43, 0.08);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: "Fraunces", "Times New Roman", serif;
}

.post-content a {
  color: var(--accent);
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.post-content ul,
.post-content ol {
  padding-left: 20px;
}

.post-footer {
  margin-top: 24px;
}

.post-pagination {
  margin-top: 32px;
}

.post-pagination .page-numbers {
  display: inline-block;
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: var(--accent-2);
}

.post-pagination .current {
  background: var(--accent-2);
  color: #ffffff;
}

.faq {
  display: grid;
  gap: 16px;
}

.faq details {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid rgba(11, 26, 43, 0.12);
  border-radius: 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  font-weight: 600;
}

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

.faq .answer {
  margin-top: 12px;
  line-height: 1.7;
}

footer {
  padding: 28px 24px 48px;
  color: #44536b;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  header {
    padding: 72px 24px 56px;
    background-attachment: scroll;
  }


  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-wrap {
    order: -1;
  }

  .about-media {
    float: none;
    width: 100%;
    max-width: 360px;
    margin: 0 0 16px 0;
  }
}
