/*
Theme Name: LexOfficia Legal
Theme URI: https://lexofficia.com
Description: Professional legal services one-page theme for LexOfficia
Version: 1.0
Author: LexOfficia
Author URI: https://lexofficia.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lexofficia
*/

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;700;800&display=swap');

:root {
  --primary: #033F6B;
  --primary-dark: #022F50;
  --accent: #1ca6a6;
  --text-dark: #0c3350;
  --bg-light: #f4faff;
  --transition: 0.3s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dark);
  overflow-x: hidden;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  /* Remove any WP default margins */
  margin: 0 !important;
  padding: 0 !important;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* WordPress admin bar fix — push navbar down when admin bar is visible */
.admin-bar .main-navbar { top: 44px; }
@media screen and (max-width: 782px) {
  .admin-bar .main-navbar { top: 46px; }
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.container-inner { max-width: 880px; margin: 0 auto; padding: 0 18px; }

.btn { display: inline-block; font-weight: 600; padding: 10px 20px; border-radius: 8px; transition: all var(--transition); cursor: pointer; border: none; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-large { padding: 14px 34px; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.btn-medium { padding: 10px 22px; }

/* Loader */
.loader-bg { position: fixed; z-index: 999999; width: 100%; height: 100%; background: #fff; display: flex; align-items: center; justify-content: center; top: 0; left: 0; }
.center { display: flex; align-items: center; gap: 8px; }
.circle { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); animation: bounce .6s infinite alternate; }
.circle:nth-child(2) { animation-delay: 0.2s; }
.circle:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0% { transform: translateY(12px); } 100% { transform: translateY(-12px); } }

/* ================================
   NAVBAR — always position:fixed
   ================================ */
header { display: none; } /* hide the empty WP header wrapper */

.main-navbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 12px;
  background: transparent;
  padding: 10px 18px;
  border-radius: 22px;
  max-width: 1280px;
  width: calc(100% - 36px);
  z-index: 9999;
  transition: background .3s;
}
.main-navbar.scrolled {
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(3,63,107,0.3);
}

.nav-container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand .logo { height: 42px; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links .nav-link { color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 0.4px; position: relative; padding: 6px 0; }
.nav-links .nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: #ffd700; transition: width .3s; }
.nav-links .nav-link:hover::after { width: 100%; }

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

/* Backdrop */
.menu-backdrop {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  z-index: 99998;
}
.menu-backdrop.active { display: block; }

/* ================================
   MOBILE SLIDER
   width:100%, right:-100% hidden
   right:0 when active
   ================================ */
.mobile-slider {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--primary);
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 99999;
  transition: right 0.4s ease-in-out;
  overflow-x: hidden;
  overflow-y: auto;
}
.mobile-slider.active { right: 0; }
/* Top row: logo left, close button right */
.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
	flex-direction:row-reverse;
  width: 100%;
}
.close-menu { font-size: 32px; color: #fff; cursor: pointer; line-height: 1; }
.slider-logo { width: 130px; }
/* .close-menu { font-size: 32px; color: #fff; cursor: pointer; align-self: flex-end; line-height: 1; } */
/* .slider-logo { width: 130px; margin-bottom: 10px; } */
.slider-menu li { margin: 16px 0; }
.slider-menu li a { font-size: 17px; color: #fff; font-weight: 600; display: block; }
.slider-menu li a:hover { color: #ffd700; }

/* ================================
   HERO
   ================================ */
.hero-lex {
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 0 20px;
  background: linear-gradient(135deg, #0075c9 0%, #033F6B 50%, #00c0a3 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-lex::before { content: ""; position: absolute; inset: 0; background: rgba(3,63,107,0.3); z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero-lex h1 { font-size: 48px; font-weight: 700; line-height: 1.12; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; }
.hero-lex p.lead { font-size: 22px; margin-bottom: 30px; opacity: .95; }
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; }

/* About */
.bg-lady { position: relative; padding: 110px 0; background: #fff; overflow: hidden; }
.bg-lady::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 400px; height: 400px;
  background: url('assets/images/lady-justice.png') no-repeat center center;
  background-size: contain; opacity: 0.15;
  transform: translate(-50%, -50%); z-index: 1;
}
.bg-lady .container-inner { position: relative; z-index: 5; text-align: center; }
.section-lex h1 { font-size: 36px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; font-family: 'Montserrat', sans-serif; line-height: 1.2; }
.section-lex p.lead-desc { color: #23456b; line-height: 1.6; margin: 0 auto 26px; max-width: 820px; font-size: 17px; }

/* Services */
.section-heading { font-size: 30px; color: var(--text-dark); font-weight: 700; margin-bottom: 18px; font-family: 'Montserrat', sans-serif; }
.services-lex { padding: 60px 0; }
.service-row { display: flex; align-items: center; gap: 30px; margin-bottom: 48px; }
.service-row.reverse { flex-direction: row-reverse; }
.service-col { flex: 1; }
.text-col { padding: 10px 20px; }
.icon-col { text-align: center; padding: 10px 20px; }
.icon-wrap { position: relative; display: inline-block; width: 180px; height: 180px; transition: transform .3s; }
.icon-wrap:hover { transform: scale(1.06) rotate(2deg); }
.service-frame { position: absolute; inset: 0; border: 6px solid #fff; transform: rotate(5deg); top: 12px; right: -12px; border-radius: 6px; z-index: 1; }
.service-icon-bg { width: 100%; height: 100%; background-size: 70%; background-repeat: no-repeat; background-position: center; background-color: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); position: relative; z-index: 2; }
.frame-purple { border-color: #6825d0; }
.frame-teal   { border-color: var(--accent); }
.frame-blue   { border-color: var(--primary); }
.service-title { font-size: 20px; color: #003366; font-weight: 700; margin-bottom: 8px; }
.service-text  { color: #333; margin-bottom: 10px; line-height: 1.6; }
.service-list  { color: #333; padding-left: 18px; line-height: 1.7; list-style: disc; }

/* Why */
.why-lex { padding: 60px 0; background: #def1ff; color: var(--text-dark); }
.why-heading { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 18px; font-family: 'Montserrat', sans-serif; }
.why-desc { text-align: center; max-width: 850px; margin: 0 auto 30px; color: #0c3350; line-height: 1.7; }
.strengths { max-width: 900px; margin: 0 auto; }
.strengths h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--primary); }
.strength-list { padding-left: 18px; line-height: 1.8; color: #0c3350; list-style: disc; }

/* Contact */
.contact-section { padding: 60px 0; background: var(--bg-light); }
.contact-heading { text-align: center; font-size: 28px; color: var(--primary); font-weight: 700; margin-bottom: 10px; font-family: 'Montserrat', sans-serif; }
.contact-desc { text-align: center; max-width: 700px; margin: 0 auto 30px; color: #23456b; }
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; max-width: 1100px; margin: 0 auto; }
.contact-form-wrapper { background: #fff; padding: 26px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.contact-form label { display: block; margin-bottom: 12px; font-weight: 600; color: var(--primary); font-size: 14px; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 12px; border: 1px solid #e3e9f0; border-radius: 8px; margin-top: 6px; font-size: 15px; font-family: 'Raleway', sans-serif; color: #333; transition: border-color .2s; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form .btn-primary { width: 100%; margin-top: 8px; font-size: 16px; }
.contact-info { padding: 20px 10px; }
.contact-info h4 { font-size: 20px; color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.contact-info p { margin-bottom: 14px; color: #23456b; line-height: 1.6; }
.contact-info strong { color: var(--primary); }
.contact-result { padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; display: none; }
.contact-result.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.contact-result.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s; }
.socials a:hover { background: var(--primary-dark); }



/* Footer */
.site-footer { background: var(--primary); color: #fff; padding: 50px 0 20px;display:flex;flex-direction:column }
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
  }

  /* Logo sits at the very top of the footer, left-aligned */
  .footer-logo-wrap {
    margin-bottom: 36px;
  }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.footer-logo { width: 150px; margin-bottom: 12px;}
.footer-col h4 { font-size: 18px; margin-bottom: 12px; color: #fff; font-weight: 700; }
.footer-col .links li { margin-bottom: 8px; }
.footer-col .links li a { color: rgba(255,255,255,0.8); font-size: 14px; transition: color .2s; }
.footer-col .links li a:hover { color: #ffd700; }
.footer-col .links li:not(:has(a)) { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-bottom { background: var(--primary-dark); padding: 16px 0; margin-top: 30px; color: rgba(255,255,255,0.85); text-align: center; font-size: 14px; }
.footer-bottom a { color: rgba(255,255,255,0.7); margin: 0 5px; }
.footer-bottom a:hover { color: #ffd700; }

.go-top { position: fixed; bottom: 15px; right: 15px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s; cursor: pointer; }
.go-top.active { opacity: 1; visibility: visible; transform: none; }

.text-center { text-align: center; }
.mb-5 { margin-bottom: 40px; }

/* ≤1024px */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .desktop-only { display: none; }
  .menu-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ≤991px */
@media (max-width: 991px) {
  .service-row { flex-direction: column !important; text-align: center; gap: 20px; }
  .service-row.reverse { flex-direction: column !important; }
  .service-col.icon-col { order: -1; display: flex; justify-content: center; }
  .icon-wrap { width: 120px; height: 120px; margin: 0 auto; }
  .section-lex h1 { font-size: 32px !important; line-height: 42px !important; }
  .lead-desc { font-size: 16px !important; }
  .container-inner { text-align: center; padding: 20px; }
}

/* ≤768px */
@media (max-width: 768px) {
  .hero-lex h1 { font-size: 32px; }
  .hero-lex p.lead { font-size: 18px; }
  .services-lex { padding: 40px 16px; }
  .bg-lady { padding: 70px 18px; }
  .contact-info { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ≤576px */
@media (max-width: 576px) {
  .navbar-brand .logo { height: 28px; }
  .hero-lex h1 { font-size: 26px; }
  .hero-lex p.lead { font-size: 15px; }
  .section-lex h1 { font-size: 26px !important; }
  .section-heading { font-size: 24px; }
  .why-heading { font-size: 24px; }
  .contact-heading { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 12px; }
  .main-navbar { top: 8px; padding: 8px 12px; }
}
