@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Montserrat:wght@300;400;500&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
    margin-top: 80px; /* space for fixed header */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.navbar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Logo image styling */
.logo-img {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.logo-text {
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.3s;
}

/* Adjust the active and hover color for navigation links to match the dark grey logo */
.nav-links a:hover,
.nav-links a.active {
    color: #464646;
}

.cta-button {
    padding: 0.5rem 1rem;
    /* Use dark grey for call‑to‑action buttons to coordinate with the logo */
    background: #464646;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.cta-button:hover {
    /* Darken the grey slightly on hover */
    background: #333333;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduce the opacity of the hero overlay slightly so background images remain visible */
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    /* Start hidden for fade-in animation */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* Keyframes for a subtle fade-in and upward motion */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .cta-button {
    /* Match hero call‑to‑action with dark grey palette */
    background: #464646;
    color: #fff;
}

section {
    padding: 4rem 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #222;
    text-align: center;
}

/* Services */
.services {
    background: #fff;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    flex: 1 1 260px;
    max-width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    color: #222;
    font-size: 1.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
}

/* About Section */
.about {
    background: #f5f5f5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.about img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    margin-right: 2rem;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.portfolio-grid figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}

/* Contact */
.contact {
    background: #fff;
    text-align: center;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.contact button {
    padding: 0.75rem;
    background: #464646;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.contact button:hover {
    background: #333333;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ddd;
    padding: 2rem;
    text-align: center;
}

footer a {
    color: #464646;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Brand section above navigation */
.site-brand {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

/* Logo image within the brand section */
.site-brand .site-logo-image {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Company name styling within the brand section */
.site-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #222;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Keep the navigation horizontal on mobile devices */
    .navbar {
        flex-direction: row;
    }
    .nav-links {
        flex-direction: row;
        align-items: center;
    }
    .nav-links li {
        margin: 0 0.75rem;
    }
    .about {
        flex-direction: column;
    }
    .about img {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    /* Reduce hero heading and subheading sizes on smaller screens so they don't occupy excessive vertical space */
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }

    /* Scale down section titles and headings for better readability on mobile */
    .section-title {
        font-size: 1.8rem;
    }
    .about-text h2,
    .services .section-title,
    .contact .section-title {
        font-size: 1.6rem;
    }
    .service-card h3 {
        font-size: 1.3rem;
    }
}