/* RESET browser preset styling */

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

html {
  scroll-behavior: smooth;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  font-family: var(--secondary);
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

p {
  overflow-wrap: break-word;
  font-family: var(--ff-primary);
}

/* VARIABLES */

:root {
  /* COLORS */
  --body-bg-color: #fefdfc;
  --primary-text-color: #333;
  --clr-neutral-white: #fff;
  --accent-color: #ffb347;
  --footer-bg-color: #534741;

  /* Button */
  --button-bg-color: #cc4400;
  --button-hover-color: #b33c00;
  --button-active-color: #992f00;

  /* Social icons */
  --facebook-color: #0077b5;
  --instagram-color: #e1306c;
  --youtube-color: #ff0000;

  /* Font */
  --ff-primary: "Nunito", sans-serif;
  --ff-secondary: "Quicksand", sans-serif;

  /* Sections */
  --section-padding: 5rem 1rem;
  --section-bg-color: #fff9f4;

  /* Cards */
  --card-border-radius: 0.75rem;
  --card-padding: 2rem;
  --card-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* GENERAL STYLES */

body {
  font-family: var(--ff-primary);
  background-color: var(--body-bg-color);
  color: var(--primary-text-color);
  line-height: 1.6;
  height: 100dvh;
  font-size: 1rem;
  overflow-x: hidden;
}

/* Header */

header {
  background-color: var(--section-bg-color);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease-in-out;
}

.container {
  width: 90%;
  max-width: 75rem;
  margin: auto;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  color: #a25c34;
}

nav ul {
  display: flex;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--primary-text-color);
  font-weight: 500;
  font-size: 1.2rem;
  margin-inline: 0.5em;
  transition: 0.3s ease-out;
}

.nav-links .active {
  color: var(--accent-color);
}

nav a:hover {
  color: var(--accent-color);
}

.nav-cta {
  background-color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: var(--primary-text-color);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

.nav-cta:hover {
  background-color: #e69e3a;
  color: var(--primary-text-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.no-scroll {
  overflow: hidden;
  height: 100dvh;
}

/* Hide default checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.hamburger span {
  background-color: var(--primary-text-color);
  width: 30px;
  height: 3px;
  margin: 0.1875rem 0;
  transition: 0.3s ease;
}

.page-content {
  padding-top: 5rem;
}

/* Hero section */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url(image/caregiver-engaging-with-toddlers.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--clr-neutral-white);
  padding: 12.5rem 1rem 9.375rem;
}

.hero h1 {
  font-size: 3.125rem;
}

.hero p {
  font-size: 1.25rem;
  margin: 1rem auto 2rem;
  max-width: 37.5rem;
}

.hero p span {
  color: var(--accent-color);
  font-weight: 600;
}

.hero h1,
.hero p {
  line-height: 1.5;
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-button {
  background-color: var(--button-bg-color);
  color: var(--clr-neutral-white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.3125rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out,
    transform 0.3s ease-out;
}

.hero-button:hover {
  background-color: var(--button-hover-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.hero-button:active {
  background-color: var(--button-active-color);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  transform: scale(0.97);
}

/* Why NurtureNest section */

#why-nurturenest {
  padding: var(--section-padding);
  text-align: center;
}

.why-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.why-subtitle span {
  font-weight: 600;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}

.why-card {
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover lift for devices that support hover */
@media (hover: hover) {
  .why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }
}

/* Tap feedback on all devices */
.why-card:active {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.why {
  font-size: 1.25rem;
}

.why-icon {
  font-size: 2rem;
}

.why-icon,
.why {
  margin-bottom: 1rem;
}

.why-card:nth-child(1) {
  background-color: #ffeecd;
}

.why-card:nth-child(2) {
  background-color: #e2f2ec;
}

.why-card:nth-child(3) {
  background-color: #ecdaf2;
}

.why-card:nth-child(4) {
  background-color: #fbe2e4;
}

/* About section */

#about {
  padding: var(--section-padding);
}

.about-content {
  display: flex;
  gap: 2.5rem;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 50%;
}

.about-title {
  text-align: start;
}

.about-description {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  text-align: justify;
}

.about-description span {
  font-weight: 600;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Meet our Team section */

#team {
  padding: var(--section-padding);
  background-color: var(--section-bg-color);
  text-align: center;
}

.team-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  justify-content: center;
}

.team-member-card {
  background-color: var(--clr-neutral-white);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-box-shadow);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

/* Hover lift for devices that support hover */
@media (hover: hover) {
  .team-member-card:hover {
    transform: translateY(-5px);
  }
}

/* Tap feedback on all devices */
.team-member-card:active {
  transform: translateY(-5px);
}

.team-member-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member-card-content {
  padding: 1rem 2rem 2rem;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-weight: 500;
  color: var(--button-bg-color);
  margin-bottom: 0.75rem;
}

.team-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.view-staff-btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--button-bg-color);
  color: var(--clr-neutral-white);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  transition: background-color 0.3s ease-out, color 0.3s ease-out,
    transform 0.3s ease-out;
}

.view-staff-btn:hover {
  background-color: var(--button-hover-color);
  border: none;
  transform: scale(1.05);
}

.view-staff-btn:active {
  transform: scale(0.97);
}

/* Programs section */

#programs {
  background-color: var(--section-bg-color);
  padding: var(--section-padding);
}

.programs-subtitle {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.programs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  justify-content: center;
}

.program-card {
  background-color: var(--clr-neutral-white);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-box-shadow);
  overflow: hidden;
}

.program-card-content {
  padding: var(--card-padding);
}

.program-name {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.program-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--button-bg-color);
  color: var(--clr-neutral-white);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background-color 0.3s ease-out, transform 0.3s ease-out;
}

