/*
Theme Name: Bloomvale SG
Theme URI: https://bloomvalesg.com
Author: Bloomvale SG
Author URI: https://bloomvalesg.com
Description: Elegant floral arrangements theme for Bloomvale SG
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bloomvale
*/

/* ============================================
   BLOOMVALE SG - WORDPRESS THEME
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Brand Colors */
  --sage: #8A9A5B;
  --sage-dark: #5C6B3F;
  --sage-light: #A8B87D;
  --rose-gold: #C9A87C;
  --rose-gold-dark: #A68B62;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D4;
  --charcoal: #3D3D3D;
  --charcoal-light: #5A5A5A;
  --whatsapp: #25D366;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --section-padding: 100px;
  --container-max: 1280px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-soft-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* Font Classes */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

/* Color Classes */
.text-sage {
  color: var(--sage);
}

.text-rose-gold {
  color: var(--rose-gold);
}

.text-charcoal {
  color: var(--charcoal);
}

.bg-sage {
  background-color: var(--sage);
}

.bg-cream {
  background-color: var(--cream);
}

.bg-charcoal {
  background-color: var(--charcoal);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
  background-color: var(--sage);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
}

.announcement-bar p {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.site-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* Navigation - For Max Mega Menu */
.main-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: block;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease;
}

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

.hero-slide:not(.active) .hero-slide-bg {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease 0.3s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.5s;
}

.hero-slide.active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  display: inline-block;
  background-color: var(--sage);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: background-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease 0.7s;
}

.hero-slide.active .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta:hover {
  background-color: var(--sage-dark);
}

/* Hero Navigation */
.hero-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: #fff;
  width: 32px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 16px;
  transition: color 0.3s ease;
}

.hero-arrow:hover {
  color: #fff;
}

.hero-arrow.prev {
  left: 16px;
}

.hero-arrow.next {
  right: 16px;
}

/* ============================================
   PRODUCTS SECTION - HORIZONTAL SCROLL
   ============================================ */
.products-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--charcoal-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Products Scroll Container */
.products-scroll-wrapper {
  position: relative;
}

.products-scroll-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 24px;
  padding-bottom: 16px;
}

.products-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Scroll Arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background-color: #fff;
  border: none;
  box-shadow: var(--shadow-soft-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  background-color: var(--sage);
  color: #fff;
}

.scroll-arrow.prev {
  left: 16px;
}

.scroll-arrow.next {
  right: 16px;
}

.scroll-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Product Card */
.product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .product-card {
    flex: 0 0 300px;
  }
}

.product-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 16px 0;
  text-align: center;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.product-desc {
  font-size: 14px;
  color: var(--charcoal-light);
  margin-bottom: 8px;
}

.product-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 16px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--sage);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: background-color 0.3s ease;
  width: 100%;
  justify-content: center;
}

.whatsapp-btn:hover {
  background-color: var(--sage-dark);
}

/* View All Button */
.view-all-btn {
  display: inline-block;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  margin-top: 32px;
  transition: all 0.3s ease;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 80px 0;
  background-color: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--sage);
  opacity: 0.3;
  z-index: -1;
}

.about-content h2 {
  font-size: clamp(32px, 4vw, 42px);
  color: var(--charcoal);
  margin-bottom: 8px;
}

.about-content .tagline {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--rose-gold);
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal-light);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--sage);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 16px;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 13px;
  margin: 0;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.events-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
}

.events-content {
  position: relative;
  z-index: 1;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-card {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 40px 24px;
  text-align: center;
  color: #fff;
}

.event-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--rose-gold);
}

.event-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.event-card p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

.events-cta {
  text-align: center;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  padding: 80px 0;
  background-color: var(--sage);
  color: #fff;
  text-align: center;
}

.newsletter-section h2 {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 16px;
}

.newsletter-section p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 32px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form input:focus {
  outline: none;
  border-color: #fff;
}

.newsletter-form button {
  padding: 16px 32px;
  background-color: #fff;
  color: var(--sage);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--cream);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--charcoal);
  color: #fff;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-size: 20px;
  margin-bottom: 24px;
}

.footer-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a,
.footer-social button {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.footer-social a:hover,
.footer-social button:hover {
  background-color: var(--sage);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

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

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

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

@keyframes whatsapp-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */

/* Admin Bar Fix */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Content Area */
.entry-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px;
}

/* WordPress Alignments */
.alignleft {
  float: left;
  margin-right: 24px;
}

.alignright {
  float: right;
  margin-left: 24px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Screen Reader Text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1023px) {
  :root {
    --section-padding: 60px;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .scroll-arrow {
    display: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .whatsapp-float {
    animation: none;
  }
}
