/* Oz Hair Studio — recreated site styles */

:root {
  --purple: #2c007a;
  --purple-hero: #3d0564;
  --green: #00ff00;
  --orange: #de5200;
  --orange-overlay: rgba(222, 82, 0, 0.79);
  --text-dark: #3a3a3a;
  --white: #ffffff;
  --off-white: #f9fafa;
  --container-width: 1218px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  margin-bottom: 40px;
}

.section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 2;
}

/* Plain white sections: rely on the 40px section margin for spacing
   instead of stacking their own top/bottom padding on top of it */
#before-after .section-inner,
#about .section-inner,
#contact .section-inner {
  padding-top: 0;
  padding-bottom: 0;
}

h1, h2, h3 {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  margin: 0 0 16px;
}

h1 {
  font-weight: 700;
  font-size: 47px;
  color: var(--purple-hero);
}

h2.section-heading {
  font-weight: 600;
  font-size: 34px;
  color: var(--purple);
  text-align: center;
  margin-bottom: 40px;
}

p {
  margin: 0 0 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 14px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-green {
  background: var(--green);
  color: var(--purple-hero);
}

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

.btn-purple {
  background: var(--purple);
  color: var(--white);
}

/* Header */
header.site-header {
  background: var(--purple);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 46px;
}

nav.main-nav {
  flex: 1;
}

nav.main-nav ul {
  display: flex;
  gap: 32px;
  justify-content: center;
}

nav.main-nav a {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-color: var(--orange);
}

.header-social {
  display: flex;
  gap: 12px;
}

.header-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
}

.header-social a.envelope {
  background: #f4511e;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
}

/* Hero */
.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto 40px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("image_download/hair_bg_2.jpg") center/cover no-repeat;
  z-index: 1;
}

.hero-box {
  position: relative;
  z-index: 2;
  background: var(--orange-overlay);
  padding: 48px 44px;
  max-width: 460px;
  margin: 40px;
  border-radius: 12px;
}

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

.hero-box p {
  color: #fff;
  font-size: 16px;
}

/* Carousel section wrapper (Before/After) */
.carousel-section {
  text-align: center;
}

/* Before/After grid */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 30px;
}

.before-after-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

/* Services */
.services {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("image_download/bottles.jpg") center/cover no-repeat;
  color: var(--white);
  max-width: var(--container-width);
  margin: 0 auto 40px;
}

.services .section-heading {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--white);
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}

.services-list .check {
  color: var(--orange);
  font-weight: 900;
}

.services-image img {
  border-radius: 6px;
}

/* Testimonials */
.testimonials {
  background: url("image_download/review_bg.jpg") center/cover no-repeat;
  text-align: center;
  color: var(--white);
  max-width: var(--container-width);
  margin: 0 auto 40px;
}

.testimonials .section-inner {
  padding: 90px 24px;
}

.testimonial-slide {
  max-width: 720px;
  margin: 0 auto;
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  padding: 40px 48px;
  margin-bottom: 22px;
}

.testimonial-card .quote {
  font-size: 19px;
  font-style: italic;
  color: var(--text-dark);
  margin: 0;
}

.testimonial-name {
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 32px;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}

.testimonial-dots button.active {
  background: var(--white);
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.25);
  border: none;
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
}

.testimonial-arrow:hover {
  background: rgba(0, 0, 0, 0.4);
}

.testimonial-arrow.prev {
  left: 24px;
}

.testimonial-arrow.next {
  right: 24px;
}

.testimonials .btn {
  margin-top: 4px;
}

/* About */
.about-people {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 30px;
}

.person-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  text-align: left;
  align-items: start;
}

.person-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.person-bio h3 {
  color: var(--purple);
  font-size: 28px;
  margin-bottom: 16px;
}

.person-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person-actions .btn {
  padding: 12px 18px;
  font-size: 13px;
  text-align: center;
  border: 2px solid #1aa61a;
  border-radius: 6px;
}

/* Gift cards */
.gift-cards {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("image_download/gift_card_bg.jpg") center/cover no-repeat;
  text-align: center;
  color: var(--white);
  max-width: var(--container-width);
  margin: 0 auto 40px;
}

.gift-cards .section-inner {
  padding: 90px 24px;
}

.gift-cards h2 {
  color: var(--white);
}

.gift-cards .btn {
  margin: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  text-align: left;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}

.contact-list .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
}

form.contact-form .full {
  grid-column: 1 / -1;
}

form.contact-form .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

form.contact-form .checkbox-row input {
  width: auto;
  margin-top: 3px;
}

form.contact-form button {
  justify-self: start;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: #1a9c1a;
  display: none;
}

.form-note.visible {
  display: block;
}

.form-note.error {
  color: #c0392b;
}

/* Footer */
footer.site-footer {
  background: var(--purple);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-inner a {
  color: var(--green);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Gallery page */
.gallery-hero {
  background: url("image_download/wilson_banner.jpg") center/cover no-repeat;
  padding: 90px 24px 60px;
  color: var(--white);
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto 40px;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.gallery-hero .section-inner {
  padding: 0;
}

.gallery-hero h1 {
  color: var(--white);
  font-size: 40px;
}

.gallery-hero p {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.gallery-section {
  padding: 60px 0 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.06);
}

.gallery-back {
  text-align: center;
  padding: 40px 24px 70px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .person-media {
    max-width: 320px;
  }

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

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

  h1 {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  .before-after-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--purple);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.main-nav.open {
    max-height: 320px;
  }

  nav.main-nav ul {
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }

  .hero-media {
    position: static;
    inset: auto;
    height: 320px;
    background-position: top center;
  }

  .hero-box {
    position: static;
    background: var(--orange);
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: 32px 24px;
  }
}
