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


@font-face {
  font-family: 'Playfair Display Web';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');
}

:root {
  --bg-color: #fcfcfb;
  --bg-secondary: #f0fdf4;
  --text-main: #1c1917;
  --text-muted: #57534e;
  
  --primary: #022c22;
  --secondary: #059669;
  --secondary-light: #d1fae5;
  --cta: #059669;
  --cta-hover: #047857;
  
  --border-color: rgba(17, 24, 39, 0.08);
  --font-sans: 'Outfit', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display Web', 'Playfair Display', 'Prompt', serif;

  --max-width: 1300px;
}

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

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

::selection { background: var(--secondary); color: white; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary { background-color: var(--secondary); color: white; }
.btn-primary:hover { background-color: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2); }
.btn-outline { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { background-color: var(--bg-secondary); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Navbar */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 2rem; position: absolute; top: 0; left: 0; right: 0; z-index: 50;
}
.langSwitch { display: flex; background: white; padding: 0.25rem; border-radius: 100px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.langBtn { background: none; border: none; cursor: pointer; padding: 0.5rem 1rem; border-radius: 100px; font-weight: 600; font-size: 0.875rem; color: var(--text-muted); transition: all 0.2s; }
.langBtn.active { background: var(--primary); color: white; }

/* Hero */
.heroEditorial { min-height: 80vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-color); position: relative; overflow: hidden; }
.heroImageWrapper { position: relative; height: 100%; min-height: 85vh; width: 100%; }
.heroImage { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.heroEditorialContent { padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center; z-index: 10; animation: fadeIn 1.2s forwards; }
.editorialTag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--secondary); text-transform: uppercase; margin-bottom: 1.5rem; }
.editorialTitle { font-family: var(--font-serif); font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: 1.1; color: var(--primary); margin-bottom: 3rem; display: flex; flex-direction: column; font-weight: 400; position: relative; z-index: 20; }
.titleLine1 { margin-left: -5%; }
.titleLine2 { margin-left: -25%; font-style: italic; color: var(--secondary); position: relative; display: inline-block; font-weight: 400; text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8); }
.titleLine3 { margin-left: 5%; }
.editorialTitle strong { font-weight: 700; }
.editorialTitle::before { content: ""; position: absolute; top: -20%; left: -40%; width: 150%; height: 140%; background: radial-gradient(ellipse at center left, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 65%); z-index: -1; pointer-events: none; filter: blur(12px); }

.notaryBadge { position: absolute; width: clamp(8rem, 15vw, 12rem); height: clamp(8rem, 15vw, 12rem); left: 40%; top: 50%; transform: translateY(-50%); color: var(--secondary); display: flex; align-items: center; justify-content: center; z-index: -1; opacity: 0.45; }
.badgeSvg { animation: spinSlow 28s linear infinite; position: absolute; inset: 0; width: 100%; height: 100%; }
.badgeText { font-family: var(--font-sans); font-size: 8px; font-weight: 500; fill: currentColor; letter-spacing: 2.5px; text-transform: uppercase; }
.badgeCenter { position: relative; z-index: 2; color: var(--secondary); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.badgeCenter svg { width: clamp(2rem, 4vw, 3rem); height: clamp(2rem, 4vw, 3rem); }

.editorialBottom { max-width: 520px; margin-left: 5%; display: flex; flex-direction: column; gap: 2.5rem; }
.editorialSubtitle { font-size: 1.125rem; color: var(--text-muted); line-height: 1.8; font-weight: 300; }
.actionGroup { display: flex; flex-direction: column; gap: 1.5rem; }
.editorialCta { display: flex; gap: 2rem; align-items: center; }
.editorialLink { font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--text-main); padding-bottom: 0.25rem; }

