/* --- 1. VARIABLES & RESET --- */
:root {
    --text-main: #222;
    --text-light: #555;
    --text-muted: #666;
    --white: #ffffff;
    --black: #000000;
    --brand-purple: #5c53be;
    --accent-purple: #4e4084;
    --bg-footer: #f6f7f9;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* --- 2. HEADER & NAVIGATION --- */
.site-header {
    width: 100%;
    background: var(--white);
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
/* --- Wide View Header Fix --- */
/* --- Wide View Header Fix --- */
.site-header {
    width: 100%;
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.site-header .container {
    display: flex;
    justify-content: space-between; /* Pushes contact to far left, icons to far right */
    align-items: center;
    max-width: 1400px; /* Allows elements to spread on wide monitors */
    margin: 0 auto;
    padding: 0 40px; /* Adds the inset margin seen in your screenshot */
}

.contact-info {
    display: flex;
    gap: 30px; /* Spacing between phone and email */
    font-size: 14px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px; /* Spacing between social icons */
    align-items: center;
}

.social-icons a {
    color: var(--black);
    font-size: 16px;
    transition: 0.3s;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .site-header .container {
        flex-direction: column; /* Stacks for tablet/mobile view */
        padding: 0 20px;
        gap: 10px;
    }
}

.contact-info { margin-bottom: 10px; display: flex; justify-content: center; gap: 20px; }
.contact-info span { font-size: 13px; font-weight: 600; }

.social-icons { display: flex; justify-content: center; gap: 15px; }
.social-icons a { color: var(--black); font-size: 16px; transition: 0.3s; text-decoration: none; }
.social-icons a:hover { opacity: 0.6; color: var(--brand-purple); }

/* --- 3. HERO SECTION --- */
.hero {
    position: relative;
    background: url('images/pexels-watorious-2381463-scaled.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 800px; }
.hero-logo { width: 220px; margin-bottom: 30px; }

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 25px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.2);
}

.hero-subtext {
    font-size: 19px;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.btn-pill {
    background: var(--black);
    color: var(--white);
    padding: 16px 45px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    border-radius: 50px;
    display: inline-block;
    transition: 0.3s ease;
}

.btn-pill:hover { background: #333; transform: scale(1.02); }

/* --- 4. SERVICES SECTION --- */
.services-section { padding: 100px 0; text-align: center; }
.services-intro { margin-bottom: 60px; }

.accent-text {
    font-family: var(--font-heading);
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    padding: 60px 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(78, 64, 132, 0.12);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--accent-purple);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-card p { color: var(--text-muted); font-size: 15px; }

/* --- 5. PORTFOLIO SECTION --- */
.portfolio-section { padding: 120px 0; background-color: var(--white); }

.portfolio-flex-match {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    align-items: flex-start;
}

.portfolio-text-side { flex: 1.3; }

.section-tag-purple {
    color: var(--brand-purple);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.section-title-bold {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.custom-bullet-list { list-style: none; padding: 0; }
.custom-bullet-list li { display: flex; margin-bottom: 25px; font-size: 16px; }
.custom-bullet-list li::before {
    content: "•";
    color: var(--black);
    font-weight: 900;
    margin-right: 15px;
    font-size: 20px;
}

.portfolio-image-featured { flex: 1; display: flex; justify-content: flex-end; }
.portfolio-image-featured img {
    width: 100%;
    max-width: 480px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.sub-title-bold { font-family: var(--font-heading); font-size: 32px; font-weight: 800; margin: 50px 0 20px; }
.body-text { font-size: 17px; color: var(--text-light); margin-bottom: 30px; }

.btn-purple-pill {
    background-color: var(--brand-purple);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 60px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
    transition: 0.3s ease;
}

.btn-purple-pill:hover { background-color: #4a42a8; transform: translateY(-3px); }

/* --- 6. FOOTER --- */
.site-footer { border-top: 1px solid #e1e4e8; }
.footer-top { padding: 20px 0; border-bottom: 1px solid #e1e4e8;  background-color: var(--bg-footer);}
.footer-flex { display: flex; justify-content: space-between; align-items: center; }

.footer-contact a { color: var(--text-light); text-decoration: none; font-size: 14px; margin-right: 25px; }
.footer-contact i { margin-right: 8px; }

.footer-social a { color: #cbd3da; font-size: 18px; margin-left: 20px; transition: 0.3s; text-decoration: none; }
.footer-social a:hover { color: var(--brand-purple); }

.footer-main { padding: 40px 0; }
.footer-logo img { height: 80px; }
.search-btn { background: none; border: none; font-size: 20px; cursor: pointer; }

.footer-bottom { background-color: var(--white); padding: 20px 0; text-align: center; font-size: 13px; color: #888; }

/* --- 7. RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Smaller Desktop */
@media (max-width: 1100px) {
    .portfolio-flex-match { flex-direction: column; }
    .portfolio-image-featured { width: 100%; justify-content: center; margin-top: 50px; }
    .services-grid { gap: 20px; }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .contact-info { flex-direction: column; align-items: center; gap: 5px; }
    .hero { text-align: center; padding: 60px 0; }
    .hero-logo { margin: 0 auto 30px; width: 160px; }

    /* Request: 2 columns, compact padding, 15px font */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    .service-card { padding: 10px 5px; box-shadow: none; border: 1px solid #f0f0f0; background: #fff; }
    .service-card h3 { font-size: 15px; margin-bottom: 10px; }
    .service-card p { font-size: 12px; }

    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }
    .footer-social a { margin: 0 10px; }
}
/* --- Modal Background --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

/* --- Modal Content Box --- */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 80%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Close Button --- */
.close-modal {
    color: #333;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover { color: var(--brand-purple); }

/* --- Split Layout inside Modal --- */
.modal-body-split {
    display: flex;
    flex-wrap: wrap;
}

.modal-info-side {
    flex: 1;
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: 15px 0 0 15px;
}

.modal-form-side {
    flex: 1.2;
    padding: 60px 40px;
}

.modal-logo {
    width: 180px;
    margin-bottom: 25px;
}

/* --- Form Adjustments --- */
.estimate-form-modal .form-group { margin-bottom: 15px; }
.estimate-form-modal label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
}
/* --- Modal Input Styling --- */
.modal-form-side .main-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

/* Matching the Name row with sub-labels */
.form-row-name {
    display: flex;
    gap: 15px;
}

.name-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sub-label {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

/* Input & Textarea Style Match */
.estimate-form-modal input[type="text"],
.estimate-form-modal input[type="email"],
.estimate-form-modal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccd0d4; /* Matching the soft gray border */
    border-radius: 8px; /* Rounded corners as seen in screenshot */
    background-color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus State */
.estimate-form-modal input:focus,
.estimate-form-modal textarea:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 2px rgba(92, 83, 190, 0.1);
}

/* Submit Button Override for Modal */
.estimate-form-modal .btn-purple-pill {
    width: auto;
    min-width: 140px;
    padding: 14px 30px;
    margin-top: 10px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 850px) {
    .modal-content { width: 95%; margin: 10% auto; }
    .modal-body-split { flex-direction: column; }
    .modal-info-side {
        padding: 40px 25px;
        border-radius: 15px 15px 0 0;
        text-align: center;
    }
    .modal-logo { margin: 0 auto 20px; }
    .modal-form-side { padding: 40px 25px; }
}
hr {
    width: 70%;
    margin: 40px auto; /* Centers the HR and adds vertical spacing */
    border: 0;
    border-top: 1px solid #e1e4e8; /* Subtle light grey color */
    opacity: 0.6;
}
