/* ==========================================================
   THE SINGAPORE LAWYER — WordPress Theme
   Single merged stylesheet
   ========================================================== */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --navy:      #243746;
  --teal:      #33647e;
  --gold:      #eddab4;
  --gold-deep: #eace76;
  --cream:     rgb(250, 238, 217);
  --white:     #ffffff;
  --header-h:  76px; /* fallback; theme.js sets this to the header's real rendered height */
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  padding-top: var(--header-h);
}

h1, h2, h3, h4 { font-family: 'Frank Ruhl Libre', serif; }

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

.container { max-width: 1170px; margin: 0 auto; padding: 0 30px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  border: 2px solid var(--cream);
  color: var(--cream);
  padding: 14px 36px;
  font-size: 12.5px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 28px;
  transition: all 0.25s ease;
  background: transparent;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  max-width: 180px;
}
.btn:hover { background: var(--cream); color: var(--teal); }
.btn-dark-outline { border-color: var(--teal); color: var(--teal); }
.btn-dark-outline:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ---------- SECTION HEADINGS ---------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading .line { flex: 1; max-width: 340px; height: 2px; background: var(--gold); }
.section-heading h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 1px;
  color: var(--gold);
  white-space: nowrap;
}

/* ==========================================================
   HEADER
   ========================================================== */
header.site-header {
  background-color: var(--teal);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
header.site-header.scrolled {
  background-color: var(--navy) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1170px;
  margin: 0 auto;
  padding: 16px 30px;
  gap: 60px;
}
.site-logo { flex-shrink: 0; }
.site-logo img { width: 100%; max-width: 180px; height: auto; }

nav.main-nav ul { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.8px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s;
}
nav.main-nav a:hover,
nav.main-nav a.current-menu-item { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: #1c2e3b;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.mobile-menu.open { max-height: 400px; padding: 12px 0 20px; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 13px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: rgba(237,218,180,0.1); color: var(--gold); }

/* ----------------------------------------------------------
   WORDPRESS ADMIN TOOLBAR
   #wpadminbar is fixed to the real top of the viewport, above our
   own fixed header, so when it's showing (logged-in visitors) the
   header needs to be nudged down to avoid a gap/overlap. No admin
   bar, no adjustment needed.
---------------------------------------------------------- */
body.admin-bar header.site-header { margin-top: 32px; }

/* ==========================================================
   PAGE HERO (inner pages)
   ========================================================== */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center 35%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36,55,70,0.30);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  padding: 0 20px;
}

/* ==========================================================
   HOME — HERO
   ========================================================== */
.home-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(36,55,70,0.72) 0%,
    rgba(36,55,70,0.45) 45%,
    rgba(36,55,70,0.0) 70%
  );
  z-index: 1;
}
.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1170px;
  margin: 0 auto;
  padding: 60px 30px;
  width: 100%;
}
.home-hero-content .inner { max-width: 560px; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
.home-hero-content h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  opacity: 0;
  animation: slideInLeft 0.85s cubic-bezier(0.22,0.61,0.36,1) 0.2s forwards;
}
.home-hero-content .tagline {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--white);
  font-weight: 500;
  opacity: 0;
  animation: slideInLeft 0.85s cubic-bezier(0.22,0.61,0.36,1) 0.95s forwards;
}

/* ==========================================================
   HOME — ABOUT SECTION
   ========================================================== */
.home-about-section {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 70px 20px 80px;
}
.home-about-section p {
  max-width: 760px;
  margin: 0 auto 10px;
  font-size: 15.5px;
  color: var(--white);
  line-height: 1.7;
}

/* ==========================================================
   HOME — OUR DIFFERENCE
   ========================================================== */
