/* Leading Lines brand fonts — local copies (matches leadinglinesphotography.in) */
@font-face {
  font-family: 'Jane Austen';
  src: url('../fonts/janeaust-webfont.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Butler Regular';
  src: url('../fonts/butler.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Butler Ultra Light';
  src: url('../fonts/butler-ultralight.woff') format('woff');
  font-display: swap;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family: Comfortaa, Arial, sans-serif;
}

h1,
h2,
h3,
.about-copy h1,
.testimonial-copy h2,
.reviews-copy h2,
.booking-banner h2,
.page-cta h2,
.portfolio-page-intro h2,
.collection-intro h1,
.portfolio-index-card h2,
.portfolio-group-head h3,
.book-module__WHFfRa__bookingHero h1,
.about-sticky-title h1,
.about-chenmay-profile h2,
.about-story-stats h2 {
  font-family: 'Butler Regular', Georgia, serif;
  font-weight: 400;
}

.script,
.portfolio-page-subtitle {
  font-family: 'Jane Austen', cursive;
}

.nav-title,
.nav-title span,
.nav-links a,
.nav-dropdown-label,
.footer h3 i {
  font-family: Comfortaa, Arial, sans-serif;
  font-weight: 700;
}

/* Path-aware CSS overrides for localhost/sbs and missing absolute /ws assets */
:root {
  --base-path: '';
}

.split-images {
  background-image: var(--split-stills-url, url('../images/placeholder.jpg'));
}

.split-films {
  background-image: var(--split-films-url, url('../images/placeholder.jpg'));
}

.video-card {
  background-image: linear-gradient(#2c292547, #1f1f1d75), var(--selected-work-url, url('../images/placeholder.jpg'));
  background-position: 50%;
  background-size: cover;
}

.details-hero,
.services-hero {
  background-image: linear-gradient(90deg, #211715b8, #21171547), var(--services-hero-url, url('../images/placeholder.jpg'));
  background-position: 50%;
  background-size: cover;
}

.nav-links a[aria-current="page"],
.nav-dropdown-label[aria-current="page"] {
  color: var(--brand);
}

/* Keep dropdown above page content; never clip flyouts */
.main-menu {
  z-index: 200 !important;
  overflow: visible !important;
}

.main-menu,
.menu-links,
.nav-links,
.nav-links-left,
.nav-links-right {
  overflow: visible !important;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  z-index: 210;
}

.nav-dropdown-label {
  letter-spacing: 0.16em;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--brand);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 10px 8px 8px;
  border: 1px solid var(--border);
  background: #fffefa;
  box-shadow: 0 18px 40px rgba(31, 31, 29, 0.14);
  display: none;
  z-index: 220;
  overflow: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a,
.nav-submenu-label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  white-space: nowrap;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.nav-dropdown-menu a:hover,
.nav-submenu-label:hover,
.nav-submenu.is-open > .nav-submenu-label {
  color: var(--brand);
  background: rgba(44, 41, 37, 0.05);
}

.nav-dropdown-all {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 12px !important;
  color: var(--brand) !important;
}

.nav-dropdown.is-open > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block;
}

.nav-submenu {
  position: relative;
}

.nav-submenu-label {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
}

.nav-submenu-menu {
  display: none;
  padding: 2px 0 6px;
  background: rgba(44, 41, 37, 0.03);
}

.nav-submenu.is-open > .nav-submenu-menu {
  display: block;
}

.nav-submenu-menu a {
  padding-left: 22px;
  font-size: 9px;
}

/* Desktop mouse: open on hover (JS also toggles .is-open with a close delay) */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: block;
  }

  .nav-submenu:hover > .nav-submenu-menu {
    display: block;
  }
}

/* Home about — taller secondary ceremony image */
.about-section {
  min-height: 980px;
}

.about-image.secondary {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 340px;
  min-height: 520px;
  height: auto;
  margin-bottom: 56px;
  justify-self: center;
}

.about-image.secondary img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (max-width: 900px) {
  .about-section {
    min-height: auto;
  }

  .about-image.secondary {
    aspect-ratio: 2 / 3;
    max-width: min(360px, 78%);
    min-height: 420px;
    margin-bottom: 0;
  }
}

.portfolio-group {
  background: var(--paper);
  padding-bottom: clamp(28px, 5vw, 48px);
}

.portfolio-group-head {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) 24px 18px;
}

.portfolio-group-head h3 {
  color: var(--brand);
  text-transform: uppercase;
  margin-top: 10px;
  font-family: Butler Regular, Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.portfolio-group .portfolio-index-grid {
  border-top: 1px solid var(--border);
}

/* Portfolio index — like zerowattsphotography.com/portfolio */
.portfolio-page-intro {
  text-align: center;
  background: var(--paper);
  padding: clamp(70px, 10vw, 118px) clamp(24px, 7vw, 92px) clamp(42px, 6vw, 72px);
}

.portfolio-page-intro h2 {
  color: var(--brand);
  text-transform: uppercase;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 0.96;
}

.portfolio-page-subtitle {
  color: var(--brand);
  margin-top: 14px;
  font-family: Jane Austen, cursive;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.9;
}

.portfolio-page-copy {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: var(--ink);
  letter-spacing: 0.06em;
  font-size: 13px;
  line-height: 1.85;
}

.portfolio-index-grid {
  background: var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.portfolio-index-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 520px;
  overflow: hidden;
  background: var(--brand);
}

.portfolio-index-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.52s ease, opacity 0.52s ease;
}

