/* ═══════════════════════════════════════════════════
   Cipamed Embalagens — Global Stylesheet
   ═══════════════════════════════════════════════════ */

:root {
  --navy: #0B1D3A;
  --navy-light: #122A4F;
  --teal: #0D8F7F;
  --teal-light: #11B8A4;
  --teal-pale: #E6F7F5;
  --white: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #EEF0F4;
  --gray-200: #D8DCE4;
  --gray-400: #8A92A2;
  --gray-600: #5A6170;
  --gray-800: #2C3241;
  --accent: #D4A843;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Top Bar ── */
.top-bar { background: var(--navy); color: rgba(255,255,255,.7); font-size: 13px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: flex-end; gap: 24px; align-items: center; }
.top-bar a { color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.top-bar a:hover { color: var(--teal-light); }

/* ── Header ── */
header { background: var(--white); border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(11,29,58,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo img { height: 44px; width: auto; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--gray-600); text-decoration: none; padding: 8px 14px; border-radius: 6px; transition: all .2s; }
nav a:hover { color: var(--navy); background: var(--gray-50); }
nav a.active { color: var(--teal); font-weight: 600; }
.nav-cta { background: var(--teal) !important; color: var(--white) !important; font-weight: 600 !important; padding: 10px 20px !important; border-radius: 8px !important; margin-left: 8px; }
.nav-cta:hover { background: var(--teal-light) !important; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--gray-100); border-radius: 8px; padding: 8px 0; min-width: 280px; box-shadow: 0 12px 32px rgba(11,29,58,.1); z-index: 200; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 16px; font-size: 13px; border-radius: 0; color: var(--gray-600); }
.dropdown-menu a:hover { background: var(--teal-pale); color: var(--teal); }
.mobile-toggle { display: none; background: none; border: 1px solid var(--gray-200); border-radius: 6px; padding: 6px 10px; font-size: 20px; cursor: pointer; }

/* ── Breadcrumb ── */
.breadcrumb { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); padding: 10px 0; font-size: 13px; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--gray-800); font-weight: 500; }

/* ── Sections ── */
.section { padding: 80px 0; }
.page-hero { padding: 48px 0 32px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.section-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--gray-400); max-width: 600px; line-height: 1.6; }

/* ── Buttons ── */
.btn { font-family: var(--font-display); font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .25s; border: none; cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,143,127,.3); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }

/* ── Product Cards ── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.product-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; overflow: hidden; transition: all .3s; }
.product-card:hover { border-color: var(--teal); box-shadow: 0 12px 36px rgba(13,143,127,.1); transform: translateY(-4px); }
.product-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-card-body { padding: 18px; }
.product-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.product-card p { font-size: 13px; color: var(--gray-400); line-height: 1.5; }
.product-card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; margin-top: 12px; transition: gap .2s; }
.product-card-link:hover { gap: 10px; }

/* ── Product Page ── */
.product-hero { padding-top: 40px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-image img { width: 100%; border-radius: 12px; border: 1px solid var(--gray-100); }
.product-info h1 { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.15; }
.product-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.meta-badge { font-size: 13px; color: var(--gray-600); background: var(--gray-50); padding: 8px 14px; border-radius: 6px; border: 1px solid var(--gray-100); }
.meta-badge strong { color: var(--navy); }
.product-lead { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Data Tables ── */
.table-responsive { overflow-x: auto; margin: 16px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: 12px; font-weight: 600; padding: 10px 14px; text-align: left; text-transform: uppercase; letter-spacing: .5px; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
.data-table tbody tr:hover { background: var(--teal-pale); }
.data-table strong { color: var(--navy); }

/* ── FAQ ── */
.faq-section { padding: 60px 0; background: var(--gray-50); }
.faq-section h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.faq-list { max-width: 800px; }
.faq-item { border: 1px solid var(--gray-100); border-radius: 8px; margin-bottom: 10px; background: var(--white); overflow: hidden; }
.faq-item summary { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); padding: 16px 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--teal); font-weight: 300; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--gray-100); }
.faq-answer { padding: 16px 20px; }
.faq-answer p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ── Info Box ── */
.info-box { background: var(--teal-pale); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; padding: 20px 24px; }
.info-box h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.info-box p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.info-box a { color: var(--teal); font-weight: 600; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; margin-top: 40px; }
.about-text h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.about-text p { font-size: 15px; color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; }
.about-highlight { background: var(--white); border-left: 3px solid var(--teal); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.about-highlight p { font-size: 14px; font-weight: 500; color: var(--navy); margin: 0; }
.about-images { display: grid; gap: 12px; }
.about-images img { width: 100%; border-radius: 10px; object-fit: cover; height: 240px; }
.check-list { list-style: none; padding: 0; }
.check-list li { font-size: 14px; color: var(--gray-600); padding: 6px 0 6px 28px; position: relative; line-height: 1.5; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; font-size: 15px; }

/* ── Applications ── */
.apps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.app-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.app-card:hover img { transform: scale(1.08); }
.app-card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,29,58,.8) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 14px; }
.app-card-overlay span { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--white); }

