/* 
* Energygrowth - Art Deco Chat-like Website
* Main Stylesheet
*/


:root {
    --primary-color: #132743;
    --secondary-color: #CFAC67;
    --background-color: #F8F7F3;
    --text-color: #2D2D2D;
    --accent-color: #A67C52;
    --highlight-color: #E9E2D5;
    --button-primary: #132743;
    --button-hover: #0F1F35;
    --button-text: #FFFFFF;
    --footer-color: #0A1526;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --art-deco-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cfac67' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: var(--art-deco-pattern);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

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

section {
    padding: 4rem 0;
}


.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}


.chat-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.message-bubble {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.incoming {
    background-color: var(--highlight-color);
    border-left: 4px solid var(--secondary-color);
    margin-right: auto;
}

.outgoing {
    background-color: white;
    border-right: 4px solid var(--primary-color);
    margin-left: auto;
}

.message-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.incoming::after {
    border-right-color: var(--highlight-color);
    left: -20px;
    top: 20px;
}

.outgoing::after {
    border-left-color: white;
    right: -20px;
    top: 20px;
}


.hero-section {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.parallax-container {
    height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.parallax-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 39, 67, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
}

.message-bubble p {
  color: var(--text-color);
}


.btn {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--button-primary);
    border-color: var(--button-primary);
    color: var(--button-text);
}

.btn-primary:hover {
    background-color: var(--button-hover);
    border-color: var(--button-hover);
}

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

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}


.service-cards {
    margin-top: 2rem;
}

.service-card {
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
    background: linear-gradient(to bottom, white, var(--highlight-color));
    border-bottom: 3px solid var(--secondary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card .btn {
    margin-top: 1rem;
}


.news-section {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.news-section h2 {
    color: white;
}

.news-carousel {
    margin-top: 2rem;
}

.news-item {
    width: 100%;
    padding: 0 1rem;
}

.news-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.8;
}


.contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(207, 172, 103, 0.25);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}


.stats-row {
    margin-top: 2rem;
}

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    border-bottom: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1rem;
    color: var(--text-color);
}


.case-study {
    margin-bottom: 4rem;
}

.case-content {
    height: 100%;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--box-shadow);
}


.approach-card {
    height: 100%;
}

.approach-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}


.accordion {
    margin-top: 2rem;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    background-color: white;
    padding: 1.25rem;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: white;
    box-shadow: var(--box-shadow);
}

.accordion-button:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(207, 172, 103, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23132743'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--highlight-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}


.contact-details {
    margin-top: 2rem;
}

.contact-card {
    height: 100%;
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}


.calculator-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

#calculationResult {
    margin-top: 2rem;
}


.thanks-section {
    padding: 6rem 0;
    text-align: center;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin: 2rem 0;
}

.contact-info {
    margin-top: 1.5rem;
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-header h3 {
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-accept {
    background-color: var(--button-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-accept:hover {
    background-color: var(--button-hover);
}

.cookie-decline {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-decline:hover {
    background-color: #f1f1f1;
}

.cookie-settings-btn {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}


.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1060;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: white;
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-modal-header h3 {
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option h4 {
    margin: 0 0 0.5rem 0;
}

.cookie-option p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.cookie-switch.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.cookie-save-btn {
    background-color: var(--button-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.cookie-save-btn:hover {
    background-color: var(--button-hover);
}


.site-footer {
    background-color: var(--footer-color);
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.site-footer p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-contact {
    line-height: 2;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
    margin-right: 10px;
}

.site-footer h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.site-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
}


.privacy-section,
.terms-section,
.cookie-policy-section {
    padding: 4rem 0;
}

.privacy-section h3,
.terms-section h3,
.cookie-policy-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-section ul,
.terms-section ul,
.cookie-policy-section ul {
    padding-left: 1.5rem;
}


@media (max-width: 991.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .parallax-container {
        height: 500px;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    .navbar-nav .nav-link::after {
        left: 0;
        right: 0;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .parallax-container {
        height: 400px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .parallax-container {
        height: 350px;
    }
    
    .message-bubble {
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .message-bubble::after {
        display: none;
    }
    
    .cookie-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-settings-btn {
        margin-top: 0.5rem;
    }
}


.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
    }
}