/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500&display=swap');

/* CSS Variables */
:root {
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Roboto', sans-serif;
    
    --color-dark-blue: #0D1B2A;
    --color-light-gray: #E0E1DD;
    --color-accent: #FCA311;
    --color-white: #FFFFFF;
    --color-muted-blue: #415A77;
    --color-text-dark: #1B263B;
}

/* Global Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-secondary);
    background-color: var(--color-dark-blue);
    color: var(--color-light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--color-white);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header */
.header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.header--scrolled {
    background-color: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
}

.header__burger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    z-index: 1001;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-light-gray);
    position: relative;
    padding-bottom: 0.25rem;
}

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

.nav__link:hover::after,
.nav__link:focus::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav__link--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.4);
}

.nav__link--cta::after {
    display: none;
}


/* Footer */
.footer {
    background-color: #0A1421;
    padding-top: 4rem;
    border-top: 1px solid var(--color-muted-blue);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__description {
    color: var(--color-light-gray);
    max-width: 300px;
    opacity: 0.8;
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: var(--color-light-gray);
    opacity: 0.8;
}
.footer__link:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid var(--color-muted-blue);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--color-light-gray);
    opacity: 0.6;
}

/* Responsive */
@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }
}

@media (max-width: 1023px) {
    .header__burger-btn {
        display: block;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-dark-blue);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        padding-top: 6rem;
    }

    .header__nav.nav--active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .nav__link {
        font-size: 1.25rem;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* Header offset */
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn-up 1s ease-out forwards;
}

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

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-white);
}

.hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--color-light-gray);
    opacity: 0.9;
}

.hero__cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn--primary:hover {
    background-color: #ffb742;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(252, 163, 17, 0.4);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-muted-blue);
}

.btn--secondary:hover {
    background-color: var(--color-muted-blue);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Responsive for Hero */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }
    .hero__cta-group {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* --- Shared Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: var(--color-light-gray);
    opacity: 0.8;
}

/* --- Services Section --- */
.services {
    padding: 6rem 0;
    background-color: #0A1421; /* Slightly different from main bg */
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-dark-blue);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-muted-blue);
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card__icon-wrapper {
    margin: 0 auto 1.5rem;
    background-color: var(--color-accent);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon-wrapper i {
    width: 36px;
    height: 36px;
    color: var(--color-text-dark);
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-card__description {
    color: var(--color-light-gray);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Responsive for Section Header & Services */
@media (max-width: 768px) {
    .section-header__title {
        font-size: 2rem;
    }
    .section-header__subtitle {
        font-size: 1rem;
    }
    .services {
        padding: 4rem 0;
    }
}

/* --- About Section --- */
.about {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
}

.about__image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content {
    position: relative;
    z-index: 2;
}

.about__text {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--color-light-gray);
    opacity: 0.9;
}

.about__values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__values-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.about__values-icon {
    color: var(--color-accent);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}


/* Responsive for About Section */
@media (min-width: 992px) {
    .about__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
    
    .about__content::before {
        content: '';
        position: absolute;
        width: 120%;
        height: 120%;
        background-color: #0A1421;
        top: -10%;
        left: -20%;
        z-index: -1;
        border-radius: 20px;
        transform: rotate(-5deg);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 0;
    }
}

/* --- Process Section --- */
.process {
    padding: 6rem 0;
    background-color: #0A1421;
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-muted-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.process__item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.process__item:nth-child(odd) {
    left: 0;
}

.process__item:nth-child(even) {
    left: 50%;
}

.process__icon-wrapper {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: var(--color-accent);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #0A1421;
}

.process__item:nth-child(even) .process__icon-wrapper {
    left: -25px;
}

.process__icon-wrapper i {
    width: 24px;
    height: 24px;
    color: var(--color-text-dark);
}

.process__content {
    padding: 1.5rem 2rem;
    background: var(--color-dark-blue);
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--color-muted-blue);
}

.process__item:nth-child(odd) .process__content {
    text-align: right;
}

.process__step-number {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.process__title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.process__description {
    font-size: 0.95rem;
    color: var(--color-light-gray);
    opacity: 0.8;
}

/* Responsive for Process Section */
@media (max-width: 992px) {
    .process__timeline::after {
        left: 31px;
    }

    .process__item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .process__item:nth-child(even) {
        left: 0%;
    }
    
    .process__item:nth-child(odd) .process__content {
        text-align: left;
    }

    .process__icon-wrapper {
        left: 6px;
    }
}

@media (max-width: 768px) {
    .process {
        padding: 4rem 0;
    }
}

/* --- FAQ Section --- */
.faq {
    padding: 6rem 0;
}

.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--color-muted-blue);
}

.faq__item {
    border-bottom: 1px solid var(--color-muted-blue);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-white);
    transition: background-color 0.3s ease;
}

