/* Opolski Advocacia – Theme Styles
   Palette: Navy #002854, Light #eaeaea, Gold #af9469, Copper #b2804d
   Fonts: DM Serif Display (serif for headings) + Montserrat (sans for UI)
*/

:root {
  --navy: #002854;
  --light: #eaeaea;
  --gold: #af9469;
  --copper: #b2804d;
  --ink: #0f1720;
  --muted: #6b7280;
  --bg: #ffffff;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.narrow { max-width: 800px; margin: 0 auto; }
.mt { margin-top: 32px; }

.serif { font-family: 'DM Serif Display', Georgia, serif; letter-spacing: .2px; }

/* Top strip */
.top-strip { background: #000; color: #fff; position: relative; }
.top-strip .container { display: flex; align-items: center; gap: 16px; padding: 12px 20px; position: relative; z-index: 2; }
.top-strip .top-logo { height: 48px; width: auto; object-fit: cover; transform: scale(1.2); }
.top-strip .top-center-content { 
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center;
  z-index: 1;
}
.top-strip .blocked-text { 
  color: var(--gold);
  font-size: 18px; 
  font-weight: 700; 
  margin: 0 0 6px 0; 
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  animation: blockedFade 12s ease-in-out infinite;
}

@keyframes blockedFade {
  0%, 15% { opacity: 1; }
  65%, 75% { opacity: 0; }
  100% { opacity: 1; }
}

.top-strip .help-text { 
  background: linear-gradient(90deg, var(--gold) 0%, #fff 50%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 18px; 
  font-weight: 700; 
  margin: 0 0 6px 0; 
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  animation: helpFade 12s ease-in-out infinite, shine 10s ease-in-out infinite;
}

@keyframes helpFade {
  0%, 15% { opacity: 0; }
  65%, 75% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes shine {
  0% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.top-strip .social-media-image { 
  height: 229px; 
  width: auto; 
  opacity: 0.9; 
  animation: scrollUpDown 20s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  margin-top: 200px;
}

@keyframes scrollUpDown {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-60px); }
}
.top-strip .top-cta { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.top-strip .top-cta:hover { background: rgba(255,255,255,.08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.brand { text-decoration: none; color: inherit; line-height: 1; display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; object-fit: cover; }
.brand-text { line-height: 1; }
.brand-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; display: block; }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--navy); }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: all .2s ease; }
.btn.sm { padding: 10px 14px; font-size: 14px; }
.btn.lg { padding: 14px 22px; font-size: 18px; border-radius: 12px; }
.btn.cta { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(175,148,105,.25); }
.btn.cta:hover { background: var(--copper); transform: translateY(-1px); }
.btn.ghost { border: 2px solid var(--gold); color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: #fff; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 20% 10%, #0b2e63 10%, transparent 60%),
              linear-gradient(135deg, var(--navy), #0d3b77 60%, var(--gold));
  color: #fff; padding: 92px 0 48px; position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -800px;
  right: 0;
  bottom: 0;
  background-image: url(/public/logos/trans.png);
  background-size: 700px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
}
.hero-grid { 
  display: grid; 
  grid-template-columns: 1.2fr .8fr; 
  gap: 36px; 
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(32px, 5vw, 56px); line-height: 1.12; margin: 0 0 16px; }
.hero .sub { font-size: 18px; opacity: .95; margin: 0 0 24px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); background: rgba(255,255,255,.06); }
.hero-media img { width: 100%; height: auto; display: block; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: #f7f7f8; }

.two-col { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: start; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chip { background: var(--light); border: 1px solid rgba(0,0,0,.06); padding: 8px 12px; border-radius: 999px; font-size: 13px; }

.highlight-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.highlight-card h3 { margin-top: 0; }
.highlight-card ul { margin: 12px 0 16px; padding-left: 18px; }
.highlight-card li { margin-bottom: 8px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 18px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.08); border-color: var(--gold); }
.card h3, .card h4 { margin: 6px 0 8px; color: var(--navy); }
.card .link { color: var(--gold); text-decoration: none; font-weight: 600; }
.card .link:hover { color: var(--copper); }
.mini { margin: 8px 0 0; padding-left: 18px; }

/* Purpose */
.purpose { background: linear-gradient(180deg, #0f2747, var(--navy)); color: #fff; }
.purpose .lead { font-size: 20px; opacity: .95; }

/* Values + Lists */
.values { margin: 8px 0 0; padding-left: 18px; }
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }

/* Diferenciais section spacing */
.diferenciais { padding-top: 36px; }

/* Serviços section spacing */
.servicos { padding-bottom: 36px; }
.stat { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 24px; text-align: center; }
.num { font-family: 'DM Serif Display', Georgia, serif; font-size: 40px; color: var(--navy); display: block; }
.label { color: var(--muted); font-size: 14px; }

/* CTA Final */
.cta-final { background: linear-gradient(135deg, var(--gold), var(--copper)); color: #fff; text-align: center; }
.cta-final .btn.cta { background: #fff; color: var(--navy); }
.cta-final .btn.cta:hover { background: #f6f6f6; }

/* Footer */
.footer { background: #000000; color: #c9d1d9; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding: 36px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.footer h4 { margin: 0 0 8px; color: #fff; }
.footer a { color: #c9d1d9; text-decoration: none; }
.footer a:hover { color: #fff; }
.quick, .contact { list-style: none; margin: 0; padding: 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; padding: 14px 0; color: #9aa4af; }

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .9s ease both; }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.photo-strip .shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.photo-strip img { width: 100%; height: 260px; object-fit: cover; transform: scale(0.9); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.photo-strip .shot-2 img { object-position: center 30%; }
.photo-strip .shot-3 img { object-position: center 25%; }
.photo-strip .shot:hover img { transform: scale(0.95); }
.photo-strip .shot-2:hover img { transform: scale(0.95); }
.photo-strip .shot-3:hover img { transform: scale(0.95); }

/* Responsive */
@media (max-width: 960px) {
  .top-strip .help-text { 
    right: 0;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; } /* keep simple for MVP */
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img { height: 200px; }
  .photo-strip .shot-3 { display: none; }
  .stats { grid-template-columns: 1fr; }
  
  /* Fix header layout when nav is hidden */
  .site-header .header-inner {
    justify-content: space-between;
  }
  
  /* Center watermark on mobile */
  .hero::before {
    left: 0;
    background-position: center top;
    background-size: 80%;
  }
}

@media (max-width: 768px) {
  .top-strip .container { 
    padding: 12px 20px; 
    min-height: 80px;
    position: relative;
  }
  .top-strip .top-center-content {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1;
  }
  .top-strip .blocked-text,
  .top-strip .help-text {
    position: absolute !important;
    right: auto !important;
    top: -1px !important;
    left: 0 !important;
    transform: none !important;
    text-align: center;
    margin: 1px auto;
    animation: none;
    opacity: 1;
    display: block;
    z-index: 10;
    width: 100%;
  }

  .top-strip .help-text {
    color: var(--gold);
    top: 19px !important;
  }
  .top-strip .social-media-image {
    margin-top: 15px;
    height: 80px;
    width: 200px;
    animation: none;
    transform: none;
    position: relative;
    left: auto;
    top: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
    opacity: 0.6;
  }
  .top-strip .top-logo {
    height: 64px;
    position: relative;
    z-index: 2;
  }
  .top-strip .top-cta {
    position: relative;
    z-index: 2;
    font-size: 0;
  }
  .top-strip .top-cta::after {
    content: "WhatsApp";
    font-size: 12px;
  }
  
  /* Footer mobile styling */
  .footer .container {
    margin-left: 20px;
    position: relative;
  }
  .footer {
    position: relative;
  }
  .footer::after {
    content: "";
    position: absolute;
    bottom: 85px;
    right: 40px;
    width: 150px;
    height: 150px;
    background-image: url('/public/logos/Tblack.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    opacity: 0.4;
    /* border: 1px solid rgba(255,255,255,0.2); */
  }
}

@media (max-width: 520px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
  }
  .site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
  }
  .site-header .brand-logo {
    width: 64px;
    height: 64px;
  }
  .site-header .brand-title {
    font-size: 36px;
  }
  .site-header .brand-sub {
    font-size: 16px;
  }
  .site-header .nav {
    display: none !important;
  }
  .site-header .btn.cta {
    width: calc(100% - 40px);
    text-align: center;
    order: 2;
    margin: 20px 20px 0 20px;
    padding: 10px 16px;
    font-size: 14px;
  }
} 