:root {
    /* Color Scheme */
    --primary-color: #333333;
    --accent-color: #8B7355;
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Times New Roman', serif;
    --transition: all 0.3s ease;
}

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

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding-bottom: 0;
    flex: 1 0 auto;
    width: 100%;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 100px auto 40px;
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
    z-index: 1; /* Keep below header */
    position: relative;
    top: 0;
}

.carousel-slide {
    display: none;
    width: 100%;
    position: relative;
    min-height: 600px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 0;
    border-radius: 20px;
    margin: 0 40px;
    backdrop-filter: blur(4px);
}

.carousel-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav .dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.carousel-nav .dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

/* Navigation Arrows        /* Navigation buttons (prev/next) */
.carousel-btn {
    position: absolute;      /* Position relative to container */
    top: 50%;                /* Vertical center */
    transform: translateY(-50%); /* Precise vertical centering */
    background: rgba(0,0,0,0.5); /* Semi-transparent black */
    color: white;           /* White icon color */
    border: none;           /* No border */
    padding: 15px;          /* Clickable area */
    cursor: pointer;        /* Pointer cursor on hover */
    font-size: 18px;        /* Arrow size */
    border-radius: 50%;     /* Circular button */
    width: 40px;            /* Fixed width */
    height: 40px;           /* Fixed height */
    display: flex;          /* Center icon */
    align-items: center;    /* Vertical center */
    justify-content: center; /* Horizontal center */
    transition: all 0.3s ease; /* Smooth hover effect */
    z-index: 10;
    font-size: 20px;
    backdrop-filter: blur(4px);
}

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

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

/* ====== HEADER STYLES ====== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 1000; /* Increased z-index */
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.main-nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: color 0.3s ease;
    font-family: var(--font-primary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* ====== HERO SECTION ====== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('images/background image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    margin: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-top: 80px; /* Space for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    background-color: transparent;
    text-align: left;
}

.hero h1 {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #333;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: left;
}

.discover-section {
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 300;
    margin: 0 0 0.5rem 0;
    line-height: 1;
    color: #222;
    font-family: 'Times New Roman', serif;
    text-transform: none;
    letter-spacing: -0.5px;
}

.hero .subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    font-weight: 300;
    max-width: 600px;
}

.hero .intro-text {
    margin-bottom: 2.8rem;
    max-width: 580px;
}

.hero .intro-text p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #756046;
}

.logo-container {
    text-align: center;
    margin-bottom: 3rem;
}

.main-logo {
    max-width: 300px;
}

/* ====== SERVICES GRID ====== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Special styling for ABC Store logo */
.service-image.abc-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 1rem;
    box-sizing: border-box;
}

.service-image.abc-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

/* ====== ABOUT PAGE STYLES ====== */

.page-content {
    flex: 1;
    padding: 2rem 0 0;
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-us-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.about-text {
    padding: 1.5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.history-timeline {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.timeline-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid #eee;
}

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

.timeline-item span {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

/* ====== CONTACT PAGE STYLES ====== */
/* 
 * Contact page layout and components
 * Includes styles for contact info, map, and responsive adjustments
 * Updated: 2025-06-10 - Fixed footer overlap and improved spacing
 */

/* Contact Form Styles */
.contact-form-section {
    margin: 4rem 0;
    padding: 0 1rem;
}

.contact-form-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #756046;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Main content container with proper spacing for fixed header and footer */
.page-content {
    padding: 120px 1rem 100px; /* Top padding for header, bottom for footer */
    min-height: calc(100vh - 300px); /* Ensure content pushes footer down */
    box-sizing: border-box; /* Include padding in height calculations */
}

.contact-info-section {
    margin-bottom: 4rem;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto 4rem; /* Added bottom margin */
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: #6b5a40;
    text-decoration: underline;
}

/* Email styling to make it look clickable */
.email-address {
    color: var(--accent-color);
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.email-address:hover {
    color: #6b5a40;
    text-decoration: underline;
}

/* Map container with responsive width and spacing */
.map-section {
    max-width: 1200px; /* Maximum width for larger screens */
    width: calc(100% - 2rem); /* Full width with 1rem padding on each side */
    margin: 4rem auto; /* Vertical spacing and horizontal centering */
    border-radius: 8px;
    overflow: hidden; /* Ensure border-radius clips child elements */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    padding: 0 1rem; /* Horizontal padding for smaller screens */
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-map {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    border: none;
    display: block;
    margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .contact-info {
        padding: 2rem 1.5rem;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-content {
        padding-top: 100px;
    }
    
    .contact-info {
        padding: 1.5rem 1rem;
    }
}

/* ====== FOOTER STYLES ====== */
/* 
 * Footer Styles
 * Sticky footer implementation with flexbox
 * Updated: 2025-06-10 - Fixed overlap issues and improved layout
 */
footer {
    background-color: #000000; /* Solid black background */
    color: #ffffff; /* White text for contrast */
    padding: 3rem 0; /* Vertical padding */
    width: 100%; /* Full width */
    position: relative;
    z-index: 10; /* Ensure footer stays above other content */
    margin-top: auto; /* Push footer to bottom in flex container */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo .logo-text {
    color: #ffffff;
    font-size: 1.1rem;
}

.footer-info h3,
.footer-links h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-info p,
.footer-links a {
    color: #cccccc;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ====== RESPONSIVE DESIGN ======

/* Large Desktops */
@media (min-width: 1440px) {
    .hero h2 {
        font-size: 3.75rem;
    }
}

/* Laptops */
@media (max-width: 1280px) {
    .hero h2 {
        font-size: 3.25rem;
    }
}

/* Small Laptops */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .hero .intro-text {
        max-width: 500px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 2.5rem;
    }
    
    .main-header {
        padding: 1.2rem 2.5rem;
    }
    
    .nav-links {
        gap: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 1.8rem;
    }
    
    .hero .intro-text {
        margin-bottom: 2.5rem;
    }
    
    .hero .intro-text p {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
}

/* Large Phones */
@media (max-width: 576px) {
    .container {
        padding: 0 2rem;
    }
    
    .main-header {
        padding: 1rem 2rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 0.9rem;
        letter-spacing: 2.5px;
        margin-bottom: 1.2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.6rem;
    }
    
    .hero .intro-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Small Tablets and Large Phones */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-image {
        height: 180px;
    }
}

/* Small Phones */
@media (max-width: 400px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .main-header {
        padding: 0.8rem 1.5rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .hero h1 {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .intro-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.3rem;
    }
    
    .cta-button {
        padding: 9px 24px;
        font-size: 0.85rem;
    }
}
