@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap");

:root {
  --primary: #2D2560;
  --secondary: #B8893A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 26px;
  color: #333;
  background: #FDFCF9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: 34px;
  font-weight: 400;
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

.title {
  font-size: 55px;
}

a,
a:hover {
  text-decoration: none;
  color: inherit;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.bg-lavender {
  background: #EEEAF6;
}

/* Body copy on lavender matches heading purple (h2), not default body gray */
.bg-lavender .serif-normal {
  color: var(--primary);
}

.logo {
  max-width: 60%;
  width: 100%;
}

.serif-normal {
  font-family: 'Playfair Display', serif;
  font-style: normal;
}

.serif-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 34px;
}

.eyebrow {
  font-size: 15px;
  letter-spacing: 1px;
}

.gold-rule {
  width: 50px;
  height: 1px;
  background: var(--secondary);
  border: none;
  opacity: 0.55;
  display: block;
  margin: 2.5rem auto;
}

/* --- Practice cards --- */
.practice-card {
  background: var(--primary);
  border-top: 3px solid var(--secondary);
  padding: 2.4rem 2rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.28s, transform 0.28s;
}

.practice-card:hover {
  box-shadow: 0 10px 40px rgba(45, 37, 96, 0.28);
  transform: translateY(-3px);
}

.card-logo {
  display: block;
  margin: 0 auto 2rem;
  height: auto;
  width: 100px;
  border-radius: 100%;
}

.practice-card h3 {
  color: #fff;
  font-style: italic;
}

.practice-card h3 a {
  color: #fff;
  transition: color 0.2s;
}

.practice-card h3 a:hover {
  color: var(--secondary);
}

.card-rule {
  width: 28px;
  height: 1px;
  background: var(--secondary);
  border: none;
  opacity: 0.4;
  display: block;
}

.practice-card p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  flex-grow: 1;
  text-align: left;
}

.card-link {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--secondary);
  font-weight: 600;
  margin-top: auto;
  padding-top: 1.2rem;
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.7;
  color: var(--secondary);
}

/* --- Founders --- */
.founders-photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: url("../images/andrew-stacy.jpeg") center / cover no-repeat;
  border: 1px solid rgba(184, 137, 58, 0.3);
  margin: 0 auto;
}

.founders-sig {
  font-size: 20px;
  line-height: 1.9;
}

/* --- Contact --- */
.phone-number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  transition: color 0.22s;
}

.phone-number:hover {
  color: var(--secondary) !important;
}

.contact-email {
  letter-spacing: 0.06em;
  word-wrap: break-word;
}

.contact-icon {
  font-size: 22px;
  color: #000;
}

/* --- Footer --- */
footer {
  background: #fff;
  color: #999;
  font-size: 16px;
  border-top: 1px solid #e8e4de;
}

.footer-mark {
  width: 50px;
}

/* --- Spacing: rem → vh --- */
.mt-1 {
  margin-top: 1vh !important;
}

.mt-2 {
  margin-top: 2vh !important;
}

.mt-3 {
  margin-top: 3vh !important;
}

.mt-4 {
  margin-top: 4vh !important;
}

.mt-5 {
  margin-top: 5vh !important;
}

.mb-1 {
  margin-bottom: 1vh !important;
}

.mb-2 {
  margin-bottom: 2vh !important;
}

.mb-3 {
  margin-bottom: 3vh !important;
}

.mb-4 {
  margin-bottom: 4vh !important;
}

.mb-5 {
  margin-bottom: 5vh !important;
}

.pt-1 {
  padding-top: 1vh !important;
}

.pt-2 {
  padding-top: 2vh !important;
}

.pt-3 {
  padding-top: 3vh !important;
}

.pt-4 {
  padding-top: 4vh !important;
}

.pt-5 {
  padding-top: 5vh !important;
}

.pb-1 {
  padding-bottom: 1vh !important;
}

.pb-2 {
  padding-bottom: 2vh !important;
}

.pb-3 {
  padding-bottom: 3vh !important;
}

.pb-4 {
  padding-bottom: 4vh !important;
}

.pb-5 {
  padding-bottom: 5vh !important;
}

.my-1 {
  margin-top: 1vh !important;
  margin-bottom: 1vh !important;
}

.my-2 {
  margin-top: 2vh !important;
  margin-bottom: 2vh !important;
}

.my-3 {
  margin-top: 3vh !important;
  margin-bottom: 3vh !important;
}

.my-4 {
  margin-top: 4vh !important;
  margin-bottom: 4vh !important;
}

.my-5 {
  margin-top: 5vh !important;
  margin-bottom: 5vh !important;
}

.py-1 {
  padding-top: 1vh !important;
  padding-bottom: 1vh !important;
}

.py-2 {
  padding-top: 2vh !important;
  padding-bottom: 2vh !important;
}

.py-3 {
  padding-top: 3vh !important;
  padding-bottom: 3vh !important;
}

.py-4 {
  padding-top: 4vh !important;
  padding-bottom: 4vh !important;
}

.py-5 {
  padding-top: 5vh !important;
  padding-bottom: 5vh !important;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .title {
    font-size: 50px;
  }
}

@media (max-width: 991px) {
  .title {
    font-size: 40px;
  }

  h2,
  .serif-quote {
    font-size: 28px;
  }
}

@media (max-width: 767px) {

  body,
  p,
  .practice-card p {
    font-size: 20px;
  }

  .title {
    font-size: 36px;
  }

  h2,
  .serif-quote {
    font-size: 24px;
  }

  .logo {
    max-width: 80%;
  }

  .phone-number {
    font-size: 35px;
  }
}

@media (max-width: 567px) {

  h2,
  .serif-quote {
    font-size: 21px;
  }

  .serif-quote-sm {
    font-size: 16px;
  }

  .title {
    font-size: 28px;
  }

  body,
  p,
  .practice-card p {
    font-size: 18px;
  }

  .phone-number {
    font-size: 32px;
  }
}