/* ============================================================
   R G LEX ASSOCIATES — Shared Stylesheet
   ============================================================ */

/* === RESET === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Segoe UI, Arial, sans-serif;
}

/* === BASE === */

body {
  background: #f8f9fb;
  color: #333;
  line-height: 1.8;
}

#page-home {
  background: #ffffff;
}

#page-verticals {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* === HEADER === */

header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  position: sticky;
  top: 0;
  z-index: 999;
}

#page-home header {
  position: fixed;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* === NAV === */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

#page-about nav,
#page-services nav,
#page-contact nav {
  padding: 12px 0;
}

#page-verticals nav {
  padding: 15px 0;
}

.logo {
  height: 80px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding-left: 0;
}

nav a {
  text-decoration: none;
  color: #1E2A38;
  font-weight: 600;
}

#page-verticals nav a {
  font-weight: bold;
}

nav a:hover {
  color: #D4AF37;
}

/* === HAMBURGER === */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1E2A38;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === PAGE HEADERS (inner pages) === */

.page-header {
  background: #1E2A38;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 20px;
}

/* === HERO — HOME === */

#page-home .hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("courtroom image.png");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

#page-home .hero h1 {
  font-size: 72px;
  color: #D4AF37;
  letter-spacing: 3px;
}

.hero-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 36px;
  background: #D4AF37;
  color: #1E2A38;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.hero-btn:hover {
  background: #ffffff;
  color: #1E2A38;
}

#page-home .hero h3 {
  font-size: 30px;
  margin-top: 20px;
}

#page-home .hero p {
  font-size: 22px;
  margin-top: 15px;
}

/* === HERO — VERTICALS === */

#page-verticals .hero {
  background: #1E2A38;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

#page-verticals .hero h1 {
  font-size: 50px;
  color: #D4AF37;
  margin-bottom: 15px;
}

/* === HERO — CONTACT === */

#page-contact .hero {
  background:
    linear-gradient(rgba(30,42,56,.85), rgba(30,42,56,.85)),
    url("courtroom image.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  text-align: center;
}

#page-contact .hero h1 {
  font-size: 52px;
  margin-bottom: 15px;
  color: #D4AF37;
}

#page-contact .hero p {
  font-size: 22px;
}

/* === SECTIONS === */

.section {
  padding: 60px 0;
}

#page-contact .section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  font-size: 38px;
  color: #1E2A38;
  margin-bottom: 35px;
}

/* === CARDS === */

.card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  margin-bottom: 25px;
}

.card h3 {
  color: #1E2A38;
  margin-bottom: 15px;
}

/* === GRIDS === */

.grid {
  display: grid;
  gap: 25px;
}

#page-about .grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

#page-verticals .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 50px;
}

#page-contact .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* === HIGHLIGHT BADGE === */

.highlight {
  background: #D4AF37;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 14px;
}

ul {
  padding-left: 20px;
}

/* === SERVICE CARDS === */

.service-card {
  background: white;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.service-card h2 {
  color: #1E2A38;
  border-left: 5px solid #D4AF37;
  padding-left: 15px;
  margin-bottom: 15px;
}

.service-card ul {
  padding-left: 25px;
}

/* === VERTICALS: INTRO === */

.intro {
  padding: 40px;
  background: white;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

#page-verticals .card h3 {
  margin-bottom: 10px;
  border-bottom: 3px solid #D4AF37;
  padding-bottom: 8px;
}

/* === CONTACT: OFFICE CARDS === */

.office-card {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.office-card h2 {
  color: #1E2A38;
  margin-bottom: 15px;
  border-bottom: 3px solid #D4AF37;
  padding-bottom: 10px;
}

.office-card h3 {
  margin-top: 15px;
  color: #1E2A38;
}

.office-card p {
  margin-top: 10px;
}

.contact-note {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  margin-top: 40px;
  text-align: center;
}

/* === FOOTER === */

footer {
  background: #1E2A38;
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 50px;
}

#page-contact footer {
  padding: 35px;
  margin-top: 60px;
}

#page-services footer {
  margin-top: 40px;
}

/* === WHATSAPP CONTACT FORM === */

.whatsapp-form {
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  margin-top: 40px;
}

.whatsapp-form h2 {
  color: #1E2A38;
  margin-bottom: 8px;
}

.form-subtext {
  color: #666;
  font-size: 15px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1E2A38;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: #D4AF37;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.wa-btn:hover {
  background: #1ebe5c;
}

/* ============================================================
   MOBILE  (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Nav */
  .logo { height: 55px; }

  .hamburger { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
  }

  nav ul.open { display: flex; }

  nav ul li a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }

  /* Page headers */
  .page-header { padding: 50px 20px; }
  .page-header h1 { font-size: 28px; }
  .page-header p { font-size: 16px; }

  .section-title { font-size: 24px; margin-bottom: 20px; }

  /* Home hero — portrait image */
  #page-home .hero {
    background:
      linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
      url("courtroom-mobile.jpg");
    background-size: cover;
    background-position: center top;
  }

  #page-home .hero h1 { font-size: 34px; letter-spacing: 1px; }
  #page-home .hero h3 { font-size: 18px; margin-top: 14px; }
  #page-home .hero p  { font-size: 15px; margin-top: 10px; }

  /* Verticals hero */
  #page-verticals .hero { padding: 50px 20px; }
  #page-verticals .hero h1 { font-size: 28px; }
  #page-verticals .hero p  { font-size: 15px; }

  /* Contact hero */
  #page-contact .hero { padding: 60px 20px; }
  #page-contact .hero h1 { font-size: 26px; }
  #page-contact .hero p  { font-size: 15px; }

  /* Cards */
  .card { padding: 20px; }
  .service-card { padding: 20px; }
  .service-card h2 { font-size: 18px; }
  .office-card { padding: 24px; }

  /* Grids */
  #page-about .grid   { grid-template-columns: 1fr; }
  #page-contact .grid { grid-template-columns: 1fr; }

  /* Verticals uses compact 2-col on mobile */
  #page-verticals .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  #page-verticals .card { padding: 16px; }
  #page-verticals .card h3 { font-size: 14px; }
  #page-verticals .card p  { font-size: 13px; }

  .intro { padding: 20px; }

  #page-contact .section { padding: 40px 0; }

}
