:root {
    --primary-color: #0d253f;
    /* Deep Navy */
    --secondary-color: #d4af37;
    /* Sand / Gold Accent */
    --bg-color: #fcfcfc;
    --text-color: #333333;
    --light-gray: #f0f4f8;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Nunito Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Square Peg', cursive;
    color: var(--primary-color);
    line-height: 0.8;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #1a3b5c;
    color: white;
    transform: translateY(-2px);
}

/* Accent CTA: used where btn-primary would blend into a navy background (e.g. calc-total-box) */
.btn-primary.btn-accent {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary.btn-accent:hover {
    background-color: #e8c257;
    color: var(--primary-color);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.55);
    transform: translateY(-2px);
}

.lang-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 800;
    margin-left: 15px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
}

/* Hero Section */
.hero {
    height: 100vh;
    padding: 0;
    margin-top: 0;
    background-color: var(--primary-color);
}

.hero-columns {
    display: flex;
    height: 100%;
    width: 100%;
}

.hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0.8;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    background-color: var(--light-gray);
    color: var(--text-color);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

.hero-content h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-content p {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* About Section */
.about {
    background-color: var(--bg-color);
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--secondary-color);
}

.service-card.highlight {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.service-card.highlight:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card ul {
    list-style-type: none;
    margin-top: 20px;
    text-align: left;
}

.service-card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.hidden {
    display: none !important;
}

.form-message {
    margin-top: 20px;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.form-error {
    margin-top: 20px;
    color: #b3261e;
    font-weight: 600;
    text-align: center;
    background: #fdecea;
    padding: 10px;
    border-radius: 4px;
}

.calc-carryover-note {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--light-gray);
    border-left: 3px solid var(--secondary-color);
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.8rem;
    font-weight: bold;
    font-family: 'Square Peg', cursive;
    margin-bottom: 5px;
    color: var(--secondary-color);
    line-height: 0.8;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-columns {
        flex-direction: column;
    }

    .hero-image {
        flex: 0.5;
    }

    .hero-content {
        flex: 1.5;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    .service-card.highlight {
        transform: scale(1);
    }

    .service-card.highlight:hover {
        transform: translateY(-5px);
    }

    .hero {
        padding-top: 80px;
    }
}
/* Revenue Leak Calculator */
.calculator {
    background-color: var(--bg-color);
}

.calculator-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.calc-leak {
    padding: 25px;
    background-color: var(--light-gray);
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.calc-leak h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.calc-leak p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.calc-field {
    margin-bottom: 15px;
}

.calc-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.calc-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--card-bg);
    transition: border-color 0.3s ease;
}

.calc-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: var(--primary-color);
    border-top: 1px dashed #ccc;
    padding-top: 12px;
    margin-top: 5px;
}

.calc-total-box {
    text-align: center;
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 40px 20px;
    margin-top: 40px;
}

.calc-total-label {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.85;
}

.calc-total-amount {
    color: var(--secondary-color);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.calc-close-message {
    color: white;
    max-width: 550px;
    margin: 0 auto 25px;
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .calc-total-amount {
        font-size: 2.5rem;
    }
}