.learn-more-btn:hover {
  background-color: var(--button-hover-color);
}

.learn-more-btn:active {
  background-color: var(--button-active-color);
  transform: scale(0.97);
}

.learn-more-btn:hover i {
  transform: translateX(4px);
}

.learn-more-btn:active i {
  transform: translateX(2px);
}

/* Modal styles */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: var(--clr-neutral-white);
  padding: 2rem;
  max-width: 37.5rem;
  width: 90%;
  border-radius: 0.75rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 80vh;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Gallery section */

#gallery {
  padding: var(--section-padding);
  background-color: var(--section-bg-color);
  text-align: center;
}

.gallery-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}

.gallery-image img {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.625rem;
}

.gallery-image-description {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
}

/* Testimonials section */

#testimonials {
  padding: var(--section-padding);
}

.testimonials-subtitle {
  font-size: 1.125rem;
  text-align: center;
  max-width: 50rem;
  margin: auto auto 1.5rem;
}

.testimonials-subtitle span {
  font-weight: 600;
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "rachael smith ruth"
    "rachael johnson ruth";
}

.card-rachael {
  grid-area: rachael;
  align-self: center;
}

.card-ruth {
  grid-area: ruth;
  align-self: center;
}

.card-johnson {
  grid-area: johnson;
}

.card-smith {
  grid-area: smith;
}

.testimonial-card {
  background-color: #ffe8c2;
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.star-icon {
  color: #ffd700;
  margin-bottom: 1rem;
}

.testimonial-card-quote {
  margin-bottom: 1rem;
  opacity: 0.8;
  font-style: italic;
}

.testimonial-card-image {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.testimonial-card-image img {
  width: 3.125rem;
  height: 3.125rem;
  object-fit: cover;
  border-radius: 50%;
}

/* Hover lift for devices that support hover */
@media (hover: hover) {
  .testimonial-card:hover {
    transform: translateY(-5px);
  }
}

/* Tap feedback on all devices */
.testimonial-card:active {
  transform: translateY(-5px);
}

/* FAQ section */

#faq {
  padding: var(--section-padding);
}

.faq-content {
  max-width: 50rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--primary-text-color);
  padding: 0.625rem;
  background-color: var(--clr-neutral-white);
  border-radius: 0.5rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plus-sign {
  font-size: 1.25rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-question,
.faq-answer {
  padding: 0.625rem;
}

.faq-answer {
  display: none;
  font-size: 0.9875rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .plus-sign {
  transform: rotate(45deg);
}

/* CTA Banner section */

#cta {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url(image/childcare-toddler-classroom.webp);
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
  padding: 6.25rem 1rem;
  color: var(--clr-neutral-white);
}

.cta-title {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.cta-title,
.cta-subtitle {
  line-height: 1.5;
}

.cta-subtitle {
  font-size: 1.125rem;
  max-width: 40.625rem;
  margin: 0 auto 2rem;
}

.cta-btn {
  background-color: var(--button-bg-color);
  color: var(--clr-neutral-white);
  padding: 0.75rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out,
    transform 0.3s ease-out;
}

.cta-btn:hover {
  background-color: var(--button-hover-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-btn:active {
  background-color: var(--button-active-color);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  transform: scale(0.97);
}

/* Enrollment section */

#enrollment {
  padding: var(--section-padding);
  background: #f0ede8;
}

.enrollment-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

#enrollment-form {
  width: 100%;
  max-width: 37.5rem;
  margin: 3rem auto auto;
}

#enrollment-form label {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-row {
  display: flex;
  gap: 0.625rem;
}

.form-row .form-group {
  flex: 1;
}

#enrollment-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

#enrollment-form input,
#enrollment-form textarea,
select {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9375rem;
  padding: 0.75rem;
  border: 1px solid var(--primary-text-color);
  border-radius: 0.5rem;
  outline: none;
}

#enrollment-form input:focus,
#enrollment-form textarea:focus {
  border: 2px solid var(--primary-text-color);
}

#enrollment-form textarea {
  resize: vertical;
  min-height: 60px;
}

