:root {
    --primary: #0f4c75;
    --primary-light: #1a5a87;
    --secondary: #3bb78f;
    --accent: #ffd700;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-header: #d3dfea;
    --bg-footer: #10172A;
    --bg-alt: #f8fafc;
    --bg-section: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 1.6rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    width: min(1200px, 95%);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in {
    animation: slideInRight 0.8s ease-out;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    /* background: rgba(232, 231, 231, 0.95); */
     background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    transition: var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem ;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-weight: 700;
    color: var(--text);
    font-size: 2rem;
    transition: var(--transition);
}

.brand:hover {
    transform: scale(1.02);
}

.brand-name {
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(5deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav a {
    padding: 1rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

.nav a:hover::before {
    left: 100%;
}

.nav a:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.nav .whatsapp {
    background: linear-gradient(135deg, var(--secondary), #2d9c6f);
    color: #fff;
    padding: 1.2rem 2rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    border: none;
}

.nav .whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #2d9c6f, var(--secondary));
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--bg-alt) 0%, #ffffffcb 76%, var(--bg-section) 100%);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M10 0L0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    margin: 0 0 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-light);
    margin: 0 0 3rem;
    font-size: 1.8rem;
    max-width: 50rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.hero-art {
    animation: slideInRight 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .globe {
    width: 38rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow:
        var(--shadow-lg),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 20px 40px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
} */
.globe {
    width: 38rem;
    height: auto;
    border-radius: 16px; /* se ainda quiser bordas arredondadas */
    object-fit: cover;
}

.globe::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.globe::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 12px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 12px);
    mix-blend-mode: overlay;
    animation: pulse 4s ease-in-out infinite;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

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

.section-head {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-size: clamp(2.8rem, 4vw, 4rem);
    margin: 0 0 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-head p {
    color: var(--text-light);
    font-size: 1.8rem;
    line-height: 1.7;
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 2.4rem;
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2.4rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.2rem;
    color: var(--text);
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.service,
.product {
    text-align: center;
}

.service h3,
.product h3 {
    margin-top: 0;
    color: var(--primary);
}

.product ul {
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.product li {
    padding: 0.8rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 2rem;
}

.product li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Contact */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding: 2rem 0;
}

.contact-info p {
    margin-bottom: 1.6rem;
    font-size: 1.6rem;
    color: var(--text-light);
}

.contact-info strong {
    color: var(--text);
    font-weight: 600;
}

.contact-info .cta-row {
    display: flex;
    gap: 1.6rem;
    margin: 2.4rem 0;
    flex-wrap: wrap;
}

.contact-form {
    background: var(--bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form .row {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.4rem 1.6rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 1.5rem;
    transition: var(--transition);
    background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}

.form-msg {
    margin-top: 1.6rem;
    color: var(--secondary);
    font-weight: 500;
}

.social {
    margin-top: 2.4rem;
}

.social a {
    display: inline-block;
    margin-right: 1.6rem;
    font-size: 1.4rem;
    color: var(--text-muted);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.social a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 2.4rem;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: var(--primary);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.ghost {
    background: transparent;
    color: var(--primary);
}

.btn.ghost:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-footer);
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 0;
}

.footer p {
    color: var(--text-muted);
    font-size: 1.4rem;
}

.footer-nav a {
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
}

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

    .hero-inner {
        gap: 4rem;
    }

    .globe {
        width: 32rem;
    }
}

@media (max-width: 800px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .section {
        padding: 6rem 0;
    }

    .globe {
        width: 28rem;
    }
}

@media (max-width: 560px) {
    .grid {
        grid-template-columns: 1fr !important;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-art {
        order: -1;
        margin-bottom: 2rem;
    }

    .globe {
        width: 24rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        inset: 7rem 0 auto 0;
        transform: translateY(-120%);
        transition: var(--transition);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 2rem;
        justify-content: center;
        z-index: 99;
        flex-direction: column;
        gap: 1rem;
    }

    .nav.open {
        transform: translateY(0);
        box-shadow: var(--shadow-lg);
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 1.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-head {
        margin-bottom: 3rem;
    }

    .card {
        padding: 2rem 1.6rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-nav a {
        margin: 0 1rem;
    }
}

/* Scroll animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Seção do simulador */


/* Layout da seção Remessas */
#remessas .grid.cols-2 {
  display: grid;
  grid-template-columns: 1fr;                  /* mobile: empilhado */
  gap: clamp(20px, 3vw, 36px);                 /* espaço entre colunas */
  align-items: start;
}

/* A partir de ~900px: duas colunas lado a lado */
@media (min-width: 900px) {
  #remessas .grid.cols-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Centraliza o "celular" e garante responsividade */
#remessas .iframe-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Tamanho do app (iframe) controlado por CSS */
#remessas .iframe-phone {
  width: 100%;
  max-width: 414px;   /* aparência de app mobile */
  height: 660px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Telas grandes: dá um respiro e pode aumentar um pouco o iframe */
@media (min-width: 1024px) {
  #remessas .iframe-phone {
    max-width: 480px;
    height: 760px;
  }
}

/* Opcional: o card ocupa toda a altura da coluna (borda/largura consistentes) */
#remessas .card {
  height: 100%;
}


/* "Nossa História" no #about */
#about .about-history {
  background: none;
  box-shadow: none;
  text-align: left;
  grid-column: 1 / -1;       /* ocupa a largura toda */
  margin-bottom: clamp(28px, 5vw, 56px); /* dá um respiro antes dos cards */
}

/* espaço extra antes da grade de cards, só no #about */
#about .grid.cols-3 {
  margin-top: clamp(8px, 2vw, 16px);
}

@media (max-width: 899px) {
  #remessas .iframe-wrap { order: -1; }
}

/* === Theme Toggle & Dark Scheme ======================================= */
:root {
  color-scheme: light dark; /* hint for UA components */
}
:root[data-theme="light"]{
  /* nothing: keeps existing vars as light */
}

:root[data-theme="dark"]{
  --bg: #0b0f14;
  --bg-header: #17202a;
  --bg-alt:#0d141b;
  --bg-section:#0f172a;
  --text:#e5e7eb;
  --text-light:#cbd5e1;
  --text-muted:#94a3b8;
  --border:#1f2937;
  --border-light:#0f172a;
  --primary:#10b981;
  --primary-light:#059669;
  --secondary:#22c55e;
}

/* Prefer user OS if no explicit choice yet */
@media (prefers-color-scheme: dark){
  :root:not([data-theme]){
    --bg: #0b0f14;
    --bg-alt:#0d141b;
    --bg-section:#0f172a;
    --text:#e5e7eb;
    --text-light:#cbd5e1;
    --text-muted:#94a3b8;
    --border:#1f2937;
    --border-light:#0f172a;
    --primary:#10b981;
    --primary-light:#059669;
    --secondary:#22c55e;
  }
}

/* Toggle widget */
.sr-only{
    text-align: center;
    margin-bottom: -10px;
}
.theme-toggle{
  width: 160px;
  display:flex;
  gap:.4rem;
  align-items:center;
  border:1px solid var(--border);
  border-radius:999px;
  padding:.5rem;
  background: var(--bg);
  box-shadow: var(--shadow);
  margin-left: .5rem;
}
.theme-option{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.4rem .8rem;
  border-radius:999px;
  line-height:1;
  cursor:pointer;
  user-select:none;
  color: var(--text);
}
.theme-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.theme-option:has(input:checked){
  background: var(--bg-alt);
  border:1px solid var(--border);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.02);
}
.theme-option .theme-text{
  font-size:1.3rem;
  color: var(--text-light);
}
.theme-option:has(input:checked) .theme-text{
  color: var(--text);
  font-weight:600;
}
/* Ensure header layout wraps nicely on small screens */
@media (max-width:560px){
  .header-inner{flex-wrap:wrap}
  .theme-toggle{order:2;margin-left:0}
}
