/* =========================================
   TSOGAS NOTARY - V18 (SLIDESHOW UPDATE)
   Design System by iSPACE
   Fonts: Montserrat (Headings), Roboto (Body)
   ========================================= */

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

:root {
    --primary-gold: #C5A059;
    --dark-charcoal: #222529;
    --text-color: #343a40;
    --light-bg: #F8F9FA;
    --white: #ffffff;
    --border-color: #dee2e6;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 15px 35px rgba(0,0,0,0.08);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.05);
    --top-bar-height: 40px;
}

/* ================= BASE & RESET ================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-color); line-height: 1.8; background-color: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark-charcoal); margin-bottom: 1rem; font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { opacity: 0.8; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================= PRELOADER & UTILITIES ================= */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--white); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--primary-gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-light { background-color: var(--light-bg); }
.section-dark { background-color: var(--dark-charcoal); color: var(--white); }
.section-title { margin-bottom: 50px; text-align: center; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--primary-gold); }
.btn { display: inline-block; padding: 12px 30px; background-color: var(--primary-gold); color: var(--white); font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; border: 2px solid var(--primary-gold); transition: var(--transition); box-shadow: var(--shadow-light); }
.btn:hover { background-color: transparent; color: var(--primary-gold); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ================= TOP BAR ================= */
.top-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--top-bar-height);
    background-color: var(--dark-charcoal); color: var(--white);
    z-index: 1002; display: flex; align-items: center; font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.top-bar-info { display: flex; gap: 20px; }
.top-bar-info a { display: flex; align-items: center; gap: 8px; color: var(--white); }
.top-bar-info a:hover { color: var(--primary-gold); }
.top-bar-info i { color: var(--primary-gold); }

/* ================= HEADER & NAVIGATION ================= */
#main-header {
    position: fixed; top: var(--top-bar-height); left: 0; width: 100%;
    z-index: 1000; background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: padding 0.3s ease; padding: 15px 0;
}
#main-header.scrolled { padding: 10px 0; }
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; transition: var(--transition); }
#main-header.scrolled .logo img { height: 40px; }
.hamburger { display: block; cursor: pointer; font-size: 1.6rem; color: var(--dark-charcoal); z-index: 1001; line-height: 1; }
.nav-menu {
    display: flex; position: fixed; top: var(--top-bar-height); left: -100%;
    width: 100%; height: calc(100vh - var(--top-bar-height));
    background-color: var(--white); flex-direction: column; align-items: center; justify-content: center;
    transition: var(--transition); gap: 25px; padding: 20px; border-top: 1px solid var(--border-color);
}
.nav-menu.active { left: 0; }
.nav-link { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; color: var(--dark-charcoal); }
.nav-link:hover, .nav-link.active { color: var(--primary-gold); }
.lang-switcher { margin-left: 0; margin-top: 20px; border: none; }
.lang-btn { background: none; border: 1px solid var(--border-color); padding: 8px 15px; cursor: pointer; font-family: var(--font-body); font-weight: 700; transition: var(--transition); font-size: 0.9rem; margin: 0 2px;}
.lang-btn.active { background-color: var(--primary-gold); color: var(--white); border-color: var(--primary-gold); }

/* ================= HERO SLIDESHOW (NEW) ================= */
.hero {
    position: relative; height: 90vh; margin-top: var(--top-bar-height);
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
    overflow: hidden;
}
.hero-slideshow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(34, 37, 41, 0.6), rgba(34, 37, 41, 0.6)); z-index: 2;
}
.hero-content { position: relative; z-index: 3; }
.hero-content h1 { color: var(--white); font-weight: 700; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.1rem; max-width: 90%; margin: 0 auto 30px; opacity: 0.95; font-weight: 300; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }

