*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: clamp(1.5, 1.5 + 0.5vw, 1.8);
  scroll-behavior: smooth;
  text-wrap: balance;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100dvh;
  font-family: var(--ff-popp);
  background-color: #eef2f6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  /* overscroll-behavior: none; */
}

img,
picture,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

:root {
  /* COLORS */
  --clr-light: #56473e;
  --clr-dark: #140a09;
  --clr-menu: #5f5048;
  --clr-pastel: #f5e6d3;
  --clr-cta: #ff991c;
  --clr-pastel-white: #f8f5f0;
  --clr-cta-hover: #ffad4d;
  --clr-yellow: #f6d9aa;
  --clr-gold: #d4af37;

  --clr-pink: #ff6699;
  --clr-red: #813a37;
  --clr-orange: #cf6e33;
  --clr-blue: #c4d3ed;
  --clr-purple: #4b3d62;
  --clr-green: #7adb7a;
  --clr-dark-green: #4a6b5a;

  --clr-char: #1a140f;
  --clr-text: #fefaf5;

  --clr-footer: #030001;
  --clr-grey: #cac0b8;
  --clr-white: #ffffff;
  --clr-black: #000000;

  /* FONTS  */
  --ff-gara: "Cormorant Garamond", serif;
  --ff-fair: "Playfair Display", serif;
  --ff-open: "Open Sans", sans-serif;
  --ff-mont: "Montserrat", sans-serif;
  --ff-water: "Water Brush", cursive;
  --ff-caveat: "Caveat Brush", cursive;
  --ff-rope: "Manrope", sans-serif;
  --ff-madi: "Ms Madi", cursive;
  --ff-popp: "Poppins", sans-serif;
  --ff-sati: "Satisfy", cursive;
  --ff-vibe: "Great Vibes", cursive;
  --ff-paci: "Pacifico", cursive;
  --ff-robo: "'Roboto Mono', monospace";

  --side-padding: clamp(1.5rem, 5vw, 5rem);
}

h1,
h2,
h3 {
  font-family: var(--ff-fair);
}

*:focus {
  outline: none !important;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

/*******************************
 *         REUSABLE UTILITIES  *
 *******************************/
/* Container is between section and contain all content */
/* .container {
  width: min(95%, 1400px);
  margin-inline: auto;
  padding-inline: var(--side-padding);
} */

/* H2 titles */
/* .section-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
} */

section {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: var(--side-padding);
}

.wrapper {
  max-width: 120em;
  margin-inline: auto; /* centers horizontally */
  background-color: var(--clr-footer);
}

/* 1. HEADER - NAVIGATION + @MEDIA */
/* 2. LANDING PAGE + @MEDIA  */
/* 2.5MARQUEE PAGE + DIVIDER + @MEDIA  */
/* 3. SECTION + SERVICES + @MEDIA  */
/* 4. ABOUT ME + @MEDIA  */
/* 5. PRICES + @MEDIA  */
/* 6. GALLERY + @MEDIA  */
/* 7. TESTIMONIAL + @MEDIA  */
/* 8. FOOTER + @MEDIA  */
/* 9. COPYRIGHT + @MEDIA  */
/*10. ARROW UP BUTTON + @MEDIA  */

/* ==============================
1. HEADER - NAVIGATION + @MEDIA
================================= */

header {
  position: relative;
  background-color: var(--clr-pastel-white);
  margin: 0;
  padding: 0;
}

.header img {
}

.header-text h1 {
  color: var(--clr-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw + 1rem, 5rem);
  margin-bottom: 1.5rem;

  line-height: 1.15;
}

.navbar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(3.5rem, 8vw, 5rem);
  color: var(--clr-black);
  font-family: var(--ff-open);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
  color: var(--clr-black);
  font-family: var(--ff-fair);
  margin: 0 calc(var(--side-padding) - 1rem);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  transition: all 0.2s ease;
}

.logo a:hover {
  color: var(--clr-cta);
}

/* Navigation Links - Desktop */
.primary-navigation {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  color: var(--clr-white);
  padding: 0;
  margin: 0;
}

.primary-navigation li {
  margin: 0;
}

.primary-navigation a {
  text-decoration: none;
  color: inherit;
  color: var(--clr-black);
  font-family: var(--ff-popp);
  font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
  font-weight: 400;
}

.primary-navigation a:hover {
  color: var(--clr-cta);
}

.primary-navigation a > span[aria-hidden="true"] {
  font-weight: 700;
  margin-inline-end: 0.75em;
}

.primary-navigation[data-visible="true"] {
  transform: translateX(0%);
}

