/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Colors */
  --primary: #472e53;
  --cream: #f6e9e0;
  --light: #fff6f1;
  --accent: #efab18;
  --lila: #877091;

  /* Layout */
  --max-width: 1100px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  /* Spacing */
  --gap: 20px;
  --gap-sm: 12px;
  --gap-lg: 36px;
  --container-padding: 20px;
  --section-padding: 40px 0;
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  margin: 0;
  padding: 0;
  color: var(--primary);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

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

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

.text-link {
  text-decoration: underline;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4 {
  font-family: "Libre Baskerville", serif;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.875rem;
  text-decoration: 0.1rem underline var(--accent);
  text-underline-offset: 0.25rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
}

blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1rem;
}

.muted {
  color: var(--lila);
  font-size: 0.875rem;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ========================================
   BUTTONS & LINKS
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  color: var(--primary);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(71, 46, 83, 0.15);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--light);
}

.link {
  color: var(--lila);
  transition: color 0.3s ease;
}

.link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ========================================
   NAVIGATION
   ======================================== */
.header {
  top: 0;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream);
  z-index: 100;
  overflow: visible; /* important! */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  min-height: 60px; /* set the nav height you want */
  overflow: visible; /* important! */
}

.nav__logo {
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 11rem;
  width: auto;
  position: relative;
  margin-bottom: -1rem; /* negative margin pushes it down without expanding the nav */
}

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__cta {
  flex-shrink: 0;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: var(--section-padding);
}

.hero__content {
  display: grid;
  gap: 2rem;
}

.hero__text {
  text-align: left;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero__cta {
  margin-top: 1.5rem;
}

.hero__media {
  display: none;
  width: 100%;
}

.hero__media img {
  width: 100%;
  height: 30vh;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: var(--section-padding);
  background-color: var(--primary);
  color: var(--cream);
  border-bottom: 1px solid var(--cream);
}

.services__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--gap-sm);
  /* Default to 2 column on mobile, delete to go back to 1c */
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.services__list li {
  background: var(--light);
  color: var(--primary);
  padding: 0.35rem;
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.services__list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(71, 46, 83, 0.08);
}

.services__list li img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.services__list li strong {
  font-weight: 500;
  font-size: 1.125rem;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  background-color: var(--lila);
  padding: var(--section-padding);
}

.testimonials h2,
.testimonials p {
  color: var(--cream);
}

.testimonials__grid {
  display: grid;
  gap: var(--gap-sm);
  margin-bottom: 1.5rem;
}

.testimonials__card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.testimonials__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.testimonials__card blockquote {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.testimonials__card .muted {
  color: var(--lila);
}

.testimonials .link {
  color: var(--cream);
}

.testimonials .link:hover {
  color: var(--accent);
}
/* ========================================
   TEAM SECTION
   ======================================== */
.team {
  padding: var(--section-padding);
}

.team__content {
  display: grid;
  gap: 2rem;
}

.team__text {
  text-align: left;
}

.team__media {
  width: 100%;
  display: flex;
  justify-content: end;
}

.team__media img {
  /* width: 100%; */
  height: 30vh;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ========================================
   LOCATION SECTION
   ======================================== */
.location {
  background-color: var(--primary);
  padding: var(--section-padding);
}

.location h2 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.location__grid {
  display: grid;
  gap: var(--gap);
}

.location__map {
  background-color: #fff;
  padding: 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.location__map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.location__info {
  color: var(--cream);
  font-size: 0.9375rem;
}

.location__info h3 {
  color: var(--cream);
  margin-top: 0;
}

.location__info .address {
  margin-bottom: 1.25rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--light);
  padding: 2.5rem 0;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__col h4 {
  margin-bottom: 1rem;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer__link .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.footer__col--right {
  text-align: left;
}

.footer__note {
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream);
}

/* ========================================
   MEDIA QUERIES - TABLET (min-width: 650px)
   ======================================== */
@media (min-width: 650px) {
  :root {
    --container-padding: 28px;
    --section-padding: 60px 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  /* Hero */
  .hero__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
  }
  .hero__media {
    display: block;
  }
  .hero__media img {
    display: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Services */
  .services__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .services__list li img {
    height: 220px;
  }

  /* Team */
  .team__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
  }

  .team__media {
    width: 100%;
    display: flex;
    justify-content: end;
  }

  .team__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Location */
  .location__grid {
    grid-template-columns: 2fr 1fr;
  }

  .location__map iframe {
    height: 350px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__col--right {
    text-align: right;
  }
}

/* ========================================
   MEDIA QUERIES - DESKTOP (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
  /* Services */
  .services__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__list li img {
    height: 240px;
  }

  /* Location */
  .location__map iframe {
    height: 400px;
  }

  .nav__links {
    display: flex;
    gap: var(--gap-sm);
    align-items: center;
  }

  .nav__links a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .nav__links a:hover {
    text-decoration: 0.1rem underline var(--accent);
    text-underline-offset: 0.25rem;
  }

  .nav__cta {
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
  }

  .team__text p,
  .hero__text p {
    font-size: 1.2rem;
  }
}
