:root {
    --navy: #0f172a;
    --gold: #d9a05b;
    --gold-light: #f7efe0;
    --soft-white: #fdfbf7;
    --card-border: #f1f5f9;
    --bg-color: #ffffff;
    --text-color: #334155;
    --heading-color: #0f172a;
    --nav-bg: #ffffff;
	touch-action: pan-y; /* Allows vertical scroll, blocks pinch zoom */
}
[data-theme="dark"] {
    --navy: #1e293b;
    /*--gold: #eab308;*/
    --gold-light: #f7efe0;
    --gold: #D09937;
    --soft-white: #0f172a;
    --card-border: #334155;
    --bg-color: #121212;
    --text-color: #cbd5e1;
    --heading-color: #f8fafc;
    --nav-bg: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; transition: background 0.3s, color 0.3s, transform 0.4s ease; }

* .nonces {
    -webkit-user-select: none;  /* iOS Safari & Chrome */
    -khtml-user-select: none;   /* Konqueror HTML */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Non-prefixed version */
	-webkit-touch-callout: none;
}

/* Optional: Allow selection in input fields and textareas */
input, textarea {
    -webkit-user-select: text;
    user-select: text;
}


body {
    background-color: #121212;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    padding: 15px;
}

.main-container {
    background: var(--bg-color);
    border-radius: 24px;
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* Navbar - Fixed with Scroll Reveal Logic */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--nav-bg);
    z-index: 3000;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid var(--card-border);
	
	box-shadow: 0px 1px 3px #D0993785;
	/*box-shadow: 0px 1px 3px #828282;*/
}

/* Hide on Scroll Down, Show on Scroll Up */
.navbar.nav-hidden {
    transform: translateX(-50%) translateY(-120%);
}

.navbar.scrolled { 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    padding: 10px 40px; 
}
.navbar.scrolled { 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    padding: 10px 40px; 
}

.brand { display: flex; align-items: center; gap: 12px; }
.home_link{text-decoration: none;}
.logo-box { background: var(--navy); color: white; padding: 8px; border-radius: 8px; }
.logo-text strong { display: block; color: var(--heading-color); }
.logo-text span { font-size: 0.8rem; color: #64748b; letter-spacing: 1px; }

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-size: 0.9rem; font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { cursor: pointer; color: var(--text-color); display: flex; align-items: center; }
.btn-dark { /*background: var(--navy);*/  background: var(--gold); color: white; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; }

.menu-toggle { display: none; cursor: pointer; z-index: 3001; }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), 
                url('/assets/images/hero1.png?auto=format&fit=crop&q=80');
    background-size: cover;
    padding: 160px 60px 80px;
    color: white;
}

.badge { background: rgba(255,255,255,0.1); border: 1px solid var(--gold); color: var(--gold); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; margin-bottom: 20px; display: inline-block; }
h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.italic-gold { color: var(--gold); font-style: italic; }

.search-container { background: white; border-radius: 12px; padding: 6px; max-width: 600px; margin-bottom: 20px; display: flex; align-items: center; }
.search-container input { flex: 1; border: none; outline: none; padding: 12px; font-size: 1rem; color: #333; }
.btn-search { background: #e9c496; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; color: var(--navy); }

.hero-desc { color: #cbd5e1; max-width: 500px; margin-bottom: 30px; }


.search-container { background: white; border-radius: 12px; padding: 6px; max-width: 600px; margin-bottom: 20px; }

.search-container{
	/* From https://css.glass */
	background: rgba(189, 190, 220, 0.23);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(2.5px);
	-webkit-backdrop-filter: blur(2.5px);
	border: 1px solid rgba(189, 190, 220, 0.18);
	max-width: 218px;
}
.search-inner { width: 100%; display: flex; align-items: center; padding: 0 10px; }
.search-inner input { flex: 1; border: none; outline: none; padding: 15px; font-size: 1rem; color: #333; }
.ai-sparkle { color: var(--gold); }
.btn-search { background: #e9c496; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; display: flex; gap: 8px; color: var(--navy); margin-left: 12px; }




/* Grid Sections */
.section { padding: 80px 60px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--heading-color); }

/* Grid Sections */
.section { padding: 80px 60px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--heading-color); }
.view-all { color: var(--gold); text-decoration: none; font-weight: bold; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.card { border: 1px solid var(--card-border); padding: 25px; border-radius: 16px; background: var(--bg-color);  }
.card h3 { color: var(--heading-color); margin-bottom: 10px; }

/* How it Works */
.how-it-works { background: var(--soft-white); text-align: center; }
.center-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--heading-color); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; text-align: left; }
.step h3 { color: var(--heading-color); }
.step-num { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--gold); opacity: 0.4; }

/* Transparency */
.transparency { text-align: center; }
.trans-content h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--heading-color); max-width: 700px; margin: 0 auto 20px; }
.btn-outline { border: 1px solid var(--card-border); background: transparent; color: var(--text-color); padding: 10px 20px; border-radius: 8px; margin-left: 10px; cursor: pointer; }

/* Footer - Updated for Column Rows */
.footer { background: var(--soft-white); padding: 60px; border-top: 1px solid var(--card-border); }
.footer-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 40px; } 

.footer ul {
  list-style: none;
}
.copyright {
  margin-top: 60px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } 
}

