/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  --burgundy: #350E0D;
  --burgundy-2: #4A1210;
  --burgundy-light: #5C1A18;
  --burgundy-lighter: rgba(53, 14, 13, .35);

  --gold: #CFAB68;
  --gold-light: #E2C891;

  --cream: #F5F0E8;

  --ink: #1E1715;
  --muted: #716865;
  --white: #fff;

  --border: rgba(53, 14, 13, .14);

  --shadow:
    0 20px 60px rgba(30, 23, 21, .10);

  --serif:
    "Cormorant Garamond",
    Georgia,
    serif;

  --sans:
    "DM Sans",
    Arial,
    sans-serif;

  --max: 1240px;

  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--white);
  line-height: 1.65;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 10px;
  z-index: 9999;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(53, 14, 13, .08);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
}

.nav-links a {
  padding: 29px 0;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--burgundy);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .25s;
}

.nav-cta:hover,
.btn:hover {
  background: var(--burgundy-2);
  transform: translateY(-2px);
}

.btn-light {
  background: transparent;
  color: var(--burgundy);
  border-color: rgba(53, 14, 13, .28);
}

.btn-light:hover {
  background: var(--cream);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--burgundy);
  font-size: 27px;
}

.menu-toggle[aria-expanded="true"] {
  font-size: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  content: "\2715";
  font-size: 27px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 760px;
  padding-top: 82px;
  background:
    linear-gradient(
      90deg,
      rgba(53, 14, 13, .96) 0%,
      rgba(53, 14, 13, .84) 43%,
      rgba(53, 14, 13, .38) 100%
    ),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=2200&q=85')
    center / cover;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-inner {
  max-width: 780px;
  padding: 90px 0;
}

.eyebrow,
.kicker {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 108px);
  line-height: .9;
  margin: 20px 0 28px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.hero p {
  font-size: 18px;
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 34px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.hero .btn-light:hover {
  background: rgba(255, 255, 255, .1);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section { padding: 105px 0; }
.section-cream { background: var(--cream); }
.section-burgundy { background: var(--burgundy); color: #fff; }


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.section-head h2,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: .98;
  font-size: clamp(36px, 6vw, 78px);
  margin: 12px 0 0;
  letter-spacing: -.02em;
}

.section-head p {
  max-width: 430px;
  color: var(--muted);
  margin: 0;
}

.section-burgundy .section-head p {
  color: rgba(255, 255, 255, .7);
}


/* =========================================================
   TRUST / VALUES GRID
   ========================================================= */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  padding: 30px 24px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background-color 0.35s ease, transform 0.35s ease;
}

.trust-item:last-child { border-right: 0; }

.trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height 0.35s ease;
}

.trust-item:hover {
  background-color: rgba(245, 240, 232, 0.45);
  transform: translateX(5px);
}

.trust-item:hover::before { height: 100%; }

.trust-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 7px;
}

.trust-item span {
  font-size: 13px;
  color: var(--muted);
}


/* =========================================================
   SPLIT CONTENT
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.editorial-image {
  min-height: 540px;
  background:
    url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?auto=format&fit=crop&w=1400&q=85')
    center / cover;
}

.copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 70px);
  line-height: .98;
  font-weight: 500;
  margin: 15px 0 22px;
}

.copy p {
  color: var(--muted);
  max-width: 600px;
}


/* =========================================================
   SERVICES GRID
   Light cards with burgundy text. Gold accent line on hover
   that grows from the top (same animation style as
   trust-item / process-item / feedback cards).
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: #fff;
  padding: 34px;
  min-height: 225px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s ease, transform 0.35s ease;
}

/* Gold accent line — grows from top on hover */
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--burgundy);
  transition: height 0.35s ease;
}

.service-card:hover {
  background: var(--cream);
  transform: translateX(5px);
}

.service-card:hover::before { height: 100%; }

.service-number {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .15em;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.05;
  margin: 28px 0 10px;
  color: var(--burgundy);
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}


/* =========================================================
   BURGUNDY STATEMENT SECTION
   ========================================================= */

.statement { padding: 95px 0; }

.statement blockquote {
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 88px);
  line-height: .98;
  max-width: 950px;
  margin: 0;
  font-weight: 500;
}

.statement .line {
  width: 90px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 26px;
}


/* =========================================================
   COURTS PREVIEW
   ========================================================= */

.court-preview {
  background:
    linear-gradient(
      135deg,
      rgba(53, 14, 13, .96) 0%,
      rgba(53, 14, 13, .88) 50%,
      rgba(53, 14, 13, .82) 100%
    ),
    url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1800&q=85')
    center / cover;
  color: #fff;
  padding: 95px 0;
}

.court-preview .copy p {
  color: rgba(255, 255, 255, .75);
}


