/* ============================================
   GLORIA NAILS & SPA — Custom Styles
   ============================================ */

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

:root {
  --terracotta: #C4785A;
  --terracotta-dark: #A8604A;
  --terracotta-light: #D4956F;
  --sand: #FDF6F0;
  --sand-mid: #F5E6D8;
  --sand-dark: #E8D5C4;
  --cream: #FFF9F5;
  --text-dark: #3D2B1F;
  --text-mid: #6B5344;
  --text-light: #9A8070;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 12px rgba(61, 43, 31, 0.06);
  --shadow-md: 0 8px 32px rgba(61, 43, 31, 0.10);
  --shadow-lg: 0 16px 48px rgba(61, 43, 31, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--sand);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Shared --- */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196, 120, 90, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Reveal (progressive enhancement) --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 120, 90, 0.1);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(253, 246, 240, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-accent {
  font-weight: 500;
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width var(--transition);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--terracotta-dark) !important;
  transform: translateY(-1px);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--sand);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253, 246, 240, 0.92) 0%, rgba(253, 246, 240, 0.75) 50%, rgba(253, 246, 240, 0.4) 100%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sand) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.hero-card {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196, 120, 90, 0.12);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-headline em {
  color: var(--terracotta);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196, 120, 90, 0.35);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 120, 90, 0.4);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--sand-dark);
}

.btn-outline-light:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card--1 { border-left: 4px solid var(--terracotta); }
.stat-card--2 { border-left: 4px solid var(--sand-dark); }
.stat-card--3 { border-left: 4px solid var(--terracotta-light); }

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* --- Hero Wave --- */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background: var(--sand);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(196, 120, 90, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(196, 120, 90, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--terracotta);
}

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--cream);
}

.about-img-secondary img {
  width: 220px;
  height: 220px;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--sand-dark);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.value-icon {
  width: 36px;
  height: 36px;
  background: rgba(196, 120, 90, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
  padding: 100px 0;
  background: var(--sand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: auto;
}

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

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { height: 100%; }
.gallery-item:nth-child(3) { grid-row: span 2; }
.gallery-item:nth-child(3) img { height: 100%; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 43, 31, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay span {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* --- CTA --- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-content .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.cta-content .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 120, 90, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact-item a {
  color: var(--terracotta);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

/* --- Footer --- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--terracotta-light);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links strong,
.footer-hours strong,
.footer-contact strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links ul,
.footer-hours ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--terracotta-light);
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .stat-card {
    flex: 1;
    min-width: 140px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-img-secondary {
    right: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 246, 240, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(196, 120, 90, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  .hero-headline {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(3) {
    grid-row: span 1;
  }
  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(3) img {
    height: 280px;
  }
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-map {
    min-height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-stats {
    flex-direction: column;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 280px;
  }
}
