/**
 * Main Site Styles
 * For connieinrealestate.ca homepage
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Main container matching Elementor structure */
.elementor {
    width: 100%;
}

.elementor-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.elementor-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #003DA5 0%, #001a4d 100%);
    opacity: 0.9;
}

.elementor-container {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.elementor-column {
    flex: 1;
    position: relative;
}

/* Left column - Image and contact info */
.elementor-column:first-child {
    /* Background gradient is set inline via PHP based on GRADIENT_THEME */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

/* Optional subtle overlay for depth */
.elementor-column:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 0;
}

/* Profile image */
.profile-image {
    width: 263px;
    height: 263px;
    border-radius: 50%;
    margin-bottom: 30px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Contact text */
.contact-text {
    color: #ffffff;
    margin-bottom: 30px;
    animation: slideInUp 1s ease-out 0.5s both;
    position: relative;
    z-index: 1;
}

.contact-text a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.4;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Social media icons container */
.social-icons {
    display: flex;
    position: relative;
    z-index: 1;
    gap: 15px;
    justify-content: center;
    align-items: center;
    animation: slideInUp 1s ease-out 0.75s both;
}

/* Individual social icon */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Icon-specific hover colors */
.social-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.social-icon[aria-label="X (Twitter)"]:hover {
    background: #000000;
    border-color: #000000;
}

.social-icon[aria-label="YouTube"]:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* Right column - Name, logo, and form */
.elementor-column:last-child {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
}

/* Main heading */
.main-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #333;
    line-height: 1.1;
    margin-bottom: 30px;
    text-align: left;
}

/* RE/MAX logo */
.remax-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

/* Company text */
.company-text {
    margin-bottom: 40px;
    text-align: left;
}

.company-name-bold {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.company-name {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* Form styles matching Elementor */
.elementor-form {
    width: 100%;
}

.elementor-form-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.elementor-field-group {
    display: flex;
    flex-direction: column;
}

.elementor-field-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.elementor-field {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.3s ease;
}

.elementor-field:focus {
    outline: none;
    border-color: #003DA5;
}

.elementor-field[type="email"],
.elementor-field[type="text"] {
    height: 45px;
}

textarea.elementor-field {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.elementor-button {
    background: #C8102E;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-end;
    min-width: 120px;
}

.elementor-button:hover {
    background: #A0101E;
}

/* Success/Error messages */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* QOL: Character counter for message */
.char-counter-link {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.clear-link {
    background: none;
    border: none;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin: 0;
    opacity: 0.7;
    transition: color 0.2s, opacity 0.2s;
}

.clear-link:hover {
    color: #C8102E;
    opacity: 1;
}

/* QOL: Back to Top button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: #003DA5;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#back-to-top:focus {
    outline: 2px solid #fff;
}

/* Copyright and designer link */
.copyright-designer {
    margin-top: auto;
    margin-bottom: 0;
    font-size: 13px;
    color: #ffffffb3;
    opacity: 0.6;
    text-align: right;
    z-index: 2;
    pointer-events: auto;
    line-height: 1.4;
    white-space: nowrap;
    align-self: flex-end;
    position: relative;
}

.copyright-designer .designer-link {
    color: #ffffffb3;
    text-decoration: none;
    opacity: 0.7;
    font-size: 13px;
    transition: opacity 0.2s, color 0.2s;
}

.copyright-designer .designer-link:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .copyright-designer {
        font-size: 12px;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .elementor-container {
        flex-direction: column;
        min-height: auto;
    }

    .elementor-column {
        flex: none;
    }

    .elementor-column:first-child {
        min-height: 60vh;
        padding: 30px 20px;
    }

    .elementor-column:last-child {
        padding: 40px 30px;
    }

    .main-heading {
        font-size: 2.5rem;
        text-align: center;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .elementor-column:first-child {
        min-height: 50vh;
        padding: 20px;
    }

    .elementor-column:last-child {
        padding: 30px 20px;
    }

    .main-heading {
        font-size: 2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .remax-logo {
        max-width: 250px;
    }
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}
