/* Wildly Connected Animal Communication - Stylesheet */

/* Local Font Declarations */
@font-face {
  font-family: 'Caudex';
  src: url('../fonts/caudex-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caudex';
  src: url('../fonts/caudex-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caudex';
  src: url('../fonts/caudex-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #1a5069;
  --primary-dark: #1c3946;
  --text-light: #fffdf2;
  --bg-cream: #f5f0e6;
  --bg-light: #e2e2e2;
  --text-gray: #8f8f8f;
  --text-dark: #333;
  --white: #fff;
  --white-translucent: rgb(255 255 255 / 10%);
  --font-heading: 'Quicksand', 'Helvetica Neue', sans-serif;
  --font-body: 'Quicksand', 'Helvetica Neue', sans-serif;
  --section-padding: 50px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 17px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Layout */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--primary-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-light);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: var(--white);
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  color: var(--text-light);
  font-weight: 400;
  padding: 18px 20px;
  font-size: 15px;
  transition: background 0.2s ease;
}

nav a:hover,
nav a.active {
  background: var(--white-translucent);
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 0;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
}

.btn-primary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Welcome Section */
.welcome-section {
  background: var(--bg-cream);
  padding: var(--section-padding) 0;
}

.welcome-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.welcome-two-column {
  display: grid;
  grid-template-columns: 1fr 375px;
  gap: 40px;
  align-items: start;
}

.about-two-column,
.services-two-column,
.faq-two-column {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}

.welcome-text .btn {
  margin-top: 1rem;
}

.welcome-text .welcome-cta {
  text-align: center;
}

.welcome-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-images img {
  width: 100%;
  border-radius: 8px;
}

.welcome-photo-mobile {
  width: 100%;
  max-width: 375px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 1.5rem;
}

.welcome-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin-bottom: 2rem;
  font-weight: 400;
}

.photo-border {
  border: 1.5px solid var(--primary-dark);
}

/* Services Section */
.services-section {
  background: var(--primary-color);
  padding: var(--section-padding) 0;
  color: var(--text-light);
}

.services-section h2 {
  color: var(--text-light);
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.services-list {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  padding-left: 25px;
  list-style: disc;
}

.services-list li {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 0.3rem;
  color: var(--text-light);
}

.services-list li strong {
  font-weight: 700;
}

.services-note {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--text-light);
  opacity: 0.9;
  max-width: 500px;
  margin: 1.5rem auto;
}

.services-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* Quote Section */
.quote-section {
  background-image: url('../images/gl-at-beach.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
}

.quote-photo-mobile {
  width: 100%;
  display: block;
}

.quote-text-overlay {
  padding: 40px;
  max-width: 50%;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.quote-section h2 {
  color: #000;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.8;
  max-width: 600px;
  margin: 0;
}

.quote-section h2 em {
  font-style: italic;
}

/* Testimonials */
.testimonials {
  background: var(--white);
  padding: 60px 0;
}

.testimonials h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.reviews-header {
  text-align: center;
  margin-bottom: 2rem;
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
}

.google-rating .rating-link {
  color: var(--text-gray);
  text-decoration: none;
}

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

.google-rating .stars {
  color: #fbbc04;
  font-size: 18px;
  letter-spacing: 2px;
}

.reviews-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 50px;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 12px;
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-dark);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--primary-color);
}

.testimonial-card {
  text-align: center;
  padding: 10px;
}

.review-stars {
  color: #fbbc04;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.testimonial-card p {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 13px;
  color: var(--text-gray);
  font-style: italic;
}

/* Contact Section */
.contact-section {
  background: var(--primary-color);
  text-align: center;
  color: var(--text-light);
  padding: var(--section-padding) 20px;
}

.contact-section h2 {
  color: var(--text-light);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-section h2 a {
  color: var(--text-light);
  text-decoration: none;
}

.contact-section h2 a:hover {
  color: var(--white);
  text-decoration: underline;
}

.contact-image {
  margin-top: 40px;
  text-align: center;
}

.contact-image img {
  max-width: 100%;
  width: 600px;
  height: auto;
  border-radius: 8px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 20px 0;
  border-top: 1px solid var(--white-translucent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.footer-section a {
  color: var(--text-light);
  opacity: 0.8;
  font-size: 14px;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-section p {
  text-align: left;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 1;
}

.footer-bottom-section hr {
  border: none;
  border-top: 1px solid var(--white-translucent);
  margin: 0 0 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid var(--white-translucent);
  font-size: 13px;
  opacity: 0.7;
}

.footer-bottom p {
  text-align: center;
  margin: 0;
}

/* About Page */
.about-section {
  padding: var(--section-padding) 0;
  background: var(--bg-cream);
}

.about-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-images img {
  width: 100%;
  border-radius: 8px;
}

.about-editorial {
  max-width: 100%;
}

.about-editorial::after {
  content: '';
  display: table;
  clear: both;
}

.about-editorial p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}

.about-inline-image {
  width: 280px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Crop the white strip across the bottom of the deer photo by moving the frame up */
.about-deer {
  aspect-ratio: 604 / 457;
  object-fit: cover;
  object-position: top;
}

.about-inline-right {
  float: right;
  margin-left: 1.5rem;
}

.about-inline-left {
  float: left;
  margin-right: 1.5rem;
}

.influential-animals-title {
  text-align: center;
  margin-top: 4rem;
}

/* Influential Animals Grid (About Page) */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 1rem;
}

.animal-card {
  cursor: pointer;
}

.animal-card-figure {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.animal-card-photo {
  display: block;
  height: 350px;
  width: auto;
  max-width: 100%;
}

.animal-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgb(255 255 255 / 95%);
  padding: 10px 15px;
  text-align: center;
}

.animal-card .card-overlay h3 {
  margin: 0;
}

/* Animal Story Modal (About Page) */
.animal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(0 0 0 / 55%);
}

.animal-modal[hidden] {
  display: none;
}

.animal-modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.25rem;
  background: var(--bg-cream);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 30%);
}