/* =========================================================
   BLOG GRID
   ========================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.blog-cover {
  aspect-ratio: 16 / 9;
  background: var(--cream) center / cover;
}

.blog-body { padding: 25px; }

.blog-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #927653;
}

.blog-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  color: var(--burgundy);
  margin: 12px 0;
}

.blog-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}


/* =========================================================
   FINAL CALL TO ACTION
   ========================================================= */

.final-cta {
  text-align: center;
  padding: 110px 0;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 500;
  line-height: 1;
  margin: 12px auto 25px;
  max-width: 850px;
}

.final-cta p {
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 28px;
}


/* =========================================================

   CLIENT TESTIMONIALS / FEEDBACK CAROUSEL

   ========================================================= */



.testimonials-section {

  background: var(--white);

}





/* =========================================================

   TESTIMONIAL HEADER

   ========================================================= */



.testimonials-head {

  margin-bottom: 50px;

}





/* =========================================================

   CAROUSEL WRAPPER

   ========================================================= */



.testimonial-carousel {

  position: relative;



  display: flex;

  align-items: center;



  gap: 18px;

}





/* =========================================================

   CAROUSEL VIEWPORT

   ========================================================= */



.testimonial-viewport {

  width: 100%;

  overflow: hidden;

}





/* =========================================================

   MOVING TRACK

   ========================================================= */



.testimonial-track {

  display: flex;



  gap: 20px;



  transition:

    transform 0.65s cubic-bezier(.22, .61, .36, 1);



  will-change: transform;

}





/* =========================================================

   INDIVIDUAL TESTIMONIAL CARD

   ========================================================= */



.testimonial-card {

  position: relative;



  flex: 0 0 calc(

    (100% - 40px) / 3

  );



  min-height: 330px;



  padding: 34px;



  background: var(--cream);



  border-top:

    2px solid var(--burgundy);



  display: flex;

  flex-direction: column;



  justify-content: space-between;



  transition:

    transform .35s ease,

    background-color .35s ease,

    box-shadow .35s ease;

}





/* =========================================================

   CARD HOVER

   ========================================================= */



.testimonial-card:hover {

  transform: translateY(-5px);



  background: #fff;



  box-shadow:

    0 18px 45px rgba(30, 23, 21, .08);

}





/* =========================================================

   TESTIMONIAL NUMBER

   ========================================================= */



.testimonial-number {

  position: absolute;



  top: 20px;

  right: 24px;



  font-size: 10px;



  letter-spacing: .15em;



  color: var(--gold);



  font-weight: 700;

}





/* =========================================================

   STAR RATING

   ========================================================= */



.testimonial-stars {

  color: var(--gold);



  font-size: 13px;



  letter-spacing: .16em;



  margin-bottom: 28px;

}





/* =========================================================

   TESTIMONIAL QUOTE

   ========================================================= */



.testimonial-card blockquote {

  margin: 0;



  font-family: var(--serif);



  font-size: 27px;



  line-height: 1.25;



  font-weight: 500;



  color: var(--burgundy);

}





/* =========================================================

   TESTIMONIAL AUTHOR

   ========================================================= */



.testimonial-author {

  margin-top: 30px;



  padding-top: 18px;



  border-top:

    1px solid var(--border);

}



.testimonial-author strong {

  display: block;



  font-size: 13px;



  color: var(--burgundy);



  margin-bottom: 3px;

}



.testimonial-author span {

  display: block;



  font-size: 10px;



  text-transform: uppercase;



  letter-spacing: .13em;



  color: var(--muted);

}





/* =========================================================

   PREVIOUS / NEXT BUTTONS

   ========================================================= */



.testimonial-arrow {

  flex: 0 0 46px;



  width: 46px;

  height: 46px;



  border:

    1px solid var(--border);



  background: transparent;



  color: var(--burgundy);



  display: grid;

  place-items: center;



  font-size: 18px;



  transition:

    background .25s ease,

    color .25s ease,

    border-color .25s ease,

    transform .25s ease;

}



.testimonial-arrow:hover {

  background: var(--burgundy);



  color: #fff;



  border-color: var(--burgundy);



  transform: translateY(-2px);

}





/* =========================================================

   CAROUSEL CONTROLS

   ========================================================= */



.testimonial-controls {

  display: flex;



  align-items: center;

  justify-content: space-between;



  margin-top: 30px;

}





/* =========================================================

   DOT NAVIGATION

   ========================================================= */



.testimonial-dots {

  display: flex;



  align-items: center;



  gap: 7px;

}



.testimonial-dot {

  width: 7px;

  height: 7px;



  padding: 0;



  border: 0;



  background: rgba(53, 14, 13, .20);



  cursor: pointer;



  transition:

    width .3s ease,

    background .3s ease;

}



.testimonial-dot.active {

  width: 24px;



  background: var(--gold);

}





/* =========================================================

   COUNTER

   ========================================================= */



.testimonial-counter {

  font-size: 10px;



  letter-spacing: .15em;



  color: var(--muted);



  font-weight: 700;

}


