:root {
  --navy: #1b2136;
  --navy-2: #262d52;
  --orange: #e08a34;
  --orange-dark: #c06f1f;
  --cream: #f7f5f1;
  --ink: #2c2c2c;
  --muted: #666a78;
  --line: #e6e3dc;
  --radius: 8px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}

h1, h2, h3, .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
}

p { text-align: justify; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header */
header {
  background: var(--navy);
  color: #fff;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange) 50%, transparent);
  background-size: 220% 100%;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 140% 0; }
  100% { background-position: -80% 0; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 42px; height: 42px; }

.brand-text .brand-name {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-text .brand-tag {
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
}

nav ul { display: flex; gap: 26px; align-items: center; }

nav a {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

.nav-cta {
  color: var(--orange) !important;
  font-weight: 700;
  position: relative;
  transition: color 0.2s;
}
.nav-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-cta:hover { color: var(--orange-dark) !important; }
.nav-cta:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hero, soft blended dark background */
.hero {
  background: radial-gradient(ellipse 80% 100% at 25% 40%, #262d52 0%, var(--navy) 55%, #10142a 100%);
  color: #fff;
  padding: 92px 24px;
  position: relative;
  overflow: hidden;
}

.hero-bgimage {
  background:
    linear-gradient(120deg, rgba(20, 24, 46, 0.92) 0%, rgba(27, 33, 54, 0.85) 45%, rgba(16, 20, 42, 0.9) 100%),
    url('images/law_scale.jpg');
  background-size: cover;
  background-position: center;
}

.ticker {
  background: var(--navy);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  border-top: 1px solid rgba(224, 138, 52, 0.35);
  border-bottom: 1px solid rgba(224, 138, 52, 0.35);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 0 32px;
}

.ticker-track span i {
  color: var(--orange);
  font-size: 0.5rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.hero-inner { max-width: 1120px; margin: 0 auto; position: relative; }

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 480px; width: 100%; }

.hero-flex .hero-text:only-child {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}
.hero-flex .hero-text:only-child h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  max-width: none;
}
.hero-flex .hero-text:only-child p {
  font-size: 1.15rem;
  max-width: none;
}

.hero-text p {
  text-align: justify;
}

.hero-text h1 {
  text-align: left;
  text-align-last: left;
}

.hero-title-oneline {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  white-space: nowrap;
}

.hero-light {
  background: var(--cream);
  color: var(--ink);
}
.hero-light h1 { color: var(--navy); }
.hero-light p { color: var(--muted); }
.hero-light .eyebrow { color: var(--orange-dark); }

.hero-image {
  flex: 0 0 320px;
  width: 320px;
  position: relative;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  position: relative;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at center, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 62% at center, #000 60%, transparent 100%);
}

.hero-image-lg {
  flex: 0 0 460px;
  width: 460px;
}

.hero-image-lg img {
  -webkit-mask-image: radial-gradient(ellipse 66% 66% at center, #000 45%, transparent 96%);
  mask-image: radial-gradient(ellipse 66% 66% at center, #000 45%, transparent 96%);
  filter: saturate(1.05);
}

.hero.hero-photo-bg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 50%;
  background-image: url('images/law_scale.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.6);
  transform: scale(1.2);
  z-index: 0;
  pointer-events: none;
}

.hero.hero-photo-bg .hero-inner {
  z-index: 1;
}

.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e4e6f0;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.hero-quicklinks a:hover { color: var(--orange); }
.hero-quicklinks i { font-size: 1.05rem; color: var(--orange); }

.eyebrow {
  display: block;
  text-align: center;
  color: var(--orange);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.1rem);
  max-width: 680px;
  margin-bottom: 20px;
  line-height: 1.18;
}

.hero p {
  max-width: 580px;
  font-size: 1.16rem;
  margin-bottom: 32px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-row-joined {
  display: inline-flex;
  gap: 0;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  width: fit-content;
  max-width: 100%;
}

.btn-row-joined .btn {
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.btn-row-joined .btn:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 14px 30px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.btn:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: var(--navy); }

.btn-dark { background: var(--navy); }
.btn-dark:hover { background: var(--navy-2); }

.btn-whatsapp { background: #104d63; }
.btn-whatsapp:hover { background: #0d3e50; }

/* Sections */
section { padding: 78px 24px; }
.section-inner { max-width: 1120px; margin: 0 auto; }

.eyebrow-dark {
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.edu-list { margin: 6px 0 4px; }
.edu-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}
.edu-list li i { color: var(--orange); font-size: 1.05rem; margin-top: 4px; flex-shrink: 0; }

.section-title { font-size: 2.2rem; margin-bottom: 14px; color: var(--navy); }

.section-intro { max-width: 660px; margin-bottom: 44px; color: #3a3d4a; font-size: 1.05rem; line-height: 1.75; }

.alt-bg { background: #fff; }

/* FAQ accordion */
.faq-list { max-width: 800px; margin-top: 6px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
  color: var(--orange);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary i { transform: rotate(45deg); }

.faq-item p {
  color: #3a3d4a;
  font-size: 1rem;
  line-height: 1.65;
  padding-bottom: 18px;
  text-align: left;
}

/* Standout section, used to make Practice Areas pop against surrounding sections */
.section-standout {
  background: var(--navy);
  border-top: 1px solid rgba(224, 138, 52, 0.35);
  border-bottom: 1px solid rgba(224, 138, 52, 0.35);
  box-shadow: inset 0 12px 30px -12px rgba(0, 0, 0, 0.5), inset 0 -12px 30px -12px rgba(0, 0, 0, 0.5);
}

.section-standout .eyebrow-dark { color: var(--orange); }
.section-standout .section-title { color: #fff; }
.section-standout .section-intro { color: #c7cad6; }
.section-standout .card { background: #fff; }
.section-standout .btn { background: var(--orange); }
.section-standout .btn:hover { background: var(--orange-dark); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  position: relative;
  background: #fff;
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.card-why::after {
  content: "";
  position: absolute;
  top: -16px;
  right: 22px;
  width: 20px;
  height: 32px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.card-icon {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.22rem; margin-bottom: 10px; color: var(--navy); }
.card p { color: #3a3d4a; font-size: 1.05rem; line-height: 1.6; text-align: left; }

.card-others {
  border-top: 4px solid var(--navy);
  background: var(--cream);
}

/* About, director */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}

.about-photo {
  background: var(--navy);
  color: var(--orange);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.director-name { color: var(--navy); font-size: 1.55rem; margin-bottom: 6px; }
.director-role {
  display: inline-block;
  color: #fff;
  background: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 5px 13px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.about-grid p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.value-item h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.value-item p { color: var(--muted); font-size: 0.96rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }

.contact-info-item { margin-bottom: 26px; display: flex; gap: 15px; }

.contact-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 6px;
  background: rgba(224, 138, 52, 0.12);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.contact-info-item h3 {
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.contact-info-item p, .contact-info-item a { color: var(--muted); font-size: 1rem; }
.contact-info-item a:hover { color: var(--orange-dark); }

form {
  background: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.98rem;
}

input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); }

textarea { resize: vertical; min-height: 110px; }

.form-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}
.form-privacy-note i { color: var(--orange); font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; }

/* Map section, sits at the bottom of every page above the footer */
.map-section {
  background: #fff;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.map-section iframe {
  flex: 1 1 420px;
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.map-heading {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 40px;
}

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 14px; font-size: 1.9rem; }
.cta-band p { max-width: 520px; margin: 0 auto 28px; color: #d8dae0; font-size: 1.05rem; }

/* Footer */
footer { background: var(--navy-2); color: #cfd2dd; padding: 40px 24px 20px; }

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.4px; }
footer li { margin-bottom: 8px; font-size: 0.92rem; }
footer a:hover { color: var(--orange); }
footer li a { display: inline-flex; align-items: center; gap: 8px; }
footer li a i { color: var(--orange); font-size: 0.9rem; }

.footer-logo { display: block; width: 84px; height: auto; margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.84rem;
  color: #9ea2b3;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-bottom a { color: #9ea2b3; }
.footer-bottom a:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 800px) {
  .hero-title-oneline { white-space: normal; font-size: clamp(1.5rem, 4.5vw, 1.9rem); }
  .nav-toggle { display: inline-flex; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    gap: 2px;
    z-index: 50;
  }
  nav ul.nav-open { display: flex; }
  nav li { width: 100%; }
  nav a { display: block; padding: 12px 4px; }
  .nav-cta { display: inline-block; width: fit-content; margin-top: 8px; }
  .hero-image { display: none; }
  .hero-quicklinks { gap: 18px; }
  .about-grid, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  section { padding: 58px 20px; }
  .map-section { flex-direction: column; }
  .map-section iframe { height: 280px; min-height: 280px; }
  .map-heading { flex: 1 1 auto; padding: 40px 20px 12px; }
  .grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

/* Tablets in portrait, narrower laptops */
@media (max-width: 1024px) and (min-width: 801px) {
  .header-inner { padding: 14px 20px; }
  nav ul { gap: 18px; }
  .hero h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); }
  section { padding: 64px 20px; }
  .hero-image { flex: 0 0 200px; width: 200px; }
  .hero-image-lg { flex: 0 0 260px; width: 260px; }
}

/* Small phones */
@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand-text .brand-name { font-size: 1.1rem; }
  .brand-text .brand-tag { font-size: 0.62rem; letter-spacing: 2px; }
  .hero { padding: 56px 18px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.22; }
  .hero p { font-size: 1rem; }
  .eyebrow { font-size: 0.7rem; padding: 5px 12px; }
  section { padding: 44px 16px; }
  .section-title { font-size: 1.55rem; }
  .section-intro { font-size: 0.98rem; margin-bottom: 32px; }
  .card { padding: 22px 18px; }
  .values-grid { grid-template-columns: 1fr; }
  form { padding: 22px; }
  .btn { padding: 12px 22px; font-size: 0.92rem; width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn-row-joined {
    flex-direction: column;
    width: 100%;
    border-radius: 3px;
    box-shadow: none;
  }
  .btn-row-joined .btn:first-child::after { display: none; }
  .cta-band h2 { font-size: 1.5rem; }
  .footer-inner { gap: 26px; }
  .map-section iframe { height: 240px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .brand-text .brand-name { font-size: 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.4rem; }
}