.animal-modal-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.animal-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  padding: 4px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary-color);
  cursor: pointer;
}

.animal-modal-close:hover {
  color: var(--primary-dark);
}

.animal-modal-content p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}

body.modal-open {
  overflow: hidden;
}

/* Services Page */
.services-section-page {
  padding: var(--section-padding) 0;
  background: var(--bg-cream);
}

.services-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.services-content p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}

.services-logo {
  display: block;
  width: 240px;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  mix-blend-mode: multiply;
}

.readings-section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-top: 3.5rem;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  margin-top: 1.5rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(255 255 255 / 95%);
}

.pricing-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.services-cards .card-overlay {
  position: static;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}

.services-cards .card-overlay h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.services-cards .card-overlay .price {
  font-size: 1.1rem;
  margin: 0.1rem 0;
}

.services-cards .card-overlay .btn-card {
  padding: 4px 12px;
  font-size: 11px;
}

.services-video {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-video video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  border-radius: 8px;
}

.card-overlay {
  background: rgb(255 255 255 / 95%);
  padding: 10px 15px;
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
}

.card-overlay h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.2rem 0;
}

.btn-card {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 6px 16px;
  font-size: 13px;
}

.btn-card:hover {
  background: var(--primary-dark);
  color: var(--text-light);
}

/* FAQ Page */
.faq-section {
  padding: var(--section-padding) 0;
  background: var(--bg-cream);
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgb(26 80 105 / 20%);
}

.faq-item summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  list-style: none;
}

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

.faq-item summary::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--primary-dark);
}

.faq-item summary:hover::before {
  border-color: var(--primary-dark);
}

.faq-answer {
  padding: 0 0 1rem 22px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 0.8rem;
}

.faq-answer ul,
.faq-answer ol {
  margin: 0.8rem 0 0.8rem 1.5rem;
  font-size: 15px;
  line-height: 1.6;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

.faq-image {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-image img {
  width: 100%;
  border-radius: 8px;
}

/* Utility Classes */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Responsive - Services page: tablet (video on top, 2-column cards) */
@media (width <= 968px) {
  .services-two-column {
    grid-template-columns: 1fr;
  }

  .services-video.desktop-only {
    display: none;
  }

  .services-video.mobile-only {
    display: block;
    max-width: 300px;
    margin: 1rem auto;
  }
}

/* Responsive - Services page: mobile (single-column cards, image on left) */
@media (width <= 640px) {
  .services-cards {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .pricing-card {
    flex-direction: row;
  }

  .pricing-card-photo {
    flex: 0 0 40%;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .services-cards .card-overlay {
    padding: 15px;
  }
}

/* Responsive - General */
@media (width <= 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .header-content {
    flex-direction: column;
  }

  .logo {
    padding: 12px;
    text-align: center;
    font-size: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .welcome-two-column,
  .about-two-column,
  .faq-two-column {
    grid-template-columns: 1fr;
  }

  .welcome-text {
    text-align: center;
  }

  .welcome-text p {
    text-align: left;
  }

  .welcome-text .btn {
    display: inline-block;
  }

  .welcome-images.desktop-only {
    display: none;
  }

  .about-text {
    text-align: center;
  }

  .about-text p {
    text-align: left;
  }

  .about-editorial p {
    text-align: left;
  }

  .about-inline-image {
    float: none;
    display: block;
    width: 200px;
    margin: 1.5rem auto;
  }

  .services-content {
    text-align: center;
  }

  .services-content p {
    text-align: left;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .reviews-carousel {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .contact-image img {
    width: 100%;
  }

  .about-images {
    flex-flow: row wrap;
    justify-content: center;
  }

  .about-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
  }

  section {
    padding: 40px 0;
  }

  .quote-section {
    background: var(--primary-color);
    background-attachment: scroll;
    min-height: 0;
    flex-direction: column;
  }

  .quote-text-overlay {
    max-width: 100%;
    padding: 30px 20px;
  }

  .quote-section h2 {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .faq-answer p {
    text-align: left;
  }

  .faq-image {
    order: -1;
    max-width: 200px;
    margin: 0 auto;
  }

  .animal-grid {
    grid-template-columns: 1fr;
  }

  .animal-card-photo {
    height: 250px;
  }
}
