/* =============================================================
   IPCogito Legal — Shared Stylesheet
   Extracted from index.html for cross-page caching
   Last updated: 2026-03-26
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; font-weight: 400; color: #3A3A3A; background: #FFFFFF; line-height: 1.85; font-size: 17px; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

:root {
  --gold: #B5892A;
  --gold-h: #C9991E;
  --gold-dark: #8B6820;
  --dark: #1A2025;
  --slate: #2C3A42;
  --cream: #F8F5EF;
  --off-white: #FAF8F4;
  --white: #FFFFFF;
  --text: #2D2D2D;
  --muted: #6B7280;
  --border: rgba(181,137,42,0.2);
  --border-light: rgba(0,0,0,0.08);
  --shadow: 0 4px 32px rgba(0,0,0,0.08);
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

.section-label { font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; display: block; }
p { line-height: 1.75; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; background: #FFFFFF; }
.section-alt { background: var(--off-white); }

/* ── Buttons ── */
.btn { display: inline-block; font-family: 'Jost', sans-serif; font-size: 0.96rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.85rem 2rem; border-radius: 2px; transition: all 0.25s ease; cursor: pointer; border: none; }
.btn-gold { background: var(--gold); color: #FFFFFF; }
.btn-gold:hover { background: var(--gold-h); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: #FFFFFF; }
.btn-outline-dark { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: #FFFFFF; }

/* ── BCI Top Banner ── */
.bci-banner { background: var(--dark); padding: 0.4rem 0; text-align: center; position: relative; z-index: 101; }
.bci-banner p { font-size: 0.65rem; color: rgba(255,255,255,0.55); letter-spacing: 0.03em; margin: 0; }

/* ── Navigation ── */
.nav { position: sticky; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); transition: all 0.3s; box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 64px; width: auto; object-fit: contain; }
.nav-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--dark); line-height: 1.2; }
.nav-logo-text span { color: var(--gold); }
.nav-logo-sub { font-size: 0.62rem; color: #999; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #444; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.6rem 1.5rem; border-radius: 2px; background: var(--gold); color: #FFFFFF; transition: background 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--gold-h); color: #FFFFFF; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { width: 22px; height: 2px; background: #444; border-radius: 2px; transition: all 0.3s; display: block; }

/* ── Hero ── */
.hero { background: var(--off-white); min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 90% 40%, rgba(181,137,42,0.06) 0%, transparent 60%), radial-gradient(ellipse 30% 40% at 5% 90%, rgba(181,137,42,0.04) 0%, transparent 50%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; padding: 4rem 0; width: 100%; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(181,137,42,0.4); padding: 0.4rem 1rem; border-radius: 2px; margin-bottom: 1.5rem; background: rgba(181,137,42,0.04); }
.hero h1 { color: var(--dark); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { color: #555; font-size: 1.15rem; max-width: 480px; margin-bottom: 2.25rem; line-height: 1.85; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-divider { width: 40px; height: 2px; background: var(--gold); margin: 1.25rem 0; }
.hero-visual { display: flex; flex-direction: column; gap: 1rem; }
.hero-stat-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 4px; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; transition: all 0.25s; box-shadow: var(--shadow); }
.hero-stat-card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(181,137,42,0.1); }
.hero-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600; color: var(--gold); line-height: 1; min-width: 52px; }
.hero-stat-label { font-size: 0.95rem; color: #555; line-height: 1.45; }

/* ── Trust Bar ── */
.trust { background: var(--dark); border-top: 1px solid rgba(181,137,42,0.12); padding: 1.25rem 0; }
.trust-inner { display: flex; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1.75rem; border-right: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.trust-item:last-child { border-right: none; }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── Practice Grid ── */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden; margin-top: 2.5rem; }
.practice-card { background: #FFFFFF; padding: 2rem 1.5rem; transition: all 0.25s; cursor: pointer; position: relative; overflow: hidden; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.practice-card:nth-child(4n) { border-right: none; }
.practice-card:nth-last-child(-n+4) { border-bottom: none; }
.practice-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.practice-card:hover::after { transform: scaleX(1); }
.practice-card:hover { background: var(--off-white); }
.practice-icon { width: 42px; height: 42px; margin-bottom: 1rem; }
.practice-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--dark); }
.practice-card p { font-size: 1rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.practice-link { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.2s; }
.practice-card:hover .practice-link { gap: 0.7rem; }

/* ── Why Grid ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3rem; }
.why-card { padding: 2.5rem 2rem; border: 1px solid var(--border-light); background: #FFFFFF; position: relative; }
.why-card::before { content: attr(data-num); position: absolute; top: 1.5rem; right: 1.5rem; font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 600; color: rgba(181,137,42,0.08); line-height: 1; }
.why-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; color: var(--dark); }
.why-card p { font-size: 0.96rem; color: var(--muted); }

/* ── Attorney Section ── */
.attorney-grid { display: grid; grid-template-columns: 220px 1fr; gap: 3.5rem; align-items: start; margin-top: 3rem; }
.attorney-photo { width: 220px; height: 260px; background: var(--off-white); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; }
.attorney-photo-placeholder { text-align: center; color: var(--gold); }
.attorney-photo-placeholder svg { display: block; margin: 0 auto 0.5rem; }
.attorney-photo-placeholder span { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.attorney-name { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--dark); margin-bottom: 0.25rem; }
.attorney-title { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.attorney-bio { font-size: 1rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.5rem; max-width: 600px; }
.attorney-credentials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.attorney-badge { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark); border: 1px solid var(--border); padding: 0.35rem 0.85rem; border-radius: 2px; background: #FFFFFF; }

/* ── FAQ ── */
.faq-list { margin-top: 2.5rem; max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q { width: 100%; background: none; border: none; text-align: left; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; cursor: pointer; gap: 1rem; font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 500; color: var(--dark); }
.faq-q:hover { color: var(--gold); }
.faq-icon { width: 24px; height: 24px; border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; color: var(--gold); transition: transform 0.3s; line-height: 1; pointer-events: none; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s; font-size: 1.05rem; color: var(--muted); line-height: 1.9; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.25rem; }

/* ── Blog Grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.blog-card { background: #FFFFFF; border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden; transition: box-shadow 0.25s; }
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card a { display: block; color: inherit; text-decoration: none; }
.blog-card a:hover h3 { color: var(--gold); }
.blog-img { height: 170px; background: var(--off-white); border-bottom: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.blog-body { padding: 1.5rem; }
.blog-tag { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 0.98rem; margin-bottom: 0.5rem; color: var(--dark); line-height: 1.35; }
.blog-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.blog-meta { font-size: 0.73rem; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 0.75rem; }

/* ── CTA Banner ── */
.cta-banner { background: var(--gold); padding: 4.5rem 0; text-align: center; }
.cta-banner h2 { color: #FFFFFF; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1rem; }
.cta-banner .btn-dark { background: var(--dark); color: #FFFFFF; margin: 0 0.4rem; }
.cta-banner .btn-dark:hover { background: var(--slate); }
.cta-banner .btn-ghost { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,0.55); margin: 0 0.4rem; }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ── Footer ── */
.footer { background: var(--dark); padding: 4rem 0 2rem; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-logo img { height: 44px; width: auto; object-fit: contain; }
.footer-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: #FFFFFF; line-height: 1.2; }
.footer-logo-text span { color: var(--gold); }
.footer-tagline { font-size: 0.75rem; color: rgba(255,255,255,0.65); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-offices { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 2; margin-top: 1.25rem; }
.footer-offices strong { color: rgba(255,255,255,0.9); font-weight: 500; display: block; margin-top: 0.75rem; }
.footer-offices strong:first-child { margin-top: 0; }
.footer-col h4 { font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.95rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.75rem; font-size: 0.76rem; color: rgba(255,255,255,0.55); line-height: 1.9; max-width: 920px; }
.footer-bottom { margin-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.74rem; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }

/* ── WhatsApp Floating Button ── */
.wa-float { position: fixed; bottom: 18px; right: 18px; z-index: 999; display: inline-flex; align-items: center; gap: 0.45rem; width: auto; height: auto; padding: 0.75rem 1.3rem; border-radius: 999px; background: #25D366; color: #fff; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 18px rgba(0,0,0,0.18); transition: background 0.2s; white-space: nowrap; }
.wa-float:hover { background: #1EB858; }
.wa-float svg { width: 20px; height: 20px; fill: #FFFFFF; flex-shrink: 0; }
.wa-tooltip { position: absolute; right: 68px; background: var(--dark); color: #FFFFFF; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; white-space: nowrap; padding: 0.4rem 0.85rem; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ── Skip Link (Accessibility) ── */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--gold); color: #fff; padding: 0.5rem 1rem; z-index: 200; font-size: 0.85rem; border-radius: 0 0 4px 4px; }
.skip-link:focus { top: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.74rem; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
  .hero-stat-card { flex: 1 1 calc(50% - 0.5rem); min-width: 140px; padding: 1rem; }
  .hero-stat-num { font-size: 1.8rem; min-width: 36px; }
  .hero-stat-label { font-size: 0.82rem; }
  .hero-stat-label small { display: none; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-card:nth-child(4n) { border-right: 1px solid var(--border-light); }
  .practice-card:nth-child(2n) { border-right: none; }
  .practice-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--border-light); }
  .practice-card:nth-last-child(-n+2) { border-bottom: none; }
  .why-grid { grid-template-columns: 1fr; }
  .attorney-grid { grid-template-columns: 1fr; }
  .attorney-photo { width: 100%; height: 220px; }
  .testi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card:nth-child(2n) { border-right: none; }
  .practice-card { border-right: none !important; border-bottom: 1px solid var(--border-light) !important; }
  .practice-card:last-child { border-bottom: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; padding-left: 1.5rem; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(181,137,42,0.1); width: 100%; }
  .hero-stat-card { flex: 1 1 100%; }
  .wa-float { bottom: 14px; right: 14px; padding: 0.65rem 1.1rem; font-size: 0.7rem; }
  .wa-float svg { width: 18px; height: 18px; }
}

/* ── Mobile Nav ── */
.nav-links .nav-cta-mobile { display: none; }
.nav-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: rgba(255,255,255,0.99); padding: 1.5rem 2rem; gap: 1.25rem; border-bottom: 1px solid var(--border-light); z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.nav-open .nav-links .nav-cta-mobile { display: block; background: var(--gold); color: #FFFFFF; text-align: center; padding: 0.75rem; border-radius: 2px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.5rem; }
@media (min-width: 901px) { .nav-links a[href="/contact"]:not(.nav-cta-mobile) { display: none; } }

/* ── Nav Dropdown ── */

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border-top: 2px solid var(--gold);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
  list-style: none;
  margin: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.nav-submenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-submenu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #c8bfa8;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-submenu li a:hover {
  color: var(--gold);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: block;
}

.nav-dropdown > .nav-link::after {
  content: " \25BE";
  font-size: 0.7em;
  opacity: 0.6;
}


/* -- Trademark Search Float Button -- */
.tm-float {
  position: fixed;
  bottom: 88px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #B5892A;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 8999;
  box-shadow: 0 4px 16px rgba(181,137,42,0.35);
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.tm-float:hover {
  background: #C9991E;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(181,137,42,0.45);
}
.tm-float svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .tm-float {
    bottom: 82px;
    right: 16px;
    font-size: 0.78rem;
    padding: 0.55rem 0.9rem;
  }
}
