/* ============================================================
   Makler & Baker LLP — Modern site stylesheet
   lemon-buy-back.com — responsive, accessible, SEO-friendly
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2b2f36;
  background: #eef1f5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.25; color: #1c2f5a; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

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

a { color: #14618f; }
a:hover { color: #0b3d5c; }

.clr { clear: both; }

/* ---------- Layout container ---------- */
#container {
  max-width: 1140px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 30px rgba(20, 30, 60, .12);
  overflow: hidden;
}
.cwrap { position: relative; }

/* ---------- Header ---------- */
#header { background: #1c2f5a; color: #fff; }
#header .wrapper { padding: 0; }

#head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 22px 30px;
  background: linear-gradient(135deg, #16294f 0%, #22406f 100%);
}
#logo {
  max-width: 520px;
  font-size: 1.15rem;
}
#logo a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 1.35rem;
  line-height: 1.2;
}
#logo a:hover { color: #ffd479; }
#logo a .second { color: #ffd479; }

#tagline {
  max-width: 300px;
  text-align: right;
  font-size: .95rem;
}
#tagline a { color: #cfe0f5; text-decoration: none; }
#tagline a:hover { color: #fff; text-decoration: underline; }

/* ---------- Main navigation ---------- */
#topnav {
  background: #0f1d3a;
  border-top: 3px solid #c99a3c;
}
#topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#topnav > ul > li { position: relative; }
#topnav ul li strong,
#topnav ul li a {
  display: block;
  padding: 13px 16px;
  color: #eef3fb;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}
#topnav ul li a:hover,
#topnav > ul > li:hover > a {
  color: #0f1d3a;
  background: #ffd479;
}
#topnav ul li.current > a,
#topnav ul li.active > a { background: rgba(255, 212, 121, .18); }

/* Dropdown submenu */
#topnav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  z-index: 1000;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
#topnav ul li:hover > ul,
#topnav ul li:focus-within > ul { display: block; }
#topnav ul li ul li { float: none; }
#topnav ul li ul li a {
  color: #1c2f5a;
  font-weight: 500;
  white-space: normal;
  border-bottom: 1px solid #eef1f5;
}
#topnav ul li ul li a:hover { background: #f2f6fb; color: #14618f; }
#topnav ul li ul li:last-child a { border-bottom: none; }

/* ---------- Main content region ---------- */
#main { background: #fff; }
#main .mwrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Breadcrumbs */
#breadcrumbs {
  font-size: .85rem;
  color: #6a7280;
  border-bottom: 1px solid #e6e9ef;
  background: #fafbfc;
  width: 100%;
}
#breadcrumbs .wrapper { padding: 12px 30px; }
#breadcrumbs a { color: #14618f; text-decoration: none; }
#breadcrumbs a:hover { text-decoration: underline; }
#breadcrumbs span { color: #4a515c; font-weight: 600; }

/* Content column */
#content { flex: 2 1 720px; min-width: 0; }
#content .bodytext { padding: 28px 34px 34px; }
#content .bodytext .description { max-width: 100%; }
#content .bodytext p { margin-bottom: 1.1em; }
#content .bodytext ol, #content .bodytext ul { margin: 0 0 1.1em 1.3em; }
#content .bodytext li { margin-bottom: .5em; }
#content .bodytext a { text-decoration: underline; }
#content .bodytext a.spcl { text-decoration: none; font-weight: 700; color: #14618f; }

/* ---------- Sidebar ---------- */
#fragments,
#left.sidebar {
  flex: 1 1 300px;
  min-width: 260px;
  background: #f6f8fb;
  border-left: 1px solid #e6e9ef;
  padding: 24px 26px 30px;
}
.sidebar .fragment,
#fragments .fragment {
  margin-bottom: 26px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 18px;
}
.fragment h4 {
  font-size: 1.1rem;
  color: #1c2f5a;
  border-bottom: 2px solid #ffd479;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.fragment h4 a { color: #1c2f5a; text-decoration: none; }
.fragment .description { font-size: .95rem; color: #3a4150; }
.fragment img { margin-bottom: 8px; border-radius: 6px; }
.fragment h5 { color: #b4530a; font-size: 1rem; text-transform: uppercase; margin: 6px 0; }
.fragment .description ul { list-style: none; margin: 0; padding: 0; }
.fragment .description ul li { padding: 3px 0; }

/* Free case review CTA */
#fragfreecase .description {
  font-size: .95rem;
  text-align: center;
}
#fragfreecase h5 {
  font-size: 1.4rem;
  color: #b4530a;
  margin: 8px 0;
}

/* ---------- Contact form (sidebar) ---------- */
#contactform form { margin: 0; }
#contactform label { display: block; font-size: .8rem; color: #5a6472; text-transform: uppercase; letter-spacing: .4px; margin-top: 10px; }
#contactform input[type="text"],
#contactform textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: .95rem;
  margin-top: 3px;
}
#contactform input:focus,
#contactform textarea:focus { outline: none; border-color: #14618f; box-shadow: 0 0 0 2px rgba(20,97,143,.15); }
#contactform .submit { display: block; margin-top: 12px; }
#contactform .submit button {
  background: #1c2f5a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
#contactform .submit button:hover { background: #c99a3c; }

