/* ========================================
   RoseRoom Salon - Main Stylesheet
   ======================================== */

/* ----------------------------------------
   FONT FACES
   ---------------------------------------- */
@font-face {
  font-family: 'Canela';
  src: url('../fonts/Canela-Thin.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Canela';
  src: url('../fonts/Canela-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cooper Hewitt';
  src: url('../fonts/CooperHewitt-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Abel';
  src: url('../fonts/Abel-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------
   RESET & BASE
   ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--text-base);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  letter-spacing: var(--letter-spacing-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: var(--space-2xl);
  text-align: center;
  font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-hover);
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ----------------------------------------
   UTILITIES
   ---------------------------------------- */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.button-primary {
  display: inline-block;
  background: transparent;
  border: var(--border-width) solid var(--color-gold);
  color: var(--color-gold);
  padding: 18px 32px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-button);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.button-primary:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.button-primary.button-large {
  padding: 21px 40px;
  font-size: var(--text-base);
}

/* Light button variant for dark backgrounds */
.button-light {
  border-color: var(--color-white);
  color: var(--color-white);
}

.button-light:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* ----------------------------------------
   HEADER / NAVIGATION
   ---------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: transparent;
  height: var(--header-height);
  transition: background-color var(--transition-normal), height var(--transition-normal);
}

.site-header.scrolled {
  background-color: var(--color-dark);
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow-md);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Center logo */
.logo {
  display: flex;
  align-items: center;
  margin: 0 var(--space-2xl);
  order: 2;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: height var(--transition-normal);
}

.site-header.scrolled .logo-img {
  height: 45px;
}

/* Nav links - left and right groups */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-left {
  order: 1;
  flex: 1;
  justify-content: flex-end;
}

.nav-right {
  order: 3;
  flex: 1;
  justify-content: flex-start;
}

.nav-links a {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-nav);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-gold);
}

/* Home link is orange/gold */
.nav-home {
  color: var(--color-gold) !important;
}

/* Navigation CTA Button */
.nav-cta {
  background: transparent;
  border: var(--border-width) solid var(--color-gold);
  color: var(--color-gold) !important;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-cta:hover {
  background: var(--color-gold);
  color: var(--color-white) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: var(--z-modal);
  order: 4;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Mobile menu open state */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation - hidden on desktop */
.nav-mobile {
  display: none;
}

/* ----------------------------------------
   HERO SECTION
   ---------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../images/hero/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Fallback background color if hero image is missing */
  background-color: var(--color-dark);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 1100px;
  padding: 0 var(--container-padding);
  margin-bottom: 15vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: var(--font-weight-medium);
  margin-bottom: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-content .button-primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  padding: 22px 40px;
  font-size: var(--text-base);
  margin-top: 18vh;
}

.hero-content .button-primary:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-white);
}

/* ----------------------------------------
   ABOUT SECTION
   ---------------------------------------- */
.about-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
}

.about-section .container {
  max-width: 900px;
}

.about-content {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.about-content h2 {
  margin-bottom: var(--space-xl);
}

.about-content p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Navigation Cards (Services, Gallery, Bookings) */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.nav-card {
  position: relative;
  display: block;
  text-decoration: none;
  padding-bottom: 30px;
}

.nav-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  transition: transform var(--transition-slow);
}

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

.nav-card-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  padding: 14px 32px 12px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-dark);
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.nav-card-title::after {
  content: '';
  display: block;
  width: 40%;
  height: 1px;
  background: var(--color-dark);
  margin: 10px auto 0;
}

/* ----------------------------------------
   SERVICES SECTION
   ---------------------------------------- */
.services-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-light-bg);
}

.services-section h2 {
  color: var(--color-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.service-category {
  text-align: center;
}

.service-category h3 {
  font-size: var(--text-xl);
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gold);
}

.service-list li {
  padding: var(--space-sm) 0;
  color: var(--color-gold);
  font-size: var(--text-base);
}

.services-section .button-primary {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ----------------------------------------
   GALLERY SECTION (Carousel)
   ---------------------------------------- */
.gallery-section {
  padding: 0;
  background-color: var(--color-dark);
}

.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

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

.carousel-slide {
  min-width: 33.333%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  border: none;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: var(--z-base);
  transition: background var(--transition-fast);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* ----------------------------------------
   TEAM SECTION
   ---------------------------------------- */
.team-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 280px;
  height: 280px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: high-quality;
  transition: transform var(--transition-slow);
}

.team-member:hover .team-photo img {
  transform: scale(1.05);
}

.team-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.team-title {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* ----------------------------------------
   CONTACT SECTION
   ---------------------------------------- */
.contact-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-light-bg);
}

.contact-map {
  width: 100%;
  margin-bottom: var(--space-2xl);
  overflow: hidden;
  /* Grayscale filter for elegant look */
  filter: grayscale(100%) contrast(1.1);
  transition: filter var(--transition-normal);
}

.contact-map:hover {
  filter: grayscale(50%) contrast(1.05);
}

.contact-map iframe {
  display: block;
  width: 100%;
}

.contact-content {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  text-align: left;
}

.contact-info .contact-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--color-dark);
}

.contact-info address {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.contact-phone {
  margin-top: var(--space-sm);
}

.contact-phone a {
  color: var(--color-gold);
  font-size: var(--text-md);
}

.contact-phone a:hover {
  color: var(--color-gold-hover);
}

.contact-hours p {
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xs);
}

/* ----------------------------------------
   INSTAGRAM SECTION
   ---------------------------------------- */
.instagram-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
  text-align: center;
}

.instagram-handle {
  margin-bottom: var(--space-xl);
}

.instagram-handle a {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark);
}

.instagram-handle a:hover {
  color: var(--color-gold);
}

.instagram-feed {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-placeholder {
  color: var(--color-text-light);
  font-style: italic;
}

/* ----------------------------------------
   BOOK NOW SECTION
   ---------------------------------------- */
.book-now-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-dark);
  text-align: center;
}

.book-now-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.book-now-section p {
  color: var(--color-text-on-dark);
  opacity: 0.8;
  margin-bottom: var(--space-xl);
  font-size: var(--text-lg);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.site-footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  background-color: var(--color-dark);
  color: var(--color-text-on-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 30px;
  width: auto;
  opacity: 0.8;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  opacity: 0.8;
}

.footer-info a {
  color: var(--color-text-on-dark);
}

.footer-info a:hover {
  color: var(--color-gold);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-on-dark);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  opacity: 0.6;
}

/* ----------------------------------------
   MOBILE NAV OVERLAY
   ---------------------------------------- */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-overlay-dark);
  z-index: var(--z-overlay);
}

.nav-overlay.active {
  display: block;
}
