/* ==========================================================================
   Paralegal Genius — Original structure, elevated typography
   Instrument Serif (display) + DM Sans (body) + PT Mono (brand)
   Matches Wix layout: diagonal section dividers, colored backgrounds
   ========================================================================== */

:root {
  --bg-cream: #FCF5EE;
  --bg-brown: #4D2600;
  --bg-orange: #F07F29;
  --bg-gold: #FFC313;
  --text-dark: #1A0E08;
  --text-body: #4D2600;
  --text-light: #FCF5EE;
  --text-muted: #6D462E;
  --accent: #F07F29;
  --accent-hover: #d96d1e;
  --white: #FFFFFF;
  --border-color: #4D2600;

  --font-display: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-brand: 'PT Mono', monospace;

  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border: 2px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ==========================================================================
   Header — matches Wix: logo left, nav right, single CTA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-cream);
  border-bottom: 2px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-brand img { width: 50px; height: 50px; }
.header-brand-text { display: flex; flex-direction: column; }
.header-brand-name {
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--text-body);
}
.header-brand-tagline {
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--text-body);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  transition: color 0.2s;
}
.header-nav a:not(.btn):hover { color: var(--accent); }

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-body);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ==========================================================================
   Hero — side by side, large image
   ========================================================================== */
.hero {
  padding: 80px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-content h1 em {
  color: var(--accent);
}
.hero-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: var(--text-muted);
}
.hero-image img {
  width: 100%;
  border-radius: 8px;
}

/* ==========================================================================
   Badges — three columns
   ========================================================================== */
.badges {
  padding: 60px 0;
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.badge-icon { width: 56px; height: 56px; margin: 0 auto 12px; }
.badge-icon svg { width: 100%; height: 100%; fill: var(--accent); }
.badge h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.badge p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ==========================================================================
   Diagonal Section Dividers — matches Wix wave/diagonal shapes
   ========================================================================== */
.diagonal-top {
  height: 80px;
  width: 100%;
}
.diagonal-bottom {
  height: 80px;
  width: 100%;
}
.diagonal-brown.diagonal-top {
  background: linear-gradient(to bottom right, var(--bg-cream) 49.8%, var(--bg-brown) 50%);
}
.diagonal-brown.diagonal-bottom {
  background: linear-gradient(to bottom right, var(--bg-brown) 49.8%, var(--bg-cream) 50%);
}
.diagonal-orange.diagonal-top {
  background: linear-gradient(to bottom right, var(--bg-cream) 49.8%, var(--bg-orange) 50%);
}
.diagonal-orange.diagonal-bottom {
  background: linear-gradient(to bottom right, var(--bg-orange) 49.8%, var(--bg-cream) 50%);
}

/* ==========================================================================
   Revolutionizing — dark brown background
   ========================================================================== */
.section-dark {
  background: var(--bg-brown);
  color: var(--text-light);
  padding: 60px 0;
}
.rev-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
}
.rev-content h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.rev-content p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(252, 245, 238, 0.85);
}
.rev-content .drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  margin-right: 10px;
  margin-top: 4px;
  color: var(--accent);
}
.rev-image img {
  width: 100%;
  border-radius: 8px;
}

/* ==========================================================================
   Product Section
   ========================================================================== */
.product {
  padding: 80px 0 40px;
  text-align: center;
}
.product h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.product-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Features — orange background
   ========================================================================== */
.section-orange {
  background: var(--bg-orange);
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.feature-card {
  background: var(--bg-cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.feature-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-dark);
  padding: 24px 24px 12px;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0 24px 24px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  padding: 80px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-content h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.cta-content h2 em {
  color: var(--accent);
}
.cta-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cta-image img {
  width: 100%;
  border-radius: 8px;
}

/* ==========================================================================
   Contact — gold/yellow background like Wix
   ========================================================================== */
.contact {
  background: var(--bg-gold);
  padding: 80px 0;
  text-align: center;
}
.contact h2 {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.contact-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 40px;
}
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

/* --- Form Styles --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 6px;
}
.form-group .required {
  color: var(--accent);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 0;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234D2600' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  padding: 16px;
}
.cf-turnstile {
  margin-bottom: 16px;
}
.form-status {
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  min-height: 24px;
}
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 60px 0 32px;
  text-align: center;
  border-top: 2px solid var(--border-color);
}
.footer-logo {
  width: 85px; height: 85px;
  margin: 0 auto 16px;
}
.footer-brand-name {
  font-family: var(--font-brand);
  font-size: 48px;
  color: var(--text-body);
  margin-bottom: 4px;
}
.footer-brand-name a { color: inherit; }
.footer-tagline {
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--text-body);
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.legal-page { padding: 60px 0 80px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.02em;
}
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-dark);
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-content p { margin-bottom: 16px; }
.legal-content ul { margin-bottom: 16px; padding-left: 24px; }
.legal-content ul li { margin-bottom: 8px; list-style: disc; }
.legal-content .contact-info { margin-top: 24px; line-height: 1.8; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content h1 { font-size: 34px; }
  .badges-grid { grid-template-columns: 1fr; gap: 32px; }
  .rev-grid { grid-template-columns: 1fr; gap: 32px; }
  .rev-image { max-width: 300px; }
  .features-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-image { max-width: 400px; }
  .contact h2 { font-size: 38px; }
  .footer-brand-name { font-size: 32px; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .hamburger { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .header-nav.is-open { display: flex; }
  .header-nav .btn { width: 100%; text-align: center; }
  .hero { padding: 48px 0; }
  .hero-content h1 { font-size: 28px; }
  .diagonal-top, .diagonal-bottom { height: 50px; }
  .section-dark, .section-orange { padding: 40px 0; }
  .product { padding: 48px 0 24px; }
  .product h2, .rev-content h2, .cta-content h2 { font-size: 28px; }
  .contact h2 { font-size: 32px; }
  .legal-page h1 { font-size: 28px; }
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent); color: var(--white);
  padding: 12px 24px; z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
