/* ROOT VARIABLES - Define colours and base HTML appearance
   for: html, body, img, li, a, button, strong, small, and hr.

   Also setup the grid system.
*/
@import url('base.css');
@import url('hero.css');
@import url('truststrip.css');

/* QUOTE BLOCK - Formats the Quote Block */
@import url('quote.css');
/* .text formatting */
@import url('dottext.css');
@import url('content.css');
@import url('tiles.css');
@import url('testimonials.css');
@import url('appointment.css');
@import url('footer.css');

.align-center { text-align: center; }
.intro { max-width: 40rem; }
.intro *:not(:last-child) { margin-bottom: 1em; }

/* Animations */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes slideIn { from {opacity:0; transform: translateY(-50px) scale(.9);} to {opacity:1; transform: translateY(0) scale(1);} }


/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */

.header {
  position: fixed; top: 0; left: 0;
  z-index: 99;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  width: 100%;
  margin-bottom: 6rem;
  background: var(--color-sage);
}

.logo {
  display: flex; align-items: center;
  width: 12em; max-height: 37.5rem;
  padding: .75rem .5rem .25rem;
  font-weight: 600;
  cursor: pointer;
}

/* Top-right phone/CTA */
.nav-top { position: fixed; top: .75rem; right: 1.25rem; }
.nav-phone { z-index: 1100; font-weight: 600; font-size: .9rem; color: var(--color-white); display: flex; align-items: center; gap: .5rem; }
.nav-phone a { color: black; text-decoration: none; }