/* ================= PAGE HEADER & LAYOUTS ================= */
.page-header { background-color: var(--light-bg); padding: 160px 0 60px; text-align: center; border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: 2.2rem; margin-bottom: 5px; }
.breadcrumb { color: #6c757d; font-weight: 600; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.content-grid img { border-radius: 5px; box-shadow: var(--shadow); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.feature-card { background: var(--white); padding: 30px; text-align: center; border: 1px solid var(--border-color); border-radius: 5px; transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; color: var(--primary-gold); margin-bottom: 15px; }

/* ================= SPECIFIC SECTIONS ================= */
.counter-section { padding: 60px 0; background-color: var(--primary-gold); }
.counter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: center; color: var(--white); }
.counter-item h3 { font-size: 2.5rem; color: var(--white); }
.counter-item p { text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; font-size: 0.8rem; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.testimonial-card { background-color: var(--white); padding: 30px; border-radius: 5px; border-left: 5px solid var(--primary-gold); box-shadow: var(--shadow-light); }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-author { font-family: var(--font-heading); font-weight: 700; }
.google-rating { color: #fbbc05; }
.why-us-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.why-us-item { display: flex; align-items: center; gap: 15px; background: var(--white); padding: 20px; border-radius: 5px; box-shadow: var(--shadow-light); }
.why-us-item i { font-size: 1.8rem; color: var(--primary-gold); }
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 20px; height: 100%; width: 3px; background-color: var(--border-color); }
.timeline-item { position: relative; margin-bottom: 40px; padding-left: 50px; }
.timeline-item::before { content: ''; position: absolute; left: 10px; top: 5px; width: 23px; height: 23px; border-radius: 50%; background-color: var(--white); border: 4px solid var(--primary-gold); z-index: 1; }
.timeline-year { font-weight: 700; font-size: 1.2rem; color: var(--primary-gold); margin-bottom: 5px; }
.timeline-title { font-weight: 700; margin-bottom: 5px; }
.services-page-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
.service-category { margin-bottom: 40px; }
.service-category h3 { border-bottom: 2px solid var(--primary-gold); padding-bottom: 10px; display: inline-block; margin-bottom: 20px; }
.service-category ul { list-style-type: '✓'; padding-left: 20px; }
.service-category li { margin-bottom: 10px; padding-left: 10px; }
.accordion-item { border: 1px solid var(--border-color); border-radius: 5px; margin-bottom: 15px; overflow: hidden; }
.accordion-btn { width: 100%; text-align: left; background: var(--white); border: none; padding: 20px; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.accordion-btn:hover, .accordion-btn.active { color: var(--primary-gold); }
.accordion-btn .icon { transition: transform 0.3s ease; }
.accordion-btn.active .icon { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body { padding: 25px; background: var(--light-bg); border-top: 1px solid var(--border-color); }
.accordion-body ul { list-style-type: '•'; padding-left: 20px; margin-top: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; padding: 20px 0; }
.gallery-item { overflow: hidden; border-radius: 5px; box-shadow: var(--shadow-light); height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.reviews-widget { margin-top: 50px; }
[data-elfsight-app-lazy] .eapps-google-reviews-header-button { background-color: var(--primary-gold) !important; color: var(--white) !important; border-radius: 4px !important; }
[data-elfsight-app-lazy] .eapps-google-reviews-header-button:hover { background-color: var(--dark-charcoal) !important; }

/* ================= FOOTER ================= */
footer { background-color: var(--dark-charcoal); color: rgba(255,255,255,0.7); padding: 60px 0 30px; font-size: 0.95rem; }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; text-align: center;}
.footer-logo { max-width: 180px; margin: 0 auto 20px; filter: brightness(0) invert(1); }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-col a:hover { color: var(--primary-gold); }
.footer-col i { margin-right: 10px; color: var(--primary-gold); width: 20px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; }

/* ================= HELPERS & ANIMATIONS ================= */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.back-to-top { position: fixed; bottom: 20px; left: 20px; width: 45px; height: 45px; background-color: var(--primary-gold); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; opacity: 0; visibility: hidden; transition: var(--transition); transform: translateY(20px); z-index: 999; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
    #main-header .container { flex-direction: row; }
    .hamburger { order: 1; margin-right: auto; }
    .logo { order: 2; }
    .top-bar-info { font-size: 0.75rem; gap: 10px; justify-content: center; width: 100%;}
    .top-bar .container { justify-content: center; }
}

@media (min-width: 768px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }
    .hero { height: 100vh; background-attachment: fixed; }
    .hero-content p { font-size: 1.25rem; }
    .hamburger { display: none; }
    .nav-menu { position: static; flex-direction: row; height: auto; width: auto; background: none; gap: 30px; padding: 0; border: none; }
    .nav-link { font-size: 0.9rem; }
    .nav-menu .lang-switcher { margin-top: 0; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .counter-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr 2fr; gap: 50px; }
    .content-grid.reverse { grid-template-columns: 2fr 1fr; }
    .services-page-layout { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; text-align: left; }
    .footer-logo { margin: 0 0 20px 0; }
    .timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; padding-right: 50px; text-align: right; }
    .timeline-item:nth-child(even) { left: 50%; padding-left: 50px; padding-right: 0; text-align: left;}
    .timeline-item::before { left: auto; right: -12px; top: 5px; }
    .timeline-item:nth-child(even)::before { left: -12px; right: auto; }
}