/* =========================================================
   TEAM SECTION
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card { text-align: center; }

.team-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 48px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--burgundy);
  margin: 0 0 4px;
}

.team-role {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.team-card p {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto;
}


/* =========================================================
   INTERNAL PAGE HERO
   ========================================================= */

.page-hero {
  padding: 170px 0 90px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.page-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  margin-top: 25px;
}

.page-hero.dark {
  background: var(--burgundy);
  color: #fff;
}

.page-hero.dark p {
  color: rgba(255, 255, 255, .72);
}


/* =========================================================
   PROCESS / STEPS
   ========================================================= */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-item {
  padding: 34px 22px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background-color 0.35s ease, transform 0.35s ease;
}

.process-item:last-child { border-right: 0; }

.process-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height 0.35s ease;
}

.process-item:hover {
  background-color: rgba(245, 240, 232, 0.45);
  transform: translateX(5px);
}

.process-item:hover::before { height: 100%; }

.process-item span {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .15em;
}

.process-item h3 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--burgundy);
  margin: 22px 0 5px;
}


/* =========================================================
   COURT HIERARCHY
   Fixed: burgundy backgrounds with gold borders for visibility
   ========================================================= */

.court-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
}

.hierarchy-node {
  background: var(--burgundy);
  border: 2px solid var(--gold);
  padding: 18px 36px;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  border-radius: 4px;
  min-width: 200px;
  font-weight: 500;
}

.hierarchy-node.top {
  background: var(--burgundy-2);
  border: 2px solid var(--gold);
}

.hierarchy-connector {
  width: 2px;
  height: 28px;
  background: var(--gold);
}

.hierarchy-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hierarchy-row .hierarchy-node {
  min-width: 160px;
  font-size: 16px;
  padding: 14px 20px;
}


/* =========================================================
   COURT CARDS
   ========================================================= */

.court-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.court-card {
  padding: 34px;
  border: 1px solid var(--border);
  background: #fff;
}

.court-card h3 {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--burgundy);
  margin: 0 0 8px;
}

.court-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}


/* =========================================================
   BLOG SEARCH / FILTER
   ========================================================= */

.blog-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.field {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.blog-toolbar .field { max-width: 430px; }
.field:focus { border-color: var(--gold); }
select.field { max-width: 220px; }

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
}


/* =========================================================
   BLOG ARTICLE READER
   ========================================================= */

.article {
  max-width: 850px;
  margin: auto;
}

.article h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 86px);
  line-height: .94;
  color: var(--burgundy);
  font-weight: 500;
}

.article .article-meta {
  color: #927653;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}

.article-cover {
  width: 100%;
  max-height: 570px;
  object-fit: cover;
  margin: 35px 0;
}

.article-content {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.85;
}

.article-content h2 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  color: var(--burgundy);
  margin-top: 55px;
}

.article-content blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  font-style: italic;
}

.article-content img { margin: 30px auto; }

.article-content figcaption {
  text-align: center;
  font: 12px var(--sans);
  color: var(--muted);
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.contact-list { margin-top: 35px; }

.contact-item {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.contact-item small {
  display: block;
  color: #927653;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
}

.contact-item strong {
  display: block;
  margin-top: 5px;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  color: var(--burgundy);
}


/* =========================================================
   FORMS
   ========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--burgundy);
}

textarea.field {
  min-height: 170px;
  resize: vertical;
}

.form-status {
  margin-top: 15px;
  font-size: 13px;
}

.form-status.success { color: #176b3b; }
.form-status.error { color: #9b1c1c; }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #24100f;
  color: #fff;
  padding: 70px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 45px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 34px;
}

.footer-grid h4 {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 16px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  margin: 8px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  margin-top: 50px;
  padding-top: 20px;
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}


/* =========================================================
   SCROLL REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.05s cubic-bezier(.22,.61,.36,1), transform 1.05s cubic-bezier(.22,.61,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* =========================================================
   FLOATING INSTAGRAM BUTTON
   ========================================================= */

.instagram-fab {
  position: fixed;

  bottom: 92px;
  right: 24px;

  width: 56px;
  height: 56px;

  border-radius: 50%;

  /* Instagram-style gradient */
  background:
    radial-gradient(
      circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285AEB 90%
    );

  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9998;

  text-decoration: none;

  box-shadow:
    0 4px 14px rgba(214, 36, 159, 0.35);

  animation:
    instagram-float 2.4s ease-in-out infinite,
    instagram-glow 2.4s ease-in-out infinite;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}


/* Instagram icon */

.instagram-fab svg {
  width: 30px;
  height: 30px;

  stroke: #fff;

  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
}


/* Hover */

.instagram-fab:hover {
  animation-play-state: paused;

  transform: scale(1.12);

  box-shadow:
    0 6px 22px rgba(214, 36, 159, 0.55);
}


/* =========================================================
   FLOATING ANIMATION
   ========================================================= */

@keyframes instagram-float {

  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

}


/* =========================================================
   GLOW ANIMATION
   ========================================================= */

@keyframes instagram-glow {

  0%, 100% {
    box-shadow:
      0 4px 14px rgba(214, 36, 159, 0.35),
      0 0 0 0 rgba(214, 36, 159, 0.25);
  }

  50% {
    box-shadow:
      0 5px 20px rgba(214, 36, 159, 0.55),
      0 0 0 10px rgba(214, 36, 159, 0);
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .instagram-fab {
    width: 54px;
    height: 54px;

    right: 18px;
    bottom: 84px;
  }

  .instagram-fab svg {
    width: 29px;
    height: 29px;
  }

}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  animation: wa-bounce 2s ease-in-out infinite, wa-glow 2s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes wa-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4),
                0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6),
                0 0 0 12px rgba(37, 211, 102, 0);
  }
}