.phone, .book-appointment {
  display: inline-flex;
  align-items: center;
  padding: .45em .9em;
  font-weight: 600;
  font-size: .9rem;
  border-radius: .25rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all .25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.phone {
  background: var(--color-light-sage);
  color: black;
  margin-right: .5em;
  box-shadow: var(--shadow-sm);
  border-color: white;
}
.phone:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.nav-phone a:hover { color: black; }

.book-appointment {
  background: var(--color-light-sage);
  color: var(--color-attention);
  border-color: white;
  box-shadow: var(--shadow-sm);
}
.book-appointment a { color: var(--color-attention); text-decoration: none; }
.book-appointment:hover {
  /*background: var(--color-very-dark-sage);*/
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Desktop menu */
.menu-desktop {
  display: flex;
  padding: 0 .25em 0 0;
  color: var(--color-white);
  font-family: var(--font-family-headline), serif;
  font-size: large;
  text-shadow: .1em .1em .3em black;
}
.menu-desktop a[aria-current] { text-decoration: underline; }
.menu-desktop ul { list-style: none; margin: 0; padding-right: .5em; }
.menu-desktop ul li {
  position: relative; display: inline-block;
  padding: .25em .5em; transition: all .3s ease;
}
.menu-desktop ul li:hover {
  border-radius: .5rem .5rem 0 0;
  background: var(--color-dark-sage);
  text-decoration: underline;
}

/* Desktop dropdown */
.menu-desktop ul li ul {
  position: absolute; top: 100%; left: 0;
  min-width: 16em;
  padding: .1em;
  font-size: small;
  background: var(--color-dark-sage);
  border-radius: 0 .5rem .5rem .5rem;
  overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease 0s, visibility .6s ease .6s;
}
.menu-desktop ul li:hover > ul {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease, visibility 0s ease;
}
.menu-desktop ul li ul li { width: 100%; color: var(--color-white); }
.menu-desktop ul li ul li:hover { background: var(--color-transparent-black); border-radius: 0; }

/* Mobile nav (closed by default) */
.hamburger { display: none; position: fixed; top: 1rem; right: 1rem; z-index: 1200; width: 1.875rem; height: 1.5rem; cursor: pointer; }
.hamburger div { height: .3em; margin: .4em 0; border-radius: .2em; background: var(--color-white); }

.menu-mobile { display: none; position: fixed; top: 0; right: 0; z-index: 1100;
  width: 80%; max-width: 18.75rem; height: 100%;
  padding: 2em 1em;
  background: var(--color-dark-sage);
  box-shadow: -.1em 0 .5em rgba(0,0,0,.6);
  transform: translateX(100%); transition: transform .3s ease;
  flex-direction: column;
}
.menu-mobile.open { transform: translateX(0); }
.menu-mobile a {
  display: block; padding: .75em 0;
  color: var(--color-white);
  font-size: 1.2em;
  font-family: var(--font-family-headline), serif;
  text-decoration: none;
  text-shadow: .1em .1em .15em black;
}
.menu-mobile a[aria-current] { text-decoration: underline; }

/* =========================================================
   MAIN CONTENT & SECTIONS
   ========================================================= */

.main {
  /* position: relative; */
  max-width: 100rem;
  margin: auto;
  padding: var(--padding);
  padding-top: 5rem;
}

.main img[alt="hero image"] {
  display: block;
  width: 110vw;
  margin: -2em calc(-1 * var(--padding)) 3em;
  object-fit: cover;
  border-bottom: .5em solid var(--color-dark-sage);
}

.section { padding: 3rem 0; }



/* =========================================================
   SPACING UTILITIES
   ========================================================= */

/* Padding (y/x) */
.py-none{padding-top:0;padding-bottom:0;}
.py-small{padding-top:.5rem;padding-bottom:.5rem;}
.py-medium{padding-top:1.5rem;padding-bottom:1.5rem;}
.py-large{padding-top:3rem;padding-bottom:3rem;}

.px-none{padding-left:0;padding-right:0;}
.px-small{padding-left:.5rem;padding-right:.5rem;}
.px-medium{padding-left:1.5rem;padding-right:1.5rem;}
.px-large{padding-left:3rem;padding-right:3rem;}

/* Container padding/margin */
.container-padding-small{padding:1rem;}
.container-padding-medium{padding:2rem;}
.container-padding-large{padding:3rem;}
.container-padding-xlarge{padding:4rem;}

.container-margin-small{margin:1rem 0;}
.container-margin-medium{margin:2rem 0;}
.container-margin-large{margin:3rem 0;}
.container-margin-xlarge{margin:4rem 0;}

/* Background margin helpers */
.bg-margin-small{margin:1rem 0;}
.bg-margin-medium{margin:2rem 0;}
.bg-margin-large{margin:3rem 0;}
.bg-margin-xlarge{margin:4rem 0;}

/* =========================================================
   IMAGES & MEDIA
   ========================================================= */

.image-left { display: block; margin: 1rem 0; }
.image-center { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.image-right { display: block; margin-left: auto; }

/* Full-bleed */
.blocks .full-bleed {
  position: relative;
  left: 50%; right: 50%;
  width: 100vw; max-width: 100vw;
  margin-left: -50vw; margin-right: -50vw;
  display: flex; justify-content: center; align-items: center;
  border-bottom: 5px;
}
.blocks .full-bleed img {
  max-width: 100rem;
  height: 30vh;
  object-fit: cover;
  border-bottom: .5em solid var(--color-dark-sage);
}
.full-bleed figcaption {
  position: absolute; left: 50%; bottom: 0;
  transform: translate(-50%, 10%);
  width: 16em; max-width: calc(100rem - 4em);
  padding: .5em 2em;
  background: var(--color-dark-sage);
  color: #fff; font-weight: bold; text-align: center;
  font-size: 2rem; text-shadow: .1em .1em .25em black;
  border-radius: .4em;
  box-shadow: 0 .25em .35em rgba(0,0,0,.7);
}

/* Responsive wrappers */
.video, .img {
  --w: 1; --h: 1;
  position: relative; display: block;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img, .video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; object-fit: cover;
}
.img[data-contain] img { object-fit: contain; }

.img-caption, .video-caption { padding-top: .75rem; line-height: 1.5; }



/* =========================================================
   DECORATIVE / INTERACTIVE
   ========================================================= */

.decorative-divider {
  display: flex; align-items: center; gap: 1rem; margin: 2rem 0;
}
.decorative-divider .line { flex: 1; height: 1px; background: var(--color-sage); }
.decorative-divider .icon img { display: block; }
.decorative-divider--left .line:last-child,
.decorative-divider--right .line:first-child { flex: .25; }

.cta {
  display: inline-flex; justify-content: center;
  padding: .75rem 1.5rem;
  background: var(--color-black); color: var(--color-white);
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  padding: 1.5rem;
  background: var(--color-light);
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.social { display: flex; padding: 0 .5rem; }
.social a { padding: 1rem .5rem; }

/* =========================================================
   PAGINATION / EXCERPTS
   ========================================================= */

.pagination { display: flex; padding-top: 6rem; }
.pagination > span { color: var(--color-text-grey); }
.pagination > * {
  width: 3rem; padding: .5rem; margin-right: 1.5rem;
  text-align: center; border: 2px solid currentColor;
}
.pagination > a:hover {
  background: var(--color-black); color: var(--color-white); border-color: var(--color-black);
}

.note-excerpt { line-height: 1.5; }
.note-excerpt header { margin-bottom: 1.5rem; }
.note-excerpt figure { margin-bottom: .5rem; }
.note-excerpt-title { font-weight: 600; }
.note-excerpt-date { color: var(--color-text-grey); }

/* =========================================================
   MAPS
   ========================================================= */

.map {
  --w: 2; --h: 1;
  position: relative; overflow: hidden;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */

/* =========================================================
   UTILITIES
   ========================================================= */

.bg-light { background: var(--color-light); }
.color-grey { color: var(--color-text-grey); }
.color-white { color: var(--color-white); }


/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Desktop grid expansion */
@media screen and (min-width: 1025px) {
  .grid { grid-template-columns: repeat(12, 1fr); }
  .grid > .column { grid-column: span var(--columns); }
  .main { top: 4rem; }
}

/* Tablet (shared + tiles + containers) */
@media (max-width: 1024px) {
  .grid-style-fixed4, .grid-style-fixed5 { grid-template-columns: repeat(3, 1fr); }
  .tile { padding: 0; } /* Remove padding — let tile-content handle it */
  .tile-content { padding: .75rem 1rem 1rem; }
  .tile-image { min-height: 8rem; }
  .tile-image img { width: 100%; height: 6rem; }
  /*.logo { padding: .25rem .5rem; }*/
  .menu { font-size: medium; }
}

/* Mobile Navigation Breakpoint */
@media (max-width: 976px) {
  .menu-desktop { display: none; }
  .nav-phone { font-size: small; position: relative; }
  .menu-mobile { display: flex; margin-bottom: 1em; }
  .menu-item {
    display: flex; flex-direction: column;
    margin: .2em; padding-left: .2em;
    background: var(--color-transparent-dark-sage);
    border-radius: .2em;
  }
  .menu-mobile a { font-size: 1.2em; color: var(--color-white); padding: .5em 0; text-decoration: none; }
  .submenu { position: relative; top: -.75em; }
  .menu-mobile a[aria-current] { text-decoration: underline; }
  .menu-mobile .submenu { padding-left: 1em; }
  .menu-mobile .submenu a { font-size: 1em; padding: .25em 0; opacity: .85; }
  .hamburger { display: block; }

  .full-bleed figcaption {
    font-size: 1rem;
    padding: .5em 1em;
    border-radius: var(--radius-sm);
  }
  .main { top: 3rem; }
  /*.logo { padding: .25rem .5rem; }*/
  .phone, .book-appointment {font-size: small};
  .menu { font-size: medium; }
}

@media (max-width: 768px) {
  .grid-style-fixed3, .grid-style-fixed4, .grid-style-fixed5 { grid-template-columns: repeat(2, 1fr); }
  .grid-style-auto { grid-template-columns: repeat(auto-fit, minmax(14rem, 20rem)); }

  .tile { padding: 0; }
  .tile-content { padding: .5rem .75rem .75rem; }
  .tile-image img { width: 100%; height: 5rem; }
  .tile-title { font-size: 1rem; }

  .container-padding-large { padding: 2rem; }
  .container-padding-xlarge { padding: 2.5rem; }
  .container-margin-large, .bg-margin-large { margin: 2rem 0; }
  .container-margin-xlarge, .bg-margin-xlarge { margin: 2.5rem 0; }

  .background-image-block { min-height: 25vh; }
  .background-content { margin: 1rem !important; }

  .logo { width: 8em; }
  .phone { display: none; }
  .main { top: 2rem; }
  .book-appointment { font-size: small; margin-bottom: .25rem;}
  .blocks .full-bleed img { height: 20vh; }
}

/* Small Mobile */
@media (max-width: 672px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile {
    padding: .5rem;
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .tile-image {
    margin: 0;
    flex-shrink: 0;
    width: 6rem;        /* Fixed width for the icon zone */
    min-height: 6rem;   /* Match height */
    border-bottom: none;
    border-right: solid 1px var(--color-white); /* Divider on the right instead */
    align-self: stretch; /* Full height of the card */
  }
  .tile-image img { width: 3.5rem; height: 3.5rem; }
  .tile-content { flex: 1; padding: .75rem; }

  .text blockquote {
    position: relative;
    margin: 1rem .5rem;
    padding: .25rem .5rem .5rem 1.25rem;
    font-size: 1rem;
    line-height: 1.15;
    border-radius: .4rem;
  }
  .text blockquote p { padding: .5rem; }
  .text blockquote::before { top: .5rem; left: 0; width: 1rem; height: 1rem; }
  .quote-citation { margin-right: .5rem; }
  .text blockquote footer { font-size: medium; padding: .25rem .5rem; }

  .main { top: 2rem; }

  .container-padding-medium { padding: 1.5rem; }
  .container-padding-large { padding: 1.5rem; }
  .container-padding-xlarge { padding: 2rem; }
  .background-image-block { min-height: 20vh; }
  .background-content { margin: .5rem !important; }
  .blocks .full-bleed img { height: 10vh; }
}
