/**
 * ------------------------------------------------------
 * CSS VARIABLES
 * ------------------------------------------------------
 */

:root {
  --color-background: #f5f1ec;
  --color-text: #3a312a;
  --color-heading: #3c2f25;
  --color-accent: #c8aa8c;
  --color-accent-hover: #b59679;
  --color-overlay: rgba(0, 0, 0, 0.4);
  --color-about-bg: #f8f4f0;
  --color-services-bg: #f0e8e0;
  --color-cta-bg: #c3a68d;
  --color-footer-bg: #3a312a;
  --color-white: #ffffff;
  --color-brown-transparent: rgba(58, 49, 42, 0.9);
}

/**
 * ------------------------------------------------------
 * GLOBAL RESET & BASE STYLES
 * ------------------------------------------------------
 */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Karla", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

h1 {
  font-family: "Petrona", serif;
  color: var(--color-about-bg);
}

.hero h1 {
  color: var(--color-white);
}

h2,
h3 {
  font-family: "Petrona", serif;
  color: var(--color-text);
  text-align: center;
}

p {
  line-height: 1.6;
}

.logo {
  text-decoration: none;
}

/**
 * ------------------------------------------------------
 * BUTTONS
 * ------------------------------------------------------
 */

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/**
 * ------------------------------------------------------
 * HEADER & NAVIGATION
 * ------------------------------------------------------
 */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 10000;
  opacity: 0.8;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: "Petrona", serif;
  font-size: 1.5rem;
  color: var(--color-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-family: "Karla", sans-serif;
  transition: color 0.3s ease;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

/**
 * ------------------------------------------------------
 * HERO SECTION
 * ------------------------------------------------------
 */

.hero {
  position: relative;
  background-image: url("./images/hero.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 90vh;
  display: block;
  text-align: center;
  color: var(--color-white);
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
  z-index: 1;
}

.hero .container {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 500px;
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--color-brown-transparent);
}

.hero h1,
.hero p {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/**
 * ------------------------------------------------------
 * ABOUT
 * ------------------------------------------------------
 */

.about {
  background-color: var(--color-about-bg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/**
 * ------------------------------------------------------
 * SERVICES
 * ------------------------------------------------------
 */

.services {
  background-color: var(--color-services-bg);
  padding-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2rem auto 0;
  max-width: 1000px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-card img.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card img {
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card .card-body .btn {
  margin-top: auto;
}

/**
 * ------------------------------------------------------
 * TESTIMONIALS
 * ------------------------------------------------------
 */

.testimonials {
  background-color: var(--color-about-bg);
  padding: 4rem 1rem;
  text-align: center;
  font-style: italic;
}

.testimonials .container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonials blockquote {
  font-family: "Petrona", serif;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
  padding: 0 1rem;
}

.testimonials blockquote::before,
.testimonials blockquote::after {
  color: var(--color-accent);
  font-size: 4rem;
  position: absolute;
}

.testimonials blockquote::before {
  content: "“";
  left: -10px;
  top: -10px;
}

.testimonials blockquote::after {
  content: "”";
  right: -10px;
  bottom: -20px;
}

/**
 * ------------------------------------------------------
 * CALL TO ACTION
 * ------------------------------------------------------
 */

.cta {
  background-color: var(--color-cta-bg);
  background-image: url("./images/back2.png");
  background-size: cover;
  background-position: center;
  padding-bottom: 4rem;
  text-align: center;
  color: var(--color-white);
}

.cta .container {
  max-width: 700px;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta .btn {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  background-color: var(--color-white);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.cta .btn:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

/**
 * ------------------------------------------------------
 * BOOKING FORM
 * ------------------------------------------------------
 */

 *, *::before, *::after {
  box-sizing: border-box;
}

.booking {
  background-color: var(--color-about-bg);
  padding: 4rem 0;
  text-align: center;
}

.booking h2 {
  margin-bottom: 2rem;
}

.booking-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
  background-color: var(--color-services-bg);
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.booking-form:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 45px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/**
 * ------------------------------------------------------
 * PARTNERS LOGOS
 * ------------------------------------------------------
 */

.partners {
  background-color: var(--color-about-bg);
  padding: 4rem 0;
  text-align: center;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 4rem;
}

.stamp img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
}

/**
 * ------------------------------------------------------
 * WAVE DIVIDERS
 * ------------------------------------------------------
 */

.wave-divider {
  width: 100vw;
  height: 100px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.wave-top {
  position: relative;
  top: -1px;
  z-index: 0;
}

/**
 * ------------------------------------------------------
 * DROPDOWN MENU
 * ------------------------------------------------------
 */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.3s;
}

.dropdown-toggle:hover {
  color: var(--primary-hover);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  z-index: 999;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

/**
 * ------------------------------------------------------
 * STUDIO GALLERY
 * ------------------------------------------------------
 */

.studio-gallery {
  background-color: #f8f4f0;
  padding: 4rem 1rem;
  text-align: center;
}

.studio-gallery h2 {
  font-size: 2rem;
}

.gallery-intro {
  max-width: 520px;
  margin: 0 auto 2rem;
}

.studio-gallery .gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  justify-items: center;
}

.studio-gallery img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.studio-gallery img:hover {
  transform: translateY(-6px) scale(1.03);
}

/* Tablet layout */
@media (max-width: 1024px) {
  .studio-gallery .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-gallery img {
    height: 380px;
  }
}

/**
 * ------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------
 */

.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  text-align: center;
}

/**
 * ------------------------------------------------------
 * VISIBILITY HELPERS
 * ------------------------------------------------------
 */

.mobile-only {
  display: none;
}

/* Hide desktop dropdown on mobile */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

/**
 * ------------------------------------------------------
 * MOBILE NAVIGATION BEHAVIOR
 * ------------------------------------------------------
 */

.main-nav {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: var(--color-services-bg);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease;
  }

  .main-nav.open {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    margin: 0.75rem 0;
    font-size: 1.1rem;
    text-align: center;
  }

  .mobile-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}

/**
 * ------------------------------------------------------
 * SMALL MOBILE TWEAKS
 * ------------------------------------------------------
 */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
  }
}


/* ------------------------------------------------------ */
/* SAFARI FIXES — iOS + macOS                             */
/* ------------------------------------------------------ */
@supports (-webkit-touch-callout: none) {

  /* Fix header padding shift */
  .main-header {
    padding-top: env(safe-area-inset-top);
  }

  body {
    padding-top: calc(80px + env(safe-area-inset-top));
  }

  /* Fix collapsible nav height + padding miscalculation */
  .main-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
  }

  /* Fix weird overflow Safari adds sometimes */
  .main-nav a {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}