/* ============================================================
   FBAC — Global Stylesheet
   Florida-Brazil Arbitration Chamber
   Design: Navy + White · Elegant · Minimalist
   ============================================================ */

:root {
  --navy:       #002F5F;
  --navy-dark:  #001E3D;
  --navy-mid:   #003B75;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --border:     #E2E6EA;
  --text:       #1A1A2E;
  --muted:      #6B7280;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --max-w:      1080px;
  --radius:     3px;
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 19px; }
body { font-family: var(--font-sans); color: var(--text); line-height: 1.7; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Language toggle ---- */
body.lang-pt .en { display: none !important; }
body:not(.lang-pt) .pt { display: none !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  height: 76px;
  display: flex; align-items: center;
  padding: 0 2rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-brand {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-brand img {
  height: 54px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .nav-brand img { height: 44px; }
}

.nav-links {
  display: none;
  list-style: none;
  margin-left: auto;
  align-items: center; gap: 0.1rem;
}
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-actions {
  display: flex; align-items: center; gap: 0.65rem;
  margin-left: auto;
}
@media (min-width: 960px) { .nav-actions { margin-left: 1.5rem; } }

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-sans); font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: var(--radius);
  cursor: pointer; transition: border-color var(--transition), color var(--transition);
}
.lang-btn:hover { border-color: #fff; color: #fff; }

.nav-file-btn {
  display: none;
  background: #fff; color: var(--navy);
  text-decoration: none;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.5rem 1.1rem; border-radius: var(--radius);
  white-space: nowrap;
  transition: opacity var(--transition);
}
@media (min-width: 768px) { .nav-file-btn { display: inline-block; } }
.nav-file-btn:hover { opacity: 0.88; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
@media (min-width: 960px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  z-index: 199;
  overflow-y: auto;
  padding: 1.5rem 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: rgba(255,255,255,0.8);
  text-decoration: none; padding: 0.9rem 2rem;
  font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-nav .nav-file-btn {
  display: block; margin: 1.5rem 2rem 0; text-align: center;
  padding: 0.75rem; font-size: 0.8rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 6.5rem 2rem 6rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.08); z-index: 3;
}

/* Slideshow */
.hero-slides {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(100%) contrast(1.08);
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide:nth-child(1) { animation: kb1 16s ease-in-out infinite alternate; }
.hero-slide:nth-child(2) { animation: kb2 16s ease-in-out infinite alternate; }
.hero-slide:nth-child(3) { animation: kb3 16s ease-in-out infinite alternate; }

@keyframes kb1 {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.5%, -1%); }
}
@keyframes kb2 {
  from { transform: scale(1.09) translate(1%, 0.5%); }
  to   { transform: scale(1.0) translate(0, 1%); }
}
@keyframes kb3 {
  from { transform: scale(1.04) translate(-1%, 1%); }
  to   { transform: scale(1.09) translate(1.5%, -0.5%); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: var(--navy); opacity: 0.70; z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
}
.hero-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 400; line-height: 1.12;
  margin: 0 auto 1.5rem; max-width: 860px;
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  max-width: 580px; margin: 0 auto 2.75rem;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.85rem 2.1rem; border-radius: var(--radius);
  transition: opacity var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline-navy {
  background: transparent; color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; }
.section { padding: 5.5rem 2rem; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: #fff; }
.section-dark { background: var(--navy-dark); color: #fff; }

.eyebrow {
  font-size: 0.67rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.75rem;
}
.section-navy .eyebrow,
.section-dark .eyebrow { color: rgba(255,255,255,0.62); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.75rem);
  font-weight: 400; line-height: 1.18; margin-bottom: 1rem;
}
.section-lead {
  color: var(--muted); font-size: 1.05rem; line-height: 1.8;
  max-width: 600px;
}
.section-navy .section-lead,
.section-dark .section-lead { color: rgba(255,255,255,0.82); }

.rule {
  width: 44px; height: 2px;
  background: var(--navy); margin: 1.25rem 0 1.75rem;
}
.section-navy .rule,
.section-dark .rule { background: rgba(255,255,255,0.25); }

.text-center { text-align: center; }
.text-center .section-lead { margin: 0 auto; }
.text-center .rule { margin-left: auto; margin-right: auto; }

/* ============================================================
   CARDS (services preview)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 3rem; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 6px 24px rgba(0,31,63,0.08); transform: translateY(-2px); }

.card-badge {
  display: inline-block;
  background: var(--navy); color: #fff;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 2px; margin-bottom: 1.25rem;
}
.card h3 {
  font-family: var(--font-serif); font-size: 1.45rem; font-weight: 400;
  margin-bottom: 0.75rem;
}
.card p { font-size: 0.97rem; color: var(--muted); line-height: 1.8; }
.card-link {
  display: inline-block; margin-top: 1.5rem;
  color: var(--navy); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--navy);
  padding-bottom: 2px; transition: opacity var(--transition);
}
.card-link:hover { opacity: 0.65; }

/* ============================================================
   DIFFERENTIATORS
   ============================================================ */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; margin-top: 3.5rem; }
.diff-num {
  font-family: var(--font-serif); font-size: 2.75rem;
  color: rgba(255,255,255,0.42); line-height: 1; margin-bottom: 0.5rem;
}
.diff-grid h4 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 0.6rem; }
.diff-grid p { font-size: 0.97rem; color: rgba(255,255,255,0.82); line-height: 1.8; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  padding: 4.5rem 2rem; background: var(--off-white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-strip h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 400; margin-bottom: 0.75rem; }
.cta-strip p { color: var(--muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy); color: #fff;
  padding: 4.5rem 2rem 4rem;
}
.page-hero .container { max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 400;
  max-width: 720px; line-height: 1.15;
}
.page-hero p {
  color: rgba(255,255,255,0.82); margin-top: 1rem;
  max-width: 560px; font-size: 1.05rem; line-height: 1.8;
}

/* ============================================================
   ABOUT
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

.prose p { color: var(--muted); line-height: 1.85; margin-bottom: 1.25rem; font-size: 1rem; }
.prose p:last-child { margin-bottom: 0; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; margin-top: 3rem; }
.value-card { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.value-card h4 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.78; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-block { padding: 4rem 0; }
.service-block + .service-block { border-top: 1px solid var(--border); }
.service-block h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 400; margin-bottom: 1rem; }
.service-block > .prose { max-width: 680px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.step { padding: 1.5rem; background: var(--off-white); border-radius: var(--radius); }
.step-n { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.step h4 { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.clause-box {
  background: var(--off-white); border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius); padding: 2rem;
  margin-top: 2rem;
}
.clause-box p { font-size: 0.88rem; color: var(--text); line-height: 1.85; font-style: italic; }
.clause-box small { display: block; margin-top: 1rem; font-size: 0.77rem; color: var(--muted); font-style: normal; }

/* ============================================================
   PANEL / ARBITRATORS
   ============================================================ */
.panel-intro {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}
.panel-intro p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.panel-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; background: #fff;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.panel-card-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; }
.panel-card-area { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.panel-badge {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 2px;
  background: #E8F4EC; color: #1A6630;
}
.panel-section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 400; margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}

/* ============================================================
   FEES
   ============================================================ */
.fees-section { margin-bottom: 3.5rem; }
.fees-section h3 {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400;
  margin-bottom: 1.25rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}
.fees-table {
  width: 100%; border-collapse: collapse; font-size: 0.87rem;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.fees-table th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 0.7rem 1rem; font-size: 0.72rem;
  letter-spacing: 0.07em; text-transform: uppercase; font-weight: 500;
}
.fees-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: var(--off-white); }
.fees-table td:not(:first-child) { color: var(--navy); font-weight: 500; }

.fees-notes { margin-top: 1rem; }
.fees-notes li { font-size: 0.82rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.35rem; list-style: none; padding-left: 1.1rem; position: relative; }
.fees-notes li::before { content: '—'; position: absolute; left: 0; color: var(--border); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; margin-top: 3rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; margin-bottom: 0.75rem; }
.contact-info p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.contact-info a { color: var(--navy); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.65rem 0.9rem; font-family: var(--font-sans); font-size: 0.9rem;
  color: var(--text); background: #fff;
  outline: none; transition: border-color var(--transition);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: -0.25rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.58);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name {
  font-family: var(--font-serif); font-size: 1.5rem; color: #fff; margin-bottom: 0.6rem;
}
.footer-tagline { font-size: 0.83rem; line-height: 1.75; max-width: 260px; margin-bottom: 1.25rem; }
.footer-email a { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-decoration: none; }
.footer-email a:hover { color: #fff; }

.footer-col-title {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); margin-bottom: 1rem; display: block;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.58);
  font-size: 0.83rem; text-decoration: none; margin-bottom: 0.55rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w); margin: 2.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem; font-size: 0.76rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 1.25rem; }
  .hero { padding: 4.5rem 1.25rem 4rem; }
  .page-hero { padding: 3rem 1.25rem 2.75rem; }
  footer { padding: 3rem 1.25rem 1.5rem; }
  .nav { padding: 0 1.25rem; }
}
