* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --charcoal: #2C2C2C;
    --ivory: #FFFFF0;
    --gold: #D4AF37;
    --grey: #4A4A4A;
    --cream: #F5F5DC;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--ivory);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 300;
    letter-spacing: 1px;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--black);
    color: var(--ivory);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-family: Georgia, serif;
    letter-spacing: 2px;
    color: var(--gold);
    text-decoration: none;
    transition: font-size 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-transform: uppercase;
    display: block;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    transition: color 0.3s, transform 0.3s;
}

.menu-toggle:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ivory);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

body.services-page .hero::before {
    background-image: url('../images/bg2.jpg');
}

body.about-page .hero::before {
    background-image: url('../images/bg3.jpg');
}

body.portfolio-page .hero::before {
    background-image: url('../images/bg4.jpg');
}

body.contact-page .hero::before {
    background-image: url('../images/bg5.jpg');
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    margin: 2rem 0;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--charcoal);
    color: var(--ivory);
    border: 2px solid var(--gold);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.hero .btn {
    background: transparent;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
    background: var(--gold);
    color: var(--black);
}

.contact-form .btn {
    background: var(--charcoal);
    color: var(--ivory);
    border: 2px solid var(--charcoal);
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

.contact-form .btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

#map-section {
    position: relative;
    overflow: hidden;
}

#map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--charcoal) 100%);
    z-index: 10;
}

#map-section iframe {
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s;
}

#map-section:hover iframe {
    filter: grayscale(0%) contrast(1);
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--gold);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.service-card p {
    color: var(--grey);
    line-height: 1.8;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--grey);
    line-height: 1.8;
    font-size: 1rem;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.stats {
    background: var(--charcoal);
    color: var(--ivory);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--gold);
    font-size: 1.5rem;
}

.testimonials {
    background: var(--cream);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-text {
    font-family: Georgia, serif;
    font-style: italic;
    color: var(--grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    color: var(--charcoal);
    font-size: 1rem;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--grey);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 3px solid var(--gold);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--charcoal);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--ivory);
    border-left: 3px solid var(--gold);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--gold);
    min-width: 35px;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-item h4 {
    color: var(--charcoal);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-item p {
    color: var(--grey);
    line-height: 1.8;
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 3px solid var(--charcoal);
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.2rem;
    background: var(--ivory);
    border-left: 3px solid var(--gold);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--gold);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--gold);
    text-decoration: underline;
}

.checkbox-group label a:hover {
    color: var(--charcoal);
}

footer {
    background: var(--black);
    color: var(--ivory);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 2rem;
    border-bottom: 1px solid var(--gold);
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--grey);
    transition: color 0.3s;
}

.popup-close:hover {
    color: var(--gold);
}

.popup-content h2 {
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.popup-content p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: var(--charcoal);
    color: var(--ivory);
    border: none;
}

.success-message {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.success-message h1 {
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--grey);
    margin-bottom: 2rem;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.policy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.policy-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-content li {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .header-content {
        padding: 0 18px;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .testimonial-card {
        padding: 1.8rem;
    }

    .about-content {
        gap: 2.5rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-image {
        height: 350px;
    }

    .section-title {
        font-size: 2.2rem;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        padding: 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 1rem 20px;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    nav a:hover {
        background: rgba(212, 175, 55, 0.1);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 15px;
    }

    .about-content,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .services-grid,
    .portfolio-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }

    section {
        padding: 3rem 0;
    }

    .service-card,
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .popup-content {
        padding: 1.5rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
    }

    .checkbox-group {
        padding: 1rem;
    }

    .contact-form .btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 1.2rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 0.95rem;
    }

    .author-info p {
        font-size: 0.8rem;
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.9rem;
    }

    .about-image {
        height: 250px;
    }

    .section-title {
        font-size: 1.6rem;
        padding: 0 10px;
        line-height: 1.3;
    }

    header {
        padding: 0.6rem 0;
    }

    .header-content {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        max-width: calc(100% - 50px);
    }

    .menu-toggle {
        font-size: 1.3rem;
        min-width: 40px;
        min-height: 40px;
        padding: 0.3rem;
    }

    nav a {
        padding: 0.9rem 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
        padding: 0 5px;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    header {
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0 8px;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 0.5px;
        max-width: calc(100% - 45px);
    }

    .menu-toggle {
        font-size: 1.2rem;
        min-width: 38px;
        min-height: 38px;
        padding: 0.2rem;
    }

    nav a {
        padding: 0.8rem 10px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .testimonial-grid {
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .testimonial-author {
        gap: 0.8rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .about-content {
        gap: 1rem;
    }

    .about-text h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .about-text p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }

    .about-image {
        height: 220px;
    }
}

