/**
 * Global styles – reference: teal #0CA48C to blue #036AA9 gradient, white content, dark header/footer
 */
:root {
  --color-bg: #ffffff;
  --color-teal: #0CA48C;
  --color-blue: #036AA9;
  --gradient: linear-gradient(135deg, #0CA48C 0%, #036AA9 100%);
  --gradient-hover: linear-gradient(135deg, #0b9380 0%, #025a8a 100%);
  --color-primary: #0CA48C;
  --color-text: #1a1a1a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-surface: #f8fafc;
  --header-bg: #1e3a5f;
  --header-bg-dark: #152a45;
  --footer-bg: #1e3a5f;
  --footer-bg-dark: #152a45;
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --max-content-width: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

/* Prevent horizontal scrollbar on all pages */
html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Page background – exactly like reference: light green/blue wavy translucent pattern */
body {
  margin: 0;
  overflow-x: hidden; /* belt-and-suspenders: also block on body */
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #f8fbfa;
  color: var(--color-text);
  line-height: 1.6;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: var(--bottom-nav-height);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 90% 60% at 15% 30%, rgba(12, 164, 140, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(3, 106, 169, 0.06) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cpath fill='none' stroke='%230CA48C' stroke-opacity='0.06' stroke-width='.8' d='M0 40 Q40 20 80 40 T160 40'/%3E%3Cpath fill='none' stroke='%23036AA9' stroke-opacity='0.05' stroke-width='.8' d='M0 55 Q80 25 160 55'/%3E%3Cpath fill='%230CA48C' fill-opacity='0.025' d='M0 50 Q40 30 80 50 T160 50 L160 80 L0 80 Z'/%3E%3Cpath fill='%23036AA9' fill-opacity='0.02' d='M0 65 Q80 35 160 65 L160 80 L0 80 Z'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 160px 80px;
  background-repeat: no-repeat, no-repeat, repeat;
}

/* Header – over hero: full-width, translucent grey bar, frosted glass, white logo, dark nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-sizing: border-box;
  /* Translucent grey over image – frosted glass */
  background: rgba(120, 120, 128, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .header-left .search-link {
  display: none;
}

.site-header .logo-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.site-header .logo-wrap a:hover {
  color: #ffffff;
  opacity: 0.92;
}

.site-header .logo-wrap img {
  max-height: 38px;
  max-width: 140px;
  object-fit: contain;
}

.site-header .header-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-header .header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .site-header .header-nav a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
  }

  .site-header .header-nav a:hover {
    color: #ffffff;
  }

  .site-header .header-nav a.active {
    color: #ffffff;
    border-bottom-color: #22c55e;
  }

  .site-header .nav-dropdown-wrap {
    position: relative;
  }

  .site-header .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .site-header .nav-chevron {
    font-size: 0.65rem;
    opacity: 0.9;
    transition: transform 0.2s;
  }

  .site-header .nav-dropdown-wrap:hover .nav-chevron {
    transform: rotate(180deg);
  }

  .site-header .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin: 8px 0 0;
    padding: 8px 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
  }

  .site-header .nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
  }

  .site-header .nav-dropdown li {
    margin: 0;
  }

  .site-header .nav-dropdown li a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .site-header .nav-dropdown li a:hover {
    background: var(--color-surface);
    color: var(--color-teal);
  }
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .header-right a,
.site-header .header-right .login-trigger {
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  font: inherit;
}

.site-header .header-right .login-trigger {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-teal);
  font-weight: 600;
}

.site-header .header-right .login-trigger:hover {
  background: #fff;
  opacity: 1;
}

.site-header .header-right .btn-cta {
  padding: 10px 20px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(12, 164, 140, 0.4);
}

.site-header .header-right .btn-cta:hover {
  background: var(--gradient-hover);
  opacity: 1;
}

.site-header .header-right .cart-link {
  position: relative;
}

.site-header .cart-count-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.site-header .cart-count-badge.visible {
  display: inline-flex;
}

.site-header .logo-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
}