/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-shell {
  background: #f8f5f0;
  min-height: 100vh;
  padding-top: 82px;
}

.admin-bar {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 25px;
  padding: 35px 0;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-list button {
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid transparent;
  background: #faf8f5;
}

.admin-list button.active {
  border-color: var(--gold);
  background: var(--cream);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-bottom: 0;
}

.editor-toolbar button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 7px 10px;
}

.editor {
  min-height: 420px;
  border: 1px solid var(--border);
  padding: 22px;
  outline: none;
  background: #fff;
}

.editor:focus { border-color: var(--gold); }

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 1px solid var(--border);
}

.status-pill.published { color: #176b3b; }
.status-pill.draft { color: #927653; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--burgundy);
  padding: 25px;
}

.login-card {
  background: #fff;
  padding: 40px;
  width: min(100%, 430px);
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-family: var(--serif);
  font-size: 50px;
  color: var(--burgundy);
  line-height: 1;
  margin: 0 0 10px;
}

.login-card p {
  color: var(--muted);
  font-size: 13px;
}

.login-card form {
  margin-top: 25px;
  display: grid;
  gap: 15px;
}


/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.margin-top-28 { margin-top: 28px; }
.admin-header-actions { display: flex; gap: 10px; }
.admin-checkbox-label { display: flex; gap: 8px; align-items: center; }
.admin-checkbox-wrap { display: flex; align-items: end; }

.image-url-field { min-width: 0; }
.image-url-row { display: flex; gap: 8px; align-items: stretch; }
.image-url-row .field { flex: 1; min-width: 0; }
.image-url-row .btn { flex: 0 0 auto; white-space: nowrap; }
.image-field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.5; }
#imagekitMediaLibrary { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 99999; pointer-events: none; }

@media (max-width: 700px) {
  .image-url-row { flex-direction: column; }
  .image-url-row .btn { width: 100%; }
}


/* =========================================================
   TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    position: fixed;
    inset: 82px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    background: #fff;
    gap: 0;
    overflow: auto;
  }

  .nav-links.open a {
    padding: 18px 0;
    font-size: 17px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a.active::after { display: none; }

  .hero { min-height: 700px; }

  .trust-grid { grid-template-columns: 1fr 1fr; }

  .split, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }

  .testimonial-card { flex: 0 0 calc((100% - 20px) / 2); }

}


/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav { height: 72px; }.nav {
    height: auto;
    min-height: 72px;
}
  .hero { padding-top: 72px; min-height: 650px; }
  .hero-inner { padding: 60px 0; }
  .hero p { font-size: 16px; }
  .section { padding: 75px 0; }

  .section-head { display: block; }
  .section-head p { margin-top: 20px; }

  .trust-grid,
  .service-grid,
  .blog-grid,
  .court-grid,
  .process,
  .form-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .trust-item, .process-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-item:last-child,
  .process-item:last-child { border-bottom: 0; }

  .editorial-image { min-height: 390px; }
  .page-hero { padding: 135px 0 70px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }

  .admin-shell { padding-top: 72px; }

  .admin-bar .container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }

  .testimonial-card { flex: 0 0 100%; }

}

@media (max-width: 600px) {

    .nav {
        height: auto;
        min-height: 72px;
    }

    .nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1;
        white-space: nowrap;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .brand span {
        font-size: 13px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .nav-links {
        flex-shrink: 0;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-cta, .btn, .service-card, .trust-item, .process-item {
    transition: none;
  }

  .whatsapp-fab { animation: none; }

}


/* ============================================================
   NESTLEGAL — NEW COMPONENT STYLES
   Added for: modals, gallery, court pages, project cards,
   hearing cards, admin tabs, and animations.
   ============================================================ */

/* ---- MODAL OVERLAY ---- */
.nl-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 10, 9, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.nl-modal-overlay.active {
  opacity: 1;
}

.nl-modal-overlay[hidden] {
  display: none;
}

