/* ================================================
   G. Margarittha Photography — Stylesheet
   ================================================ */

:root {
  --bg:            #080706;
  --bg-2:          #0f0e0c;
  --bg-3:          #181614;
  --text:          #ede3d5;
  --text-muted:    #9b8f82;
  --gold:          #c9a96e;
  --gold-light:    #e8d5b0;
  --gold-dark:     #a07a3f;
  --purple:        #9b72cf;
  --purple-light:  #b594d9;
  --purple-subtle: rgba(155, 114, 207, 0.07);
  --border:        rgba(201, 169, 110, 0.18);
  --border-purple: rgba(155, 114, 207, 0.25);
  --nav-h:         78px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold-light);
}

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 7, 6, 0.93);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  flex-shrink: 0;
}
.nav-logo span { color: var(--purple-light); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s;
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; }

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg);
}

.lang-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../Portfolio Photos/JE4A5637.jpg') center / cover no-repeat;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}

.hero.ready .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,7,6,0.35) 0%,
    rgba(8,7,6,0.55) 50%,
    rgba(8,7,6,0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(237, 227, 213, 0.75);
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.82rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.btn:hover { background: var(--gold); color: var(--bg); }

.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-light); }

.btn-purple {
  border-color: var(--purple);
  color: var(--purple-light);
}
.btn-purple:hover { background: var(--purple); color: #fff; }

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%    { transform: scaleY(0); transform-origin: top;    }
  49%   { transform: scaleY(1); transform-origin: top;    }
  50%   { transform: scaleY(1); transform-origin: bottom; }
  100%  { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Sections (shared) ───────────────────────── */
section { padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem); }

.section-header { margin-bottom: 3.5rem; }

/* ── Portfolio ───────────────────────────────── */
#portfolio { background: var(--bg-2); }

.portfolio-grid {
  columns: 3 260px;
  column-gap: 10px;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.65s ease;
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,7,6,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.portfolio-item:hover .portfolio-item-overlay { background: rgba(8,7,6,0.28); }

.portfolio-item-overlay .expand-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232,213,176,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
  color: var(--gold-light);
}

.portfolio-item:hover .expand-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── Lightbox ────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 4, 3, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(201,169,110,0.08);
  border: 1px solid var(--border);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 1rem;
}

.lb-close {
  top: 1.5rem; right: 2rem;
  width: 42px; height: 42px;
  font-size: 1.3rem;
}

.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
}

.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(201,169,110,0.2);
}

/* ── About ───────────────────────────────────── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 75vh;
  max-height: 680px;
  object-fit: cover;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -1.5rem; left: -1.5rem;
  right: 1.5rem; bottom: 1.5rem;
  border: 1px solid var(--border-purple);
  pointer-events: none;
  z-index: 0;
}

.about-img-wrap img { position: relative; z-index: 1; }

.about-text .section-title { margin-bottom: 1.5rem; }

.about-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.95;
}

.about-text p strong { color: var(--text); font-weight: 400; }

.about-signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-style: italic;
  color: var(--purple-light);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.island-box {
  border: 1px solid var(--border-purple);
  background: var(--purple-subtle);
  padding: 1.4rem 1.6rem;
}

.island-box h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.island-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.island-box a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Pricing ─────────────────────────────────── */
#pricing { background: var(--bg-2); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(201,169,110,0.45);
  transform: translateY(-6px);
}

.pricing-card.featured {
  border-color: var(--purple);
  background: linear-gradient(145deg, var(--bg-3) 60%, rgba(155,114,207,0.06));
}

.pricing-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -1px; right: 1.8rem;
  background: var(--purple);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
}

.pricing-emoji { font-size: 1.6rem; margin-bottom: 1rem; display: block; }

.pricing-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.15rem;
}

.pricing-name-en {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 1.6rem;
}

.pricing-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 2rem;
}

.pricing-price sup { font-size: 1.4rem; vertical-align: 0.6em; }

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

.extras-wrap {
  max-width: 700px;
  margin: 0 auto 4rem;
  border: 1px solid var(--border);
  background: var(--bg-3);
  padding: 2.5rem 2.5rem;
}

.extras-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.extras-list { list-style: none; }

.extras-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.extras-list li span { color: var(--gold); white-space: nowrap; padding-left: 1rem; }

.pricing-deposit {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
}

.pricing-island {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border-purple);
  background: var(--purple-subtle);
}

.pricing-island h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--purple-light);
  margin-bottom: 0.6rem;
}

.pricing-island p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Newsletter ──────────────────────────────── */
#newsletter {
  background: var(--bg);
  text-align: center;
}

.newsletter-inner { max-width: 600px; margin: 0 auto; }

.discount-badge {
  display: inline-block;
  background: linear-gradient(130deg, var(--purple-dark, #7a5aab), var(--gold-dark));
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 500;
  padding: 0.2rem 1.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.newsletter-inner .section-title { margin-bottom: 0.75rem; }

.newsletter-inner > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
}

.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg);
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--gold-light); }

.newsletter-success {
  display: none;
  padding: 2.5rem 2rem;
  border: 1px solid var(--purple);
  background: var(--purple-subtle);
}

.newsletter-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.newsletter-success p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.code-box {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Jost', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  padding: 0.5rem 1.8rem;
  margin: 0.5rem 0 1rem;
}

/* ── Contact ─────────────────────────────────── */
#contact { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info .section-title { margin-bottom: 1.2rem; }

.contact-info > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.9;
  max-width: 400px;
}

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
}

.c-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.contact-detail a { color: var(--text-muted); transition: color 0.2s; }
.contact-detail a:hover { color: var(--gold-light); }

.contact-island-box {
  border: 1px solid var(--border-purple);
  background: var(--purple-subtle);
  padding: 1.4rem 1.6rem;
  margin-top: 1.5rem;
}

.contact-island-box h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.contact-island-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  padding: 0.78rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg-3); color: var(--text); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '↓';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.75rem;
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}
.footer-logo span { color: var(--purple-light); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ── Reveal animations ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,7,6,0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s, opacity 0.35s;
    pointer-events: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap img { height: auto; max-height: 65vw; }
  .about-img-wrap::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid var(--border); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  .portfolio-grid { columns: 2 180px; }
  .extras-wrap { padding: 2rem 1.5rem; }
}

@media (max-width: 400px) {
  .portfolio-grid { columns: 1; }
}
