/* =============================================
   SNOUFAI - MAIN STYLESHEET
   1. CSS Variables
   2. Reset & Base
   3. Utility Classes
   4. Navbar
   5. Hero Carousel
   6. About Section
   7. Products Section
   8. How It Works
   9. Gallery
   10. Lightbox
   11. Contact
   12. Footer
   13. Newsletter Popup
   14. Scroll Reveal
   15. Responsive
============================================= */

/* 1. CSS VARIABLES */
:root {
  --color-dark:  #0B2D72;
  --color-mid:   #0992C2;
  --color-light: #0AC4E0;
  --color-cream: #F6E7BC;
  --color-white: #ffffff;
  --color-text:  #222222;
  --color-gray:  #666666;
  --font-main:   'Poppins', sans-serif;
  --section-padding: 80px 20px;
}

/* 2. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-text); background-color: var(--color-white); line-height: 1.6; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-main); }

/* 3. UTILITY */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; color: var(--color-dark); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--color-gray); font-size: 1rem; margin-bottom: 50px; }
.highlight { color: var(--color-mid); }
.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; }
.btn-primary { background-color: var(--color-mid); color: var(--color-white); border-color: var(--color-mid); }
.btn-primary:hover { background-color: var(--color-dark); border-color: var(--color-dark); }
.btn-outline { background-color: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline:hover { background-color: var(--color-white); color: var(--color-dark); }

/* =============================================
   DARK MODE VARIABLES
============================================= */
body.dark {
  background-color: #0f0f1a;
  color: #e0e0e0;
}

/* Make logo visible on dark background */
body.dark .dog-logo-svg {
  background-color: #ffffff;
  border-radius: 50%;
  padding: 3px;
}

body.dark header {
  background-color: #13131f;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
body.dark .logo span,
body.dark .logo { color: #e0e0e0; }
body.dark .nav-links a { color: #cccccc; }
body.dark .nav-links a:hover  { color: var(--color-light); }
body.dark .nav-links a.active { color: var(--color-light); }
body.dark .nav-links a.active::after,
body.dark .nav-links a:hover::after { background-color: var(--color-light); }
body.dark .hamburger span { background-color: #e0e0e0; }
body.dark .nav-links {
  background-color: #13131f;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* ---- Hero — always white text, gradient stays ---- */
/* body.dark .hero-carousel { /* gradient stays as-is }*/ 
body.dark .slide-content h1,
body.dark .slide-content p,
body.dark .slide-features li,
body.dark .slide-badge { color: inherit; /* no override — hero is already dark bg */ }

/* ---- About ---- */
body.dark .about { background-color: #1a1a2a; }
body.dark .card-front { background-color: #22223a; }
body.dark .card-front h3 { color: #e0e0e0; }
body.dark .section-title    { color: #ffffff; }
body.dark .section-subtitle { color: #ffffff; }

/* ---- Products ---- */
body.dark .products { background-color: #0f0f1a; }
body.dark .product-card { background-color: #1a1a2a; }
body.dark .product-card h3 { color: #e0e0e0; }
body.dark .product-card > p { color: #999; }
body.dark .feature-list li { color: #ccc; border-bottom-color: rgba(255,255,255,0.07); }
body.dark .product-sub-feature { background-color: rgba(9,146,194,0.1); border-left-color: var(--color-light); }
body.dark .product-sub-feature h4 { color: #e0e0e0; }

/* ---- Gallery ---- */
body.dark .gallery { background-color: #0f0f1a; }
body.dark .gallery-card { background-color: #1a1a2a; }
body.dark .gallery-title { color: #e0e0e0; }
body.dark .gallery-hint  { color: #444; }
body.dark .tag-pet, body.dark .tag-team, body.dark .tag-product {
  background-color: rgba(9,146,194,0.15);
  color: #aaa;
}

/* ---- Lightbox ---- */
body.dark .lightbox-box { background-color: #1a1a2a; }
body.dark .lightbox-info h3 { color: #e0e0e0; }
body.dark .lightbox-info p  { color: #999; }
body.dark .lightbox-info    { scrollbar-color: var(--color-mid) #222; }

/* ---- Contact ---- */
body.dark .contact { background-color: #1a1a2a; }
body.dark .contact .section-title    { color: #ffffff; }
body.dark .contact .section-subtitle { color: #ffffff; }
body.dark .contact-form input,
body.dark .contact-form textarea {
  background-color: #22223a;
  border-color: rgba(255,255,255,0.1);
  color: #e0e0e0;
}
body.dark .contact-form input::placeholder,
body.dark .contact-form textarea::placeholder { color: #555; }
body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus { border-color: var(--color-light); }

/* ---- Footer ---- */
body.dark .footer { background-color: #13131f; border-top-color: rgba(255,255,255,0.06); }
body.dark .footer-logo    { color: #ffffff; }
body.dark .footer-tagline { color: #ffffff; }
body.dark .footer-col-title { color: #ffffff; }
body.dark .footer-col-links li,
body.dark .footer-col-links a { color: #ffffff; }
body.dark .footer-col-links a:hover { color: var(--color-light); }
body.dark .footer-bottom  { border-top-color: rgba(255,255,255,0.05); }
body.dark .footer-bottom p { color: #ffffff; }
body.dark .social-icon { border-color: rgba(255,255,255,0.3); color: #ffffff; }

/* ---- How it works — already dark, no change needed ---- */

/* ---- Theme toggle button ---- */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(11,45,114,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}
.theme-toggle:hover {
  background-color: rgba(9,146,194,0.1);
  border-color: var(--color-mid);
  transform: rotate(20deg);
}
body.dark .theme-toggle {
  border-color: rgba(255,255,255,0.15);
}
body.dark .theme-toggle:hover {
  background-color: rgba(10,196,224,0.1);
  border-color: var(--color-light);
}
.theme-icon { pointer-events: none; }
header { position: sticky; top: 0; z-index: 1000; background-color: var(--color-white); box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 40px; max-width: 1200px; margin: 0 auto; overflow: visible; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--color-dark); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--color-dark); }
.dog-logo-svg { width: 38px; height: 38px; display: inline-block; flex-shrink: 0; }
.nav-links { display: flex; gap: 30px; list-style: none; overflow: visible; }
.nav-links li { list-style: none; overflow: visible; }
.nav-links a { color: var(--color-dark); font-size: 0.95rem; font-weight: 400; display: inline-block; text-decoration: none; position: relative; padding-bottom: 6px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background-color: var(--color-mid); border-radius: 2px; transition: width 0.35s ease; }
.nav-links a:hover { color: var(--color-mid); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--color-mid); font-weight: 600; }
.nav-links a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--color-dark); border-radius: 3px; transition: all 0.3s ease; }

/* 5. HERO CAROUSEL */
.hero-carousel { position: relative; background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-mid) 100%); overflow: hidden; min-height: 90vh; width: 100%; }
.slide { display: none; align-items: center; justify-content: space-between; gap: 40px; padding: 100px 80px 120px; color: var(--color-white); animation: fadeSlide 0.5s ease; width: 100%; box-sizing: border-box; }
.slide.active { display: flex; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.slide-content { max-width: 560px; flex: 1; }
.slide-badge { display: inline-block; background-color: rgba(255,255,255,0.15); color: var(--color-cream); border-radius: 20px; padding: 5px 16px; font-size: 0.85rem; margin-bottom: 18px; letter-spacing: 0.5px; }
.slide-content h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.3; margin-bottom: 18px; }
.slide-content p { font-size: 1rem; color: var(--color-cream); margin-bottom: 22px; line-height: 1.8; }
.slide-features { margin-bottom: 30px; }
.slide-features li { font-size: 0.93rem; color: rgba(255,255,255,0.85); padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.slide-visual { flex: 0 0 45%; max-width: 500px; display: flex; justify-content: center; align-items: center; }
.slide-img-box { position: relative; width: 100%; height: 460px; flex-shrink: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%); mask-composite: intersect; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255,255,255,0.15); color: var(--color-white); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; width: 48px; height: 48px; font-size: 1.3rem; cursor: pointer; transition: background-color 0.3s; z-index: 10; }
.carousel-btn:hover { background-color: var(--color-mid); border-color: var(--color-mid); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }
.carousel-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background-color: rgba(255,255,255,0.35); border-radius: 50%; cursor: pointer; transition: background-color 0.3s, transform 0.3s; }
.dot.active { background-color: var(--color-light); transform: scale(1.3); }

/* 6. ABOUT */
.about { padding: var(--section-padding); background-color: var(--color-cream); }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.about-card { height: 220px; perspective: 1000px; cursor: pointer; }
.about-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s ease; }
.about-card:hover .about-card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; inset: 0; border-radius: 16px; padding: 35px 25px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.07); backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.card-front { background-color: var(--color-white); }
.card-front .card-icon { font-size: 2.5rem; }
.card-front h3 { font-size: 1.2rem; color: var(--color-dark); font-weight: 700; }
.flip-indicator { display: none; }
.tap-hint { display: none; }
.card-back { background: linear-gradient(135deg, var(--color-dark), var(--color-mid)); transform: rotateY(180deg); gap: 16px; }
.card-back-icon { font-size: 2rem; opacity: 0.7; }
.card-back p { font-size: 0.95rem; color: var(--color-cream); line-height: 1.8; }
.about-card.flipped .about-card-inner { transform: rotateY(180deg); }

/* 7. PRODUCTS */
.products { padding: var(--section-padding); background-color: var(--color-white); }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.product-card { background-color: var(--color-cream); border-radius: 20px; padding: 40px 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-6px); }
.product-icon { font-size: 3rem; margin-bottom: 15px; }
.product-card h3 { font-size: 1.4rem; color: var(--color-dark); margin-bottom: 10px; }
.product-card > p { color: var(--color-gray); margin-bottom: 15px; }
.feature-list { margin-bottom: 15px; }
.feature-list li { font-size: 0.92rem; color: var(--color-text); padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.07); }
.product-sub-feature { background-color: rgba(9,146,194,0.08); border-left: 4px solid var(--color-mid); border-radius: 10px; padding: 15px 18px; margin-bottom: 18px; }
.product-sub-feature h4 { font-size: 1rem; color: var(--color-dark); margin-bottom: 10px; }

/* 8. HOW IT WORKS */
.how-it-works { padding: var(--section-padding); background-color: var(--color-dark); color: var(--color-white); }
.how-it-works .section-title { color: var(--color-cream); }
.how-it-works .section-subtitle { color: rgba(255,255,255,0.6); }
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.how-column h3 { font-size: 1.3rem; color: var(--color-light); margin-bottom: 25px; }
.step { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.step-number { min-width: 40px; height: 40px; background-color: var(--color-mid); color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.step-text strong { display: block; font-size: 1rem; margin-bottom: 5px; color: var(--color-cream); }
.step-text p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* 9. GALLERY */
.gallery { padding: var(--section-padding); background-color: var(--color-white); overflow: hidden; }
.gallery-strip { display: flex; gap: 20px; overflow-x: auto; padding: 10px 40px 20px; scroll-snap-type: x mandatory; cursor: grab; }
.gallery-strip::-webkit-scrollbar { height: 5px; }
.gallery-strip::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--color-mid); border-radius: 10px; }
.gallery-strip:active { cursor: grabbing; }
.gallery-card { min-width: 240px; max-width: 240px; border-radius: 18px; overflow: hidden; background-color: var(--color-cream); box-shadow: 0 4px 16px rgba(0,0,0,0.08); scroll-snap-align: start; transition: transform 0.3s ease; flex-shrink: 0; cursor: pointer; }
.gallery-card:hover { transform: translateY(-6px); }
.gallery-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; overflow: hidden; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pet-1     { background: linear-gradient(135deg, #0B2D72, #0992C2); }
.pet-2     { background: linear-gradient(135deg, #0992C2, #0AC4E0); }
.pet-3     { background: linear-gradient(135deg, #0AC4E0, #0B2D72); }
.team-1    { background: linear-gradient(135deg, #0B2D72, #F6E7BC); }
.team-2    { background: linear-gradient(135deg, #0AC4E0, #0B2D72); }
.gallery-info { padding: 14px 16px; }
.gallery-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.tag-pet  { background-color: rgba(9,146,194,0.15); color: var(--color-dark); }
.tag-team { background-color: rgba(11,45,114,0.1);  color: var(--color-dark); }
.gallery-title { font-size: 0.88rem; font-weight: 600; color: var(--color-dark); line-height: 1.4; }
.gallery-hint { text-align: center; font-size: 0.82rem; color: var(--color-gray); margin-top: 16px; letter-spacing: 1px; }

/* 10. LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,0.85); cursor: pointer; }
.lightbox-box { position: relative; z-index: 1; background-color: var(--color-white); border-radius: 20px; overflow: hidden; max-width: 700px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: popIn 0.35s ease; }
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; background-color: rgba(0,0,0,0.5); color: var(--color-white); border: none; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.lightbox-close:hover { background-color: var(--color-mid); }
.lightbox-img-wrap { width: 100%; height: 420px; overflow: hidden; flex-shrink: 0; background-color: #000; }
.lightbox-img-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.lightbox-info { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 220px; }
.lightbox-info::-webkit-scrollbar { width: 5px; }
.lightbox-info::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.lightbox-info::-webkit-scrollbar-thumb { background-color: var(--color-mid); border-radius: 10px; }
.lightbox-info { scrollbar-width: thin; scrollbar-color: var(--color-mid) #f0f0f0; }
.lightbox-tag { font-size: 0.78rem; font-weight: 600; color: var(--color-mid); background-color: rgba(9,146,194,0.1); border-radius: 20px; padding: 4px 12px; width: fit-content; }
.lightbox-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--color-dark); }
.lightbox-info p { font-size: 0.92rem; color: var(--color-gray); line-height: 1.8; }

/* 11. CONTACT */
.contact { padding: var(--section-padding); background-color: var(--color-cream); }
.contact-wrapper { display: flex; justify-content: center; align-items: center; }
.contact-form { display: flex; flex-direction: column; gap: 15px; width: 34rem; max-width: 100%; }
.contact-form input, .contact-form textarea { padding: 14px 18px; border: 2px solid #ddd; border-radius: 10px; font-family: var(--font-main); font-size: 0.95rem; outline: none; transition: border-color 0.3s; background-color: var(--color-white); width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--color-mid); }
.contact-form textarea { resize: vertical; }
.success-msg { display: none; color: green; font-size: 0.95rem; font-weight: 600; }

/* 12. FOOTER */
.footer { background-color: var(--color-white); color: var(--color-dark); border-top: 1px solid rgba(11,45,114,0.1); }
.footer-top { padding: 50px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-logo { font-size: 1.3rem; font-weight: 700; color: var(--color-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-tagline { font-size: 0.82rem; color: var(--color-gray); line-height: 1.7; }
.footer-col-title { font-size: 0.78rem; font-weight: 700; color: var(--color-gray); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links li, .footer-col-links a { font-size: 0.88rem; color: var(--color-dark); transition: color 0.3s; list-style: none; }
.footer-col-links a:hover { color: var(--color-mid); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(11,45,114,0.2); display: flex; align-items: center; justify-content: center; color: var(--color-dark); transition: all 0.3s; }
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background-color: var(--color-mid); border-color: var(--color-mid); color: var(--color-white); }
.footer-bottom { border-top: 1px solid rgba(11,45,114,0.1); padding: 16px 20px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.8rem; color: var(--color-gray); }

/* 13. NEWSLETTER POPUP */
.newsletter-overlay { display: none; position: fixed; inset: 0; background-color: rgba(0,0,0,0.6); z-index: 3000; }
.newsletter-overlay.show { display: block; }
.newsletter-popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); z-index: 3001; background: linear-gradient(160deg, #ffffff 60%, #e8f6fb 100%); border-radius: 28px; width: 420px; max-width: 92vw; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(11,45,114,0.3), 0 0 0 1px rgba(9,146,194,0.15); padding-bottom: 30px; opacity: 0; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease; }
.newsletter-popup.show { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.newsletter-close { position: absolute; top: 14px; right: 14px; z-index: 10; width: 32px; height: 32px; border-radius: 50%; background-color: rgba(255,255,255,0.2); color: #fff; border: none; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.newsletter-close:hover { background-color: rgba(255,255,255,0.35); }

/* Scene */
.dog-scene { height: 170px; display: flex; align-items: flex-end; justify-content: center; position: relative; overflow: hidden; padding-bottom: 14px; transition: background 0.8s ease; flex-shrink: 0; }
.dog-scene.day  { background: linear-gradient(180deg, #87CEEB 0%, #87CEEB 62%, #90EE90 62%, #90EE90 100%); }
.dog-scene.night { background: linear-gradient(180deg, #0B2D72 0%, #0992C2 100%); }

/* Sun */
.scene-sun { position: absolute; top: 12px; left: 22px; width: 44px; height: 44px; background: #FFD700; border-radius: 50%; display: none; box-shadow: 0 0 20px rgba(255,215,0,0.5); }
.day .scene-sun { display: block; }

/* Cloud */
.scene-cloud { position: absolute; top: 16px; right: 20px; display: none; }
.day .scene-cloud { display: block; }
.scene-cloud::before { content: ''; position: absolute; background: #fff; border-radius: 20px; width: 54px; height: 22px; top: 0; left: 0; }
.scene-cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; width: 28px; height: 28px; top: -12px; left: 10px; }

/* Moon */
.scene-moon { position: absolute; top: 14px; right: 24px; width: 38px; height: 38px; background: #F6E7BC; border-radius: 50%; box-shadow: inset -9px 2px 0 #e8c97a; display: none; }
.night .scene-moon { display: block; }

/* Stars */
.scene-stars { display: none; }
.night .scene-stars { display: block; }
.scene-stars span { position: absolute; background: #fff; border-radius: 50%; animation: twinkle 2s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.2; } to { opacity: 1; } }
.star-1 { width: 3px; height: 3px; top: 15%; left: 10%; animation-delay: 0s; }
.star-2 { width: 2px; height: 2px; top: 25%; left: 30%; animation-delay: 0.4s; }
.star-3 { width: 3px; height: 3px; top: 12%; left: 52%; animation-delay: 0.8s; }
.star-4 { width: 2px; height: 2px; top: 38%; left: 72%; animation-delay: 0.2s; }
.star-5 { width: 3px; height: 3px; top: 55%; left: 18%; animation-delay: 1s; }
.star-6 { width: 2px; height: 2px; top: 65%; left: 85%; animation-delay: 0.6s; }

/* Beagle dog */
.dog-beagle-wrap { position: relative; animation: beagleHop 0.9s ease-in-out infinite alternate; z-index: 2; }
@keyframes beagleHop { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-10px) scaleY(1.04); } }
.beagle-body { width: 70px; height: 50px; background: #F6E7BC; border-radius: 28px; position: relative; }
.beagle-patch-body { width: 38px; height: 36px; background: #8B4513; border-radius: 0 22px 14px 40%; position: absolute; top: -2px; right: 0; }
.beagle-tail { width: 10px; height: 22px; background: #fff; border-radius: 5px; position: absolute; right: -7px; top: 8px; transform-origin: bottom center; animation: tailWagB 0.4s ease-in-out infinite alternate; }
@keyframes tailWagB { from { transform: rotate(-22deg); } to { transform: rotate(28deg); } }
.beagle-leg { width: 14px; height: 18px; background: #c9a45a; border-radius: 0 0 7px 7px; position: absolute; bottom: -15px; }
.beagle-leg-fl { left: 8px; }
.beagle-leg-fr { left: 24px; }
.beagle-leg-bl { right: 24px; }
.beagle-leg-br { right: 8px; }
.beagle-head { width: 56px; height: 50px; background: #F6E7BC; border-radius: 50%; position: absolute; top: -36px; left: 6px; }
.beagle-patch-head { width: 28px; height: 26px; background: #8B4513; border-radius: 50%; position: absolute; top: 2px; right: 4px; }
.beagle-ear-l { width: 16px; height: 24px; background: #8B4513; border-radius: 4px 4px 10px 10px; position: absolute; top: 4px; left: -4px; transform: rotate(-14deg); }
.beagle-ear-r { width: 16px; height: 24px; background: #8B4513; border-radius: 4px 4px 10px 10px; position: absolute; top: 4px; right: -4px; transform: rotate(14deg); }
.beagle-eye-l { width: 10px; height: 11px; background: #5D2E0C; border-radius: 50%; position: absolute; top: 14px; left: 10px; }
.beagle-eye-r { width: 10px; height: 11px; background: #5D2E0C; border-radius: 50%; position: absolute; top: 14px; right: 12px; }
.beagle-eye-l::after, .beagle-eye-r::after { content: ''; position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; top: 1px; left: 2px; }
.beagle-nose { width: 12px; height: 8px; background: #2c1000; border-radius: 50%; position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); }
.beagle-tongue { width: 12px; height: 10px; background: #e05c7a; border-radius: 0 0 7px 7px; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); animation: tongueWagB 0.7s ease-in-out infinite alternate; }
@keyframes tongueWagB { from { transform: translateX(-50%) rotate(-7deg); } to { transform: translateX(-50%) rotate(7deg); } }
.beagle-shadow { width: 60px; height: 10px; background: rgba(0,0,0,0.15); border-radius: 50%; margin: 6px auto 0; animation: shadowB 0.9s ease-in-out infinite alternate; }
@keyframes shadowB { from { transform: scaleX(0.8); opacity: 0.2; } to { transform: scaleX(1.1); opacity: 0.1; } }

/* Newsletter content */
.newsletter-content { padding: 24px 30px 0; text-align: center; }
.newsletter-content h3 { font-size: 1.3rem; font-weight: 700; color: var(--color-dark); margin-bottom: 8px; }
.newsletter-content > p { font-size: 0.88rem; color: var(--color-gray); line-height: 1.7; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 12px; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 2px solid #ddd; border-radius: 30px; font-family: var(--font-main); font-size: 0.88rem; outline: none; transition: border-color 0.3s; }
.newsletter-form input:focus { border-color: var(--color-mid); }
.newsletter-form .btn { padding: 12px 20px; font-size: 0.88rem; white-space: nowrap; }
.newsletter-success { display: none; color: var(--color-mid); font-weight: 600; font-size: 0.9rem; margin-bottom: 0; }
.newsletter-skip { font-size: 0.78rem; color: var(--color-gray); cursor: pointer; text-decoration: underline; margin-top: 10px; display: block; transition: color 0.3s; }
.newsletter-skip:hover { color: var(--color-dark); }

/* =============================================
   PRODUCT POPUPS
============================================= */

/* Shared overlay */
.product-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 4000;
}
.product-overlay.show { display: block; }

/* Shared popup shell */
.product-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 4001;
  width: 500px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
}
.product-popup.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.product-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.product-popup-close:hover { background: rgba(0,0,0,0.5); }

.product-success {
  display: none;
  color: #0992C2;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

/* ---- NEWSPAPER (Collar) ---- */
#collarPopup {
  background: #fffef5;
  border: 3px solid #0B2D72;
}

.news-header {
  background: #0B2D72;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-logo {
  font-size: 14px;
  font-weight: 900;
  color: #F6E7BC;
  letter-spacing: 3px;
  font-family: Georgia, serif;
}
.news-date { font-size: 9px; color: rgba(246,231,188,0.6); }

.news-headline {
  border-bottom: 3px solid #0B2D72;
  padding: 12px 18px 10px;
}
.news-breaking {
  font-size: 9px;
  font-weight: 700;
  color: #0992C2;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.news-title {
  font-size: 20px;
  font-weight: 900;
  color: #0B2D72;
  line-height: 1.2;
  font-family: Georgia, serif;
}

.news-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #0B2D72;
}
.news-col-left {
  padding: 14px 16px;
  border-right: 1px solid #0B2D72;
}
.news-drop {
  font-size: 52px;
  font-weight: 900;
  color: #0B2D72;
  float: left;
  margin-right: 6px;
  line-height: 0.85;
  font-family: Georgia, serif;
}
.news-text {
  font-size: 11px;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}
.news-col-right {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-feature {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: #333;
  line-height: 1.4;
}
.news-bullet {
  width: 16px;
  height: 16px;
  background: #0B2D72;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F6E7BC;
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 1px;
}

.news-footer {
  padding: 12px 18px;
  background: #f5f5e8;
}
.news-footer-txt {
  font-size: 10px;
  color: #555;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-style: italic;
}
.news-form { display: flex; gap: 8px; }
.news-input {
  flex: 1;
  padding: 9px 14px;
  border: 2px solid #0B2D72;
  border-radius: 4px;
  font-size: 11px;
  outline: none;
  background: #fff;
  font-family: var(--font-main);
}
.news-input:focus { border-color: #0992C2; }
.news-btn {
  background: #0B2D72;
  color: #F6E7BC;
  border: none;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: background 0.3s;
}
.news-btn:hover { background: #0992C2; color: #fff; }

/* ---- POSTCARD (Lens) ---- */
#lensPopup { background: #fff; }

.postcard-top {
  height: 130px;
  background: linear-gradient(135deg, #0992C2 0%, #0AC4E0 55%, #F6E7BC 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px 18px;
  overflow: hidden;
}

/* Logo circle in top-right (replaces stamp + postmark) */
.postcard-postmark {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 2px solid rgba(11,45,114,0.15);
}
.postcard-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.postcard-title {
  font-size: 17px;
  font-weight: 700;
  color: #0B2D72;
  font-family: Georgia, serif;
  text-shadow: 0 1px 4px rgba(255,255,255,0.7);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.postcard-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1.5px solid #eee;
}
.postcard-divider { background: #ddd; }
.postcard-to {
  font-size: 9px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.postcard-name {
  font-size: 15px;
  font-weight: 700;
  color: #0B2D72;
  margin-bottom: 2px;
}
.postcard-location {
  font-size: 10px;
  color: #888;
  margin-bottom: 10px;
}
.postcard-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.postcard-feature {
  font-size: 10px;
  color: #444;
  line-height: 1.4;
}
.postcard-lines { margin-bottom: 8px; }
.postcard-line {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 6px;
}
.postcard-msg {
  font-size: 10px;
  color: #444;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 8px;
}
.postcard-sig {
  font-size: 11px;
  font-weight: 700;
  color: #0992C2;
  font-family: Georgia, serif;
}

.postcard-footer {
  padding: 14px 18px;
  background: #f9f9f9;
}
.postcard-footer-label {
  font-size: 10px;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
}
.postcard-form { display: flex; gap: 8px; }
.postcard-input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  font-size: 11px;
  outline: none;
  font-family: var(--font-main);
}
.postcard-input:focus { border-color: var(--color-mid); }
.postcard-btn {
  background: #0992C2;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
.postcard-btn:hover { background: #0B2D72; }

/* Mobile responsive — both product popups */
@media (max-width: 600px) {

  /* Newspaper popup */
  .news-body {
    grid-template-columns: 1fr;  /* Stack columns */
  }
  .news-col-left {
    border-right: none;
    border-bottom: 1px solid #0B2D72;
    padding-bottom: 10px;
  }
  .news-drop { font-size: 38px; }
  .news-title { font-size: 15px; }
  .news-logo  { font-size: 11px; letter-spacing: 2px; }
  .news-form  { flex-direction: column; gap: 8px; }
  .news-input, .news-btn { width: 100%; }

  /* Postcard popup */
  .postcard-body {
    grid-template-columns: 1fr;  /* Stack columns */
    gap: 10px;
  }
  .postcard-divider { display: none; }
  .postcard-title   { font-size: 14px; }
  .postcard-form    { flex-direction: column; gap: 8px; }
  .postcard-input, .postcard-btn { width: 100%; }
  .postcard-top     { height: 110px; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 15. RESPONSIVE */
@media (max-width: 900px) {
  .slide.active { padding: 70px 40px 100px; justify-content: flex-start; }
  .slide-content { max-width: 100%; }
  .hero-buttons { justify-content: flex-start; }
  .slide-features { text-align: left; }
  .about-cards { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* Mobile about card pulse */
  .about-card { animation: glowPulse 2s ease-in-out infinite; border-radius: 16px; }
  .about-card.flipped { animation: none; box-shadow: 0 0 0 3px var(--color-mid); }
  @keyframes glowPulse {
    0%   { box-shadow: 0 0 0 2px rgba(9,146,194,0.3), 0 0 8px rgba(9,146,194,0.2); }
    50%  { box-shadow: 0 0 0 3px rgba(10,196,224,0.9), 0 0 20px rgba(10,196,224,0.5); }
    100% { box-shadow: 0 0 0 2px rgba(9,146,194,0.3), 0 0 8px rgba(9,146,194,0.2); }
  }
}

@media (max-width: 600px) {
  .section-title { font-size: 1.6rem; }
  .hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background-color: var(--color-white); padding: 20px; gap: 15px; z-index: 999; box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .navbar { padding: 15px 20px; position: relative; }
  .hero-carousel { min-height: auto; }
  .slide.active { flex-direction: column; padding: 60px 22px 60px; text-align: center; animation: fadeSlideDown 0.5s ease; }
  @keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-25px); } to { opacity: 1; transform: translateY(0); } }
  .slide-content h1 { font-size: 1.75rem; }
  .slide-features { text-align: left; }
  .hero-buttons { justify-content: center; }
  .slide-img-box { width: 260px; height: 280px; }
  .carousel-btn { display: none; }
  .carousel-dots { bottom: auto; top: 50%; left: auto; right: 12px; transform: translateY(-50%); flex-direction: column; gap: 8px; }
  .dot { width: 10px; height: 10px; }
  .dot.active { height: 24px; border-radius: 6px; transform: scale(1); background-color: var(--color-light); }
  .about-card { height: 260px; }
  .gallery-hint { display: none; }
  .gallery-strip { padding: 10px 20px 20px; }
  .gallery-card { min-width: 200px; max-width: 200px; }
  .gallery-img { height: 150px; font-size: 3.5rem; }
  .lightbox-img-wrap { height: 240px; }
  .lightbox-info { padding: 18px 20px; }
  .lightbox-info h3 { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Newsletter mobile */
  .newsletter-popup { width: 94vw; border-radius: 20px; padding-bottom: 20px; }
  .dog-scene { height: 140px; }
  .dog-beagle-wrap { transform: scale(0.82); transform-origin: bottom center; }
  .newsletter-content { padding: 16px 18px 0; }
  .newsletter-content h3 { font-size: 1.1rem; }
  .newsletter-content > p { font-size: 0.82rem; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input, .newsletter-form .btn { width: 100%; }
}