.nl-modal {
  background: #faf6f0;
  border: 1px solid var(--gold, #CFAB68);
  border-radius: 4px;
  max-width: 560px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.nl-modal-overlay.active .nl-modal {
  transform: translateY(0);
}

.nl-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--burgundy, #350E0D);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.nl-modal-close:hover { color: var(--gold, #CFAB68); }

.nl-modal-kicker {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--burgundy, #350E0D);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.nl-modal p {
  font-size: 16px;
  line-height: 1.8;
  color: #4a3f3d;
}

.nl-lightbox {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.nl-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.nl-lightbox .nl-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
}

/* ---- TRUST ITEM AS BUTTON ---- */
.trust-item {
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  background: transparent;
  border: none;
  width: 100%;
  transition: transform 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-2px);
}

.trust-item:active {
  transform: translateY(0);
}

/* ---- PREMIUM GALLERY ---- */
.premium-gallery-section {
  background: var(--burgundy, #350E0D);
  color: #faf6f0;
  padding: 80px 0;
}

.premium-gallery-section .kicker { color: var(--gold, #CFAB68); }
.premium-gallery-section h2 { color: #faf6f0; }
.premium-gallery-section p { color: rgba(250,246,240,0.7); }

.premium-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
  margin: 0;
  background: rgba(0,0,0,0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(53,14,13,0.95));
  color: #faf6f0;
  padding: 40px 16px 14px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

.gallery-item.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- COURT COVERAGE SECTION ---- */
.court-coverage-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(26,10,9,0.75), rgba(26,10,9,0.85)),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.court-coverage-overlay {
  width: 100%;
  padding: 80px 0;
}

.court-coverage-content {
  max-width: 900px;
}

.court-coverage-content .kicker.light {
  color: var(--gold, #CFAB68);
}

.court-coverage-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  color: #faf6f0;
  line-height: 1.2;
  margin: 12px 0 16px;
}

.court-coverage-text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(250,246,240,0.75);
  margin-bottom: 36px;
  max-width: 650px;
}

/* ---- COURT BUTTONS ---- */
.court-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 800px;
}

.court-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: rgba(250,246,240,0.08);
  border: 1px solid rgba(207,171,104,0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.court-btn:hover {
  background: rgba(207,171,104,0.15);
  border-color: var(--gold, #CFAB68);
  transform: translateY(-4px);
}

.court-btn-icon {
  font-size: 32px;
  color: var(--gold, #CFAB68);
  margin-bottom: 12px;
}

.court-btn-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #faf6f0;
  margin-bottom: 4px;
}

.court-btn-sub {
  font-size: 12px;
  color: rgba(250,246,240,0.5);
  letter-spacing: 0.3px;
}

/* ---- CASE ACCORDIONS ---- */
.cases-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-accordion {
  border: 1px solid rgba(53,14,13,0.12);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.case-accordion:hover {
  box-shadow: 0 4px 16px rgba(53,14,13,0.08);
}

.case-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 16px;
  transition: background 0.2s ease;
}

.case-toggle:hover {
  background: rgba(53,14,13,0.02);
}

.case-toggle.open {
  background: rgba(53,14,13,0.03);
}

.case-type-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold, #CFAB68);
  background: rgba(53,14,13,0.06);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-title {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--burgundy, #350E0D);
}

.case-date {
  font-size: 13px;
  color: #716865;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-chevron {
  color: var(--burgundy, #350E0D);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.case-content {
  padding: 0 24px 20px;
  border-top: 1px solid rgba(53,14,13,0.08);
}

.case-content[hidden] { display: none; }

.case-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a3f3d;
  margin-top: 16px;
}

/* ---- HEARING CARDS ---- */
.hearings-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.hearing-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(53,14,13,0.1);
  border-radius: 4px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hearing-card:hover {
  box-shadow: 0 8px 24px rgba(53,14,13,0.1);
  transform: translateY(-2px);
}

.hearing-date {
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
  border-right: 2px solid var(--gold, #CFAB68);
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hearing-day {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--burgundy, #350E0D);
  line-height: 1;
}

.hearing-month {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold, #CFAB68);
  margin-top: 4px;
}

.hearing-year {
  font-size: 12px;
  color: #716865;
}

.hearing-body h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--burgundy, #350E0D);
  margin-bottom: 4px;
}

.hearing-court {
  font-size: 13px;
  color: var(--gold, #CFAB68);
  font-weight: 500;
  margin-bottom: 8px;
}

.hearing-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a3f3d;
  margin-bottom: 12px;
}

.btn-sm {
  font-size: 12px;
  padding: 8px 16px;
}

.empty-note {
  color: #716865;
  font-size: 15px;
  padding: 24px;
  text-align: center;
}

/* ============================================================
   PROJECTS — PERSISTENT CENTRAL TIMELINE
   Text-only cards. Every project stays on the page after it
   appears, alternating around a single central line.
   ============================================================ */
.project-story {
  position: relative;
  background: var(--cream, #F5F0E8);
  padding: 110px 0 130px;
  overflow: hidden;
}

.project-timeline-wrap { position: relative; }

.project-timeline-intro {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
}
.project-timeline-intro h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--burgundy, #350E0D);
  font-size: clamp(42px, 5vw, 72px);
  line-height: .98;
  font-weight: 600;
  margin: 12px 0 20px;
}
.project-timeline-intro p {
  max-width: 650px;
  margin: 0 auto;
  color: #5d514e;
  font-size: 16px;
  line-height: 1.8;
}

.project-timeline {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px 0;
}
.project-timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(53,14,13,.23);
  z-index: 1;
}

.project-timeline-item {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  align-items: center;
  opacity: 0;
  transition: opacity .75s ease;
}
.project-timeline-item.is-visible { opacity: 1; }

.project-timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cream, #F5F0E8);
  border: 3px solid var(--burgundy, #350E0D);
  box-shadow: 0 0 0 8px rgba(207,171,104,.12);
  z-index: 3;
  transition: transform .45s ease, background .45s ease, box-shadow .45s ease;
}
.project-timeline-item.is-visible .project-timeline-dot {
  background: var(--gold, #CFAB68);
  transform: translate(-50%, -50%) scale(1.08);
}

.project-timeline-card {
  position: relative;
  width: min(100%, 500px);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(53,14,13,.14);
  border-radius: 2px;
  box-shadow: 0 14px 40px rgba(30,23,21,.08);
  z-index: 2;
  transition: transform .8s cubic-bezier(.22,.61,.36,1), box-shadow .5s ease;
}
.timeline-left .project-timeline-card {
  grid-column: 1;
  justify-self: end;
  transform: translateX(-42px);
}
.timeline-right .project-timeline-card {
  grid-column: 3;
  justify-self: start;
  transform: translateX(42px);
}
.project-timeline-item.is-visible .project-timeline-card { transform: translateX(0); }
.project-timeline-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45px;
  height: 1px;
  background: rgba(53,14,13,.26);
}
.timeline-left .project-timeline-card::after { right: -45px; }
.timeline-right .project-timeline-card::after { left: -45px; }
.project-timeline-card:hover { box-shadow: 0 20px 48px rgba(30,23,21,.12); }

.pc-card-inner { padding: 28px 32px 30px; }
.pc-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--burgundy, #350E0D);
  margin-bottom: 12px;
}
.pc-meta {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gold, #CFAB68);
  margin-bottom: 10px;
}
.pc-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--burgundy, #350E0D);
  line-height: 1.2;
  margin: 0 0 13px;
}
.pc-desc { font-size: 14px; line-height: 1.75; color: #4a3f3d; margin: 0; max-width: 54ch; }
.pc-details { display: flex; gap: 28px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(53,14,13,.08); }
.pc-detail { font-size: 13px; color: var(--muted, #716865); }
.pc-detail label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--gold, #CFAB68); font-weight: 600; margin-bottom: 2px; }
.project-empty { text-align: center; color: #716865; padding: 70px 20px; }

@media (max-width: 768px) {
  .project-story { padding: 80px 0 90px; }
  .project-timeline-intro { margin-bottom: 50px; padding: 0 10px; }
  .project-timeline-intro h2 { font-size: 42px; }
  .project-timeline-intro p { font-size: 14px; }
  .project-timeline { padding: 0 0 0 48px; }
  .project-timeline-line { left: 20px; }
  .project-timeline-item { min-height: 250px; display: block; padding: 35px 0; }
  .project-timeline-dot { left: 20px; top: 50%; width: 13px; height: 13px; }
  .project-timeline-card,
  .timeline-left .project-timeline-card,
  .timeline-right .project-timeline-card {
    width: 100%;
    transform: translateY(26px);
  }
  .project-timeline-item.is-visible .project-timeline-card { transform: translateY(0); }
  .project-timeline-card::after,
  .timeline-left .project-timeline-card::after,
  .timeline-right .project-timeline-card::after { left: -28px; right: auto; width: 28px; }
  .pc-card-inner { padding: 22px 22px 24px; }
  .pc-title { font-size: 26px; }
  .pc-desc { font-size: 13px; line-height: 1.65; }
  .pc-details { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-timeline-item,
  .project-timeline-card,
  .project-timeline-dot { transition: none !important; }
}


/* ---- ADMIN TABS ---- */
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 0 0;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 20px;
  background: none;
  border: 1px solid rgba(53,14,13,0.15);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #716865;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: var(--burgundy, #350E0D);
  background: rgba(53,14,13,0.03);
}

.admin-tab.active {
  color: var(--burgundy, #350E0D);
  background: #faf6f0;
  border-color: var(--gold, #CFAB68);
  border-bottom: 2px solid #faf6f0;
  position: relative;
  z-index: 1;
}

.admin-content {
  padding-top: 24px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.btn-full {
  width: 100%;
  margin-bottom: 8px;
}

.form-status.error {
  color: #c0392b;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .court-coverage-section {
    background-attachment: scroll;
    min-height: auto;
  }

  .court-coverage-title {
    font-size: 28px;
  }

  .court-buttons-grid {
    grid-template-columns: 1fr;
  }

  .case-toggle {
    flex-wrap: wrap;
    padding: 16px;
    gap: 8px;
  }

  .case-date {
    width: 100%;
    padding-left: 0;
  }

  .hearings-container {
    grid-template-columns: 1fr;
  }

  .hearing-card {
    flex-direction: column;
    gap: 12px;
  }

  .hearing-date {
    border-right: none;
    border-bottom: 2px solid var(--gold, #CFAB68);
    padding-right: 0;
    padding-bottom: 12px;
    min-width: auto;
    text-align: left;
  }

  .nl-modal {
    padding: 28px 20px;
    max-width: 100%;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .admin-tab {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ---- BODY SCROLL LOCK WHEN MODAL OPEN ---- */
body.modal-open {
  overflow: hidden;
}

/* ============================================================
   THOUGHT OF THE DAY — hero section
   ============================================================ */
.thought-of-day {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 4px solid var(--gold, #CFAB68);
  max-width: 640px;
  position: relative;
}
.thought-of-day .thought-marker {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--gold, #CFAB68);
  line-height: 1;
  position: absolute;
  top: 4px;
  left: 16px;
  opacity: 0.4;
}
.thought-of-day p {
  color: rgba(250,246,240,0.9);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  padding-left: 28px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .thought-of-day { max-width: 100%; padding: 18px 20px; }
  .thought-of-day p { font-size: 18px; padding-left: 22px; }
  .thought-of-day .thought-marker { font-size: 40px; }
}

/* ============================================================
   ABOUT PAGE CAROUSEL — auto-cycling gallery images
   ============================================================ */
.about-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #e7e0dd;
  box-shadow: 0 4px 24px rgba(53,14,13,0.12);
}
.about-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.about-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-carousel-slide.active {
  opacity: 1;
}
.about-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-carousel-slide .carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(53,14,13,0.92));
  color: #faf6f0;
  padding: 32px 20px 14px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
}

/* ============================================================
   GALLERY BUTTON
   ============================================================ */

.gallery-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}

.gallery-button span {
  font-size: 16px;
  line-height: 1;
  transition: transform .25s ease;
}

.gallery-button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.gallery-button:hover span {
  transform: translateX(4px);
}


/* ============================================================
   GALLERY MODAL
   ============================================================ */

#galleryModal {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;

  width: 100vw !important;
  height: 100vh !important;

  z-index: 999999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 30px !important;
  box-sizing: border-box !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .3s ease, visibility .3s ease;
}

#galleryModal.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


/* Dark background */

#galleryModal .gallery-modal-overlay {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  background: rgba(25, 12, 11, .82) !important;

  backdrop-filter: blur(5px);
}


/* Popup */

#galleryModal .gallery-modal-content {
  position: relative !important;

  z-index: 2 !important;

  width: min(1100px, 100%) !important;
  max-height: 90vh !important;

  overflow-y: auto !important;

  padding: 32px !important;

  box-sizing: border-box !important;

  background: #faf7f3 !important;

  border-radius: 8px !important;

  box-shadow: 0 20px 70px rgba(0,0,0,.3) !important;

  transform: translateY(20px);

  transition: transform .3s ease;
}

#galleryModal.open .gallery-modal-content {
  transform: translateY(0);
}


/* Header */

#galleryModal .gallery-modal-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;

  gap: 20px !important;

  margin-bottom: 28px !important;
}

#galleryModal .gallery-modal-header h2 {
  margin: 4px 0 0 !important;
}


/* Close button */

#galleryModal .gallery-close {
  width: 40px !important;
  height: 40px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex-shrink: 0 !important;

  padding: 0 !important;

  border: 1px solid var(--border) !important;
  border-radius: 50% !important;

  background: transparent !important;
  color: var(--ink) !important;

  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 1 !important;

  cursor: pointer !important;
}

#galleryModal .gallery-close:hover {
  background: var(--ink) !important;
  color: #fff !important;
}


/* Gallery grid */

#galleryModal .gallery-grid {
  display: grid !important;

  grid-template-columns: repeat(3, 1fr) !important;

  gap: 16px !important;
}

