/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-green: #349946;
    --dark-grey: #1a1a1a;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --black: #000000;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--dark-grey);
    background-color: var(--white);
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--dark-grey); }
.green { color: var(--primary-green); }
.hidden { display: none; }

/* --- HEADER & NAVIGATION --- */
header { background: var(--white); padding: 15px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
header .logo img { height: 50px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hamburger-btn { display: none; flex-direction: column; justify-content: space-around; width: 2.5rem; height: 2.5rem; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
.hamburger-btn .line { width: 2.5rem; height: 0.25rem; background: var(--dark-grey); border-radius: 10px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.main-nav a { text-decoration: none; color: var(--dark-grey); font-weight: 700; font-family: 'Montserrat', sans-serif; transition: color 0.3s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-green); }

/* --- PAGE-SPECIFIC HEROES & HEADERS --- */
.hero { min-height: 60vh; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; color: var(--white); }
.hero h1, .hero p { color: var(--white); text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.page-index .hero { background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/fancy_home_blue_hour.jpg'); }
.gc-card { border-radius: 1.25rem; max-width: 900px; margin: auto; padding: 2.5rem 1.875rem; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.2); position: relative; overflow: hidden; font-size: 1.15em; }

#hero-book { padding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; background-size: cover; background-position: center; background-attachment: fixed; position: relative; }
.page-agent #hero-book { background-image: url('images/modern_house_front_door.jpg'); }
#hero-book::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(20, 40, 70, 0.01); z-index: 1; }
#hero-book .cs-container { width: 100%; max-width: 1280px; margin: auto; display: flex; justify-content: center; align-items: center; flex-direction: column; position: relative; z-index: 2; }
#hero-book .cs-hero-header { text-align: center; margin-bottom: 1.7rem; }
#hero-book .cs-hero-title { font-size: 4rem; color: #ffffff; font-weight: 900; margin: 0 0 0.9375rem 0; text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8); }
#hero-book .cs-card-group { display: flex; justify-content: center; align-items: stretch; flex-direction: column; gap: 2.5rem; }
#hero-book .cs-card-compact { border-radius: 1.25rem; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); position: relative; background: linear-gradient(135deg, rgba(60, 60, 60, 0.2) 0%, rgba(80, 80, 80, 0.15) 100%); }
#hero-book .cs-card-compact > * { position: relative; z-index: 2; }
#hero-book .cs-title { font-size: 1rem; color: #ffffff; font-weight: 900; text-align: center; margin-bottom: 1rem; line-height: .1rem; padding-bottom: 25px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); }
#hero-book .cs-title-2 { font-size: 3.5rem; color: #fff; }

.page-header { text-align: center; padding: 20px 7px; }
.page-client .page-header { background: var(--primary-green); color: var(--white); }
.page-client .page-header h1 { color: var(--white); }
.page-vendor .page-header { background: var(--black); color: var(--white); }
.page-vendor .page-header h1 { color: var(--white); }
.page-agent .page-header { background: var(--white); color: var(--black); border: 4px solid black; }

/* --- CONTENT STYLES --- */
.content-section, .content-section-construction { padding: 60px 0; }
.content-section .container { display: flex; align-items: flex-start; gap: 50px; }
.content-section .text-content, .content-section .image-content { flex: 1; }
.content-section .image-content { align-self: center; }
.content-section img, .content-section-construction img { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.content-section ul, .content-section-construction ul { list-style: none; padding-left: 0; }
.content-section ul li, .content-section-construction ul li { padding-left: 30px; position: relative; margin-bottom: 15px; }

/* Page Specific Icons & Backgrounds */
.page-client .content-section { background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/home_interior_big_house.jpg'); background-attachment: fixed; background-position: center; background-size: cover; }
.page-client .content-section .container { display: block; }
.content-section ul li::before { content: url('images/icons/house.svg'); position: absolute; left: 0; width: 1em; height: 1em; top: 0.2em; }
.content-section-construction ul li::before { content: url('images/icons/construction_green.svg'); position: absolute; left: 0; width: 1em; height: 1em; top: 0.2em; }

.content-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
.grid-item { background: var(--light-grey); padding: 30px; border-radius: 8px; }
.grid-item h3 { margin-top: 0; color: var(--primary-green); text-align: center; }

/* --- COMPARISON & CTA & BUTTONS --- */
.comparison-wrapper { padding: 60px 0; background-color: var(--light-grey); }
.comparison-wrapper h2 { text-align: center; margin-bottom: 40px; }
.comparison-container { display: flex; justify-content: space-between; gap: 20px; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.page-agent .comparison-container, .page-client .comparison-container { max-width: none; }
.comparison-column { flex: 1; padding: 30px; position: relative; }
.comparison-column:first-child { border-right: 1px dashed #ccc; }
.comparison-column h3 { margin-top: 0; font-size: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid; text-align: center; }
.old-way h3, .old-way-construction h3 { border-color: #ccc; }
.new-way h3, .new-way-construction h3 { border-color: var(--primary-green); }
.comparison-column ul { padding-left: 0; list-style: none; }
.comparison-column ul li { padding-left: 30px; position: relative; margin-bottom: 15px; }
.old-way ul li::before { content: url('images/icons/house_ccc.svg'); position: absolute; left: 0; width: 1em; height: 1em; top: 0.2em; }
.new-way ul li::before { content: url('images/icons/house.svg'); }
.old-way-construction ul li::before { content: url('images/icons/construction_ccc.svg'); }
.new-way-construction ul li::before { content: url('images/icons/construction_green.svg'); }
.page-index .comparison-wrapper { background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/high_end_bathroom_tub_glass_shower.jpg'); background-position: center; background-size: cover; padding: 5px 5px 50px 5px; }
.page-vendor .comparison-wrapper { background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/tools_on_metal.jpg'); background-attachment: fixed; background-position: center; background-size: cover; }

.cta-section { background-color: var(--primary-green); color: var(--white); padding: 60px 20px; text-align: center; }
.cta-section h2 { color: var(--white); }
.app-buttons-section { text-align: center; padding: 60px 0; }
.app-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.app-buttons a { display: inline-block; text-decoration: none; font-weight: bold; transition: transform 0.2s; }
.app-buttons a:hover, .pl-buttons a:hover, .pl-buttons-dark a:hover { transform: scale(1.05); }

.pl-buttons a, .pl-buttons-dark a { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: transform 0.2s; position:relative; z-index: 1; }
.pl-buttons { display: flex; gap: 20px; margin-top: 80px; justify-content: center; }
.pl-buttons a { background-color: var(--black); color: var(--white); }
.pl-buttons-dark { display: flex; gap: 20px; margin-top: 10px; }
.pl-buttons-dark a { background-color: var(--white) !important; color: var(--black) !important; }
.pl-buttons a::after, .pl-buttons-dark a::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; z-index: -1; animation: pulse 2s infinite; }
.pl-buttons a::after { background-color: var(--primary-green); }
.pl-buttons-dark a::after { background-color: var(--primary-green); }
.white a::after { background-color: var(--white) !important; }

/* --- FLEX TABLES (AGENT PAGE) --- */
.flex-table-container { border-radius: 8px; background-color: white; width: 100%; padding: 15px 8px; margin-bottom: 1em; }
.flex-table { border: 1px solid black; padding: 5px; display: flex; flex-direction: column; }
.flex-table .flex-header, .flex-table .flex-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; }
.flex-table .flex-header { color: #f0f0f0; font-weight: bold; padding: 0; }
.flex-table .header-title { flex-grow: 1; padding: 12px 15px; border-right: 5px solid white !important; background-color: sienna; text-align: center; }
.flex-table .price-box { padding: 12px 15px; background-color: gray; width: 109px; text-align: center; position: relative;  } 
.flex-table .flex-row { border-top: 1px solid #eee; color: #555; font-size: 14px; }
.flex-table .flex-row:nth-of-type(odd) { background-color: #edecea; }
.price { font-variant-numeric: tabular-nums; text-align: right; width: 109px; color: black; }
.flex-table .strike-price { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1.5em; color: white; opacity: 0.8; }
.flex-table .strike-red { color: white; display: inline-block; }
.flex-table .strike-red::before, .flex-table .strike-red::after { content: ''; position: absolute; top:50%; left:0; width: 100%; height: 2px; background-color: red; }
.flex-table .strike-red::before { transform: rotate(15deg); }
.flex-table .strike-red::after { transform: rotate(-15deg); }
.ninety-nine { position:absolute; top: 33px; right: -28px; background-color: yellow; border-radius: 50px; padding: 12px; color: black; font-size: 2em; font-weight: bold; }
.check-mark { color: var(--primary-green); font-weight: bold; font-size: 1.5em; width: 73px; text-align: center; }
.tooltip-container { position: relative; display: inline-block; cursor: pointer; }
.info-icon { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background-color: #6c757d; color: white; text-align: center; font-size: 9px; line-height: 12px; font-family: 'Georgia', serif; font-style: italic; margin-left: 5px; vertical-align: middle; user-select: none; }
.tooltip-text { visibility: hidden; opacity: 0; width: 280px; background-color: #333; color: #fff; text-align: left; padding: 12px; border-radius: 6px; position: absolute; z-index: 10; bottom: 130%; left: 50%; margin-left: -140px; transition: opacity 0.3s ease; font-size: 0.9em; line-height: 1.5; }
.tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent; }
.tooltip-container:hover .tooltip-text, .tooltip-container:focus .tooltip-text { visibility: visible; opacity: 1; }

/* --- FAQ SECTION --- */
#faq-toggle-btn { display: block; width: 100%; max-width: 400px; margin: 30px auto 0 auto; padding: 12px 20px; font-size: 1rem; font-weight: bold; font-family: 'Montserrat', sans-serif; color: #333; background-color: #e0e0e0; border: 1px solid #ccc; border-radius: 8px; cursor: pointer; }
#faq-toggle-btn:hover { background-color: #d0d0d0; }
#faq-content-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.7s ease-in-out; margin-top: 20px; background-color: #f9f9f9; border-radius: 8px; }
#faq-content-wrapper.open { max-height: 1000px; }
.faq-item { padding: 15px 20px; border-bottom: 1px solid #e0e0e0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-weight: bold; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; margin-bottom: 8px; }

/* --- MODAL STYLES (SHARED) --- */
.modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-content { background-color: #ffffff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); width: 90%; max-width: 500px; position: relative; text-align: center; animation: fadeIn 0.3s ease-out; max-height: 90vh; overflow-y: auto; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.4); opacity: 0; } }
.modal-close-button { position: absolute; top: 10px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
#prelaunch-form input { width: 100%; padding: 12px; margin: 10px 0 15px 0; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }
#prelaunch-form button[type="submit"] { width: 100%; padding: 12px; background-color: var(--primary-green); color: white; border: none; border-radius: 5px; cursor: pointer; }
#form-message { margin-top: 15px; font-weight: bold; }
.form-row { display: flex; gap: 15px; }
.form-row input { width: 50%; }
.user-type-fieldset { border: none; padding: 0; margin: 15px 0; text-align: left; }
.user-type-fieldset legend { font-weight: bold; margin-bottom: 10px; }
.user-type-fieldset label { display: flex; align-items: center; margin-bottom: 12px; cursor: pointer; }
.user-type-fieldset input[type="radio"] { margin-right: 10px !important; width: auto !important; }
#contractor-options { display: none; text-align: left; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 5px; padding: 15px; margin-top: 10px; }
#contractor-options input[type="radio"] { margin-right: 5px !important; margin-left: 10px; width: auto !important; }
#modal-close-bottom { margin-top: 20px; padding: 12px; width: 100%; max-width: 200px; background-color: #6c757d; color: white; border: none; border-radius: 5px; cursor: pointer; }

/* --- LEGAL & CONTACT PAGES --- */
.legal-content { padding: 60px 0; }
.legal-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.contact-wrapper { padding: 80px 0; }
.contact-header { text-align: center; margin-bottom: 50px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.contact-card { background: var(--white); padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-top: 5px solid var(--primary-green); }

/* --- FOOTER --- */
footer { background: var(--dark-grey); color: var(--light-grey); padding: 40px 0; text-align: center; }
footer p { margin: 5px 0; }
.footer-links { margin-top: 20px; }
.footer-links a { color: var(--white); text-decoration: none; margin: 0 15px; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 767px) {
    .hamburger-btn { display: flex; }
    .main-nav { display: none; }
	header .logo img { height: 40px; }
    header.nav-open .main-nav { display: block; position: absolute; top: 80px; left: 0; width: 100%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
    header.nav-open .main-nav ul { flex-direction: column; align-items: flex-end; padding: 1rem 2rem; }
    header.nav-open .hamburger-btn .line:nth-child(1) { transform: rotate(45deg); }
    header.nav-open .hamburger-btn .line:nth-child(2) { opacity: 0; transform: translateX(20px); }
    header.nav-open .hamburger-btn .line:nth-child(3) { transform: rotate(-45deg); }
	.hero h1 {line-height: .9em;}
    .content-section .container { flex-direction: column !important; }
    .content-section .text-content { order: 1; }
    .content-section .image-content { order: 2; }
	#hero-book .cs-title-2 { font-size: 2.5rem; }
	#hero-book .cs-card-compact { max-width: 80vw; }
    
    .comparison-container { flex-direction: column; }
    .comparison-column:first-child { border-right: none; border-bottom: 1px dashed #ccc; }
    .ninety-nine { right: -7px; }
    .app-buttons { display: block; text-align: center; width: 200px; margin: auto; }
}
@media (max-width: 450px) {
    .free-consult { font-size: .7em; padding-left: 0px !important;}
}

@media (min-width: 768px) {
    .content-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
    #hero-book .cs-card-group { flex-direction: row; }
    #hero-book .cs-card-compact { width: calc(50% - 1rem); }
}

@media (min-width: 1600px) {
    .content-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 75rem) { /* 1200px for cs-card-compact */
     #hero-book .cs-card-compact { width: calc(33.333% - 1.7rem); }
}