/*
Theme Name: Single Page Classic Theme
Author: Your Name
Description: A lightweight classic theme designed for single-page scrolling sites.
Version: 1.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Force smooth scrolling */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: #ffffff;
    padding: 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #111;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

nav ul li a:hover {
    color: #0073aa;
}

/* Sample styling for sections */
section {
    padding: 120px 20px 80px 20px; /* Top padding clears the fixed header */
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero { background: #f4f4f4; min-height: 85vh; }
#about { background: #ffffff; }
#services { background: #fafafa; }
#contact { background: #ffffff; }

/* Footer Styles */
.site-footer {
    background: #111;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
/* Form Section Styling */
#custom-contact-form {
    width: 100%;
    max-width: 500px;
    margin: 30px auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

#form_submit {
    background: #0073aa;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

#form_submit:hover {
    background: #005a87;
}

#form_submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#form_response {
    margin-top: 15px;
    font-weight: 500;
}

.success-msg { color: #2e7d32; }
.error-msg { color: #c62828; }
.back-to-top a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.back-to-top a:hover {
    color: #0099e0;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }
}

/* Form Section Styling */
#custom-contact-form {
    width: 100%;
    max-width: 500px;
    margin: 30px auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

#form_submit {
    background: #0073aa;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

#form_submit:hover {
    background: #005a87;
}

#form_submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#form_response {
    margin-top: 15px;
    font-weight: 500;
}

.success-msg { color: #2e7d32; }
.error-msg { color: #c62828; }

/* Hero Carousel Core Layout */
.hero-carousel-section {
    padding: 0 !important; /* Clear default text section paddings */
    width: 100%;
    height: 85vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Individual Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%); /* Dark overlay directly via CSS */
}

/* Floating Caption Typography */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 3;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.carousel-caption p {
    font-size: 1.35rem;
    margin-bottom: 30px;
}

.carousel-btn {
    display: inline-block;
    background: #0073aa;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.carousel-btn:hover {
    background: #005a87;
}

/* Navigation Arrow Overlays */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* Control Indicators (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dot.active, .dot:hover {
    background: #ffffff;
}

/* Mobile Scaling adjustments */
@media (max-width: 768px) {
    .carousel-caption h1 { font-size: 2.2rem; }
    .carousel-caption p { font-size: 1.1rem; }
    .carousel-arrow { padding: 10px 14px; font-size: 18px; }
}