/* ============================================
   Borra Law — Modern Boutique Stylesheet
   ============================================ */

:root {
  --accent: #0e1a2b;        /* deep navy */
  --accent-2: #1d3557;      /* mid navy */
  --gold: #b8945a;          /* warm gold */
  --gold-soft: #d4b783;     /* soft gold */
  --bg: #fbfaf7;            /* warm off-white */
  --bg-alt: #f4ede1;        /* cream */
  --bg-card: #ffffff;
  --ink: #1a1d24;           /* near-black */
  --ink-soft: #4a4f5a;      /* body grey */
  --muted: #7a808d;
  --line: #e6e1d6;          /* warm hairline */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(14,26,43,0.08), 0 24px 48px rgba(14,26,43,0.12);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }

p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.lede { font-size: 1.2rem; line-height: 1.55; color: rgba(255,255,255,.92); max-width: 36em; }
.muted { color: var(--muted); }

em, i, .italic-gold {
  font-style: italic;
  color: var(--gold);
  font-family: var(--serif);
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

ul, ol { padding-left: 1.4rem; color: var(--ink-soft); }
ul li, ol li { margin-bottom: .5rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.85);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251,250,247,.96);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 1.1rem 2rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand:hover { color: var(--accent); }
.brand-dot { color: var(--gold); }
.brand-sub {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.nav-links {
  list-style: none; display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #fff !important; }
.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  color: var(--accent);
  font-size: 1.6rem;
  padding: 0.4rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--gold); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* ---------- Hero (Homepage) ---------- */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,26,43,.78) 0%, rgba(14,26,43,.55) 60%, rgba(14,26,43,.78) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 44em; color: #fff; }
.hero-content h1 { color: #fff; }
.hero-content h1 em { color: var(--gold-soft); }
.hero-content .lede { color: rgba(255,255,255,.88); margin: 1.4rem 0 2.4rem; }
.hero-content .eyebrow { color: var(--gold-soft); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Page Hero (subpages) ---------- */

.page-hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  color: #fff;
}
.page-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,43,.65) 0%, rgba(14,26,43,.85) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero h1 em { color: var(--gold-soft); }
.page-hero .eyebrow { color: var(--gold-soft); }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,.7); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Two-column layout (3fr / 1fr) ---------- */

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}
.layout-2col .main { min-width: 0; }
.layout-2col .side { position: sticky; top: 100px; }

/* ---------- Side form ---------- */

.side-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.side-form h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.side-form p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.25rem; }

.form-row { margin-bottom: 0.9rem; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,90,.15);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.side-form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }

.quick-contact {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.7rem;
  font-size: 0.88rem;
}
.quick-contact .row { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-soft); }
.quick-contact .row svg { color: var(--gold); flex-shrink: 0; }
.quick-contact a { color: var(--ink-soft); }
.quick-contact a:hover { color: var(--gold); }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-head { max-width: 38em; margin-bottom: 3rem; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img {
  height: 200px;
  background-size: cover; background-position: center;
}
.service-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin: 0.4rem 0 0.6rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- About block ---------- */

.about-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  height: 480px;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- Process / Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  position: relative;
  padding-top: 2.2rem;
}
.step-num {
  position: absolute; top: 0; left: 0;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.step h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* ---------- Blog list ---------- */

.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.blog-card:last-child { border-bottom: 0; padding-bottom: 0; }
.blog-thumb {
  height: 150px;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
}
.blog-meta {
  display: flex; gap: 1rem; align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.blog-card h3 { margin: 0 0 0.6rem; font-size: 1.4rem; }
.blog-card h3 a { color: var(--accent); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { font-size: 0.95rem; margin: 0 0 0.8rem; }
.blog-card .read-more {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.blog-card .read-more:hover { color: var(--accent); }

.tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Post page ---------- */

.post-hero {
  height: 420px;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.post-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,43,0) 50%, rgba(14,26,43,.5) 100%);
}

.post-content { font-size: 1.05rem; }
.post-content h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.post-content h2:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.post-content h3 { margin: 2rem 0 0.8rem; }
.post-content p { margin-bottom: 1.2rem; line-height: 1.75; }
.post-content ul, .post-content ol { margin-bottom: 1.2rem; }
.post-content a { color: var(--gold); border-bottom: 1px solid rgba(184,148,90,.3); }
.post-content a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.post-content strong { color: var(--accent); }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(184,148,90,.18), transparent 40%),
                    radial-gradient(circle at 80% 50%, rgba(184,148,90,.12), transparent 40%);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner h2 em { color: var(--gold-soft); }
.cta-banner p { color: rgba(255,255,255,.82); max-width: 36em; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--accent);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: var(--gold-soft); }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 0.82rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 2rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; }
  .menu-toggle { display: block; }

  .layout-2col {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
  }
  .layout-2col .side { position: static; }

  .about-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { height: 360px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .hero { min-height: 70vh; padding: 3rem 0; }
  .page-hero { padding: 5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-thumb { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  blockquote { padding: 1rem 1.25rem; font-size: 1.15rem; }
}

/* ---------- Logo in header ---------- */
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  transition: opacity .2s var(--ease);
}
.brand-logo:hover { opacity: 0.85; }
.brand-link { display: inline-flex; align-items: center; }
.site-footer .brand-logo { height: 60px; filter: brightness(0) invert(1) brightness(0.95); opacity: 0.9; }

@media (max-width: 720px) {
  .brand-logo { height: 44px; }
}

/* Form submission feedback */
.form-success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
