/* 
* Main Stylesheet for domain.org
* Color Palette:
* Primary: #0F1035 (Indigo Black)
* Secondary: #E3A857 (Golden Copper)
* Accent: #9AC5F4 (Electric Ice Blue)
* Background: #FAF9F6 (Pale Sand)
* Highlights: #D72638 (Fiery Red)
*/

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #FAF9F6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0F1035;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E3A857;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #0F1035;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background-color: #E3A857;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 8rem 0;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 0.4rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #0F1035;
    color: #fff;
}

.btn-primary:hover {
    background-color: #E3A857;
    color: #0F1035;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #0F1035;
    color: #0F1035;
}

.btn-secondary:hover {
    background-color: #0F1035;
    color: #fff;
}

.btn-nav {
    background-color: #E3A857;
    color: #0F1035;
    padding: 0.8rem 1.6rem;
    border-radius: 0.4rem;
}

.btn-nav:hover {
    background-color: #0F1035;
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.animated {
    position: relative;
    background-color: #E3A857;
    color: #0F1035;
    padding: 1.5rem 3rem;
    font-weight: 700;
    font-size: 1.8rem;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.animated:hover {
    background-color: transparent;
    color: #FAF9F6;
    border: 2px solid #E3A857;
}

.animated::after {
    content: '';
    position: absolute;
    top: 0;
    right: -30px;
    width: 30px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { right: -30px; }
    20% { right: 130%; }
    100% { right: 130%; }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 3rem;
    font-weight: 700;
    color: #0F1035;
    text-transform: lowercase;
    letter-spacing: -1px;
    position: relative;
}

.logo a::after {
    content: '.';
    color: #E3A857;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-size: 1.6rem;
    font-weight: 500;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(15, 16, 53, 0.8), rgba(15, 16, 53, 0.8)), url('img/XsLqVj.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8rem;
    position: relative;
}

.hero .container {
    /* No animation */
}

.fixed-text {
    position: relative;
    width: 80rem;
    max-width: 100%;
    margin: 0 auto 2rem;
    height: 12rem;
}

.hero h1 {
    color: #fff;
    font-size: 3.8rem;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

.hero h1.second-line {
    top: 6rem;
    opacity: 1;
}

.hero p {
    color: #FAF9F6;
    font-size: 2rem;
    width: 60rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.typewriter {
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: #0F1035;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.about-text p {
    text-align: left;
}

.about-image {
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background-color: #f5f5f5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: #fff;
    padding: 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #0F1035;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-card p {
    text-align: center;
}

/* Audits Section */
.audit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.audit-card {
    background-color: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.audit-card:hover {
    transform: translateY(-10px);
}

.audit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.audit-card h3, .audit-card p {
    padding: 0 2rem;
}

.audit-card h3 {
    margin-top: 2rem;
}

.audit-card .btn {
    margin: 2rem;
    display: inline-block;
}

/* Process Timeline */
.process {
    background-color: #f5f5f5;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    position: relative;
}

.timeline-number {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #E3A857;
    color: #0F1035;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding-bottom: 2rem;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.testimonial {
    background-color: #fff;
    padding: 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
    flex-grow: 1;
}

.testimonial blockquote::before {
    content: '"';
    font-size: 6rem;
    color: #E3A857;
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.testimonial cite {
    font-style: normal;
    font-weight: 700;
    display: block;
    text-align: right;
    color: #0F1035;
    margin-top: auto;
}

/* Why Choose Us */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.advantage {
    background-color: #fff;
    padding: 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 2.4rem;
    color: #E3A857;
    margin-bottom: 1.5rem;
}

/* Contact Form */
.form-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    font-size: 1.6rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #0F1035;
    outline: none;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 1rem;
}

.checkbox label {
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* Footer */
.site-footer {
    background-color: #0F1035;
    color: #fff;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h3, .footer-contact h3, .footer-links h3 {
    color: #E3A857;
    margin-bottom: 2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #FAF9F6;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #E3A857;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 16, 53, 0.95);
    color: #fff;
    padding: 2rem 0;
    z-index: 2000;
    display: none;
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    flex: 1 0 100%;
}

.cookie-link {
    color: #FAF9F6;
    text-decoration: underline;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #E3A857;
}

#accept-cookies {
    background-color: #E3A857;
    color: #0F1035;
    padding: 1rem 2rem;
    border-radius: 0.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#accept-cookies:hover {
    background-color: #FAF9F6;
    color: #0F1035;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    section {
        padding: 6rem 0;
        width: 100%;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    .fixed-text {
        height: 10rem;
    }
    
    .hero h1.second-line {
        top: 5rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
    }
    
    .menu-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #0F1035;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .site-header .container {
        position: static;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        box-sizing: border-box;
        z-index: 1000;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: left;
    }
    
    /* Fix for mobile sections */
    .audit-cards, .services-grid, .advantages-grid, .testimonial-carousel {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .fixed-text {
        height: 8rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h1.second-line {
        top: 4rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .timeline-number {
        left: -1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.6rem;
    }
}