/* Wedding Decoration — Main styles */

:root {
  --color-cream: #faf8f5;
  --color-offwhite: #f5f2ee;
  --color-gold: #b8860b;
  --color-rosegold: #b76e79;
  --color-blush: #e8d5d5;
  --color-navy: #2c3e50;
  --color-deep: #1a252f;
  --color-text: #333;
  --color-text-muted: #666;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
  --header-offset: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
}

/* Prevent horizontal overflow caused by wide children/transforms */
html, body {
  overflow-x: hidden;
}

/* Ensure container never expands past viewport */
.container {
  box-sizing: border-box;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-rosegold);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main */
main {
  background-image: url('../assets/images/Banner.PNG');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section common */
.section {
  padding: var(--space-2xl) 0;
  scroll-margin-top: 80px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin: 0 0 var(--space-xs);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-rosegold));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9a7209, #a05d68);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
}

.logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo:hover {
  color: var(--color-gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
}

.menu-toggle.open .menu-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .menu-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
  display: flex;
  gap: var(--space-lg);
}

.nav-list a {
  color: var(--color-navy);
  font-weight: 400;
}

.nav-list a:hover {
  color: var(--color-gold);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('assets/images/Banner.PNG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-xl) var(--space-md);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(26, 37, 47, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-sm);
}

.hero-supporting {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-xl);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.quote-form input[type="text"],
.quote-form input[type="tel"] {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: border-color var(--transition), background var(--transition);
}

.quote-form input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.quote-form input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.25);
}

.input-group {
  display: flex;
  align-items: stretch;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.15);
}

.input-prefix {
  padding: var(--space-sm) var(--space-md);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  display: flex;
  align-items: center;
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
}

.input-group input:focus {
  background: transparent;
}

.hero-cta {
  margin-top: var(--space-xs);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* About & Philosophy Combined Section */
.about-philosophy {
  background: #fff;
}

.about-philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-section {
  background: var(--color-offwhite);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.philosophy-section {
  background: var(--color-offwhite);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.about-content {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.about-content p {
  margin: 0 0 var(--space-md);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.philosophy-content {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.philosophy-content p {
  margin: 0 0 var(--space-md);
}

.philosophy-tagline {
  margin-top: var(--space-lg) !important;
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-gold);
  font-size: 1.05rem;
  color: var(--color-navy);
}

/* Services */
.services {
  background: var(--color-offwhite);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 var(--space-sm);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* CTA section (mid-page) */
.cta-section {
  position: relative;
  padding: var(--space-2xl) var(--space-md);
  background: url('https://images.unsplash.com/photo-1522673607200-164d1b6ce486?w=1920&q=80') center/cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 37, 47, 0.8) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content .section-title {
  color: #fff;
}

.cta-content .section-label {
  color: var(--color-gold);
}

.cta-text {
  max-width: 640px;
  margin: 0 auto var(--space-md);
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.cta-form .input-group {
  flex: 1;
  min-width: 200px;
}

.cta-form .input-group input,
.cta-form .input-group .input-prefix {
  color: #fff;
}

.cta-form .input-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Gallery */
.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.gallery-intro {
  max-width: 700px;
  margin: 0 0 var(--space-lg);
  color: var(--color-text-muted);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Testimonials */
.testimonials {
  background: var(--color-offwhite);
}

.testimonials-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: #fff;
  color: var(--color-gold);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.carousel-btn:hover {
  background: var(--color-gold);
  color: #fff;
}

.testimonials-track-container {
  flex: 1;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 100%;
  padding: var(--space-md);
  text-align: center;
}

.testimonial-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gold);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}

.testimonial-card cite {
  font-size: 0.9rem;
  color: var(--color-gold);
  font-style: normal;
  font-weight: 700;
}

/* Video section */
.video-section {
  background: var(--color-offwhite);
}

.video-wrapper {
  max-width: min(1100px, 95vw);
  width: 100%;
  margin: 0 auto var(--space-lg);
}

.video-wrapper.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.video-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #000;
}

.main-video {
  width: 100%;
  height: auto;
  max-height: 40vh;
  display: block;
  object-fit: cover;
  background: var(--color-navy);
}

@media (max-width: 700px) {
  .video-wrapper.video-grid {
    grid-template-columns: 1fr;
  }
  .main-video {
    max-height: 50vh;
  }
}

.video-section .btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--color-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.footer-brand {
  margin-bottom: var(--space-lg);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--space-xs);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--color-gold);
  font-style: italic;
  margin: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-icon {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition), transform var(--transition);
}

.footer-social a:hover .social-icon {
  color: var(--color-gold);
  transform: scale(1.15);
}

.footer-info {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

/* Contact */
.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

.contact-details p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
}

.contact-details a {
  color: var(--color-gold);
}

.contact-details a:hover {
  color: var(--color-rosegold);
}

.contact-phones {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.contact-phones a {
  color: var(--color-gold);
  font-weight: 700;
}

@media (max-width: 640px) {
  .contact-phones {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.contact-actions {
  text-align: left;
}

.contact-actions .btn {
  margin: var(--space-xs) 0 var(--space-md);
}

.contact-social-label {
  margin: 0 0 var(--space-xs);
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  color: var(--color-text-muted);
}

.contact-social a {
  color: var(--color-gold);
}

.contact-social a:hover {
  color: var(--color-rosegold);
}

/* Floating WhatsApp button — always visible bottom right */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* Ensure WhatsApp is above other stacking contexts */
.whatsapp-float {
  z-index: 9999;
}

/* Header overlay offset: prevents content being hidden behind fixed header on small screens */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-offset);
  }

  .header {
    height: var(--header-offset);
    align-items: center;
  }

  /* Testimonials: constrain track so text doesn't escape layout */
  .testimonials-wrapper {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 var(--space-md);
  }

  .testimonials-track-container {
    width: 100%;
  }

  .testimonial-card blockquote {
    word-break: break-word;
    hyphens: auto;
  }
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav.open {
    max-height: 450px;
    
  }

  .nav-list {
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-offwhite);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: var(--space-sm);
  }

  .about-philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  .about-section,
  .philosophy-section {
    margin-top: var(--space-lg);
  }
  
  .about-section:first-child {
    margin-top: 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 220px;
  }


  .testimonials-wrapper {
    flex-direction: column;
  }

  .carousel-btn {
    order: 2;
  }

  .carousel-prev {
    order: 1;
  }

  .carousel-next {
    order: 3;
  }

}

/* Additional mobile tweaks: reduce hero height, disable fixed backgrounds, improve nav scrolling */
@media (max-width: 768px) {
  /* avoid large fixed backgrounds on mobile which can cause jank */
  main,
  .hero {
    background-attachment: scroll;
  }

  .hero {
    min-height: 70vh;
    padding: var(--space-lg) var(--space-sm);
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.15;
  }

  /* allow taller nav when opened and allow touch scrolling */
  .nav {
    -webkit-overflow-scrolling: touch;
  }

  .nav.open {
    max-height: 70vh;
    overflow-y: auto;
  }

  .menu-toggle-bar {
    width: 20px;
  }

  /* make gallery images maintain aspect ratio instead of fixed height */
  .gallery-item img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  /* slightly smaller floating WhatsApp on small screens to avoid obstructing content */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 18px;
    right: 16px;
  }

  /* better tap targets for nav items */
  .nav-list a {
    font-size: 1rem;
    padding: calc(var(--space-sm) + 4px);
  }

  /* ensure reveal animations are lighter on mobile */
  .reveal {
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
}

/* Reveal on scroll (optional) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
