/* 
   Project: KombiServis Corporate Theme v2
   Fonts: Montserrat (Headers), Open Sans (Body)
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Brand Colors */
    --primary: #0d6efd;
    /* Bootstrap Blue style but richer */
    --primary-dark: #0a58ca;
    --secondary: #198754;
    /* Success Green */
    --accent: #ffc107;
    /* Rating/Warning Yellow */
    --danger: #dc3545;
    --info: #0dcaf0;

    /* Neutrals */
    --dark: #212529;
    --text-body: #495057;
    --text-muted: #6c757d;
    --light: #f8f9fa;
    --border: #dee2e6;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: var(--text-body);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    font-weight: 700;
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & NAV --- */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav a {
    color: var(--dark);
    font-weight: 600;
    margin-left: 20px;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

header nav a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

header nav a:not(.btn-cta):hover::after {
    width: 100%;
}

header nav a.btn-cta {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

header nav a.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(13, 110, 253, 0.3);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    color: var(--white);
    padding: 100px 0 140px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* Abstract Pattern Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* --- SEARCH & FORMS --- */
.search-box {
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    gap: 0;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.search-box select,
.search-box input {
    border: none;
    background: transparent;
    padding: 20px;
    font-size: 1rem;
    color: var(--text-body);
    outline: none;
    border-right: 1px solid var(--border);
    flex: 1;
}

.search-box select:last-of-type {
    border-right: none;
}

.search-box button {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 15px 40px;
    margin: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

.search-box button:hover {
    background: #157347;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--text-body);
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #8da4ff;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- SECTIONS --- */
.section {
    padding: 80px 0;
    background-color: #f0f2f5;
}

.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- CARDS (Firms & Blog) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Firm Card */
.firm-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 100%;
}

.firm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.firm-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.firm-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 5px 0;
}

.btn-profile {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
    align-self: flex-start;
}

.btn-profile:hover {
    background-color: var(--primary);
    color: white;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-img {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--accent);
    color: var(--dark);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* --- TABLES --- */
.table-container {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8f9fa;
}

/* --- BADGES --- */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d1e7dd;
    color: #0f5132;
}

.status-pending {
    background: #fff3cd;
    color: #664d03;
}

.status-suspended {
    background: #ffeba1;
    color: #856404;
}

.status-rejected {
    background: #f8d7da;
    color: #842029;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #aaa;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

footer h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

footer a {
    color: #aaa;
}

footer a:hover {
    color: var(--white);
}

footer .footer-bottom {
    border-top: 1px solid #222;
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        padding: 10px;
    }

    .search-box input,
    .search-box select {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px;
    }

    .search-box button {
        width: 100%;
        margin: 10px 0 0;
    }

    header nav {
        display: none;
    }

    /* Mobile Menu Toggle needed */
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}