/* ============================================
   SMS Retails — Custom Styles
   Complementa o Tailwind CSS
   ============================================ */

/* ---------- Variáveis CSS ---------- */
:root {
  --navy:         #0D2B3E;
  --navy-mid:     #1A3A4E;
  --navy-light:   #2A5A6A;
  --yellow:       #F5C800;
  --yellow-light: #FFD700;
  --teal:         #1A8FA0;
  --teal-light:   #22A8BC;
  /* aliases mantidos para compatibilidade */
  --green-dark:   #0D2B3E;
  --green-mid:    #1A3A4E;
  --green-light:  #2A5A6A;
  --orange:       #F5C800;
  --orange-light: #FFD700;
  --cream:        #F8F9FA;
  --dark:         #0D2B3E;
  --text:         #212529;
  --text-muted:   #6C757D;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.16);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,94,32,0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo img {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.nav-logo span {
  color: var(--teal);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  gap: 2rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid rgba(27,94,32,0.08);
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu .nav-link:last-child { border-bottom: none; }

/* ---------- Botões ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(13,43,62,0.3);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,43,62,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(245,200,0,0.35);
}

.btn-orange:hover {
  background: var(--yellow-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,0,0.5);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #142E40 50%, #0A1F2E 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 140px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--yellow);
  top: -100px; right: -100px;
}

.hero-blob-2 {
  width: 300px; height: 300px;
  background: var(--teal);
  bottom: -50px; left: -50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--orange-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero card animado */
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 2rem;
  color: white;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.hours-item:last-child { border-bottom: none; }

.hours-open {
  color: var(--yellow);
  font-weight: 600;
}

/* ---------- Secções ---------- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--cream);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* ---------- Cards de Feature ---------- */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27,94,32,0.15);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-icon.green { background: rgba(13,43,62,0.08); }
.feature-icon.orange { background: rgba(245,200,0,0.12); }
.feature-icon.blue { background: rgba(26,143,160,0.1); }
.feature-icon.purple { background: rgba(156,39,176,0.08); }

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Product Grid ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-emoji {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #E8F4F8, #D0EBF2);
  transition: transform 0.4s ease;
}

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

.product-card {
  overflow: hidden;
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Info Strip ---------- */
.info-strip {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
}

.info-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* ---------- Contact Form ---------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #E0E0E0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,143,160,0.15);
}

.form-input.error {
  border-color: #E53935;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.8rem;
  color: #E53935;
  margin-top: 0.35rem;
  display: none;
}

.form-error.show { display: block; }

.form-success {
  display: none;
  background: #E0F4F8;
  border: 1px solid #90D0DC;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-success.show { display: block; }

.form-error-box { display: none; }
.form-error-box.show { display: block; }

/* Info Box */
.info-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  height: 100%;
}

.info-box-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.info-box-item:last-child { border-bottom: none; }

.info-box-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ---------- Policy Pages ---------- */
.policy-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 6rem 0 3rem;
  color: white;
  text-align: center;
}

.policy-date {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(13,43,62,0.1);
}

.policy-section p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.policy-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.policy-section ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text);
  line-height: 1.7;
}

.policy-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- About Page ---------- */
.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0A1F2E 100%);
  padding: 8rem 0 5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.footer-logo span { color: var(--orange-light); }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
  font-style: italic;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--orange-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.breadcrumb a:hover { color: white; }

/* ---------- Scroll Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ---------- Map Embed ---------- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- Divider ---------- */
.divider {
  width: 48px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ---------- Tag Pill ---------- */
.tag {
  display: inline-block;
  background: rgba(13,43,62,0.08);
  color: var(--navy);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--teal);
  transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex !important; }
  .nav-links { display: none !important; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .contact-card { padding: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .btn-primary, .btn-secondary, .btn-orange { width: 100%; justify-content: center; }
}
