﻿/* ============================================================
   CEZI COLA DESIGN SYSTEM — Dr. Estevão Cursi Advocacia
   Dark Mode Enterprise | Glassmorphism | WCAG AAA
   ============================================================ */

:root {
  /* Color Palette - Azul Petróleo Premium */
  --bg-primary: #031016;
  --bg-secondary: #051821;
  --bg-card: #08222e;
  --bg-card-hover: #0c2f3f;

  --accent-blue: #c7a86b;
  --accent-purple: #a88a56;
  --accent-green: #7f9562;
  --accent-gold: #d9ba7a;

  --text-primary: #f4efe4;
  --text-secondary: #ddd3bf;
  --text-muted: #a99c83;

  /* Typography */
  --font-primary:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-heading: "Georgia", "Times New Roman", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Header offsets */
  --header-offset-desktop: 160px;
  --header-offset-mobile: 160px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(18, 31, 51, 1) 0%,
      var(--bg-primary) 70%
    ),
    radial-gradient(
      ellipse at 80% -20%,
      rgba(217, 186, 122, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 20% 120%,
      rgba(217, 186, 122, 0.05) 0%,
      transparent 40%
    );
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-purple);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 160px;
  background: rgba(11, 20, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(199, 168, 107, 0.2);
  z-index: 1000;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  background: rgba(11, 20, 36, 0.95);
  border-bottom: 1px solid rgba(199, 168, 107, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  color: var(--text-primary);
  flex-shrink: 0;
  margin-top: -30px;
}

.nav__logo span {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.nav__logo img {
  height: 144px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(199, 168, 107, 0.3));
  transform: scale(1.5) translateY(-10px);
  transform-origin: left top;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav__link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav__link:hover {
  color: var(--accent-blue);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition-base);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.nav__toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: calc(100vh - var(--header-offset-desktop));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.25rem 0 3.75rem;
  margin-top: var(--header-offset-desktop);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(199, 168, 107, 0.2);
  background-color: var(--bg-primary);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(3, 16, 22, 0.85), rgba(3, 16, 22, 0.85)),
    linear-gradient(
      180deg,
      rgba(199, 168, 107, 0.12) 0%,
      rgba(11, 20, 36, 0.05) 45%,
      rgba(11, 20, 36, 0) 100%
    );
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(199, 168, 107, 0.15) 0%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.hero__title {
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-secondary);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 1s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__cta {
  display: inline-flex;
  gap: var(--spacing-md);
  animation: fadeInUp 1.2s ease;
}

/* ============================================================
   CARDS & COMPONENTS
   ============================================================ */

.card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(22, 37, 59, 0.7) 0%,
    rgba(18, 31, 51, 0.9) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(199, 168, 107, 0.15);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 168, 107, 0.6),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    145deg,
    rgba(27, 45, 70, 0.85) 0%,
    rgba(22, 37, 59, 0.95) 100%
  );
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(199, 168, 107, 0.08);
  border-color: rgba(199, 168, 107, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(199, 168, 107, 0.15) 0%,
    rgba(199, 168, 107, 0.02) 100%
  );
  border: 1px solid rgba(199, 168, 107, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--accent-gold);
}

.card__title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card__description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, #1e4b82 0%, #0a2540 100%);
  color: #ffffff;
  box-shadow:
    0 4px 15px rgba(10, 37, 64, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(30, 75, 130, 0.5);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2a5b8f 0%, #113458 100%);
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(10, 37, 64, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--secondary {
  background: rgba(199, 168, 107, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text-primary);
  border: 1px solid rgba(199, 168, 107, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
  background: rgba(199, 168, 107, 0.12);
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 20px rgba(199, 168, 107, 0.15);
  color: #fff;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */

input,
select,
textarea {
  width: 100%;
  padding: 1rem var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(199, 168, 107, 0.2) !important;
  background: rgba(11, 20, 36, 0.5) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--accent-gold) !important;
  background: rgba(11, 20, 36, 0.8) !important;
  box-shadow:
    0 0 0 3px rgba(199, 168, 107, 0.25),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #6a7485;
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: linear-gradient(
    180deg,
    rgba(8, 12, 23, 0.95) 0%,
    rgba(3, 5, 10, 1) 100%
  );
  border-top: 1px solid rgba(199, 168, 107, 0.15);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 168, 107, 0.5),
    transparent
  );
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.footer__section h4 {
  margin-bottom: var(--spacing-md);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1rem;
}

.footer__section ul {
  list-style: none;
}

.footer__section li {
  margin-bottom: var(--spacing-sm);
}

.footer__section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer__section a:hover {
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.footer__bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(199, 168, 107, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 var(--spacing-sm);
  }

  .nav {
    padding: 0;
  }

  .nav__logo img {
    height: 132px;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-offset-mobile);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-offset-mobile));
    background: rgba(11, 20, 36, 0.98);
    border-top: 1px solid rgba(199, 168, 107, 0.25);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--spacing-xl) var(--spacing-md);
    z-index: 999;
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    margin-top: var(--header-offset-mobile);
    min-height: calc(100vh - var(--header-offset-mobile));
    padding: var(--spacing-xl) 0;
  }

  .hero__title {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.15;
  }

  .hero__subtitle {
    font-size: clamp(1.05rem, 5.2vw, 1.35rem);
    margin-bottom: var(--spacing-lg);
  }

  .hero__subtitle br {
    display: none;
  }

  .nav__link {
    font-size: 1.05rem;
    padding: 0.75rem 0;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav__logo img {
    height: 156px;
  }

  .hero {
    margin-top: 160px;
    min-height: calc(100vh - 160px);
  }

  .hero__subtitle br {
    display: none;
  }

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

@media (min-width: 1025px) {
  .container {
    max-width: 1200px;
  }

  .nav__menu {
    gap: 2.25rem;
  }

  .nav__link {
    font-size: 1.05rem;
  }

  .hero__cta {
    gap: 1.25rem;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .btn {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}
.mt-2 {
  margin-top: var(--spacing-md);
}
.mt-3 {
  margin-top: var(--spacing-lg);
}
.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}
.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.accent-blue,
.accent-purple,
.accent-gold,
.accent-green {
  background: linear-gradient(
    135deg,
    #f4efe4 0%,
    var(--accent-gold) 40%,
    #a88a56 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-gold); /* fallback */
  display: inline-block;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* ============================================================ */

/* ============================================================ */
/* NEW PROFESSIONAL CARDS & AI IMAGERY                          */
/* ============================================================ */
.image-card {
  position: relative;
  background: rgba(18, 31, 51, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(199, 168, 107, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.image-card:hover {
  transform: translateY(-5px);
  border-color: rgba(199, 168, 107, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.image-card__img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.image-card__img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(0deg, rgba(18, 31, 51, 1) 0%, transparent 100%);
}

.image-card__content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    145deg,
    rgba(22, 37, 59, 0.7) 0%,
    rgba(18, 31, 51, 0.9) 100%
  );
}

.image-card__title {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.image-card__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.image-card__action {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