.faq__question:hover {
    background-color: #0A1421;
}

.faq__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--color-accent);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease;
}

.faq__answer p {
    padding: 0 1rem 1.5rem;
    color: var(--color-light-gray);
    opacity: 0.9;
    line-height: 1.7;
}

.faq__item.active .faq__answer {
    max-height: 200px; /* Adjust if answers are longer */
}

.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .faq {
        padding: 4rem 0;
    }
    .faq__question {
        font-size: 1.05rem;
    }
}

/* --- Contact Section --- */
.contact {
    padding: 6rem 0;
    background-color: #0A1421;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.contact__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact__details {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.contact__detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.contact__detail-item i {
    color: var(--color-accent);
    width: 28px;
    height: 28px;
}

.contact__form-wrapper {
    background: var(--color-dark-blue);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--color-muted-blue);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Form Styles */
.form__group {
    position: relative;
    margin-bottom: 2rem;
}

.form__input {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
    color: var(--color-white);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-muted-blue);
    outline: none;
    transition: border-color 0.3s;
}

.form__label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    font-size: 1rem;
    color: var(--color-light-gray);
    opacity: 0.7;
    transition: all 0.3s;
    pointer-events: none;
}

.form__input:focus,
.form__input:not(:placeholder-shown) {
    border-bottom-color: var(--color-accent);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--color-accent);
    opacity: 1;
}

.form__label--static {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-light-gray);
    opacity: 0.9;
}

.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form__checkbox {
    margin-top: 4px;
    flex-shrink: 0;
}

.form__checkbox-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.form__checkbox-label a {
    color: var(--color-accent);
    text-decoration: underline;
}

.form__submit-btn {
    width: 100%;
    padding: 1rem;
}

.form__feedback {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background-color: #ff4d4d2a;
    border: 1px solid #ff4d4d;
    color: #ffb3b3;
    font-size: 0.9rem;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.form-success i {
    width: 60px;
    height: 60px;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Responsive for Contact Section */
@media (min-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 5rem;
    }
}
@media (max-width: 768px) {
    .contact {
        padding: 4rem 0;
    }
    .contact__form-wrapper {
        padding: 2rem;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -150px; /* Start hidden */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 550px;
    background-color: var(--color-dark-blue);
    border: 1px solid var(--color-muted-blue);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 2000;
    transition: bottom 0.8s ease-in-out;
}

.cookie-popup--show {
    bottom: 1.5rem;
}

.cookie-popup__text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.cookie-popup__text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-popup__btn {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
    background-color: #ffb742;
}

@media (max-width: 520px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* --- Policy & Static Pages Styles --- */
.pages {
    padding: 120px 0 6rem 0; /* Add padding-top to account for fixed header */
    background-color: var(--color-dark-blue);
    color: var(--color-light-gray);
    min-height: 100vh;
}

.pages .container {
    max-width: 800px;
}

.pages h1, .pages h2 {
    font-family: var(--font-primary);
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.pages h1 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
}

.pages p, .pages li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-light-gray);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.pages ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.pages a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 500;
}

.pages a:hover {
    text-decoration: none;
}

.pages strong {
    color: var(--color-white);
    font-weight: 500;
}