/*
Theme Name: Summit
Author: HarrisonFM
Description: Custom theme for the Summit medical practice.
*/
body{
  background: #FEF6E8;
  margin: 0;
  height: 100%;
  color: #444;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Lato', sans-serif;
}
a{
  text-decoration: none;
  color: inherit
}
p {
  line-height: 1.5;
}
h1, h2 {
  color: #2F533D;
}
a:not(.button):hover,a:not(.button):active{
  text-decoration: underline;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
main {
  background: #FEF7E9;
  flex: 1;
  padding-bottom: 1rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #C1593D; 
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover, .button:active {
  background-color: #a5482e;
}
button.nav:hover, button.nav:active {
  background-color: #a5482e;
}

.site-header {
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  background: #FEF6E8;
  z-index: 3;
}
.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
}
.site-branding .custom-logo {
  max-height: 45px;
  height: auto;
  width: auto;
}

.site-text {
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-text a:hover {
  text-decoration: none;
}

.site-title {
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: 3px;
  font-weight: 300;
  font-family: Georgia, "Times New Roman", serif; 
}

.site-subtitle {
  font-size: .725rem;
  margin: 0;
  font-weight: 300;
  font-family: Georgia, "Times New Roman", serif; 
}

.header-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  gap: .5rem;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-contact > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.header-item:not(:last-child)::after {
  content: "|";
  font-size: 1.5rem;
  position: absolute;
  right: 0;
  top: 60%;
  transform: translate(200%,-50%);
}

.header-item a {
    text-decoration: none !important;
}

.header-item.appointment a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.header-item.appointment .dashicons {
    font-size: 18px;
}
.header-chyron {
  position: relative;
  white-space: nowrap;
}
@media(max-width: 1199px) {
  .header-chyron {
    margin-left: -1rem;
    width: 100vw;
  }
}
@media(min-width: 1200px) {
  .header-chyron {
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
  }
}

.chyron-track {
    display: inline-flex;
    animation: scroll-chyron 240s linear infinite;
}

.chyron-track span {
  display: inline-block;
  margin-right: 2rem;
  font-weight: bold;
}

@keyframes scroll-chyron {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.site-nav {
  position: relative;
  font-family: 'Open Sans', sans-serif;
  color: #2F533D;
  text-transform: uppercase;
  font-weight: 600;
}
.site-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-extra {
  display: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 899px) {
  .site-nav {
    margin-top: -.5rem;
  }
  .site-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    right: -.5rem;
    top: 100%;
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    width: 300px;
    text-align: right;;
  }
  .site-nav ul.active {
    display: flex;
    z-index: 1;
  }
  .menu-toggle {
    display: inline-block;
    font-size: 35px;
    color: #2F533D;
  }
  .header-content {
    flex-direction: row;
    align-items: center;
  }
  .header-socials-text {
    display: none;
  }
}
@media (min-width: 900px) {
  .site-nav a {
    transition: border-bottom 0.2s ease;
  }
  .site-nav a:hover {
    text-decoration: none;;
    border-bottom: solid 2px #2F533D;
  }
  body:not(.home) .site-nav li.current-menu-item a {
    border-bottom: solid 2px #2F533D;
  }
}
@media (max-width: 730px) {
  .site-nav .menu-extra {
    display: block;
  }
  .header-contact {
    display: none;
  }
}

footer {
  background: #2F533D;
  width: 100vw;
  color: #FEF6E8;
}
.footer-inner {
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}
@media (max-width: 768px) {
  .footer-inner {
    flex-wrap: wrap;
  }
}
.footer-col h2{
  margin-top: 0;
}
.footer-logo {
  padding: 1rem;
  background: #fef6e8;
  border-radius: 8px;
  color: #2F533D;
  text-transform: uppercase;
}
.footer-logo .site-title {
  margin: 0;
  font-size: 2.5rem;
  color: #444;
}

.footer-logo .site-subtitle {
  font-size: 1rem;
  color: #444;
}
.footer-logo img {
  margin: auto;
  display: block;
  width: 130px;
}
.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.home section {
  padding-top: 1rem;
}
.hero {
  position: relative;
  width: 100%;
  height: 67vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 20%;
  height: 100%;
  width: 300px;
  background: rgba(200,50,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-content {
  color: #FEF7E9;
  text-align: center;
  padding: 2rem;
}
.hero-content .custom-logo {
  width: 60%;
}
.hero-content .site-title {
  font-size: 3rem;
}
.hero-content .site-subtitle {
  font-size: 1.15rem;
}
.hero-content .site-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero-logo {
  max-width: 200px;
  margin-bottom: 1rem;
}

@media(min-width: 1201px) {
  .hero {
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
  }
}
@media(max-width: 1199px) {
  .hero {
    margin-left: -1rem;
    width: 100vw;
  }
}
@media(max-width: 767px) {
  .hero {
    height: 40vh;
  }
  .hero-overlay {
    width: 100%;
    height: 100%;
    top: 0;
    display: flex;
    left: 0;
    background: rgba(0,0,0,.1);
  }
  .hero-content .custom-logo {
    width: 140px;
  }
}

#appointments {
  scroll-margin-top: 142px;
}
.appointment-hero {
  display: flex;
  background-color: #fef6e8;
  gap: 2rem;
}

.appointment-content {
  flex: 1;
  max-width: 512px;
}

.appointment-title {
  color: #2F533D; 
  margin: 0;
}

.appointment-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #333;
}

.appointment-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.appointment-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


@media (max-width: 900px) {
  .appointment-hero {
    flex-direction: column;
    text-align: center;
  }
  .appointment-content {
    max-width: 100%;
  }
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  gap: .5rem;
  background-color: #FEF6E8;
  border-radius: 8px;
}
.testimonials-container .page-title {
  margin-top: 0;
}
.testimonials-wrapper {
  overflow: hidden;
  flex: 1;
}

.testimonials-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 1rem;
}

.testimonial {
  box-sizing: border-box;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
  flex: 0 0 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

@media (min-width: 600px) { .testimonial { flex: 0 0 calc(50% - 0.5rem); } }
@media (min-width: 900px) { .testimonial { flex: 0 0 calc(33.333% - 0.67rem); } }

.nav {
  background: #C1593D;
  color: #fff;
  border: none;
  padding: .5rem .75rem;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 44px;
  border-radius: 4px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0 0;
  background-color: #fef6e8;
}
.contact-section h2:first-child, .contact-section h1:first-child {
  margin-top: 0;
}
@media (min-width: 900px) { .contact-section { grid-template-columns: 1fr 1fr; } }

.contact-details,
.contact-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.contact-details .socials-text {
  font-weight: bold;
}
.contact-details .socials-text::after {
  content: ':';
  position: relative;
}
.contact-map img{
  width: 100%;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form .ff_submit_btn_wrapper {
  margin-bottom: 0 !important;
}
.contact-form .ff-message-success {
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
.contact-form button {
  align-self: flex-start;
}
.contact-form p {
  margin: 0;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background: #C1593D !important; 
  font-family: 'serif';
}

.contact-form button:hover,
.contact-form button:active {
  opacity: 1 !important;
  background: #a64830 !important;
}

.book-appointment {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: #C1593D;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.socials a {
    display: inline-flex;
    width: 21px;
    height: 21px;
}

.socials svg {
    width: 100%;
    height: 100%;
    fill: currentColor; /* uses link color */
}

.about-us {
  font-family: "Cormorant Garamond", serif; 
}

.about-section {
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #eee; 
}

.about-section:first-child {
  padding-top: 0;
}
.about-section:nth-child(even) {
  background-color: #fef6e8; 
}
.about-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-link {
  text-align: center;
}

.providers-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.provider {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.provider img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.provider-placeholder {
  width: 100%;
}

.provider h3 {
  font-size: 1.25rem;
  color: #2F533D;
  margin-bottom: 0;
}

.provider-title {
  font-weight: 600;
  color: #444;
  margin-bottom: 1rem;
}

.provider-bio {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

.page-title {
  color:#2F533D;
  text-align: center;
  font-size: 2rem;
}

.faq-list {
  margin: 1.5em 0;
}
.faq-title {
  text-align: center;
}
.faq-item {
  margin-bottom: 1.25em;
}
.faq-question {
  margin: 0 0 0.25em;
}
.faq-answer {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.cpt-card {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  aspect-ratio: 3/4;
  position: relative;
}

.cpt-card-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
}

.card-image img {
  transition: transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cpt-card-link:hover .card-image img {
  transform: scale(1.08);
}

.cpt-card-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  z-index: 1;
  transition: background 0.3s ease;
}

.cpt-card-link:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

/* Title over gradient */
.card-title {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  line-height: 1.2;
  transition: transform 0.3s ease;
}

.cpt-card-link:hover .card-title {
  transform: translateX(-50%) scale(1.05);
}
