/* 
   AuraBuilder - Premium House Builder Template
   Design System: Slate/Navy & Architectural Gold
*/

:root {
    --primary-color: #0f172a; /* Slate 900 */
    --primary-light: #1e293b; /* Slate 800 */
    --accent-color: #c5a880; /* Architectural Gold */
    --accent-dark: #b59469;
    --text-color: #334155; /* Slate 700 */
    --text-light: #64748b; /* Slate 500 */
    --bg-color: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Prompt', sans-serif;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(197, 168, 128, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

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

/* Header & Navigation */
.builder-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    color: #ffffff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.logo i {
    color: var(--accent-color);
}

.accent-text {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    gap: 5px;
    transition: var(--transition);
}

.lang-switch:hover {
    border-color: var(--accent-color);
    color: #ffffff;
}

.active-lang {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-full-width {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(197, 168, 128, 0.5);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-accent:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(197, 168, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0);
    }
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1100;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

.mobile-menu.open {
    right: 0;
}

.close-menu {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #cbd5e1;
}

.mobile-link:hover {
    color: var(--accent-color);
}

.mobile-lang-switch {
    align-self: flex-start;
    margin-bottom: 15px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Sections Base */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.sub-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: inline-block;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.section-title.white h2 {
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--primary-color);
    color: #ffffff;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(197, 168, 128, 0.15);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.visual-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.visual-wrapper:hover .visual-img {
    transform: scale(1.03);
}

/* Highlights Section */
.highlights-section {
    background-color: #ffffff;
}

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

.highlight-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--accent-color);
    font-size: 1.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.highlight-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    background-color: var(--bg-color);
}

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

.service-card {
    background-color: var(--bg-card);
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Work Steps Section */
.steps-section {
    background-color: #ffffff;
}

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

.step-card {
    position: relative;
    padding-top: 30px;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(197, 168, 128, 0.15);
    line-height: 1;
}

.step-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-info h4 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Estimator Section */
.estimator-section {
    background-color: #ffffff;
}

.estimator-container {
    background-color: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    box-shadow: var(--shadow);
}

.estimator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.option-box {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.option-box i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.option-box span {
    font-size: 0.9rem;
    font-weight: 600;
}

.option-box input {
    display: none;
}

.option-box:hover {
    border-color: var(--accent-color);
}

.option-box.selected {
    border-color: var(--accent-color);
    background-color: rgba(197, 168, 128, 0.05);
}

.option-box.selected i {
    color: var(--accent-color);
}

.lead-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-field {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--accent-color);
}

.input-full {
    grid-column: span 2;
}

.estimator-results {
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.results-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.results-header h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-row span:first-child {
    color: #cbd5e1;
}

.summary-row span:last-child {
    font-weight: 600;
}

.price-box {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 10px;
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.estimated-price-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Contact & Info Section */
.contact-section {
    background-color: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.address {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.address i {
    color: var(--accent-color);
    margin-top: 5px;
}

.map-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 30px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.map-icon {
    font-size: 3rem;
    color: var(--accent-color);
}

.map-placeholder p {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 320px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.hours-row .day {
    font-weight: 500;
}

.hours-row .time {
    color: var(--accent-color);
    font-weight: 600;
}

.quick-contact {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 35px;
    border-radius: 8px;
}

.quick-contact h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.quick-contact p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-phone {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 24px;
}

.btn-phone:hover {
    background-color: var(--accent-dark);
    color: #ffffff;
}

.btn-line {
    background-color: #06c755;
    color: #ffffff;
    padding: 12px 24px;
}

.btn-line:hover {
    background-color: #05b04b;
}

/* Footer */
.builder-footer {
    background-color: #090d16;
    padding: 40px 0;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #cbd5e1;
    font-size: 1.25rem;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: var(--primary-color);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Modal Alert */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.modal-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-tag {
        margin-bottom: 20px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .highlights-grid, .services-grid, .steps-timeline, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .estimator-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-actions .btn {
        display: none; /* Hide top CTA on mobile */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .highlights-grid, .services-grid, .steps-timeline, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
    .lead-inputs {
        grid-template-columns: 1fr;
    }
    .input-full {
        grid-column: span 1;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