@media (max-width: 768px) {
	.navbar{
		/*box-shadow: 1px 2px 2px #D0993785;*/
		border-bottom: 1px solid #D0993785;
	}
    .menu-toggle { display: block; }
    .nav-links { 
        position: fixed;
        top: 0;
        right: -110%;
        width: 100%;
        height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
	}
	#navMenu{
		border-radius: 30px;
    }
    .nav-links.active { right: 0; }
    .nav-actions .sign-in { display: none; }
    .hero { padding: 140px 20px 60px; }
    h1 { /*font-size: 2.5rem;*/font-size: 28px; }
	.hero-desc{font-size: 13px !important;}
	.section-header h2{
		font-size: 25px;padding-bottom: 5px;
	}
	.trans-content h2{
		font-size: 2.0rem;
	}
	.trans-content button{
		margin: 10px 0 5px 0;
	}
	.footer{
		padding: 60px 20px;
	}
}
@media (max-width: 768px) {
  .hero{
	  background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('/assets/images/hero12.png?auto=format&fit=crop&q=80');
	  background-size: cover;       /* Fills the area without stretching */
	  background-position: center;  /* Keeps the middle of the image visible */
	  background-repeat: no-repeat;
  }
  .section{
	  /*padding: 40px;*/
	  padding: 40px 20px;
  }
  .steps-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 40px;
	margin-top: 60px;
	text-align: left;
  }
}









/* Mobile Bottom Nav Styles */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--nav-bg);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom); /* Support for iPhone notch */
    z-index: 4000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
	
	border-radius: 0 0 24px 24px;
	width: 95% !important;
    left: 2%;
	
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    flex: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item i {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--gold);
}

/* Special styling for the center Scan button */
.scan-button {
    background: var(--navy);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    border: 5px solid var(--bg-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

[data-theme="light"] .card {
	box-shadow: 0px 0px 2px #BCBCBC;
}
[data-theme="dark"] .scan-button {
    background: var(--gold);
    color: var(--navy);
}

/* Responsive Visibility */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 80px; /* Prevent content from being hidden behind nav */
    }
	#btn-getstarted2{
		display: none; 
	}
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
	#btn-getstarted{
		display: none;
	}
}

/* --- Exact Hover Effect from Screenshot --- */

/* 1. Base Icon Style (Default state for all cards) */
.practice-areas .card .icon-wrap {
    background: #fef3e2; /* Light beige from your screenshot */
    color: var(--navy);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	margin-bottom: 8px;
}

/* 2. Hover State (The "Labour Card" Effect) */
.practice-areas .card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.practice-areas .card:hover .icon-wrap {
    background: var(--gold) !important; /* Matches the 'Labour' card color */
    color: white !important;
    box-shadow: 0 4px 15px rgba(217, 160, 91, 0.4); /* Gold glow shadow */
}

/* 3. Handling Dark Mode Theme specifically */
[data-theme="dark"] .practice-areas .card .icon-wrap {
    background: rgba(217, 160, 91, 0.1); /* Subtle gold tint for dark mode base */
    color: var(--gold);
}

[data-theme="dark"] .practice-areas .card:hover .icon-wrap {
    background: var(--gold) !important;
    color: var(--navy) !important; /* High contrast for dark mode hover */
    box-shadow: 0 0 20px rgba(217, 160, 91, 0.3);
}

@media (max-width: 768px) {
    .nav-links a {
        display: flex;
        align-items: center;
        gap: 15px; /* Space between icon and text */
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-links a i {
        width: 24px;
        height: 24px;
        color: var(--gold); /* Keeps icons vibrant against both themes */
    }

    /* Ensure icons inside buttons inherit button colors */
    .nav-links .btn-dark i {
        color: white;
    }
}

/* --- Desktop: Hide mobile icons --- */
.mobile-only-icon {
    display: none !important; /* Hidden by default on large screens */ 
}

/* --- Mobile: Show icons inside the menu --- */
@media (max-width: 768px) {
    .nav-links.active .mobile-only-icon {
        display: inline-block !important; /* Show icons only in mobile view */ [cite: 20, 48]
        margin-right: 12px;
        color: var(--gold);
        vertical-align: middle; [cite: 48]
    }

    .nav-links a {
        display: flex;
        align-items: center; /* Ensures icons and text are perfectly aligned */ [cite: 48, 52]
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    /* Container for glassmorphism effect */
    .search-container {
        background: rgba(255, 255, 255, 0.05); /* Very subtle transparent white */
        backdrop-filter: blur(10px); /* Glass blur */
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px;
        border-radius: 16px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        margin: 20px 0;
		max-width: 235px !important;
    }

    .search-inner {
        background: transparent;
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Input text styling */
    .search-inner input {
        background: transparent !important;
        color: #fff !important;
        font-size: 0.95rem;
        padding: 12px 10px;
        width: 100%;
    }

    .search-inner input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    /* Modern Rounded Search Button */
    .btn-search {
        background: var(--gold) !important;
        color: var(--navy) !important;
        border-radius: 12px !important;
        padding: 12px 20px !important;
        border: none;
        box-shadow: 0 4px 15px rgba(217, 160, 91, 0.3); /* Match icon glow */
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: transform 0.2s ease;
    }

    /* Interactive feedback */
    .btn-search:active {
        transform: scale(0.95);
        background: #eab308 !important; /* Slightly darker gold on press */
    }

    .ai-sparkle {
        filter: drop-shadow(0 0 5px var(--gold));
        margin-left: 8px;
    }
}