/* ===========================================================
   Lloyd & JOHNSON — redesign design system
   Modern minimalist / editorial-premium legal aesthetic
   =========================================================== */

:root {
  --ink: #0a2540;         /* deep chartered blue */
  --ink-soft: #4a5560;
  --paper: #f7f8f6;
  --paper-alt: #ffffff;
  --line: #dde3e0;
  --accent: #147a42;      /* chartered green */
  --accent-soft: #d9ece1;
  --brass: #0f6fa8;       /* chartered blue, used for small labels */
  --radius: 2px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.1vw, 2.88rem); font-weight: 460;color: var(--paper-alt) }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.89rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.9em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--ink { background: var(--ink); color: #f4f2ec; }
.section--ink p { color: #b9c1c4; }
.section--ink h2, .section--ink .eyebrow { color: #f4f2ec; }
.section--alt { background: var(--paper-alt); }
.hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--ink-soft);
  padding: 8px 0; border-bottom: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto; padding-left: 32px; padding-right: 32px;
}
.topbar a { color: var(--ink-soft); }
.navwrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 6px 32px;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: "Fraunces", serif; font-size: 1.25rem; letter-spacing: 0.01em; }
.logo img { height: 100%; width: auto; display: block; }
.navlinks { display: flex; align-items: center; gap: 34px; font-size: 0.95rem; font-weight: 500; }
.navlinks a { padding: 6px 6px; border-bottom: 1px solid transparent; }
.navlinks a:hover, .navlinks a.active { border-bottom-color: var(--accent); }
.navlinks .dropdown { position: relative; z-index: 9999; }
.navlinks .dropdown-panel {
  display: none; position: absolute; top: 100%; left: -20px;
  background: var(--paper-alt); border: 1px solid var(--line); width: 380px;
  padding: 14px; box-shadow: 0 18px 40px rgba(20,24,29,0.08);
}
.navlinks .dropdown:hover .dropdown-panel { display: block; }
.dropdown-panel a { display: block; padding: 9px 10px; font-size: 0.83rem; color: var(--ink-soft); border-bottom: none; }
.dropdown-panel a:hover { background: var(--paper); color: var(--ink); }
.navcta { border: 1px solid var(--ink); padding: 10px 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.navcta:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  background: var(--ink); color: #f4f2ec;
  padding: 120px 0 100px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%;
  width: 620px; height: 620px; border: 1px solid rgba(244,242,236,0.14);
  border-radius: 50%;
}
.hero::before {
  content: ""; position: absolute; right: 6%; top: 4%;
  width: 420px; height: 420px; border: 1px solid rgba(244,242,236,0.10);
  border-radius: 50%;
}
.hero-inner {position: relative; z-index: 2; }
.hero p.lead { font-size: 1.15rem; color: #c4cbcd; max-width: 560px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 32px; justify-content: center;}
.hero-stats { display: flex; gap: 56px; margin-top: 72px; position: relative; z-index: 2; flex-wrap: wrap;justify-content: center; }
.hero-stats .num { font-family: "Roboto Condensed", sans-serif; font-size: 2.1rem; color: #fff; }
.hero-stats .lbl { font-size: 0.78rem; color: #9aa4a7; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* Page header (non-home) */
.pagehead { background: var(--ink); color: #f4f2ec; padding: 76px 0 56px; }
.pagehead .crumbs { font-size: 0.8rem; color: #9aa4a7; margin-bottom: 14px; }
.pagehead .crumbs a { color: #c4cbcd; }
.pagehead p { color: #b9c1c4; max-width: 640px; }

/* Grid utilities */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Practice cards */
.pcard {
  border: 1px solid var(--line); background: var(--paper-alt);
  padding: 34px 30px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.pcard:hover { border-color: var(--accent); transform: translateY(-3px);background-color:var(--ink); color: #fff !important; }
.pcard:hover h3 {color: var(--paper-alt); }


.pcard .pnum { font-family: "Fraunces", serif; color: var(--brass); font-size: 0.95rem; }
.pcard h3 { margin-top: 14px; margin-bottom: 10px; font-size: 1.08rem; }
.pcard p { font-size: 0.92rem; margin-bottom: 14px; }
.pcard .more { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--accent); }

/* Two column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

/* Why us */
.why-item { border-top: 1px solid var(--line); padding-top: 22px; }
.why-item .why-idx { font-family: "Fraunces", serif; font-size: 1rem; color: var(--brass); }

/* Team */
.tcard { text-align: left; }
.tcard img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; object-position: top; border: 1px solid var(--line); background: #eee; }
.tcard .tname { margin-top: 0px; font-size: 1.02rem; }
.tcard .trole { font-size: 0.8rem; color: var(--brass); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.tcard .tdeg { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.tcard p.bio { font-size: 0.88rem; margin-top: 10px; }

/* Stats strip */
.statstrip { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid rgba(244,242,236,0.16); border-bottom: 1px solid rgba(244,242,236,0.16); }
.statstrip div { padding: 24px 20px; text-align: center; border-left: 1px solid rgba(244,242,236,0.16); }
.statstrip div:first-child { border-left: none; }
.statstrip .num { font-family:"Roboto Condensed", sans-serif; font-size: 2.2rem; color: #fff; }
.statstrip .lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9aa4a7; margin-top: 6px; }

/* Offices */
.office-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.office-list div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 22px; font-size: 0.92rem; }

/* Footer */
footer { background: var(--ink); color: #b9c1c4; padding: 72px 0 28px; font-size: 0.9rem; }
footer h4 { color: #f4f2ec; font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 18px; }
footer a { color: #b9c1c4; }
footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(244,242,236,0.14); display: flex; justify-content: space-between; font-size: 0.78rem; color: #7d8689; flex-wrap: wrap; gap: 10px; }
.foot-logo { font-family: "Fraunces", serif; font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.foot-logo-chip { display: inline-block; padding: 4px 4px; border-radius: 3px; margin-bottom: 18px; }
.foot-logo-chip img { height: 67px; width: auto; display: block; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper-alt);
  padding: 13px 14px; font-family: "Inter", sans-serif; font-size: 0.95rem; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.contact-block { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-block:first-child { border-top: none; padding-top: 0; }
.contact-block .lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass); margin-bottom: 6px; display:block; }

@media (max-width: 980px) {
  .navlinks, .topbar { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .statstrip, .office-list { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .statstrip, .office-list { grid-template-columns: repeat(1,1fr); }
}








.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;


    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

   background: var(--ink);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   MOBILE CONTACT
========================================================= */

.mobile-contact {
    display: none;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 768px) {

    /* -------------------------
       TOP BAR
    ------------------------- */

    .topbar {
        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 4px;

        padding: 8px 15px;

        text-align: center;

        font-size: 11px;
    }


    /* -------------------------
       NAV WRAP
    ------------------------- */

    .navwrap {
        padding: 12px 15px;
    }


    /* -------------------------
       LOGO
    ------------------------- */

    .logo img {
        max-width: 180px;
    }


    /* -------------------------
       HIDE DESKTOP CONTACT
    ------------------------- */

    .navcta {
        display: none;
    }


    /* -------------------------
       HAMBURGER
    ------------------------- */

    .menu-toggle {
        display: flex;
    }


    /* -------------------------
       MOBILE NAV
    ------------------------- */

    .navlinks {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        padding: 10px 15px;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: var(--paper-alt);

        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);

        box-shadow:
            0 15px 30px rgba(20, 24, 29, 0.08);

        z-index: 9999;
    }


    /* OPEN MENU */

    .navlinks.active {
        display: flex;
    }


    /* -------------------------
       MAIN MOBILE LINKS
    ------------------------- */

    .navlinks > a {
        display: block;

        width: 100%;

        padding: 13px 5px;

        border-bottom: 1px solid var(--line);
    }


    /* -------------------------
       DROPDOWN
    ------------------------- */

    .dropdown {
        width: 100%;
    }

    .dropdown-title {
        width: 100%;

        padding: 13px 5px;

        justify-content: space-between;

        border-bottom: 1px solid var(--line);

        box-sizing: border-box;
    }


    /* Hide dropdown initially */

    .navlinks .dropdown-panel {
        display: none;

        position: static;

        width: 100%;

        margin: 0;

        padding: 5px 0 5px 10px;

        background: transparent;

        border: none;

        box-shadow: none;
    }


    /* Open dropdown */

    .dropdown.open .dropdown-panel {
        display: block;
    }


    /* Rotate arrow */

    .dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }


    /* Dropdown items */

    .dropdown-panel a {
        display: block;

        padding: 10px 5px;

        font-size: 12px;

        border-bottom: 1px solid var(--line);
    }


    /* -------------------------
       MOBILE CONTACT
    ------------------------- */

    .mobile-contact {
        display: block !important;

        margin-top: 8px;

        padding: 13px 15px !important;

        background: var(--accent);

        color: #fff !important;

        text-align: center;

        border: none !important;
    }


    /* -------------------------
       HAMBURGER ANIMATION
    ------------------------- */

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .topbar {
        padding: 7px 10px;

        font-size: 9px;

        line-height: 1.4;
    }

    .navwrap {
        padding: 10px 12px;
    }

    .logo img {
        max-width: 250px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .menu-toggle span {
        width: 20px;
		background: var(--ink)
    }

    .navlinks {
        padding: 8px 12px;
    }

    .navlinks > a,
    .dropdown-title {
        font-size: 13px;
    }

    .dropdown-panel a {
        font-size: 11px;
    }
}





  /* Floating LinkedIn Button */
  .linkedin-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #0A66C2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
  }

  .linkedin-float svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .linkedin-float span {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    font-size: 14px;
    font-weight: 600;
    transition: max-width 0.25s ease, opacity 0.2s ease, margin-left 0.25s ease;
  }

  .linkedin-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.5);
    border-radius: 28px;
    padding: 0 18px;
  }

  .linkedin-float:hover span {
    max-width: 140px;
    opacity: 1;
    margin-left: 10px;
  }

  /* Pulse ring to draw attention (optional, remove if not wanted) */
  .linkedin-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #0A66C2;
    animation: pulse 2.2s ease-out infinite;
    pointer-events: none;
  }

  @keyframes pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
  }

  @media (max-width: 480px) {
    .linkedin-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
    .linkedin-float:hover { padding: 0 14px; }
  }





