/* ===== NailsByDeli, styles ===== */
:root {
  --cream:      #FBF7F2;
  --cream-2:    #F3EAE1;
  --ivory:      #FFFFFF;
  --taupe:      #A98B77;
  --mocha:      #8B6B57;
  --espresso:   #2C2521;
  --soft:       #6E625A;
  --blush:      #E8D6CC;
  --line:       #E7DBD0;
  --gold:       #B89B6E;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(63, 45, 33, 0.10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  transition: opacity .5s ease;
}

/* Hold the page hidden until fonts/styles are ready, then fade in (only when JS is on) */
.js body { opacity: 0; }
body.page-ready { opacity: 1; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: 0.3px; }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mocha); font-weight: 400; margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { background: var(--mocha); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: rgba(255,255,255,0.7); }
.hero .btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  color: #fff; text-decoration: none; letter-spacing: 0.5px;
}
.brand span { color: var(--blush); font-style: italic; }
.scrolled .brand { color: var(--espresso); }
.scrolled .brand span { color: var(--mocha); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: #fff; text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; position: relative;
  transition: opacity .2s ease;
}
.nav-links a:not(.lang-toggle):hover { opacity: 0.7; }
.scrolled .nav-links a { color: var(--espresso); }

.lang-toggle { display: flex; align-items: center; gap: 6px; }
.lang-toggle button {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  color: inherit; font-size: 0.8rem; letter-spacing: 0.1em; opacity: 0.55;
  text-transform: uppercase; transition: opacity .2s ease;
}
.nav-links .lang-toggle button { color: #fff; }
.scrolled .nav-links .lang-toggle button { color: var(--espresso); }
.lang-toggle button.active { opacity: 1; font-weight: 500; }
.lang-toggle span { opacity: 0.4; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 60; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
.scrolled .nav-toggle span { background: var(--espresso); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #6E5444, #A98B77 60%, #C9AE9C);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 25%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,20,15,0.45) 0%, rgba(28,20,15,0.25) 40%, rgba(28,20,15,0.55) 100%);
}
.hero-media.no-image .hero-overlay { background: rgba(28,20,15,0.18); }
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 60px; padding-bottom: 60px; }
.hero .eyebrow { color: var(--blush); }
.hero-title { font-size: clamp(3.2rem, 11vw, 7rem); font-weight: 600; letter-spacing: 1px; }
.hero-title span { font-style: italic; color: var(--blush); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 300; max-width: 560px; margin: 18px auto 36px; opacity: 0.95; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* On larger screens, sit the hero text in the photo's open space on the right */
@media (min-width: 901px) {
  .hero-content { text-align: right; }
  .hero-content .hero-sub { margin-left: auto; margin-right: 0; }
  .hero-content .hero-actions { justify-content: flex-end; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(28,20,15,0.40) 0%, rgba(28,20,15,0) 22%),
      linear-gradient(100deg, rgba(28,20,15,0.05) 0%, rgba(28,20,15,0.28) 50%, rgba(28,20,15,0.62) 100%);
  }
}

.scroll-cue { position: absolute; bottom: 30px; left: 50%; width: 26px; height: 40px; border: 2px solid rgba(255,255,255,0.95); border-radius: 13px; z-index: 3; transform: translateX(-50%); animation: cueBob 1.8s ease-in-out infinite; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s infinite; }
.scroll-cue::before { content: ""; position: absolute; left: 50%; bottom: -14px; width: 10px; height: 10px; border-right: 2px solid rgba(255,255,255,0.95); border-bottom: 2px solid rgba(255,255,255,0.95); transform: translateX(-50%) rotate(45deg); }
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }
@keyframes cueBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } .scroll-cue::after { animation: none; opacity: 1; } }

/* ===== About ===== */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.about-media.no-image { display: flex; align-items: center; justify-content: center; }
.about-media.no-image::after { content: "Photo of Delaram\A (images/delaram/about.jpg)"; white-space: pre; text-align: center; color: var(--taupe); font-size: 0.85rem; letter-spacing: 0.05em; }
.about-media.no-image img { display: none; }
.about-text h2 { margin-bottom: 22px; }
.about-text p { color: var(--soft); margin-bottom: 18px; }
.about-facts { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.about-facts li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.about-facts strong { font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mocha); }
.about-facts span { color: var(--soft); }

/* ===== Services ===== */
.services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: 12px; color: var(--espresso); }
.service-card p { color: var(--soft); font-size: 0.95rem; }
.services-note { text-align: center; margin-top: 48px; color: var(--mocha); font-style: italic; font-family: var(--serif); font-size: 1.25rem; }

/* ===== Gallery ===== */
.gallery { background: var(--ivory); }
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-item {
  position: relative; margin-bottom: 18px; border-radius: 10px; overflow: hidden;
  cursor: pointer; break-inside: avoid; background: var(--cream-2);
  box-shadow: 0 6px 18px rgba(63,45,33,0.07);
}
.gallery-item img { width: 100%; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(44,37,33,0); transition: background .3s ease;
}
.gallery-item:hover::after { background: rgba(44,37,33,0.12); }
.gallery-empty { grid-column: 1/-1; text-align: center; color: var(--taupe); padding: 60px 0; font-style: italic; font-family: var(--serif); font-size: 1.2rem; }

/* protect images a little */
.gallery-item img, .hero-media img, .about-media img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

/* ===== Contact ===== */
.contact { background: linear-gradient(135deg, #6E5444, #8B6B57 70%, #A98B77); color: #fff; text-align: center; }
.contact .eyebrow { color: var(--blush); }
.contact h2 { margin-bottom: 16px; }
.contact-lead { max-width: 540px; margin: 0 auto 44px; opacity: 0.92; }
.contact-methods { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius); padding: 26px 34px; min-width: 220px;
  text-decoration: none; color: #fff; transition: background .25s ease, transform .25s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.contact-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blush); }
.contact-value { font-family: var(--serif); font-size: 1.3rem; }

/* ===== Footer ===== */
.site-footer { background: var(--espresso); color: var(--cream); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand-sm { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand-sm span { font-style: italic; color: var(--blush); }
.copy { font-size: 0.85rem; opacity: 0.7; letter-spacing: 0.04em; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,14,10,0.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img { max-width: 88vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); -webkit-user-drag: none; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: none; color: #fff; cursor: pointer;
  font-size: 2.4rem; line-height: 1; opacity: 0.8; transition: opacity .2s ease; user-select: none;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 24px; right: 30px; font-size: 2.8rem; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 420px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero-content { padding-top: 30px; padding-bottom: 30px; }
  .scroll-cue { bottom: 22px; }
  /* keep the header from creating a containing block that traps the fixed menu */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251, 247, 242, 0.98); }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh; height: 100dvh;
    background: var(--espresso); flex-direction: column;
    justify-content: center; gap: 30px; z-index: 55; overflow-y: auto;
    transform: translateX(100%); transition: transform .4s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a, .nav-links .lang-toggle button { color: #fff !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background:#fff; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background:#fff; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .contact-card { min-width: 0; width: 100%; }
}
