/* ===== MAURICE ANDREWS SOLICITORS — MASTER STYLESHEET ===== */
:root {
  --primary: #1C2946;
  --primary-light: #23355B;
  --accent: #B5E6EA;
  --gold: #D4AF37;
  --white: #ffffff;
  --black: #000000;
  --grey: #404040;
  --light-grey: #E8F1FE;
  --text-muted: #8A8888;
}

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

body {
  font-family: 'Encode Sans Semi Condensed', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--primary);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
  font-weight: 500;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.header-logo { width: 144px; height: 48px; flex-shrink: 0; }
.header-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ===== CATEGORY STRIP ===== */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
}

.category-strip a {
  color: var(--white);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.2s;
}

.category-strip a:hover { background: rgba(255,255,255,0.1); }

/* ===== HEADER BUTTONS ===== */
.header-buttons { display: flex; gap: 10px; margin-left: 16px; }
.btn-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 9999px;
  background: var(--white); color: var(--black);
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--primary);
  transition: all 0.2s;
}
.btn-header:hover { background: var(--primary); color: var(--white); border-color: var(--white); }
.btn-header svg { width: 14px; height: 14px; }

/* ===== HAMBURGER ===== */
.hamburger {
  position: relative; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; background: var(--white); transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 50%; transform: translate(-50%,-50%); }
.hamburger span:nth-child(3) { bottom: 12px; }

/* ===== MOBILE NAV ===== */
.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1000; display: none;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; right: -350px; width: 350px; height: 100%;
  background: #EAF2FA; z-index: 1001; transition: right 0.3s;
  overflow-y: auto; padding: 40px 30px;
}
.mobile-nav.open { right: 0; }
.mobile-nav a, .mobile-nav .nav-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; color: var(--black); font-size: 16px; font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-nav .close-btn { text-align: right; font-size: 24px; cursor: pointer; margin-bottom: 20px; }
.mobile-nav .sub-title { color: var(--primary); font-weight: 700; font-size: 14px; margin-top: 15px; }

/* ===== HERO ===== */
.hero {
  background: var(--primary); text-align: center; padding: 60px 20px 40px;
  color: var(--white);
}
.hero-tagline {
  font-size: 36px; font-weight: 700; line-height: 1.2;
  margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.hero-cta {
  display: inline-block; padding: 14px 40px; background: var(--white);
  color: var(--primary); border-radius: 9999px; font-weight: 700; font-size: 14px;
  margin-bottom: 30px; transition: all 0.2s;
}
.hero-cta:hover { transform: scale(1.05); }

/* ===== HERO IMAGE ===== */
.hero-image-container {
  max-width: 900px; margin: 0 auto 30px; padding: 0 20px;
}
.hero-image-container img { width: 100%; border-radius: 4px; display: block; }

/* ===== EMERGENCY ===== */
.hero-emergency { text-align: center; margin-bottom: 40px; }
.hero-emergency h2 { font-size: 24px; margin-bottom: 4px; }
.hero-emergency .phone-number {
  font-size: 28px; font-weight: 700; color: var(--accent);
}
.hero-contact-icons { display: flex; gap: 30px; justify-content: center; margin-top: 16px; }
.hero-contact-icons a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* ===== SERVICES GRID ===== */
.services { background: var(--white); color: var(--primary); padding: 60px 20px; }
.services h2 { text-align: center; font-size: 24px; margin-bottom: 30px; color: var(--primary); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.service-card { background: var(--light-grey); padding: 20px; border-radius: 8px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 12px; transition: all 0.3s; color: var(--primary); }
.service-card:hover { background: var(--primary); color: var(--white); }
.service-card .num { font-size: 22px; font-weight: 800; opacity: 0.5; }

/* ===== LEGAL AID ===== */
.legal-aid { background: var(--primary); text-align: center; padding: 60px 20px; color: var(--white); }
.legal-aid h2 { font-size: 24px; margin-bottom: 8px; }
.legal-aid .subtitle { font-size: 20px; color: var(--accent); margin-bottom: 20px; }
.btn-call {
  display: inline-block; padding: 14px 40px; background: var(--white);
  color: var(--primary); border-radius: 9999px; font-weight: 700;
  font-size: 14px; transition: all 0.2s;
}
.btn-call:hover { transform: scale(1.05); }

/* ===== COMPANY ===== */
.company { background: var(--white); color: var(--primary); padding: 60px 20px; }
.company h2 { text-align: center; font-size: 24px; margin-bottom: 30px; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.company-card { padding: 24px; }
.company-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; color: var(--primary); }
.company-card p { font-size: 14px; color: #555; line-height: 1.6; }

/* ===== VALUES ===== */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-width: 900px; margin: 40px auto; padding: 0 20px; }
.value-item { text-align: center; padding: 20px 10px; cursor: pointer; }
.value-item .v-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--light-grey); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--primary); }
.value-item span { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--primary); }

/* ===== HELPLINE BAR ===== */
.helpline-bar { background: var(--primary); text-align: center; padding: 30px 20px; color: var(--white); }
.helpline-bar h3 { font-size: 16px; margin-bottom: 4px; }
.helpline-bar .phone { font-size: 24px; font-weight: 700; color: var(--accent); }
.helpline-bar .links { display: flex; gap: 20px; justify-content: center; margin-top: 12px; font-size: 14px; }
.helpline-bar .links a:hover { color: var(--accent); }