#enrollment-form button {
  width: 100%;
  padding: 0.625rem 1.25rem;
  background-color: var(--accent-color);
  color: var(--primary-text-color);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  margin-top: 0.875rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out,
    transform 0.3s ease-out;
}

#enrollment-form button:hover {
  background-color: var(--primary-text-color);
  color: var(--clr-neutral-white);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

#enrollment-form button:active {
  background-color: #000;
  transform: scale(0.97);
}

/* Contact section */

#contact {
  padding: var(--section-padding);
  background-color: var(--section-bg-color);
}

.contact-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 50rem;
  margin: auto auto 1.5rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2.5rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background: var(--clr-neutral-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.contact-info span {
  font-weight: 600;
}

#contact-form {
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
}

#contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

#contact-form label {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

#contact-form input,
#contact-form textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--primary-text-color);
  border-radius: 0.5rem;
  box-sizing: border-box;
  outline: none;
  font-size: 0.9375rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border: 2px solid var(--primary-text-color);
}

#contact-form textarea {
  resize: vertical;
  min-height: 60px;
}

#contact-form button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-text-color);
  color: var(--clr-neutral-white);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  margin-top: 0.875rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out,
    transform 0.3s ease-out;
}

#contact-form button:hover {
  background-color: #444444;
  color: var(--clr-neutral-white);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

#contact-form button:active {
  background-color: #000;
  transform: scale(0.97);
}

/* Map styles */

#map {
  text-align: center;
  margin-top: 3rem;
}

.map-title {
  font-size: 1.75rem;
}

.map-title,
.map-subtitle {
  margin-bottom: 1.5rem;
}

.map-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
}

.map-embed iframe {
  width: 100%;
  border: 1px solid var(--section-bg-color);
  border-radius: 0.5rem;
}

/* Footer */

footer {
  background-color: var(--footer-bg-color);
  color: var(--clr-neutral-white);
  padding: 2.5rem 1rem 1.25rem;
  position: relative;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
  gap: 2rem;
  max-width: 75rem;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-section p {
  font-size: 0.95rem;
}

.footer-section span {
  font-weight: 600;
}

.footer-links,
.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--clr-neutral-white);
  transition: color 0.3s ease-out;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-section p i {
  color: var(--accent-color);
  margin: 0 0.5rem 0.75rem 0;
  font-size: 1.25rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a {
  color: var(--clr-neutral-white);
  font-size: 1.25rem;
  transition: color 0.3s ease-out;
}

.social-icons .fa-facebook:hover {
  color: var(--facebook-color);
}

.social-icons .fa-instagram:hover {
  color: var(--instagram-color);
}

.social-icons .fa-youtube:hover {
  color: var(--youtube-color);
}

.copyright {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

.copyright a {
  text-decoration: none;
  font-weight: 600;
  color: var(--clr-neutral-white);
}

.copyright a:hover {
  text-decoration: underline;
}

.back-to-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  background-color: var(--button-bg-color);
  color: var(--clr-neutral-white);
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.3125rem;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.back-to-top-btn:hover {
  opacity: 0.7;
}

.back-to-top-btn:active {
  transform: scale(0.95);
}

/* RESPONSIVENESS */

/* Media queries */

@media (max-width: 767px) {
  h2 {
    font-size: 1.75rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100dvh;
    background-color: var(--body-bg-color);
    padding: 7.5rem 0;
    text-align: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin: 0.625rem 0;
  }

  /* Show menu when checkbox is checked */
  #menu-toggle:checked + .hamburger + nav {
    transform: translateX(0);
    opacity: 1;
  }

  /* Animate Hamburger icon */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 5px);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -5px);
  }

  .page-content {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

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

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

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .contact-info {
    padding: 2rem 1.5rem;
  }

  .contact-info h3 {
    font-size: 1.375rem;
  }

  .why-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas:
      "smith"
      "rachael"
      "ruth"
      "johnson";
  }

  .form-row {
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  h2 {
    font-size: 1.75rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100dvh;
    background-color: var(--body-bg-color);
    padding: 7.5rem 0;
    text-align: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin: 0.625rem 0;
  }

  /* Show menu when checkbox is checked */
  #menu-toggle:checked + .hamburger + nav {
    transform: translateX(0);
    opacity: 1;
  }

  /* Animate Hamburger icon */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 5px);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -5px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

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

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

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas:
      "smith rachael"
      "johnson ruth";
  }
}
