/* Global Variables */
:root {
    --primary-color: #004aad;
    /* Trustworthy Blue */
    --secondary-color: #002D6B;
    /* Darker Blue */
    --accent-color: #38b6ff;
    /* Friendly Light Blue */
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.separator {
    height: 4px;
    width: 60px;
    background: var(--accent-color);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
}

.btn-contact:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link:not(.btn-contact) {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link:not(.btn-contact)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:not(.btn-contact):hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:not(.btn-contact):hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-controls {
    display: none;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    /* Header height */
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 45, 107, 0.85) 0%, rgba(0, 45, 107, 0.4) 60%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 600px;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-content .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.hero-content .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Rectangle box styling as requested */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

/* Subtle top styling for service card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.learn-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.learn-more:hover {
    gap: 10px;
}

/* Proprietor Section */
.proprietor {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.proprietor-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.proprietor-content {
    flex: 1;
}

.tagline {
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.proprietor-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.proprietor-bio {
    color: var(--light-text);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.proprietor-signature strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.proprietor-signature span {
    font-size: 0.9rem;
    color: var(--light-text);
}

.proprietor-image-wrapper {
    flex: 1;
    position: relative;
    max-width: 450px;
}

.proprietor-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    top: 20px;
    right: -20px;
    border-radius: 10px;
    z-index: 1;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 30px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    /* Flexbasis 100% also works, but min-width ensures it doesn't shrink */
    padding: 0 10px;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Footer */
.footer {
    background-color: #001a3d;
    /* Very dark blue */
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.white-logo {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .proprietor-img {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .proprietor-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .proprietor-image-wrapper {
        margin: 0 auto;
    }

    .image-accent {
        right: -10px;
        /* Adjust for smaller screens */
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s ease-in-out;
    }

    .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .mobile-login-btn {
        background-color: var(--accent-color);
        color: var(--white);
        padding: 8px 20px;
        border-radius: 50px;
        font-weight: 500;
        font-size: 0.9rem;
        transition: var(--transition);
    }

    .mobile-login-btn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        margin-top: 70px;
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .slide img {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}