/* General Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif; /* Modern sans-serif for body */
    line-height: 1.6;
    color: #333; /* Dark gray for main text on white/light backgrounds */
    background-color: #F8F8F8; /* Light off-white background */
    scroll-behavior: smooth;
}

/* Color Palette */
:root {
    --dark-blue: #0A2342;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --brown: #5C4033;
    --light-gray: #f4f4f4;
}

/* Custom Font Definition */
.luxurious-roman-regular {
    font-family: "Luxurious Roman", serif;
    font-weight: 400;
    font-style: normal;
}

/* Headings - All titles will now use "Luxurious Roman" if embedded */
h1, h2, h3, h4, h5, h6 {
    font-family: "Luxurious Roman", serif; /* Applied Luxurious Roman to all headings */
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

/* IMPORTANT: For "Luxurious Roman" to display, you need to embed its font files.
   If it's a Google Font, add a <link> tag to index.html.
   If you have font files (.woff, .ttf), use an @font-face rule here.
   Example (if you have files):
   @font-face {
       font-family: "Luxurious Roman";
       src: url("path/to/luxurious-roman-regular.woff2") format("woff2"),
            url("path/to/luxurious-roman-regular.woff") format("woff");
       font-weight: 400;
       font-style: normal;
   }
*/

h1 {
    font-size: 3.2em;
    color: var(--white); /* White for hero section H1 */
}

h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    text-align: center;
}

h3 {
    font-size: 1.8em;
    color: var(--dark-blue);
}

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5em;
}

/* Navbar */
.navbar {
    background-color: var(--dark-blue);
    padding: 1em 0;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.business-name {
    font-family: "Luxurious Roman", serif; /* Also applied Luxurious Roman here */
    font-size: 1.8em;
    font-weight: 700;
    color: var(--gold);
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar nav ul li {
    margin-left: 1.5em;
}

.navbar nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: var(--gold);
}

.nav-button {
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 0.6em 1.2em;
    border-radius: 5px;
    border: 2px solid var(--gold);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--white);
    color: var(--dark-blue);
    border-color: var(--white);
}


/* Hero Section (now static image) */
.hero-section {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 5em 0;
    text-align: center;
    position: relative; /* Needed for text positioning if hero-image removed */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for text and image */
    gap: 2em;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 0.3em;
}

.hero-text .tagline {
    font-family: "Luxurious Roman", serif;
    font-size: 2em;
    color: var(--gold);
    margin-bottom: 1em;
}

.hero-text .mission-statement {
    font-size: 1.2em;
    max-width: 600px;
    margin-bottom: 2em;
}

.hero-button {
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 1em 2.5em;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--gold);
}

.hero-button:hover {
    background-color: var(--white);
    color: var(--dark-blue);
    border-color: var(--white);
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.section {
    padding: 4em 0;
}

.alt-background {
    background-color: var(--light-gray);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin-top: 2em;
    text-align: center;
}

.benefit-item {
    background-color: #fcfcfc;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--gold);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item img {
    height: 40px;
    margin-bottom: 1em;
}

.benefit-item h3 {
    color: var(--dark-blue);
    font-size: 1.4em;
}

.benefit-item p {
    color: var(--brown);
    font-size: 0.95em;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--dark-blue);
    color: var(--white);
}

.how-it-works-section h2 {
    color: var(--white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    margin-top: 3em;
}

.step {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2em;
    border-radius: 8px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-number {
    background-color: var(--gold);
    color: var(--dark-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: -4em auto 1em auto; /* Position outside and above */
    border: 3px solid var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.step h3 {
    color: var(--white);
    margin-top: 1em;
}

.step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}


/* Requirements Section */
.requirements-section {
    background-color: var(--white);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

.req-item {
    display: flex;
    align-items: center;
    background-color: #fcfcfc;
    padding: 1.2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--dark-blue);
}

.req-item img {
    width: 30px;
    height: 30px;
    margin-right: 1em;
    background-color: var(--dark-blue);
    border-radius: 50%;
    padding: 5px;
}

.req-item p {
    margin: 0;
    color: var(--dark-blue);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    background-color: var(--light-gray);
}

.faq-item {
    background-color: var(--white);
    padding: 1.5em;
    margin-bottom: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: left;
    border-left: 4px solid var(--gold);
}

.faq-item h3 {
    color: var(--dark-blue);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.5em;
}

.faq-item p {
    color: var(--brown);
    font-size: 0.95em;
}

/* Calculator Section */
.calculator-section {
    background-color: var(--light-gray); /* Match alt-background */
    padding: 4em 0;
    text-align: center;
}

.calculator-widget {
    background-color: var(--white);
    padding: 3em;
    max-width: 700px;
    margin: 2em auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--gold);
}

.calculator-widget label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--dark-blue);
    display: block;
    margin-bottom: 1.5em;
}

#displayAmount {
    color: var(--gold);
    font-size: 1.5em;
    font-weight: 700;
    margin-left: 0.5em;
}

.calculator-widget input[type="range"] {
    width: 80%;
    height: 10px;
    background: var(--dark-blue);
    border-radius: 5px;
    -webkit-appearance: none; /* Override default appearance */
    margin-bottom: 2em;
    cursor: pointer;
}

/* Custom thumb for range input */
.calculator-widget input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.calculator-widget input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.calculator-widget input[type="range"]::-webkit-slider-thumb:hover, 
.calculator-widget input[type="range"]::-moz-range-thumb:hover {
    background: var(--white);
    border-color: var(--gold);
}

.calculator-widget .results h3 {
    color: var(--dark-blue);
    font-size: 1.6em;
    margin-bottom: 0.8em;
    text-align: center;
}

.calculator-widget .results p {
    font-size: 1.1em;
    color: var(--brown);
    margin-bottom: 0.5em;
}

.calculator-widget .results p span {
    color: var(--dark-blue);
    font-weight: 600;
}

.calculator-widget .disclaimer {
    font-size: 0.85em;
    color: #666;
    margin-top: 1.5em;
    margin-bottom: 2em;
}

.calculator-button {
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 1em 2.5em;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--gold);
}

.calculator-button:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    border-color: var(--dark-blue);
}


/* Application Form Section */
.application-form-section {
    background-color: var(--dark-blue);
    color: var(--white);
}

.application-form-section h2 {
    color: var(--white);
}

.application-form-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2em;
    font-size: 1.1em;
}

/* Footer */
.footer {
    background-color: var(--brown);
    color: rgba(255, 255, 255, 0.8);
    padding: 2em 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    margin: 0 0.5em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text .mission-statement {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-text h1 {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
    }
    .navbar nav {
        margin-top: 1em;
    }
    .navbar nav ul {
        flex-direction: column;
    }
    .navbar nav ul li {
        margin: 0.5em 0;
    }
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.6em;
    }
    .hero-section {
        padding: 3em 0;
    }
    .business-name {
        font-size: 1.5em;
    }
    .slide-caption h1 {
        font-size: 2.5em;
    }
    .slide-caption .tagline {
        font-size: 1.5em;
    }
    .slide-caption .mission-statement {
        font-size: 1em;
    }
    .calculator-widget {
        padding: 2em;
    }
    .calculator-widget input[type="range"] {
        width: 95%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.4em;
    }
    .tagline {
        font-size: 1.5em;
    }
    .hero-button {
        padding: 0.8em 2em;
    }
    .step-number {
        margin: -3em auto 0.5em auto;
    }
    .benefit-item, .step, .req-item, .faq-item {
        padding: 1em;
    }
}