.difference-section { background: var(--navy); padding: 70px 20px 80px; }
.difference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.diff-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-align: center;
  aspect-ratio: 3/4;
  cursor: pointer;
  text-decoration: none;
}
.diff-card .diff-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}
.diff-card.hub      .diff-img { background-color: #2e4a5e; }
.diff-card.advisors .diff-img { background-color: #1c2f3d; }
.diff-card.bridge   .diff-img { background-color: #10202b; }
.diff-card .diff-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,35,48,0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}
.diff-card:hover .diff-overlay { opacity: 1; }
.diff-card:hover .diff-img     { transform: scale(1.04); }
.diff-overlay p { font-size: 15px; color: var(--white); line-height: 1.65; margin-bottom: 22px; }
.diff-overlay .learn-more {
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: underline;
  transition: color 0.2s;
}
.diff-overlay .learn-more:hover { color: var(--gold-deep); }

/* ==========================================================
   HOME — LAW SOCIETY SPLIT
   ========================================================== */
.society-section { display: grid; grid-template-columns: 2fr 3fr; }
.society-image {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 460px;
  background-color: #c8bfae;
}
.society-content {
  background: var(--teal);
  color: var(--white);
  padding: 70px 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.society-content h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.4px;
}
.society-content p { font-size: 15px; color: var(--white); margin-bottom: 16px; max-width: 560px; line-height: 1.7; }

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner {
  background: linear-gradient(-45deg, #eddab4, #eace76, #eddab4);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  padding: 32px 30px;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-inner {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-inner h4 { font-size: 19px; color: var(--teal); font-weight: 400; letter-spacing: 0.3px; max-width: 800px; line-height: 1.4; }

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.intro-section { background: var(--teal); padding: 70px 0 60px; }
.intro-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
}
.intro-text h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.25;
  margin-bottom: 26px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.intro-text p { font-size: 15px; color: var(--white); line-height: 1.75; margin-bottom: 14px; }
.intro-image img { width: 100%; height: 300px; object-fit: cover; object-position: top center; }

.about-difference-section { background: var(--navy); padding: 72px 0 80px; }
.diff-block { max-width: 1170px; margin: 0 auto; padding: 0 30px; }
.diff-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 60px;
  align-items: stretch;
  min-height: 380px;
}
.diff-item.reverse { direction: ltr; }
.diff-item.reverse > * { direction: ltr; }
.diff-item-image { overflow: hidden; flex-shrink: 0; }
.diff-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diff-item-content {
  background: transparent;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.diff-item-content .num {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 24px;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
}
.diff-item-content h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  line-height: 1.2;
}
.diff-item-content p { font-size: 14.5px; color: var(--white); line-height: 1.72; margin-bottom: 20px; }
.diff-item-divider { display: block; width: 230px; border-top: 1px solid #eddab4; margin-bottom: 20px; }
.diff-values { margin-top: 4px; }
.diff-values .val-item { margin-bottom: 14px; }
.diff-values .val-item strong { display: block; font-size: 13.5px; color: var(--gold); font-weight: 700; margin-bottom: 3px; letter-spacing: 0.2px; }
.diff-values .val-item span  { font-size: 13.5px; color: #d9e5ea; line-height: 1.6; }
.diff-bullets { margin-top: 6px; }
.diff-bullets li { font-size: 14px; color: var(--white); line-height: 1.65; margin-bottom: 14px; padding-left: 18px; position: relative; }
.diff-bullets li::before { content: "·"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 22px; line-height: 1.2; }
.diff-bullets li strong { font-weight: 700; }

/* Testimonials */
.clients-section { background: var(--teal); padding: 75px 0 80px; }
.clients-section .section-heading h2 { font-size: 30px; white-space: nowrap; }
.testimonial-wrapper { max-width: 860px; margin: 52px auto 0; padding: 0 30px; position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); }
.testimonial-slide { min-width: 100%; text-align: center; padding: 0 20px; }
.testimonial-slide blockquote {
  font-size: 18px;
  color: var(--white);
  line-height: 1.75;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-flag { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 2px solid rgba(255,255,255,0.25); }
.testimonial-slide .attribution { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.5px; text-transform: uppercase; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.testimonial-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.35); cursor: pointer; padding: 0; transition: background 0.25s, transform 0.25s; }
.testimonial-dots button.active { background: var(--gold); transform: scale(1.2); }

/* ==========================================================
   LAW SOCIETY PAGE
   ========================================================== */
.who-section { background: var(--teal); padding: 75px 0 80px; }
.who-inner { max-width: 1170px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.who-text h2 { font-family: 'Frank Ruhl Libre', serif; font-size: 28px; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 28px; line-height: 1.2; }
.who-text p { font-size: 14.5px; color: var(--white); line-height: 1.78; margin-bottom: 20px; }
.who-image { display: flex; align-items: flex-start; justify-content: flex-end; }
.who-image img { width: 100%; max-width: 500px; height: auto; display: block; border: 8px solid var(--white); box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

.advocate-section { background: var(--navy); padding: 80px 0 90px; }
.advocate-inner { max-width: 1170px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.advocate-image img { width: 100%; height: 380px; object-fit: cover; object-position: center top; display: block; }
.advocate-text h2 { font-family: 'Frank Ruhl Libre', serif; font-size: 34px; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 28px; line-height: 1.18; }
.advocate-text p { font-size: 14.5px; color: #d5e0e6; line-height: 1.78; margin-bottom: 20px; }

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.contact-section { background: var(--white); padding: 70px 0 90px; }
.contact-heading-row { display: flex; align-items: center; gap: 24px; max-width: 1170px; margin: 0 auto 52px; padding: 0 30px; }
.contact-heading-row .line { flex: 1; height: 2px; background: var(--teal); }
.contact-heading-row h2 { font-family: 'Frank Ruhl Libre', serif; font-size: 28px; font-weight: 400; color: var(--teal); letter-spacing: 1.5px; white-space: nowrap; text-transform: uppercase; }
.contact-body { max-width: 1170px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.contact-card { background: var(--teal); padding: 44px 38px 48px; min-height: 340px; }
.contact-card h3 { font-family: 'Frank Ruhl Libre', serif; font-size: 26px; font-weight: 500; color: var(--gold); margin-bottom: 18px; letter-spacing: 0.3px; }
.contact-card .card-desc { font-size: 14px; color: var(--white); line-height: 1.7; margin-bottom: 32px; }
.contact-card .card-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-card .card-item .card-icon { color: var(--cream); font-size: 16px; margin-top: 2px; flex-shrink: 0; width: 20px; text-align: center; opacity: 0.85; }
.contact-card .card-item span,
.contact-card .card-item a { font-size: 14px; color: var(--cream); line-height: 1.6; }
.contact-card .card-item a:hover { color: var(--gold); }
.contact-form-wrap { padding: 12px 0 0 20px; }
.contact-form-wrap h3 { font-family: 'Frank Ruhl Libre', serif; font-size: 26px; font-weight: 400; color: var(--teal); margin-bottom: 34px; letter-spacing: 0.2px; }
.form-group { margin-bottom: 28px; position: relative; }
.form-group label { display: block; font-size: 13px; color: #888; margin-bottom: 10px; letter-spacing: 0.3px; }
.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c8c8c8;
  padding: 8px 0 10px;
  font-size: 14.5px;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--teal); }
.form-group textarea { resize: none; height: 72px; display: block; }
.form-row-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.btn-send { display: inline-block; border: 2px solid var(--teal); color: var(--teal); background: transparent; padding: 14px 42px; font-size: 12.5px; letter-spacing: 2px; font-weight: 700; cursor: pointer; font-family: 'Roboto', sans-serif; transition: all 0.25s ease; text-transform: uppercase; }
.btn-send:hover { background: var(--teal); color: var(--white); }
.form-msg { display: none; margin-top: 20px; padding: 14px 20px; font-size: 14px; font-weight: 500; border-radius: 2px; }
.form-msg.success { background: #e8f4f8; color: var(--teal); border-left: 3px solid var(--teal); }
.form-msg.error   { background: #fdf0f0; color: #c0392b; border-left: 3px solid #c0392b; }

/* ----------------------------------------------------------
   CONTACT FORM 7 — same visual treatment as the built-in form
   above. Scoped to .contact-form-wrap so it only applies when a
   CF7 shortcode has replaced the built-in form on the Contact page.
   CF7 doesn't wrap Name/Email/Phone in a shared row element the way
   .form-row-three does, so the 3-column layout is done with CSS
   Grid on the form itself: the 2nd/3rd/4th <p> (Name/Email/Phone,
   in that fixed field order) each take one explicit column, and
   every other <p> (Enquiry, Submit) spans the full width.
---------------------------------------------------------- */
.contact-form-wrap .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 28px;
}
.contact-form-wrap .wpcf7-form p {
  grid-column: 1 / -1;
  margin: 0 0 28px;
}
.contact-form-wrap .wpcf7-form p:nth-of-type(2),
.contact-form-wrap .wpcf7-form p:nth-of-type(3),
.contact-form-wrap .wpcf7-form p:nth-of-type(4) {
  margin-bottom: 40px;
}
.contact-form-wrap .wpcf7-form p:nth-of-type(2) { grid-column: 1; }
.contact-form-wrap .wpcf7-form p:nth-of-type(3) { grid-column: 2; }
.contact-form-wrap .wpcf7-form p:nth-of-type(4) { grid-column: 3; }

.contact-form-wrap .wpcf7-form label {
  display: block;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.contact-form-wrap .wpcf7-form .wpcf7-form-control-wrap { display: block; }

.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c8c8c8;
  padding: 8px 0 10px;
  font-size: 14.5px;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form-wrap .wpcf7-form input[type="text"]:focus,
.contact-form-wrap .wpcf7-form input[type="email"]:focus,
.contact-form-wrap .wpcf7-form input[type="tel"]:focus,
.contact-form-wrap .wpcf7-form textarea:focus { border-bottom-color: var(--teal); }
.contact-form-wrap .wpcf7-form textarea { resize: none; height: 72px; display: block; }

.contact-form-wrap .wpcf7-form input.wpcf7-submit {
  display: inline-block;
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
  padding: 14px 42px;
  font-size: 12.5px;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all 0.25s ease;
  text-transform: uppercase;
}
.contact-form-wrap .wpcf7-form input.wpcf7-submit:hover { background: var(--teal); color: var(--white); }
.contact-form-wrap .wpcf7-spinner { margin-left: 10px; vertical-align: middle; }

/* CF7 adds .sent / .failed / .spam / .aborted to the <form> itself
   after a submission — style the response message to match .form-msg. */
.contact-form-wrap .wpcf7-response-output {
  margin-top: 20px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  border: none;
}
.contact-form-wrap .wpcf7-form.sent .wpcf7-response-output {
  background: #e8f4f8; color: var(--teal); border-left: 3px solid var(--teal);
}
.contact-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.aborted .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.spam .wpcf7-response-output {
  background: #fdf0f0; color: #c0392b; border-left: 3px solid #c0392b;
}
.contact-form-wrap .wpcf7-not-valid-tip {
  display: block;
  color: #c0392b;
  font-size: 12.5px;
  margin-top: 6px;
}

/* ----------------------------------------------------------
   FLUENT FORMS — same visual treatment as the two blocks above.
   Fluent Forms ships its own default styling more assertively than
   CF7 (bordered/rounded inputs, a filled submit button), so key
   resets below use !important to guarantee they win regardless of
   whether the plugin's stylesheet loads before or after this one.

   .ff-el-group items sit directly inside <fieldset>, not <form>, so
   the grid goes on the fieldset. Field order (Enquiry, Name, Email,
   Phone, Submit) is assumed to match the built-in form — the same
   fixed-position approach as the Contact Form 7 rules above.
---------------------------------------------------------- */
.contact-form-wrap .frm-fluent-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 28px;
}
.contact-form-wrap .frm-fluent-form .ff-el-group {
  grid-column: 1 / -1;
  margin: 0 0 28px;
}
.contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(2),
.contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(3),
.contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(4) {
  margin-bottom: 40px;
}
.contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(2) { grid-column: 1; }
.contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(3) { grid-column: 2; }
.contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(4) { grid-column: 3; }

.contact-form-wrap .frm-fluent-form .ff-el-input--label label {
  display: block;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.contact-form-wrap .frm-fluent-form .ff-el-form-control {
  width: 100% !important;
  border: none !important;
  border-bottom: 1px solid #c8c8c8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 0 10px !important;
  font-size: 14.5px;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: transparent !important;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.contact-form-wrap .frm-fluent-form .ff-el-form-control:focus {
  border-bottom-color: var(--teal) !important;
}
.contact-form-wrap .frm-fluent-form textarea.ff-el-form-control {
  resize: none;
  height: 72px;
  display: block;
}

.contact-form-wrap .frm-fluent-form .ff-btn-submit {
  display: inline-block;
  border: 2px solid var(--teal) !important;
  color: var(--teal) !important;
  background: transparent !important;
  padding: 14px 42px !important;
  font-size: 12.5px;
  letter-spacing: 2px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: all 0.25s ease;
  text-transform: uppercase;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
}
.contact-form-wrap .frm-fluent-form .ff-btn-submit:hover {
  background: var(--teal) !important;
  color: var(--white) !important;
}

.contact-form-wrap .ff-errors-in-stack:not(:empty) {
  margin-top: 20px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  background: #fdf0f0;
  color: #c0392b;
  border-left: 3px solid #c0392b;
}

/* ==========================================================
   LEGAL PAGES (Terms of Use / Privacy Policy)
   ========================================================== */
.legal-hero { background: #628ea6; padding: 60px 0; }
.legal-hero-inner { display: flex; align-items: center; justify-content: center; gap: 24px; max-width: 1170px; margin: 0 auto; padding: 0 30px; }
.legal-hero-inner .line { flex: 1; max-width: 400px; height: 2px; background: var(--gold); }
.legal-hero-inner h1 { font-family: 'Frank Ruhl Libre', serif; font-weight: 400; font-size: 36px; line-height: 36px; color: var(--gold); letter-spacing: 1px; white-space: nowrap; }

.legal-content { background: #628ea6; padding: 70px 0 90px; }
.legal-content .container { max-width: 1170px; }
.legal-content .entry-content h6 { font-family: 'Roboto', sans-serif; color: var(--white); font-size: 15px; font-weight: 700; line-height: 1.8; margin-bottom: 30px; }
.legal-content .entry-content h5 { font-family: 'Frank Ruhl Libre', serif; color: var(--gold); font-size: 19px; font-weight: 500; letter-spacing: 0.3px; margin: 36px 0 14px; }
.legal-content .entry-content h5:first-of-type { margin-top: 0; }
.legal-content .entry-content p { color: #d5e0e6; font-size: 14.5px; line-height: 1.78; margin-bottom: 16px; }
.legal-content .entry-content ol { color: #d5e0e6; font-size: 14.5px; line-height: 1.78; padding-left: 22px; margin-bottom: 16px; }
.legal-content .entry-content ol li { margin-bottom: 14px; }
.legal-content .entry-content ol ol { margin: 12px 0 12px 20px; }
.legal-content .entry-content ol[type="a"] { list-style-type: lower-alpha; }
.legal-content .entry-content strong { color: var(--white); }
.legal-content .entry-content em { color: #a9b8c1; }
.legal-content .entry-content a { color: var(--gold); text-decoration: underline; }
.legal-content .entry-content a:hover { color: var(--white); }

/* ==========================================================
   FOOTER
   ========================================================== */
footer.site-footer { background: var(--navy); color: var(--cream); padding-top: 55px; }
.footer-grid { max-width: 1170px; margin: 0 auto; padding: 0 30px 44px; display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 44px; }
.footer-logo-img { max-width: 150px; }
.footer-col h4 { font-family: 'Roboto', sans-serif; font-size: 14px; letter-spacing: 1.2px; color: var(--cream); margin-bottom: 18px; font-weight: 700; text-transform: uppercase; }
.footer-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 14px; color: #c4ced4; line-height: 1.55; }
.footer-item .icon { color: var(--gold); font-size: 15px; margin-top: 2px; flex-shrink: 0; width: 18px; text-align: center; }
.footer-item a { color: #c4ced4; }
.footer-item a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { max-width: 1170px; margin: 0 auto; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #8fa0aa; }
.footer-bottom-inner .copyright { color: #8fa0aa; }
.footer-bottom-inner .links { margin-top: 5px; }
.footer-bottom-inner .links a { color: var(--white); font-weight: 700; font-size: 12.5px; }
.footer-bottom-inner .links a:hover { color: var(--gold); }
.footer-bottom-inner .links a + a { margin-left: 8px; }
.footer-bottom-inner .links a:first-child::after { content: " |"; color: #8fa0aa; margin-left: 8px; }
.back-to-top { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--cream); color: var(--cream); padding: 11px 22px; font-size: 12px; letter-spacing: 1.8px; font-weight: 700; transition: all 0.25s ease; white-space: nowrap; }
.back-to-top:hover { background: var(--cream); color: var(--navy); }
.back-to-top .arrow { font-size: 16px; line-height: 1; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .header-row { gap: 30px; padding: 14px 20px; }
  nav.main-nav a { font-size: 11.5px; }
  nav.main-nav ul { gap: 20px; }
  .diff-item-content { padding: 40px 36px; }
  .who-inner { gap: 44px; }
  .advocate-inner { gap: 44px; }
  .contact-body { grid-template-columns: 300px 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  nav.main-nav { display: none; }
  .mobile-menu { display: block; }
  .header-row { gap: 0; padding: 14px 20px; }
  .home-hero {
    background-image: url(../images/mobile_slider_hero.jpg) !important;
    min-height: 500px;
  }
  .home-hero-content h1 { font-size: 36px; }
  .home-hero-content .inner { text-align: center; }
  .home-hero-content .tagline { font-size: 13px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero { min-height: 140px; }
  .legal-hero { padding: 40px 0; }
  .legal-hero-inner { gap: 14px; }
  .legal-hero-inner .line { max-width: 60px; }
  .legal-hero-inner h1 { font-size: 24px; line-height: 30px; white-space: normal; text-align: center; }
  .legal-content { padding: 50px 0 65px; }
  .home-about-section { padding: 55px 20px 65px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading { gap: 12px; }
  .difference-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .society-section { grid-template-columns: 1fr; }
  .society-image { min-height: 400px; }
  .society-content { padding: 50px 30px; }
  .society-content h2 { font-size: 26px; }
  .intro-inner { grid-template-columns: 1fr; gap: 36px; }
  .intro-image img { height: 260px; }
  .diff-item { grid-template-columns: 1fr; min-height: auto; }
  .diff-item.reverse { direction: ltr; }
  .diff-item-image { min-height: 280px; }
  .diff-item-content { padding: 40px 28px; }
  .clients-section .section-heading h2 { font-size: 22px; }
  .testimonial-slide blockquote { font-size: 16px; }
  .who-inner { grid-template-columns: 1fr; gap: 36px; }
  .who-image { justify-content: center; }
  .who-image img { max-width: 100%; }
  .who-text h2 { font-size: 22px; }
  .advocate-inner { grid-template-columns: 1fr; gap: 36px; }
  .advocate-image img { height: 300px; }
  .advocate-text h2 { font-size: 26px; }
  .contact-body { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { min-height: auto; }
  .contact-form-wrap { padding: 0; }
  .form-row-three { grid-template-columns: 1fr; gap: 0; }
  .contact-form-wrap .wpcf7-form { grid-template-columns: 1fr; }
  .contact-form-wrap .wpcf7-form p:nth-of-type(2),
  .contact-form-wrap .wpcf7-form p:nth-of-type(3),
  .contact-form-wrap .wpcf7-form p:nth-of-type(4) {
    grid-column: 1;
    margin-bottom: 28px;
  }
  .contact-form-wrap .frm-fluent-form fieldset { grid-template-columns: 1fr; }
  .contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(2),
  .contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(3),
  .contact-form-wrap .frm-fluent-form .ff-el-group:nth-of-type(4) {
    grid-column: 1;
    margin-bottom: 28px;
  }
  .contact-heading-row h2 { font-size: 22px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner h4 { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .footer-bottom-inner { flex-direction: column; align-items: center; gap: 16px; }
}

@media (max-width: 480px) {
  .home-hero { min-height: 500px; }
  .home-hero-content h1 { font-size: 28px; }
  .home-hero-content { padding: 40px 20px; }
  .difference-section { padding: 50px 16px 60px; }
  .society-content { padding: 40px 20px; }
  .society-content h2 { font-size: 22px; }
  .cta-banner { padding: 28px 20px; }
  .cta-inner h4 { font-size: 15px; }
  .btn { padding: 12px 28px; font-size: 11.5px; }
  .contact-section { padding: 50px 0 70px; }
  .contact-heading-row { padding: 0 20px; margin-bottom: 36px; }
  .contact-heading-row h2 { font-size: 18px; letter-spacing: 0.8px; }
  .contact-body { padding: 0 20px; }
  .contact-card { padding: 32px 24px 36px; }
  .contact-card h3 { font-size: 22px; }
  .contact-form-wrap h3 { font-size: 22px; }
  .btn-send { width: 100%; text-align: center; padding: 14px 24px; }
  .intro-text h2 { font-size: 22px; }
  .diff-item-content h3 { font-size: 20px; }
  .diff-item-content { padding: 32px 20px; }
  .who-text h2 { font-size: 20px; }
  .advocate-text h2 { font-size: 22px; }
  .advocate-image img { height: 240px; }
  .footer-grid { padding: 0 16px 28px; }
  .footer-bottom-inner { padding: 18px 16px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-content h1,
  .home-hero-content .tagline { opacity: 1; animation: none; }
  .diff-card .diff-img { transition: none; }
  .testimonial-track { transition: none; }
  .cta-banner { animation: none; }
}
