/* =============================================
   megWedd — Modern Minimalist Portfolio CSS
   ============================================= */

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

:root {
  --charcoal: #1a1a1a;
  --charcoal-mid: #2e2e2e;
  --charcoal-soft: #4a4a4a;
  --warm-white: #faf9f7;
  --off-white: #f0ede8;
  --cream: #e8e0d4;
  --gold: #c9a96e;
  --gold-light: #dfc08a;
  --text-body: #3d3d3d;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --section-gap: clamp(80px, 10vw, 140px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- UTILITY ---- */
.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--charcoal-soft);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--section-gap);
  padding: 0 1.5rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 1px;
}

.btn-primary {
  background: var(--charcoal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--charcoal-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

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

.btn-outline:hover {
  background: var(--charcoal);
  color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(12px);
  padding: 1rem 2.5rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-logo span {
  font-style: italic;
}

/* hero is always dark, so logo stays white. After scroll nav gets bg */
.nav.scrolled .nav-logo {
  color: var(--charcoal);
}

/* PNG logo image sizing */
.nav-logo-img {
  height: 50px;
  width: auto;
  display: block;
  /* logo PNG is white — keep white on dark hero, invert on scrolled light bg */
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.nav.scrolled .nav-logo-img {
  filter: brightness(0);
  /* black on light scrolled nav */
}

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

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav.scrolled .nav-links a {
  color: var(--charcoal-soft);
}

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

.nav-cta {
  background: var(--charcoal) !important;
  color: #fff !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 1px;
}

.nav.scrolled .nav-cta {
  background: var(--charcoal) !important;
  color: #fff !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: var(--transition);
}

.nav.scrolled .nav-toggle span {
  background: var(--charcoal);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  gap: 3rem;
  overflow: hidden;
}

/* Left: text */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  max-width: 520px;
  padding-top: 5rem;
  /* clear nav */
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.hero-title em {
  font-style: italic;
  display: block;
  color: var(--gold-light);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right: mosaic */
.hero-mosaic {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.mosaic-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* left col sits at normal level, right col is offset upward */
.mosaic-col--left {
  margin-top: 40px;
}

.mosaic-col--right {
  margin-top: -20px;
}

.mosaic-box {
  width: clamp(160px, 16vw, 230px);
  height: clamp(130px, 13vw, 190px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.mosaic-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mosaic-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
}

.mosaic-box:hover img {
  transform: scale(1.06);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 5vw, 6rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  animation: lineSlide 2s ease infinite;
}

@keyframes lineSlide {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ===================== STORIES ===================== */
.stories {
  padding: var(--section-gap) 0;
  background: var(--warm-white);
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
  margin-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.story--right {
  direction: rtl;
}

.story--right>* {
  direction: ltr;
}

.story-images {
  position: relative;
  overflow: hidden;
}

.story-img-main {
  height: 480px;
  overflow: hidden;
}

.story-img-main img {
  transition: transform 0.8s ease;
}

.story:hover .story-img-main img {
  transform: scale(1.04);
}

.story-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 180px;
  gap: 2px;
  background: #fff;
}

.story-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 6rem);
  background: var(--warm-white);
}

.story-number {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.story-location {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.story-couple {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.story-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--charcoal-soft);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.story-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  opacity: 0.7;
}

/* ===================== PHILOSOPHY ===================== */
.philosophy {
  background: var(--off-white);
  padding: var(--section-gap) clamp(1.5rem, 6vw, 7rem);
}

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.philosophy-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}

.philosophy-img img {
  transition: transform 0.8s ease;
}

.philosophy-img:hover img {
  transform: scale(1.04);
}

.philosophy-text p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--charcoal-soft);
  margin-bottom: 1.2rem;
}

.philosophy-text .btn {
  margin-top: 1rem;
}

/* ===================== PORTFOLIO ===================== */
.portfolio {
  padding: var(--section-gap) clamp(1.5rem, 4vw, 5rem);
  background: var(--warm-white);
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--cream);
}

.tab {
  background: none;
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}

.tab.active {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

.tab:hover:not(.active) {
  color: var(--charcoal);
}

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

.portfolio-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 1px;
  cursor: pointer;
}

.portfolio-item img {
  transition: transform 0.7s ease;
}

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

.portfolio-item.hidden {
  display: none;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials {
  background: var(--charcoal);
  padding: var(--section-gap) clamp(1.5rem, 6vw, 7rem);
  text-align: center;
}

.testimonials .section-label {
  color: var(--gold);
}

.testimonials .section-title {
  color: #fff;
}

.testimonials .section-title em {
  color: rgba(255, 255, 255, 0.5);
}

.testimonial-slider {
  max-width: 720px;
  margin: 0 auto 3rem;
  position: relative;
  min-height: 180px;
}

.testimonial {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.5s ease;
}

.testimonial.active {
  display: flex;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial blockquote::before {
  content: '\201C';
}

.testimonial blockquote::after {
  content: '\201D';
}

.testimonial cite {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.t-prev,
.t-next {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-prev:hover,
.t-next:hover {
  border-color: #fff;
  color: #fff;
}

.t-dots {
  display: flex;
  gap: 0.5rem;
}

.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.t-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ===================== INQUIRE ===================== */
.inquire {
  padding: var(--section-gap) clamp(1.5rem, 6vw, 7rem);
  background: var(--warm-white);
}

.inquire-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.inquire-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--charcoal-soft);
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.contact-link svg {
  width: 22px;
  height: 22px;
  color: #25d366;
  flex-shrink: 0;
}

.contact-link:hover {
  color: #25d366;
}

/* Form */
.inquire-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

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

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.form-group input,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cream);
  padding: 0.75rem 0;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--charcoal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--cream);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
}

/* Success banner */
.form-success {
  display: none;
  padding: 1.2rem 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 2px;
  color: #166534;
  font-size: 0.9rem;
  text-align: center;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--charcoal);
  padding: 3.5rem clamp(1.5rem, 6vw, 7rem);
  text-align: center;
}

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

.footer-logo {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-style: italic;
}

/* Footer PNG logo */
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto 1rem;
  /* footer is always dark — logo stays white */
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* ===================== WHATSAPP FAB ===================== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}

.fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--charcoal);
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== MOBILE ===================== */
@media (max-width: 900px) {
  .nav {
    padding: 1.2rem 1.5rem;
  }

  .nav.scrolled {
    padding: 0.9rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--charcoal-soft) !important;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .nav-links a:hover {
    color: var(--charcoal) !important;
  }

  .nav-cta {
    margin: 0.5rem 1.5rem !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero: stack on mobile */
  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 7rem 1.5rem 3rem;
    gap: 2.5rem;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 0;
  }

  .hero-mosaic {
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
    gap: 10px;
  }

  .mosaic-col--left {
    margin-top: 20px;
  }

  .mosaic-col--right {
    margin-top: -10px;
  }

  .mosaic-box {
    width: clamp(130px, 20vw, 175px);
    height: clamp(110px, 16vw, 145px);
    border-radius: 10px;
  }

  .story {
    grid-template-columns: 1fr;
    direction: ltr !important;
    min-height: auto;
  }

  .story-img-main {
    height: 300px;
  }

  .story-img-grid {
    height: 130px;
  }

  .story-text {
    padding: 2rem 1.5rem;
  }

  .story-number {
    font-size: 2.5rem;
  }

  .philosophy-inner {
    grid-template-columns: 1fr;
  }

  .philosophy-img {
    aspect-ratio: 4/3;
  }

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

  .inquire-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 580px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .whatsapp-fab {
    bottom: 1.4rem;
    right: 1.4rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }

  .fab-tooltip {
    display: none;
  }
}

/* ---- Extras ---- */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-fab.pulse {
  animation: pulse-ring 1.8s ease-out infinite;
}