/* ====================
   GLOBAL STYLES
   ==================== */

/* Root variables */
:root {
    --background-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #b3a369;
    --secondary-color: #444444;
    --header-height: 80px;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Cormorant Garamond', serif;
}

/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}


/* ====================
   HEADER
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-color);
    z-index: 1000;
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
}

.header__logo:hover {
    color: var(--text-color);
}

.header__nav-list {
    display: flex;
    gap: 30px;
}

.header__nav-link {
    position: relative;
    padding: 5px 0;
    font-size: 15px;
}

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

.header__nav-link:hover::after {
    width: 100%;
}

.header__burger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* ====================
   FOOTER
   ==================== */
.footer {
    background-color: #111;
    padding: 60px 0 30px;
    border-top: 1px solid var(--secondary-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-color);
}

.footer__logo:hover {
    color: var(--text-color);
}

.footer__title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    color: #a0a0a0;
    font-size: 15px;
}

.footer__link:hover {
    color: #fff;
}

.footer__address {
    color: #a0a0a0;
    font-size: 15px;
    font-style: normal;
    line-height: 1.7;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--secondary-color);
    font-size: 14px;
    color: #a0a0a0;
}


/* ====================
   ADAPTIVE STYLES
   ==================== */

/* Tablet */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header__nav {
        display: none; /* Will handle with JS */
    }

    .header__burger {
        display: flex;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__column {
        margin-bottom: 20px;
    }

    .footer__logo {
        display: inline-block;
        margin-bottom: 10px;
    }
}

/* ====================
   HERO SECTION
   ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

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

.hero__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__title {
    font-size: 64px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-color);
}

.hero__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero__cta-button:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
}

/* ====================
   MOBILE MENU STYLES (now active)
   ==================== */
@media (max-width: 768px) {
    .header__nav {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }

    .header__nav--active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .header__nav-list {
        flex-direction: column;
        text-align: center;
    }
    
    .header__nav-link {
        font-size: 24px;
    }

    /* Burger animation */
    .header__burger--active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .header__burger--active span:nth-child(2) {
        opacity: 0;
    }
    .header__burger--active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


/* ====================
   ADAPTIVE STYLES (HERO)
   ==================== */
@media (max-width: 992px) {
    .hero__title {
        font-size: 52px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 38px;
    }
    .hero__subtitle {
        font-size: 15px;
    }
    .hero__cta-button {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* ====================
   GENERAL SECTION STYLES
   ==================== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    font-weight: 600;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}


/* ====================
   PROJECTS SECTION
   ==================== */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.projects__card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #222;
    aspect-ratio: 4 / 3;
}

.projects__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projects__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.projects__card:hover .projects__content {
    transform: translateY(0);
    opacity: 1;
}

.projects__card:hover .projects__image {
    transform: scale(1.05);
}

.projects__category {
    display: block;
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects__title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.projects__description {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.5;
}


/* ====================
   ADAPTIVE STYLES (SECTIONS & PROJECTS)
   ==================== */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 34px;
        margin-bottom: 40px;
    }
    .projects__grid {
        grid-template-columns: 1fr;
    }
    .projects__title {
        font-size: 22px;
    }
}

/* ====================
   APPROACH SECTION
   ==================== */
.approach {
    background-color: #111; /* Slightly different background to separate sections */
}

.approach__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.approach__item {
    text-align: center;
    padding: 20px;
}