/* ── Contact / CTA ── */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 18px; flex-shrink: 0; }
.contact-info-item h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.contact-info-item p { font-size: 14px; color: var(--gray-400); }
.contact-info-item a { color: var(--teal); text-decoration: none; }
.contact-form { background: var(--gray-50); border-radius: 12px; padding: 32px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font-family: var(--font-body); font-size: 14px; color: var(--gray-800); transition: border-color .2s; background: var(--white); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,143,127,.1); }
.form-group textarea { height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit { width: 100%; padding: 14px; background: var(--teal); color: var(--white); font-family: var(--font-display); font-size: 15px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all .25s; }
.btn-submit:hover { background: var(--teal-light); }

/* ── Footer ── */
footer { background: var(--navy); color: rgba(255,255,255,.5); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; }

/* ── Guide Navigation ── */
.guide-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--gray-100); margin-top: 40px; }
.guide-nav a { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--gray-200); border-radius: 8px; transition: all .2s; }
.guide-nav a:hover { border-color: var(--teal); background: var(--teal-pale); }
.guide-index-link { font-size: 13px; color: var(--gray-400); text-decoration: none; }
.guide-index-link:hover { color: var(--teal); }

/* ── Guide Sidebar ── */
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.guide-sidebar { position: sticky; top: 80px; background: var(--gray-50); border-radius: 10px; padding: 20px; border: 1px solid var(--gray-100); }
.guide-sidebar h3 { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.guide-sidebar a { display: block; font-size: 13px; color: var(--gray-400); text-decoration: none; padding: 6px 10px; border-radius: 4px; margin-bottom: 2px; transition: all .15s; border-left: 2px solid transparent; }
.guide-sidebar a:hover { color: var(--teal); background: var(--teal-pale); }
.guide-sidebar a.active { color: var(--teal); font-weight: 600; border-left-color: var(--teal); background: var(--teal-pale); }

/* ── Guide Content ── */
.guide-content h1 { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 20px; line-height: 1.2; }
.guide-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.guide-content h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy); margin: 24px 0 8px; }
.guide-content p { font-size: 15px; color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; }
.guide-content ul, .guide-content ol { margin: 12px 0 16px 24px; }
.guide-content li { font-size: 14px; color: var(--gray-600); line-height: 1.65; margin-bottom: 6px; }
.guide-content .lead { font-size: 17px; color: var(--gray-800); font-weight: 500; line-height: 1.7; border-left: 3px solid var(--teal); padding-left: 16px; margin-bottom: 24px; }

/* ── Hero (Homepage) ── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #163a6a 100%); position: relative; overflow: hidden; padding: 80px 0 90px; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 70%; height: 200%; background: radial-gradient(ellipse, rgba(13,143,127,.12) 0%, transparent 70%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(13,143,127,.15); border: 1px solid rgba(13,143,127,.3); border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--teal-light); margin-bottom: 20px; }
.hero h1 { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 18px; letter-spacing: -1px; }
.hero h1 span { color: var(--teal-light); }
.hero p { font-size: 17px; color: rgba(255,255,255,.7); line-height: 1.65; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--teal-light); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }
.hero-visual { flex: 0 0 420px; position: relative; }
.hero-visual img { width: 100%; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.3); }

/* ── Trust Bar ── */
.trust-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); padding: 20px 0; }
.trust-items { display: flex; justify-content: center; gap: 48px; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--gray-600); }
.trust-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 16px; font-weight: 800; }

/* ── Guides Preview ── */
.guides-section { background: var(--navy); color: var(--white); }
.guides-section .section-label { color: var(--teal-light); }
.guides-section .section-title { color: var(--white); }
.guides-section .section-desc { color: rgba(255,255,255,.5); }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.guide-preview { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 28px; transition: all .3s; text-decoration: none; color: inherit; display: block; }
.guide-preview:hover { background: rgba(255,255,255,.08); border-color: var(--teal); transform: translateY(-3px); }
.guide-num { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: rgba(255,255,255,.08); line-height: 1; margin-bottom: 12px; }
.guide-preview h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.guide-preview p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }
.guide-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: rgba(13,143,127,.2); color: var(--teal-light); margin-top: 14px; }

/* ── Guide Index Page ── */
.guide-index-list { counter-reset: guide-counter; margin-top: 24px; }
.guide-index-item { counter-increment: guide-counter; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--gray-100); border-radius: 10px; margin-bottom: 10px; text-decoration: none; color: inherit; transition: all .2s; }
.guide-index-item:hover { border-color: var(--teal); background: var(--teal-pale); }
.guide-index-item::before { content: counter(guide-counter, decimal-leading-zero); font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--gray-200); min-width: 40px; }
.guide-index-item:hover::before { color: var(--teal); }
.guide-index-item h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); }
.guide-index-item p { font-size: 13px; color: var(--gray-400); margin-top: 2px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero p { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-100); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
  nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .products-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Mobile Full-Screen Menu */
@media (max-width: 1024px) {
  nav#mainNav { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:var(--white); z-index:999; flex-direction:column; padding:80px 24px 24px; overflow-y:auto; gap:0; }
  nav#mainNav.open { display:flex; }
  nav#mainNav > a, nav#mainNav .dropdown > a { font-size:18px; padding:14px 0; border-bottom:1px solid var(--gray-100); }
  nav#mainNav .nav-cta { margin:16px 0 0 !important; text-align:center; justify-content:center; padding:16px !important; font-size:16px !important; }
  .mobile-toggle { display:block; position:relative; z-index:1000; font-size:24px; padding:8px 12px; }
  .dropdown-menu { position:static !important; box-shadow:none !important; border:none !important; padding:0 0 0 16px !important; min-width:auto !important; display:none; }
  .dropdown.open > .dropdown-menu { display:block; }
  .dropdown-menu a { font-size:15px !important; padding:10px 0 !important; }
}