/* Contact button styling */
#nav-contact {
  background: var(--clr-cta);
  margin: 0 calc(var(--side-padding) - 1rem);
  border-radius: 5px;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: 700;
  white-space: nowrap;
}

#nav-contact:hover {
  background: var(--clr-cta);
}

/* Hamburger Menu */
.mobile-nav-toggle {
  display: none; /* Hidden by default on desktop */
  background: url("./images/menu-black.png") no-repeat center;
  background-size: contain;
  /* background-blend-mode: darken; */
  /* opacity: 0.5; */
  width: 2rem;
  height: 2rem;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  /* visibility: hidden; */
  /* border-radius: 4px;
  background-color: transparent; */
  margin: 0 calc(var(--side-padding) - 1rem);
}

.mobile-nav-toggle[aria-expanded="true"] {
  background-image: url("./images/closing-icon-black.png");
  background-size: 1.5rem;
  z-index: 1000000;
}

/* Mobile Menu */
/* Tablet Menu  */
@media (max-width: 90em) {
  .navbar-container {
    padding: 0 1rem;
  }

  .primary-navigation {
    position: fixed;
    z-index: 1000;
    inset: 0;
    /* Changes  */
    background: var(--clr-yellow);
    flex-direction: column;
    text-transform: uppercase;
    padding: min(30vh, 10rem) 2rem;
    transform: translateX(100%); /* Start off-screen right */
    transition: transform 350ms ease-out;
    gap: 2rem;
    justify-content: flex-start;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0);
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* Hide contact button background on mobile when menu is closed */
  #nav-contact {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    color: inherit;
    /* If added these too lines  */
    color: var(--clr-black);
    font-weight: 400;
  }

  #nav-contact:hover {
    background: var(--clr-yellow);
    color: var(--clr-cta);
  }
}

@media (min-width: 90em) {
  .mobile-nav-toggle {
    display: none !important;
  }

  header {
    background-position: right center;
  }
}

@media (min-width: 48em) {
  header {
    background-position: right center;
  }

  .logo {
    margin: 0 calc(var(--side-padding) - 0.75rem);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 2px;
}

/* ===============================
2. LANDING PAGE + @MEDIA
================================== */

/* Landing page */
.landing-page {
  flex-direction: column;
  min-height: 50dvh;
}
.landing-page-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: var(--side-padding);
  gap: clamp(1.5rem, 2.5vw, 3rem);
}

.landing-page-image {
  flex: 1;
  min-height: 300px;
  overflow: hidden;
}

.landing-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.welcome {
  color: var(--clr-cta);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin: 2rem 0 0 0;
  font-size: clamp(1rem, 2vw, 1.05rem) !important;
}

.welcome::before {
  flex: none;
  height: 1px;
  content: " ";
  background-color: var(--clr-cta);
  min-width: 3rem;
  max-width: 4rem;
  width: 50px;
  border-radius: 2px;
}

.landing-page-info h1 {
  font-weight: 900;
  font-size: clamp(2rem, 3vw + 1rem, 5rem);
}

.landing-page-info p:not(.welcome) {
  position: relative;
  padding-left: 25px;
  font-size: clamp(0.875rem, 5vw, 1.75rem);
}

.landing-page-info p:not(.welcome)::before {
  content: "";
  position: absolute;
  background-color: var(--clr-cta);
  width: 1px;
  height: 100%;
  bottom: 0;
  left: 0;
  top: 0;
}

.pushable:disabled {
  cursor: default;
}
.pushable:-moz-focusring {
  outline: auto;
}
.pushable svg {
  display: block;
  vertical-align: middle;
}
.pushable [hidden] {
  display: none;
}
.pushable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-dark);
  border-radius: 3px;
  gap: 12px;

  /* box-sizing: border-box; */

  font-weight: 900;
  overflow: hidden;
  padding: 1.1rem 4rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  background: var(--clr-cta);
  min-width: 12rem;
  min-height: clamp(2.75rem, 5vw, 3.75rem);

  color: var(--clr-white);
  text-shadow: 1px 1px var(--clr-black);
  transition: all 0.2s ease;
}

.front {
  font-size: clamp(0.5rem, 5vw + 1rem, 1rem);
  font-family: var(--ff-mont);
}

.pushable:hover .arrow {
  transform: translateX(6px);
}

.arrow {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease-in-out;
  color: var(--clr-white);
}