.approach__icon {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.approach__item-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.approach__item-description {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
}


/* ====================
   ADAPTIVE STYLES (APPROACH)
   ==================== */
@media (max-width: 992px) {
    .approach__wrapper {
        gap: 20px;
    }
    .approach__item-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .approach__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ====================
   MANIFESTO SECTION
   ==================== */
.manifesto__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.manifesto__title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #fff;
    font-family: var(--font-secondary);
}

.manifesto__text-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.manifesto__text-content p:not(:last-child) {
    margin-bottom: 20px;
}

.manifesto__quote-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifesto__quote {
    font-family: var(--font-secondary);
    font-size: 64px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 40px;
}


/* ====================
   ADAPTIVE STYLES (MANIFESTO)
   ==================== */
@media (max-width: 992px) {
    .manifesto__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .manifesto__quote {
        font-size: 48px;
        padding-left: 30px;
        text-align: center;
        border-left: none;
        border-top: 3px solid var(--accent-color);
        padding-top: 30px;
        padding-left: 0;
    }
    .manifesto__text-content {
      text-align: center;
    }
}

@media (max-width: 768px) {
    .manifesto__quote {
        font-size: 36px;
    }
    .manifesto__text-content p {
        font-size: 16px;
    }
}

/* ====================
   VISIONS SECTION (ACCORDION)
   ==================== */
.visions {
    background-color: #111;
}

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

.visions__item {
    border-bottom: 1px solid var(--secondary-color);
}

.visions__item-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    text-align: left;
}

.visions__item-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-secondary);
}

.visions__item-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0; /* Prevents icon from shrinking */
    margin-left: 20px;
}

.visions__item-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-in-out;
}

.visions__item-text {
    overflow: hidden;
    padding-bottom: 0;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

/* Active state */
.visions__item--active .visions__item-icon {
    transform: rotate(180deg);
}

.visions__item--active .visions__item-content {
    grid-template-rows: 1fr;
}

.visions__item--active .visions__item-text {
    padding-bottom: 25px;
}

/* ====================
   ADAPTIVE STYLES (VISIONS)
   ==================== */
@media (max-width: 768px) {
    .visions__item-title {
        font-size: 18px;
    }
}

/* ====================
   CONTACT SECTION
   ==================== */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: #111;
    padding: 50px;
    border-radius: 10px;
}

.contact__info-title {
    font-size: 32px;
    font-family: var(--font-secondary);
    color: #fff;
    margin-bottom: 20px;
}

.contact__info-text {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact__info-list li i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    margin-top: 3px;
}

.contact__info-list a {
    color: var(--text-color);
}
.contact__info-list a:hover {
    color: var(--accent-color);
}

/* Form Styles */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    background-color: #222;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(179, 163, 105, 0.2);
}

.form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.form__group--checkbox label {
    margin-bottom: 0;
    color: #ccc;
}
.form__group--checkbox a {
    color: var(--accent-color);
    text-decoration: underline;
}
.form__group--checkbox a:hover {
    text-decoration: none;
}
.form__group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.contact__submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: var(--background-color);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.contact__submit-button:hover {
    background-color: #c9b97a;
}

.contact__submit-button:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

.form__message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none; /* Hidden by default */
}

.form__message--success {
    background-color: rgba(30, 100, 50, 0.3);
    border: 1px solid #2a8548;
    color: #6ee395;
}

.form__message--error {
    background-color: rgba(120, 30, 30, 0.3);
    border: 1px solid #a33;
    color: #f88;
}


/* ====================
   ADAPTIVE STYLES (CONTACT)
   ==================== */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* ====================
   COOKIE POP-UP
   ==================== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: #222;
    border: 1px solid var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--show {
    transform: translateY(0);
}

.cookie-popup__text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--background-color);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: #c9b97a;
}

/* ====================
   STYLES FOR POLICY PAGES
   ==================== */
.pages {
    padding-top: calc(var(--header-height) + 80px); /* Header height + extra space */
    padding-bottom: 80px;
}

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

.pages h1, .pages h2, .pages h3, .pages p, .pages ul, .pages ol {
    color: var(--text-color);
}

.pages h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #fff;
}

.pages h2 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #fff;
}

.pages p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.pages ul, .pages ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
}

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

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

.pages strong {
    font-weight: 600;
    color: #fff;
}

/* ====================
   ADAPTIVE STYLES (COOKIE & PAGES)
   ==================== */
@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    .pages h1 { font-size: 36px; }
    .pages h2 { font-size: 28px; }
    .pages p { font-size: 16px; }
}