.heroSocial { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.heroSocial p { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.heroSocialLinks { display: flex; gap: 1rem; }
.socialIcon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: white; border: 1px solid var(--border-color); transition: all 0.3s; color: var(--primary); }
.socialIcon:hover { background: var(--secondary); color: white; border-color: var(--secondary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2); }

@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Marquee */
.marquee { background: #0f2c20; color: rgba(255, 255, 255, 0.85); padding: 0.75rem 0; overflow: hidden; display: flex; white-space: nowrap; }
.marqueeContent { display: flex; animation: scroll 25s linear infinite; }
.marqueeItem { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.15em; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Services */
.section { padding: 4rem 0; }
.sectionHeader { margin-bottom: 3rem; }
.sectionTag { font-size: 0.75rem; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.5rem; }
.sectionTitle { font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 2.5rem); }

.servicesGrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; align-items: flex-start; }
.serviceCard { width: calc(25% - 1.125rem); background: white; padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 1rem; transition: all 0.4s ease; }
.serviceCard:hover { border-color: var(--secondary); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); }
.serviceHeader { display: flex; justify-content: space-between; margin-bottom: 1rem; align-items: center; }
.serviceIcon { color: var(--primary); transition: transform 0.4s; }
.serviceCard:hover .serviceIcon { transform: scale(1.15); color: var(--secondary); }
.serviceNum { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; color: var(--secondary); opacity: 0.4; }
.serviceTitle { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0; transition: margin 0.4s ease; }
.serviceCard:hover .serviceTitle { margin-bottom: 0.5rem; }
.serviceDesc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.4s ease; }
.serviceCard:hover .serviceDesc { max-height: 150px; opacity: 1; }

/* FAQ */
.faqItem { border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
.faqQuestion { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer; text-align: left; padding: 0; }
.faqQuestion h4 { font-size: 1.125rem; margin: 0; font-weight: 500; transition: color 0.3s; }
.faqQuestion:hover h4 { color: var(--secondary); }
.faqIcon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-secondary); color: var(--secondary); transition: transform 0.3s; }
.faqItem.open .faqIcon { transform: rotate(180deg); }
.faqAnswerWrapper { height: 0; overflow: hidden; transition: height 0.3s ease; }
.faqAnswer { padding-top: 1rem; color: var(--text-muted); line-height: 1.7; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 100; opacity: 0; animation: fadeModal 0.3s forwards; }
@keyframes fadeModal { to { opacity: 1; } }
.modal-content { background: white; border-radius: 1.5rem; padding: 3rem; width: 90%; max-width: 600px; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: scale(0.95); animation: scaleModal 0.3s forwards; }
@keyframes scaleModal { to { transform: scale(1); } }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.modal-close:hover { color: var(--primary); }

/* Upload Styles */
.upload-title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 0.5rem; }
.upload-subtitle { color: var(--text-muted); margin-bottom: 2rem; }


