/* Global Reset */
* {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #1ABC9C;
    --secondary-color: #2C3E50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-top: 1rem; }
h2 { font-size: 2rem; margin-top: 1.5rem; }
h3 { font-size: 1.5rem; margin-top: 1.25rem; }

p { margin-bottom: 1em; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: #2980b9; }

/* Layout */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .main-nav.open {
        max-height: 300px; /* Adjust based on menu items */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

main {
    flex: 1;
    padding: 2rem 0;
}

footer {
    background-color: var(--secondary-color);
    color: #ecf0f1;
    text-align: center;
    padding: 3rem 0;
    margin-top: auto;
}

footer a {
    color: #bdc3c7;
    margin: 0 10px;
    display: inline-block;
}
footer a:hover { color: var(--white); }

.footer-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* CLS Protection / Ads */
.ad-container-leaderboard {
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  background-color: #f9f9f9;
  border: 1px solid #eee;
}

@media (max-width: 768px) {
  .ad-container-leaderboard {
    min-height: 250px;
  }
}

/* Specific Page Styles */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.hero h1 { color: var(--white); margin-top: 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(52, 152, 219, 0.4);
    color: var(--white);
}

/* Form Styles */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Hero Background Pattern */
.hero {
    background-image: url('hero-bg.svg'), linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 50px, cover;
    background-blend-mode: overlay;
}

/* Service Icons */
.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Sovereign Revenue - Touch Target & Payment */
.btn-payment {
    display: inline-block;
    background-color: #2C3E50; /* Trust-Blue */
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 112, 186, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-payment:hover {
    background-color: #005ea6;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 112, 186, 0.4);
    color: #ffffff;
}

/* Touch Target Law */
a, button, .btn, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Re-overriding button colors for new theme */
:root {
    --primary-color: #1ABC9C; /* Teal */
    --secondary-color: #2C3E50; /* Slate Gray */
    --bg-color: #ffffff;
}

.btn-payment {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-payment:hover {
    background-color: #16a085 !important; /* Darker Teal */
}