/* Main content */
.main-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 24px 20px;
  min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

@media (min-width: 768px) {
  .main-content {
    padding: 32px 24px;
  }
}

/* Bottom nav – light to match homepage, teal accent for active */
.site-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--bottom-nav-height);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%),
    url("../images/footer.jpg") center bottom / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-sizing: border-box;
}

.site-footer-nav a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.site-footer-nav a:hover {
  color: var(--color-teal);
}

.site-footer-nav a.active {
  color: var(--color-teal);
  font-weight: 600;
  background: rgba(12, 164, 140, 0.08);
}

.site-footer-nav .nav-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
  line-height: 1;
}

/* Laptop/desktop: hide bottom nav, remove reserved space */
@media (min-width: 768px) {
  .site-footer-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .main-content {
    min-height: calc(100vh - var(--header-height));
  }
}

/* Buttons – gradient primary */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(12, 164, 140, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(12, 164, 140, 0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--gradient);
  color: #fff;
}

.btn-accent:hover {
  background: var(--gradient-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
}

.btn-outline:hover {
  background: rgba(12, 164, 140, 0.08);
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-white {
  background: #fff;
  color: var(--color-teal);
}

.btn-white:hover {
  background: var(--color-surface);
  color: var(--color-blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Section title with decorative lines (reference style) */
.section-title-with-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.section-title-with-lines::before,
.section-title-with-lines::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-title-with-lines h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title-with-lines h2 {
    font-size: 1.75rem;
  }
}

/* Site footer – full viewport width, footer.jpg background, 4-column layout */
.site-footer {
  width: 100%;
  max-width: 100%;
  margin: 3rem 0 0;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%),
    url("../images/footer.jpg") center center / cover no-repeat;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

.footer-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 2.5rem 20px 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (max-width: 599px) {
  .site-footer,
  .footer-inner {
    text-align: center;
  }
  .footer-brand-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-col,
  .footer-col.footer-brand,
  .footer-col.footer-connect {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-heading,
  .footer-connect-desc {
    text-align: center;
  }
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 600px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding: 3rem 24px 2.5rem;
  }
}

.footer-brand-name {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-brand-tagline {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #333744;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--color-teal);
  color: #fff;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--color-teal);
}

.footer-connect-desc {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 20px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.footer-whatsapp-btn:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-1px);
}

.footer-bottom {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 1rem 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    padding: 1rem 24px;
  }
}

.footer-copyright {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--color-teal);
}

/* Floating contact icons – fixed on the right, at bottom (Email, Phone, WhatsApp) */
.float-contact {
  position: fixed;
  right: 16px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

/* Mobile: sit above bottom nav so nav links aren't covered */
@media (max-width: 767px) {
  .float-contact {
    bottom: calc(var(--bottom-nav-height) + 16px);
  }
}

.float-contact .float-contact-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-contact .float-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.float-contact-email {
  background: #eab308;
  color: #1a1a1a;
}

.float-contact-phone {
  background: var(--color-teal);
  color: #fff;
}

.float-contact-whatsapp {
  background: #25d366;
  color: #fff;
}

/* Login modal */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.login-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.login-modal.is-open .login-modal-box {
  transform: scale(1);
  opacity: 1;
}

.login-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.login-modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.5rem;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.login-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.login-modal-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.login-modal-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.login-form-row {
  margin-bottom: 1rem;
}

.login-form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.login-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(12, 164, 140, 0.15);
}

.login-form-error {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: var(--radius);
  border: 1px solid #fecaca;
}

.login-form-error[hidden] {
  display: none !important;
}

.login-submit {
  width: 100%;
  padding: 12px 20px;
  margin-top: 0.25rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.login-submit:hover {
  opacity: 0.95;
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-modal-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.login-step {
  display: block;
}

.login-phone-display {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.login-back {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.login-back:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}