.portfolio-index-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 28%, rgba(31, 31, 29, 0.78));
  pointer-events: none;
}

.portfolio-index-card h2 {
  position: relative;
  z-index: 2;
  color: var(--surface);
  text-transform: uppercase;
  padding: 28px;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 0.98;
}

.portfolio-index-card:hover img {
  opacity: 0.95;
  transform: scale(1.05);
}

/* Inner collection page — like zerowattsphotography.com/Tamil-Weddings */
.collection-hero-image {
  background: var(--paper);
  padding: 0;
}

.collection-hero-image img {
  width: 100%;
  max-height: min(82svh, 920px);
  object-fit: cover;
}

.collection-intro {
  text-align: center;
  background: var(--paper);
  padding: clamp(54px, 8vw, 96px) clamp(24px, 7vw, 92px);
  max-width: 920px;
  margin: 0 auto;
}

.collection-intro .section-label {
  justify-content: center;
}

.collection-intro h1 {
  color: var(--brand);
  text-transform: uppercase;
  margin-top: 16px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 0.96;
}

.collection-intro p {
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.85;
}

.collection-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
}

.collection-gallery-item {
  margin: 0;
  background: var(--paper);
}

.collection-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.is-disabled-link {
  opacity: 0.45;
  pointer-events: none;
}

.admin-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #2c2925;
  color: #fffefa;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .portfolio-index-grid,
  .collection-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-index-card {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav-links-left,
  .nav-links-right {
    display: contents !important;
  }

  .nav-links-left > .nav-dropdown {
    grid-column: 3;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    z-index: 220;
  }

  .nav-dropdown.is-open > .nav-dropdown-menu {
    position: fixed;
    top: 118px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: min(92vw, 320px);
    max-height: min(65vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    z-index: 230;
  }

  .portfolio-page-intro {
    padding: clamp(54px, 12vw, 80px) 18px clamp(32px, 8vw, 48px);
  }

  .portfolio-page-intro h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .portfolio-page-subtitle {
    font-size: clamp(28px, 8vw, 40px);
  }

  .portfolio-page-copy {
    font-size: 12px;
    line-height: 1.75;
  }

  .portfolio-index-grid,
  .collection-gallery {
    grid-template-columns: 1fr;
  }

  .portfolio-index-card {
    min-height: 320px;
  }

  .portfolio-index-card h2 {
    font-size: clamp(26px, 8vw, 36px);
    padding: 20px;
  }

  .collection-intro {
    padding: 48px 18px;
  }

  .collection-intro h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .collection-intro p {
    font-size: 12px;
  }

  .collection-hero-image img {
    max-height: 56svh;
  }

  .collection-gallery-item img {
    min-height: 220px;
  }

  .page-cta {
    padding: 48px 18px;
    min-height: 320px;
  }

  .page-cta h2 {
    font-size: clamp(30px, 9vw, 44px);
  }
}

@media (max-width: 380px) {
  .nav-dropdown-label {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .nav-dropdown-toggle {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

/* Social icons — brand colours */
.nav-socials .social-link,
.footer-socials .social-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-socials .social-instagram {
  color: #e4405f;
  border-color: #e4405f66;
}

.nav-socials .social-instagram svg {
  stroke: #e4405f;
}

.nav-socials .social-youtube {
  color: #ff0000;
  border-color: #ff000066;
}

.nav-socials .social-youtube svg {
  stroke: #ff0000;
}

.nav-socials .social-youtube svg path:last-child {
  fill: #ff0000;
  stroke: none;
}

.nav-socials .social-phone {
  color: #2c2925;
  border-color: #2c292566;
}

.nav-socials .social-phone svg {
  fill: #2c2925;
  stroke: none;
}

.footer-socials .social-instagram {
  color: #e4405f;
  border-color: #e4405f88;
}

.footer-socials .social-instagram svg {
  stroke: #e4405f;
}

.footer-socials .social-youtube {
  color: #ff0000;
  border-color: #ff000088;
}

.footer-socials .social-youtube svg {
  stroke: #ff0000;
}

.footer-socials .social-youtube svg path:last-child {
  fill: #ff0000;
  stroke: none;
}

.footer-socials .social-facebook {
  color: #1877f2;
  border-color: #1877f288;
}

.footer-socials .social-facebook svg {
  fill: #1877f2;
  stroke: none;
}

.footer-socials .social-phone {
  color: #25d366;
  border-color: #25d36688;
}

.footer-socials .social-phone svg {
  fill: #25d366;
  stroke: none;
}

.nav-socials .social-link:hover,
.footer-socials .social-link:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(31, 31, 29, 0.15);
}

.footer-socials .social-link:hover {
  background: transparent;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 720px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