.formInput { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 0.5rem; font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.2s; }
.formInput:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px var(--secondary-light); }
.uploadArea { border: 2px dashed var(--border-color); border-radius: 1rem; padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg-color); margin-bottom: 1.5rem; }
.uploadArea:hover { border-color: var(--secondary); background: var(--bg-secondary); }
.uploadIcon { color: var(--secondary); margin-bottom: 1rem; }
.uploadHint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }
.fileList { margin-bottom: 1.5rem; background: #f9fafb; border-radius: 0.75rem; padding: 1rem; }
.fileItem { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.fileItem:last-child { border-bottom: none; }
.fileInfo { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.removeBtn { background: none; border: none; color: #ef4444; cursor: pointer; }
.progressContainer { margin-bottom: 1rem; }
.progressBar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.progressFill { height: 100%; background: var(--secondary); transition: width 0.3s; }
.progressText { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* Floating Widget */
.floatingButtons { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 1rem; z-index: 50; }
.floatingBtn { width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: transform 0.3s; border: none; cursor: pointer; }
.floatingBtn:hover { transform: translateY(-4px) scale(1.05); }

@media (max-width: 900px) {
  .heroEditorial { grid-template-columns: 1fr; }
  .servicesGrid { flex-direction: column; }
  .serviceCard { width: 100%; }
  .hidden-mobile { display: none !important; }
}

/* Process Section */
.sectionDark { background: url("./elegant_scale.svg") right -100px bottom -100px / 600px no-repeat, linear-gradient(145deg, var(--primary) 0%, #0d281c 100%); position: relative; z-index: 1; border-radius: 2.5rem; margin: 1rem 3vw; box-shadow: 0 20px 40px rgba(0,0,0,0.15); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.processLeft { padding: 5rem 6vw; display: flex; flex-direction: column; justify-content: center; }
.processRightImage { position: relative; width: 100%; height: 100%; min-height: 400px; }
.timelineVerticalContainer { position: relative; padding-left: 2rem; margin-top: 1rem; }
.timelineVerticalLine { position: absolute; top: 0; left: 3.25rem; width: 1px; height: 100%; background: rgba(255, 255, 255, 0.2); }
.timelineVerticalGrid { display: flex; flex-direction: column; gap: 1.5rem; position: relative; z-index: 1; }
.timelineVerticalStep { display: flex; gap: 1.5rem; align-items: flex-start; }
.timelineVerticalDot { width: 40px; height: 40px; background: var(--primary); box-shadow: inset 0 0 0 20px rgba(5, 150, 105, 0.15); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 2; }
.timelineVerticalContent { flex: 1; }
.timelineVerticalNum { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: rgba(255,255,255,0.15); line-height: 1; margin-bottom: 0.25rem; }
.timelineVerticalTitle { color: white; font-size: 1.125rem; font-weight: 500; margin-bottom: 0.25rem; }
.timelineVerticalDesc { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.5; max-width: 600px; }

/* Licence Section */
.licenceLayout { display: grid; grid-template-columns: 4fr 5fr; gap: 5rem; align-items: center; padding: 2rem 0; }
.licenceVisualCol { display: flex; flex-direction: column; }
.licenceImagesContainer { margin-top: 1rem; }
.licenceImages { position: relative; height: 320px; width: 100%; margin-bottom: 1.5rem; }
.certWrapper { position: absolute; border: 1px solid rgba(0,0,0,0.1); border-radius: 0.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; background: white; transition: transform 0.4s ease; cursor: pointer; }
.cert1 { left: 0; top: 0; width: 200px; height: 285px; z-index: 2; transform: rotate(-2deg); }
.cert2 { left: 140px; top: 60px; width: 260px; height: 190px; z-index: 1; transform: rotate(3deg); }
.certWrapper:hover { z-index: 3; transform: translateY(-10px) rotate(0deg) scale(1.05); }
.certImageCover { width: 100%; height: 100%; object-fit: cover; display: block; }
.licenceCaption { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; max-width: 380px; margin-top: 0.5rem; }
.licenceDataCol { display: flex; flex-direction: column; justify-content: center; }
.licenceGridData { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: 2.5rem; margin-bottom: 2.5rem; }
.licenceDataItem { border-left: 2px solid var(--primary); padding-left: 1rem; }
.licenceDataItem h4 { font-size: 0.75rem; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.licenceDataItem p { font-size: 1.25rem; color: var(--primary); font-family: var(--font-serif); font-weight: 600; line-height: 1.3; }
.licenceDataSub { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 0.25rem; }
.licenceDisclaimer { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }

/* Reviews */
.sectionDarkFull { background: url("./elegant_scale.svg") right -100px bottom -100px / 600px no-repeat, linear-gradient(145deg, var(--primary) 0%, #0d281c 100%); position: relative; z-index: 1; border-radius: 2.5rem; margin: 1rem 3vw; padding: 5rem 0; box-shadow: 0 20px 40px rgba(0,0,0,0.15); color: white; }
.masonryGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; padding: 0 3vw; }
.masonryOffset { margin-top: 0; }
.masonryFloatDark { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem; border-radius: 1rem; display: flex; flex-direction: column; transition: transform 0.4s ease; backdrop-filter: blur(10px); }
.masonryFloatDark:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.masonryIcon { color: var(--secondary); opacity: 0.2; margin-bottom: 1rem; }
.masonryText { font-family: var(--font-serif); font-size: 1rem; line-height: 1.6; font-style: italic; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; flex-grow: 1; }
.masonryAuthor h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; color: white; margin-bottom: 0.25rem; }
.masonryAuthor span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }

/* Contact Section */
.contactSectionDark { background: url('./waves.svg') bottom center / cover no-repeat, linear-gradient(145deg, var(--primary) 0%, #0d281c 100%); padding: 5rem 0; color: white; position: relative; }
.contactLayout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.contactFormContainer { background: white; padding: 1.75rem; border-radius: 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.1); color: var(--text-main); }
.contactForm { display: flex; flex-direction: column; gap: 1.125rem; }
.formRow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.formGroup { display: flex; flex-direction: column; gap: 0.25rem; }
.formGroup label { font-size: 0.875rem; font-weight: 600; color: var(--text-main); }
.formInput { padding: 0.6rem 0.85rem; border: 1px solid var(--border-color); border-radius: 0.75rem; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; background: #f9f9f9; }
.formInput:focus { outline: none; border-color: var(--secondary); background: white; }
.contactSubmitBtn { width: 100%; padding: 0.85rem; font-size: 1rem; font-weight: 700; margin-top: 0.5rem; background: linear-gradient(135deg, var(--cta) 0%, #10b981 100%); color: white; border-radius: 0.75rem; border: none; box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3); transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.contactInfo { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 2; max-width: 500px; }
.contactDirect { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contactDirectLink { display: flex; align-items: center; gap: 1.25rem; color: white; transition: transform 0.2s; }
.contactDirectLink:hover { transform: translateX(5px); }
.contactDirectIcon { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.contactDirectLink div:last-child { display: flex; flex-direction: column; }
.contactDirectLink div:last-child strong { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; }
.contactDirectLink div:last-child span { font-size: 1.125rem; font-weight: 500; }

/* Footer */
.footerCompact { background: var(--primary); padding: 4rem 0 2rem; color: white; }
.footerCompactGrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footerCompactBrand p { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; line-height: 1.6; max-width: 300px; }
.footerCompactLinks h4, .footerCompactContact h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; color: white; }
.footerCompactLinks a, .footerCompactContact p { display: block; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.5rem; }
.footerCompactLinks a:hover { color: var(--secondary-light); }
.footerCompactBottom { display: flex; justify-content: space-between; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }
.footerCompactLegal { display: flex; gap: 1.5rem; }
.footerCompactLegal a { color: rgba(255, 255, 255, 0.5); }
.footerCompactLegal a:hover { color: white; }

@media (max-width: 900px) {
  .sectionDark { grid-template-columns: 1fr; }
  .licenceLayout { grid-template-columns: 1fr; gap: 3rem; }
  .contactLayout { grid-template-columns: 1fr; gap: 3rem; }
  .footerCompactGrid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .masonryGrid { grid-template-columns: 1fr; }
  .masonryOffset { margin-top: 0; }
  .formRow { grid-template-columns: 1fr; }
}


.js-module-loaded .animate-on-scroll {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}
.js-module-loaded .animate-on-scroll.is-visible {
  animation-play-state: running;
}

.footerCompact h1, .footerCompact h2, .footerCompact h3, .footerCompact h4, .footerCompact h5, .footerCompact h6 { color: white; }


/* Lightbox and Cert Wrapper */

.certWrapper:hover .magnifyIcon {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.95);
  color: var(--cta);
}

.magnifyIcon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  padding: 2rem;
}

.lightboxClose {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 3rem;
  color: #111;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}


/* Added for compact section header */
.sectionHeaderCompact { margin-bottom: 2.5rem; }

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.95) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  padding: 2rem;
}

.lightboxClose {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 3rem;
  color: white !important;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: color 0.3s;
}

.lightboxClose:hover {
  color: var(--secondary) !important;
}

.lightboxPrev, .lightboxNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.lightboxPrev:hover, .lightboxNext:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.lightboxPrev {
  left: 3vw;
}

.lightboxNext {
  right: 3vw;
}

/* FAQ Accordion Styles */
.faqAnswer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.3s ease, margin-bottom 0.3s ease;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
.faqItem.faq-expanded .faqAnswer {
  max-height: 200px;
  padding-top: 0.5rem;
  margin-bottom: 1rem;
}
.faqItem.faq-expanded .faqChevron {
  transform: rotate(180deg);
}
.faqChevron {
  transition: transform 0.3s ease;
}
.faqQuestion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  text-align: left;
  color: var(--text-color);
}
.faqQuestion h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}
.faqIcon {
  color: var(--secondary);
  background: rgba(46, 196, 182, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Staggered delays for children if needed */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Subtle Paper Texture Background */
body {
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.8;
  mix-blend-mode: multiply;
}

/* Add a very faint legal watermark / pattern to white sections */
.section[style*="background-color: white"], 
.section[style*="background: white"],
.section:not([style*="background"]) {
  background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Floating Buttons Tooltip */
.floatingBtn {
  position: relative;
}

.floatingBtn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  margin-right: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: rgba(17, 24, 39, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floatingBtn::after {
  content: "";
  position: absolute;
  right: 100%;
  margin-right: 8px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(17, 24, 39, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.floatingBtn:hover::before,
.floatingBtn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Hide scrollbar for carousel */
.reviewsCarousel::-webkit-scrollbar {
  display: none;
}

/* Carousel Arrows */
.carouselArrow {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.carouselArrow:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.3);
}

/* Fix Contact Us Title Color */
.contactSectionDark .sectionTitle { color: white; }

/* FAQ Card Layout Overrides */
.faqList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faqItem {
  background-color: white;
  border: 1px solid var(--border-color) !important;
  border-radius: 0.75rem;
  padding: 0 1.25rem !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.faqItem:hover {
  border-color: var(--secondary) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faqQuestion {
  padding: 1rem 0 !important;
}
.faqQuestion h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
}
.faqItem.faq-expanded .faqAnswer {
  padding-top: 0 !important;
  margin-bottom: 1rem !important;
}

/* Fix Magnify Icon Distortion */
.magnifyIcon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box !important;
  flex: none !important;
  padding: 0 !important;
}
.magnifyIcon svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex: none !important;
}

/* Fix spacing in footer brand */
.footerCompactBrand h3 {
  margin-bottom: 0.75rem;
}

/* FAQ Two-Column Layout */
.faqLayout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .faqLayout { grid-template-columns: 1fr; gap: 2rem; }
}

/* Tighter Card Padding */
.faqQuestion {
  padding: 0.75rem 0 !important;
}
.faqQuestion h4 {
  font-size: 0.95rem !important;
}
.faqItem {
  padding: 0 1rem !important;
}
.faqIcon {
  width: 28px !important;
  height: 28px !important;
}
.faqIcon svg {
  width: 16px !important;
  height: 16px !important;
}



/* Pull AUTHORIZED NOTARY SERVICES closer to EXPERT */
.editorialTag {
  margin-bottom: 0.25rem !important;
}

/* Navbar link hover effect */
.hidden-mobile a:not(.btn) {
  position: relative;
  color: var(--text-color);
  transition: color 0.3s ease, opacity 0.3s ease;
}
.hidden-mobile a:not(.btn):hover {
  color: var(--secondary);
  opacity: 0.8;
}
.hidden-mobile a:not(.btn)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--secondary);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}
.hidden-mobile a:not(.btn):hover::after {
  width: 80%;
}

/* Foolproof FAQ CSS Override */
.faqItem .faqAnswer {
  max-height: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
  opacity: 0 !important;
}
.faqItem.faq-expanded .faqAnswer {
  max-height: 500px !important;
  padding-top: 0.5rem !important;
  margin-bottom: 1rem !important;
  opacity: 1 !important;
}
.faqQuestion {
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Cookie Banner */
.cookieBanner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.05);
  max-width: 320px;
  z-index: 999999;
  display: flex;
  pointer-events: none;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookieBanner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookieText {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.cookieText strong {
  font-weight: 700;
  color: var(--primary);
}

.cookieActions {
  display: flex;
  gap: 0.75rem;
}

.cookieBtnAccept, .cookieBtnReject {
  flex: 1;
  padding: 0.75rem 0;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.cookieBtnAccept {
  background-color: #2b3941;
  color: white;
}
.cookieBtnAccept:hover {
  background-color: #1a2328;
}

.cookieBtnReject {
  background-color: #e8e8e8;
  color: #555;
}
.cookieBtnReject:hover {
  background-color: #d0d0d0;
}

.cookieBtnAccept:active, .cookieBtnReject:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .cookieBanner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

.contactSubmitBtn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4); background: linear-gradient(135deg, #10b981 0%, var(--cta) 100%); }