/* ---------- Homepage intro / hero ---------- */
.intro {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #1c2f5a 0%, #2b4a83 100%);
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 26px;
}
.intro h3 {
  width: 100%;
  color: #ffd479;
  font-size: 1.6rem;
  padding: 22px 26px 0;
  background: none;
  line-height: 1.2;
}
.intro div.l { flex: 1 1 60%; padding: 16px 26px 22px; }
.intro div.r { flex: 1 1 40%; padding: 16px 0 16px 22px; border-left: 1px solid rgba(255,255,255,.25); }
.intro div.l p { color: #e8edf7; }
.intro a.spcl { color: #ffd479; font-weight: 700; }
.intro div.r a {
  display: block;
  padding: 10px 14px;
  color: #ffd479;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.intro div.r a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Content fragments (homepage cards) ---------- */
.globalcfrags, .cfrags { width: 100%; }
.cfrags .fragment,
.globalcfrags .fragment {
  width: 100%;
  margin: 14px 0;
  padding: 4px 0 0;
  background: none;
  border: none;
  border-top: 1px solid #e6e9ef;
}
.cfrags .fragment .description { font-size: .98rem; color: #3a4150; }
.cfrags .fragment h4 { border-bottom: none; padding-bottom: 0; }
.cfrags .fragment h4 a { color: #1c2f5a; }
.cfrags .fragment img { float: left; margin: 4px 16px 10px 0; }

/* ---------- Footer ---------- */
#footer {
  background: #141e36;
  color: #cdd6e6;
  border-top: 4px solid #c99a3c;
  margin-top: 40px;
}
.fcontainer { padding: 34px 34px 20px; }
#footer #address { margin-bottom: 22px; }
#footer #address h4 { color: #ffd479; font-size: 1.15rem; }
#footer #address p { float: left; width: 46%; margin: 0 4% 0 0; }
#footer #address strong { color: #fff; }
#footer #address span.contacts { display: block; clear: both; padding-top: 12px; }
#footer #address a { color: #cfe0f5; }
#footer #footernav { margin-bottom: 16px; }
#footer #footernav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
#footer #footernav ul li a {
  padding: 4px 14px;
  color: #cdd6e6;
  text-decoration: none;
  border-right: 1px solid #3a4766;
  font-size: .9rem;
}
#footer #footernav ul li:last-child a { border-right: none; }
#footer #footernav ul li a:hover { color: #ffd479; }
#footer .copyright { font-size: .88rem; color: #9aa7bd; padding: 6px 0; }
#footer .copyright a { color: #cfe0f5; text-decoration: none; }
#footer .copyright a:hover { text-decoration: underline; }
#footer .credits { font-size: .8rem; color: #7c88a1; margin-top: 10px; }

/* ---------- Homepage value modules ---------- */
.home-modules { padding: 6px 34px 30px; width: 100%; }
.home-section { margin: 0 0 30px; }
.home-section h2 {
  font-size: 1.45rem;
  color: #1c2f5a;
  border-bottom: 3px solid #ffd479;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.benefit { background: #f6f8fb; border: 1px solid #e6e9ef; border-left: 4px solid #c99a3c; border-radius: 8px; padding: 16px; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit p { font-size: .95rem; color: #3a4150; margin: 0; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.guide-card { display: block; background: #fff; border: 1px solid #e6e9ef; border-radius: 10px; padding: 18px; text-decoration: none; box-shadow: 0 2px 8px rgba(20,30,60,.06); transition: transform .12s ease, box-shadow .12s ease; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,30,60,.12); }
.guide-card h3 { font-size: 1.05rem; color: #14618f; margin-bottom: 6px; }
.guide-card p { font-size: .92rem; color: #3a4150; margin: 0; }

.practice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.practice-link { background: #eef2f8; border: 1px solid #d8dfeb; color: #1c2f5a; font-weight: 600; padding: 8px 16px; border-radius: 20px; text-decoration: none; font-size: .95rem; }
.practice-link:hover { background: #ffd479; color: #0f1d3a; }

.faq-list { list-style: none; margin: 0 0 10px; padding: 0; }
.faq-list li { padding: 6px 0; border-bottom: 1px dashed #dfe4ec; }
.faq-list li a { color: #14618f; text-decoration: none; font-weight: 500; }
.faq-list li a:hover { text-decoration: underline; }

@media (max-width: 560px) { .home-modules { padding: 6px 18px 24px; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #main .mwrap { flex-direction: column; }
  #fragments, #left.sidebar { border-left: none; border-top: 1px solid #e6e9ef; }
  #head { flex-direction: column; align-items: flex-start; gap: 10px; }
  #tagline { text-align: left; }
  #topnav ul li a { white-space: normal; }
  #topnav ul li ul { position: static; box-shadow: none; background: #12223f; }
  #topnav ul li ul li a { color: #d6e2f5; border-bottom-color: #33436b; }
  #footer #address p { float: none; width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  #content .bodytext { padding: 20px 18px 26px; }
  #breadcrumbs .wrapper { padding: 10px 18px; }
  .intro div.r { border-left: none; }
  h1 { font-size: 1.6rem; }
  #footer #footernav ul li a { border-right: none; padding: 6px 14px 6px 0; }
}