/* ===== TEAM ===== */
.team { background: var(--white); color: var(--primary); padding: 60px 20px; }
.team h2 { text-align: center; font-size: 24px; margin-bottom: 8px; }
.team .see-all { text-align: center; margin-bottom: 30px; font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.team-card { text-align: center; }
.team-photo { width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 15px; overflow: hidden; background: var(--light-grey); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.placeholder { display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--white); font-size: 48px; font-weight: 300; }
.team-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.team-card p { font-size: 13px; color: #666; line-height: 1.5; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 60px 20px; background: var(--white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.testimonial-card { background: var(--light-grey); padding: 28px; border-radius: 8px; }
.testimonial-card .rating { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial-card .rating-score { font-size: 28px; font-weight: 700; color: var(--primary); }
.testimonial-card .stars { color: #F59E0B; font-size: 18px; }
.testimonial-card .review-text { font-size: 14px; line-height: 1.6; color: #333; margin-bottom: 16px; }
.testimonial-card .reviewer { font-size: 12px; font-weight: 700; color: var(--primary); }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--black); text-align: center; padding: 60px 20px; color: var(--white); }
.cta-banner h1 { font-size: 30px; font-weight: 700; line-height: 1.3; }
.cta-banner .highlight { color: var(--accent); }
.cta-banner .socials { display: flex; gap: 16px; justify-content: center; margin-top: 20px; font-size: 22px; }
.cta-banner .socials a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.footer { background: var(--black); color: var(--white); padding: 40px 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-logo { width: 186px; height: 82px; }
.footer h1 { font-size: 18px; font-weight: 500; margin: 16px 0; }
.footer .highlight { color: var(--accent); }
.footer h4 { color: var(--accent); font-size: 12px; text-transform: uppercase; margin-bottom: 12px; }
.footer a { display: block; padding: 6px 0; border-bottom: 1px solid var(--grey); font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; margin: 16px 0; font-size: 20px; }
.footer-accreditations { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; padding: 20px; border-top: 1px solid var(--grey); margin-top: 30px; }
.footer-accreditations img { height: 50px; }
.footer-bottom { text-align: center; padding: 20px; color: var(--accent); font-size: 18px; border-top: 1px solid var(--grey); }
.footer-credit { text-align: right; padding: 10px 20px 30px; color: var(--text-muted); font-size: 16px; font-weight: 600; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--white);
  color: var(--black); padding: 16px 20px; z-index: 9999;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: center; box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  font-size: 13px;
}
.cookie-banner button { padding: 8px 20px; border-radius: 4px; border: none; cursor: pointer; font-weight: 600; }
.btn-decline { background: #eee; color: #333; }
.btn-accept { background: var(--primary); color: var(--white); }

/* ===== PAGE CONTENT ===== */
.page-content { background: var(--white); color: #333; padding: 60px 20px; }
.page-content .container { max-width: 900px; margin: 0 auto; }
.page-content h1 { color: var(--primary); font-size: 32px; margin-bottom: 30px; border-bottom: 3px solid var(--primary); padding-bottom: 15px; }
.page-content h2 { color: var(--primary); font-size: 22px; margin: 30px 0 15px; }
.page-content h3 { color: var(--primary); font-size: 18px; margin: 20px 0 10px; }
.page-content p, .page-content li { margin-bottom: 14px; font-size: 16px; line-height: 1.7; }
.page-content ul, .page-content ol { padding-left: 25px; margin-bottom: 20px; }
.page-content .highlight-box { background: #f0f4f8; border-left: 4px solid var(--primary); padding: 20px; margin: 25px 0; border-radius: 4px; }
.page-content a { color: #3C78F4; }

/* ===== CONTACT FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { padding: 14px 30px; background: var(--primary); color: var(--white); border: none; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 15px; }
.contact-form button:hover { background: var(--primary-light); }

/* ===== SEARCH ===== */
.header-search { position: relative; margin-left: auto; margin-right: 16px; }
.header-search input {
  min-width: 300px; padding: 8px 40px 8px 16px; border-radius: 20px;
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3);
  font-size: 14px; outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; cursor: pointer; }

/* ===== MOBILE MENU BUTTON ===== */
.header-menu { display: flex; align-items: center; gap: 12px; margin-left: auto; cursor: pointer; }
.header-menu p { color: var(--white); font-size: 14px; text-decoration: underline; font-weight: 600; }

/* ===== FAQ ===== */
.faq-item { margin-bottom: 20px; }
.faq-item h3 { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #eee; }
.faq-item .faq-answer { padding: 14px 0; font-size: 15px; line-height: 1.7; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding: 20px 0; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 30px; }
.timeline-year { font-size: 28px; font-weight: 800; color: var(--primary); min-width: 80px; }
.timeline-content h3 { margin-bottom: 4px; }
.timeline-content p { color: #666; }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .header-search { display: block; }
  .header-buttons { display: flex; }
  .header-menu { margin-left: 16px; }
  .hero-tagline { font-size: 42px; }
  .hero-emergency .phone-number { font-size: 36px; }
  .values { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 767px) {
  .header-search, .header-buttons { display: none; }
  .category-strip { justify-content: flex-start; }
  .hero-tagline { font-size: 26px; }
  .values { grid-template-columns: repeat(4, 1fr); }
}

/* ===== UTILITY ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