#galleryModal .gallery-grid-item {
  position: relative !important;

  overflow: hidden !important;

  aspect-ratio: 4 / 3 !important;

  border-radius: 5px !important;

  background: #e7e0dd !important;
}

#galleryModal .gallery-grid-item img {
  width: 100% !important;
  height: 100% !important;

  display: block !important;

  object-fit: cover !important;
}

#galleryModal .gallery-grid-caption {
  position: absolute !important;

  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  padding: 35px 14px 12px !important;

  background: linear-gradient(
    transparent,
    rgba(53,14,13,.9)
  ) !important;

  color: #fff !important;

  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

  .gallery-modal {
    padding: 12px;
  }

  .gallery-modal-content {
    max-height: 94vh;
    padding: 22px 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-grid-item {
    aspect-ratio: 1 / 1;
  }

  .gallery-modal-header {
    margin-bottom: 20px;
  }

  .gallery-modal-header h2 {
    font-size: 24px;
  }

  .gallery-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}


@media (max-width: 480px) {

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-item {
    aspect-ratio: 4 / 3;
  }

}

@media (max-width: 768px) {
  .about-carousel { aspect-ratio: 4 / 3; }
}

/* ============================================================
   HOME PAGE — SUBTLE HEADING GLOW
   Premium, understated glow on major section headings.
   ============================================================ */