.cta-button {
  background-color: var(--clr-cta);
  border: 1px solid var(--clr-cta);
  color: var(--clr-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (min-width: 1400px) {
  .services-grid {
    max-width: 1100px;
  }
}

@media (min-width: 70rem) {
  .landing-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    min-height: 95vh;
  }
  .landing-page-info {
    grid-area: 1 / 1 / 2 / 2;
  }

  .landing-page-image {
    grid-area: 1 / 2 / 2 / 3;
  }

  .landing-page-info h1 {
    margin-top: 0;
  }
}

/* ===============================
2.5 MARQUEE PAGE + DIVIDER + @MEDIA
================================== */

.marquee-wrapper {
  overflow: hidden; /* hides content that slides out */
  width: 100%;
  background: var(--clr-green); /* dark background – match your footer/site */
  color: var(--clr-black); /* soft gold for natural hair vibe */
  /* text-shadow: 1px 1px var(--clr-dark); */
  border-top: 1px solid var(--clr-dark);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem 0;
  user-select: none; /* prevents text selection while moving */
}

.marquee-track {
  display: flex;
  animation: scroll-left 10s linear infinite; /* adjust 25s = speed (longer = slower) */
  will-change: transform; /* better performance */
}

.marquee-content {
  flex-shrink: 0; /* don't shrink */
  white-space: nowrap; /* keep everything in one line */
  padding-right: 2rem; /* gap between end of one cycle and start of next */
}

/* Optional: pause on hover (great for accessibility) */
.marquee-wrapper:hover .marquee-track {
  /* animation-play-state: paused; */
}

/* The magic animation */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.info-divider {
  position: relative;
}

.info-divider::after {
  content: "";
  width: 75px;
  height: 2px;
  display: block;
  background: var(--clr-cta);
  margin: 2rem 0 1rem;
}

/* ===============================
3. SECTION + SERVICES + @MEDIA
================================== */

.services {
  background-color: var(--clr-dark);
  color: var(--clr-white);
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}

.services-header {
  color: var(--clr-cta);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.services-header h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.services-motto {
  color: var(--clr-grey);
  font-size: clamp(1rem, 2.5vw + 0.5rem, 1.25rem);
  max-width: 65ch;
  margin: 0 auto;
}

.services-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.service-image {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 4 / 3;
  overflow: hidden; /* hides any overflow from cropping */
  border-radius: 8px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops instead of stretching */
  object-position: center; /* centers the crop — change to top, bottom etc. if needed */
  display: block;
}

.service-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 65ch;
}

.service-number {
  font-family: var(--ff-fair);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  color: var(--clr-red);
  line-height: 1;
}

.service-title {
  color: var(--clr-cta);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
}

.service-text {
  font-family: var(--ff-popp);
  font-size: clamp(1rem, 2.5vw + 0.5rem, 1.25rem);
  margin: 0;
}

/* Optional: subtle visual separation between items */
.service-item:not(:last-child) {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Very large screens – optional breathing room */
@media (min-width: 1400px) {
  .services-grid {
    max-width: 1100px;
  }
}

.services-cta {
  display: flex;
  flex-direction: column; /* mobile = stack vertically */
  align-items: center; /* center children horizontally */
  gap: 2rem; /* space between text and button on mobile */
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid var(--clr-cta);
  margin: 3rem auto;
  max-width: 1100px;
}

.services-cta-para {
  color: var(--clr-grey);
}

/* Tablet and up – side by side */
@media (min-width: 768px) {
  .services-cta {
    flex-direction: row; /* ← the key change */
    justify-content: space-between; /* or space-around / center */
    align-items: center;
    gap: 3rem;
    text-align: left; /* better readability on wide screens */
    padding: 3rem 2.5rem;
  }

  .services-cta-info {
    flex: 1; /* takes available space */
    max-width: 55%; /* optional – prevents text from getting too wide */
  }

  .services-cta-button {
    flex-shrink: 0;
  }
}

/* Optional – make button look good on all sizes */
.pushable {
  white-space: nowrap;
  min-width: 160px; /* prevent button from becoming too narrow */
}

/* If you want the button centered on mobile but right-aligned on desktop */
@media (min-width: 768px) {
  .services-cta-info {
    text-align: left; /* or remove if you prefer center */
  }
}
/* ===============================
4. ABOUT ME + @MEDIA
================================== */

.about-image {
  position: relative;
}

.meet-rosaria {
  position: absolute;
  top: 10%;
  left: 10%;
  font-family: var(--ff-gara);
  font-size: clamp(1rem, 5vw, 7rem);
  color: var(--clr-menu);
  text-shadow: 1px 1px var(--clr-black);
}

.meet-rosaria-color {
  position: absolute;
  top: 55%;
  left: 25%;
  color: var(--clr-cta);
  font-size: 900;
  text-shadow: 1px 1px var(--clr-black);
  font-family: var(--ff-fair);
  font-size: clamp(2rem, 6vw + 2rem, 12rem);
}

.about-div {
  max-width: 1000px;
}

.about-me {
  display: flex;
  align-items: center;
  background-color: var(--clr-pastel);
  color: var(--clr-black);
  padding: var(--side-padding);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-title h2 {
  margin: var(--side-padding) 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.about-title-line {
  margin-top: 1rem;
  border-bottom: 2px solid var(--clr-cta);
}

.about {
  margin: var(--side-padding) 0;
}

.about p {
  padding-bottom: 1rem;
  font-size: clamp(0.875rem, 2.5vw + 0.5rem, 1.25rem);
}

.profession {
  color: var(--clr-menu);
  font-weight: bold;
}

.about-rose {
  color: var(--clr-pink);
}

/* ===============================
5. PRICES + @MEDIA
================================== */
.prices {
  background-color: var(--clr-light);
  color: var(--clr-white);
  padding: var(--side-padding);
  text-align: center;
  width: 100%;
}

.prices h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 3rem;
  color: var(--clr-cta);
}

.price-list {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

.price-group {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-group h3 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  color: var(--clr-cta);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.washing-group {
  background: var(--clr-menu);
  padding: 2.5rem;
}

.service-block {
  margin-bottom: 2rem;
}

.service-block h4 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: var(--clr-cta);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-item:last-child {
  border-bottom: none;
}

.price-item dt {
  font-weight: 400;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
}

.price-item dd {
  margin: 0;
  text-align: right;
}

.price {
  color: var(--clr-cta);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.special {
  display: flex;
  flex-direction: column;
  align-content: flex-start;
}

.special-text-container {
  display: flex;
  align-content: flex-start;
}

.special-text {
  font-style: italic;
  color: var(--clr-cta);
  font-weight: 500;
  text-align: left;
}

.highlight-course {
  background: #5f4b3c;
  border: 2px solid var(--clr-cta);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: left;
}

.highlight-course h3 {
  margin-bottom: 1.2rem;
}

/* ===============================
6. GALLERY + @MEDIA
================================== */

.gallery {
  background-color: var(--clr-dark);
  color: var(--clr-white);
  text-align: center;
  display: flex;
  align-items: center;
}

.gallery-header {
  margin: 0 auto 3rem;
}

.gallery-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: var(--side-padding);
  line-height: 1.1;
}

.gallery-icon-container {
  position: relative;
  display: inline-block;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.gallery-icon-container img {
  margin-top: clamp(1rem, 3.5vw, 3.5rem);
  margin-bottom: clamp(0.55rem, 2vw, 1rem);

  width: clamp(2.5rem, 6vw, 4.5rem);
  height: auto;
}

.gallery-intro {
  color: var(--clr-grey);
  font-family: var(--ff-rope);
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  line-height: 1.6;
  margin: 0 auto 2.5rem;
}

.follow-me {
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--clr-white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.instagram-link:hover,
.instagram-link:focus {
  color: var(--clr-cta);
  background: rgba(255, 255, 255, 0.08);
}

.instagram-link img {
  width: 28px;
  height: 28px;
  filter: brightness(1.1); /* makes icon pop a bit more */
  transition: transform 0.3s ease;
}

.instagram-link:hover img {
  transform: scale(1.15);
}

/* Gallery grid layout */
.gallery-div {
  margin-bottom: var(--side-padding);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 1200px;
}

.gallery-image {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #ffedd5;
}

.gallery-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-div img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.gallery-div img:hover {
  transform: scale(1.1);
}
/* Lightbox styling */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}
.lightbox .prev,
.lightbox .next {
  height: 50px;
  width: 50px;
  position: absolute;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background-color: transparent;
  color: #ffffff;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1001;
}
.lightbox .prev {
  left: 20px;
}
.lightbox .next {
  right: 20px;
}
.lightbox .close {
  position: absolute;

  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #ffffff;
  background: none;
  cursor: pointer;
  border: none;
  z-index: 1001;
}

/* MEDIA-QUERY: Tablet */
@media (min-width: 48rem) and (max-width: 64rem) {
  .gallery h2 {
    margin-bottom: 4rem;
  }

  .gallery-div {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================
7. TESTIMONIAL + @MEDIA
================================= */

.testimonials {
  padding: var(--side-padding);
  background: var(--clr-pastel);
  color: black;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonials h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.testimonial-text {
  color: var(--clr-black);
}

.card-container {
  max-width: 70rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw + 1rem, 3.5rem);
}

/* Modern card styling */
.card {
  position: relative;
  columns: 2 300px;
  flex: 1 300px;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 12px;
  border: 2px solid var(--clr-black);
  overflow: hidden;
  margin: 1.5rem 0;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: var(--side-padding) 0;
  width: clamp(8rem, 22vw, 12rem);
  height: clamp(2.5rem, 6vh, 3.25rem);
  font-size: clamp(0.875rem, 3vw, 1.125rem);
}

.card-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.card-title {
  color: var(--clr-cta);
  font-family: var(--ff-fair);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  margin: 1.5rem 0;
}

.card-text {
  font-family: var(--ff-popp);
  font-size: clamp(1.125rem, 1.8vw + 0.5rem, 1.5rem);
}

.text-truncate-3 {
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 3;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

.btn-primary {
  display: flex;
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
  width: 12rem;
  height: 3rem;
  margin: 3rem 0;
}

/* On very small screens - card takes almost full width */
@media (max-width: 576px) {
  .card {
    max-width: 100% !important;
  }
}

/* MEDIA-QUERY: Destop+ */
@media (min-width: 64rem) {
  .card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: var(--side-padding);
    grid-row-gap: 0px;
  }

  .card-one {
    grid-area: 1 / 1 / 2 / 2;
  }
  .card-two {
    grid-area: 1 / 2 / 2 / 3;
  }
  .card-three {
    grid-area: 2 / 1 / 3 / 2;
  }
  .card-four {
    grid-area: 2 / 2 / 3 / 3;
  }
}

.modal-content {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.modal-title {
  color: var(--clr-cta);
  font-family: var(--ff-fair);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
}

.modal-body {
  font-family: var(--ff-robo);
  font-size: clamp(0.875rem, 2.5vw + 0.5rem, 1.25rem);
}

/* ==============================
8. FOOTER + @MEDIA
================================= */

footer {
  background-color: var(--clr-footer);
  font-family: var(--ff-popp);
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--clr-grey);
  padding: var(--side-padding);
  display: flex;
  flex-direction: column;
}

footer h3,
footer p {
  font-family: var(--ff-popp);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

footer h3 {
  color: var(--clr-cta);
}

.footer-menu a:hover,
.footer-info a:hover,
.terms-link a:hover {
  color: var(--clr-cta);
}

.footer-logo p {
  margin: 0;
  margin-bottom: 1.5rem;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  margin-top: var(--side-padding);
}

.footer-info {
  grid-area: 2 / 1 / 3 / 2;

  display: flex;
  flex-direction: column;
  margin: var(--side-padding) 0;
}

.social-links {
  display: flex;
  flex-direction: row;
}

.social-links a {
  margin-right: var(--side-padding);
  cursor: pointer;
}

@media (min-width: 48rem) {
  .footer-logo p {
    max-width: 70%;
  }
}

/* ==============================
9. COPYRIGHT + @MEDIA
================================= */

.copyright {
  background-color: var(--clr-footer);
  color: var(--clr-grey);
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  font-family: var(--ff-popp);
  text-align: center;
  padding: 0 var(--side-padding);
  border-top: 10px solid var(--clr-footer);
}

.copyright-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 0.1px solid var(--clr-cta);
}

.copyright-image {
  max-width: 125px;
  max-height: 125px;
  margin: clamp(0.5rem, 1.5vw, 1.5rem);
}

.copyright h3,
.privacy-policy,
.terms-of-service {
  font-size: clamp(0.625rem, 1.25vw, 0.525rem);
  font-family: var(--ff-popp);
}

.terms {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 48rem) {
  .copyright-container {
    flex-direction: column;
  }

  .copyright-image,
  .copyright-info,
  .terms {
    font-family: var(--ff-popp);
  }

  .copyright-info {
    order: 1;
  }

  .terms {
    order: 2;
  }
}

/* ==============================
10. ARROW UP BUTTON + @MEDIA
================================= */

#backToTop {
  position: fixed;
  bottom: 7rem;
  right: max(2rem, calc((100vw - 120em) / 2 + 2rem));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background-color: var(--clr-cta);
  color: var(--clr-black);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

#backToTop:hover {
  color: var(--clr-cta);

  background-color: #000;
  transform: translateY(-2px);
}

#backToTop:active {
  transform: translateY(0);
}

#backToTop.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Keep inside wrapper width on widescreen */
@media (min-width: 90em) {
  #backToTop {
    right: calc((100vw - 120em) / 2 + 50rem);
  }
}

/* Hide on mobile */
@media (max-width: 767px) {
  #backToTop {
    display: none !important;
    width: 0;
    height: 0;
  }
}