.section .section-head h2,
.section .kicker + h2,
.section-cream .section-head h2,
.final-cta h2 {
  text-shadow: 0 0 18px rgba(207,171,104,0.15), 0 0 40px rgba(207,171,104,0.08);
}

/* =========================================================
   FINAL RESPONSIVE FIX
   Mobile + Tablet navigation and layout
   ========================================================= */

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {

  .container {
    width: min(calc(100% - 40px), var(--max));
  }

  /* Header */
  .site-header {
    z-index: 10000;
  }

  .nav {
    height: 76px;
    position: relative;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  /* Hide desktop navigation */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    position: relative;
    z-index: 10002;
    flex-shrink: 0;
  }

  /* Mobile/tablet menu */
  .nav-links.open {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: calc(100vh - 76px);

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 20px 40px 40px;

    background: #fff;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 10001;

    box-shadow: 0 15px 35px rgba(30, 23, 21, .12);
  }

  .nav-links.open a {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 58px;

    padding: 16px 0;

    font-size: 17px;
    line-height: 1.2;

    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a.active::after {
    display: none;
  }

  /* Prevent page from appearing through menu */
  body.menu-open {
    overflow: hidden;
  }

  /* General grids */
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  /* Hero */
  .hero {
    min-height: 680px;
    padding-top: 76px;
  }

  .hero-inner {
    max-width: 720px;
    padding: 80px 0;
  }

  .hero h1 {
    font-size: clamp(48px, 8vw, 82px);
  }

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}


/* ---------- MOBILE ---------- */
@media (max-width: 600px) {

  .container {
    width: calc(100% - 32px);
  }

  /* Header */
  .nav {
    height: 72px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
    font-size: 23px;
    letter-spacing: .04em;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  /* Menu */
  .nav-links.open {
    top: 72px;
    height: calc(100vh - 72px);

    padding: 10px 24px 30px;

    z-index: 10001;
  }

  .nav-links.open a {
    min-height: 54px;
    padding: 15px 0;
    font-size: 16px;
  }

  /* Hero */
  .hero {
    min-height: 650px;
    padding-top: 72px;
  }

  .hero-inner {
    padding: 55px 0;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
    line-height: .92;
    margin: 16px 0 22px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Sections */
  .section {
    padding: 70px 0;
  }

  .section-head {
    display: block;
    margin-bottom: 35px;
  }

  .section-head h2,
  .page-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .section-head p {
    margin-top: 18px;
    font-size: 14px;
  }

  /* One-column mobile layouts */
  .trust-grid,
  .service-grid,
  .blog-grid,
  .court-grid,
  .process,
  .form-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .process-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-item:last-child,
  .process-item:last-child {
    border-bottom: 0;
  }

  /* Split sections */
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .editorial-image {
    min-height: 330px;
  }

  /* Court coverage */
  .court-coverage-section {
    min-height: auto;
    background-attachment: scroll;
  }

  .court-coverage-overlay {
    padding: 65px 0;
  }

  .court-coverage-title {
    font-size: 32px;
  }

  .court-coverage-text {
    font-size: 15px;
  }

  .court-buttons-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }

  /* Page hero */
  .page-hero {
    padding: 125px 0 65px;
  }

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 100%;
    min-height: 300px;
    padding: 28px;
  }

  .testimonial-card blockquote {
    font-size: 24px;
  }

  /* Gallery */
  .premium-gallery {
    grid-template-columns: 1fr;
  }

  /* About carousel */
  .about-carousel {
    aspect-ratio: 4 / 3;
  }

  /* WhatsApp */
  .whatsapp-fab {
    width: 54px;
    height: 54px;
    right: 18px;
    bottom: 18px;
  }

  @media (max-width: 768px) {

  .instagram-fab {
    width: 54px;
    height: 54px;

    right: 18px;
    bottom: 84px;
  }

  .instagram-fab svg {
    width: 27px;
    height: 27px;
  }

}


}


/* ---------- SMALL PHONES ---------- */
@media (max-width: 380px) {

  .container {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .nav-links.open {
    padding-left: 20px;
    padding-right: 20px;
  }
}

