@import url("../font.css");

/* --- Variables --- */
:root {
    --bg-color: #100f0f;
    --text-color: #ffffff;
    --accent-color: #eccf9c;
    --secondary-text: #a0a0a0;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    min-height: 100%;
    background-color: var(--green-color);
    color: var(--text-color);
    font-family: "din-next-regular", sans-serif;
}

/* RTL Typography Adjustments */
html[dir="rtl"] * {
    font-family: "din-next-regular", sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    font-family: "TheYearOfHandicrafts", sans-serif !important;
    /* letter-spacing: 0; */
}

#main {
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: var(--green-color);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

#hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(16,15,15,0.2) 0%, var(--green-color) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 4rem;
}

#contact-title {
    font-family: "didot-bold", serif;
    font-weight: 500;
    font-size: clamp(3.5rem, 5vw, 5rem);
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

#contact-tagline {
    /* font-family: "didot", serif; */
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* --- Contact Content --- */
#contact-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Column: Form + Info */
.contact-left {
    padding: 6rem 4rem 10rem 6rem;
    overflow-y: auto;
}

/* Right Column: Fixed Video */
.contact-right {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.video-fixed-wrapper {
    width: 100%;
    height: 90%;
    display: flex;
    align-items: center;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.video-fixed-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(16,15,15,0.1) 0%, rgba(16,15,15,0.3) 100%); */
    pointer-events: none;
    z-index: 1;
}

.video-fixed-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Form Section --- */
.contact-form-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 10rem auto;
}

#contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-field {
    position: relative;
}

.form-field.full-width {
    margin-bottom: 2rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem 0;
    color: #fff;
    /* font-family: "din-next-regular", sans-serif; */
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    /* color: rgba(255, 255, 255, 0.4); */
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

/* Service Dropdown (matching language selector) */
.service-dropdown-wrapper {
    position: relative;
}

.service-toggle {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem 0;
    color: rgba(255, 255, 255);
    /* font-family: "din-next-regular", sans-serif; */
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-align: left;
}

.service-toggle.selected {
    color: #fff;
}

.service-toggle:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.service-toggle svg {
    width: 14px;
    height: 9px;
    transition: transform 0.3s ease;
}

.service-toggle.active svg {
    transform: rotate(180deg);
}

.service-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(58, 75, 67, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.service-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.service-option {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    /* font-family: "din-next-regular", sans-serif; */
    text-align: left;
}

.service-option .checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-option .checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.service-option:hover {
    background: var(--primary-black-color);
    color: var(--accent-color);
}

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

.service-option.selected {
    background: rgba(236, 207, 156, 0.1);
    color: var(--accent-color);
}

.service-option.selected .checkbox {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.service-option.selected .checkbox::after {
    transform: translate(-50%, -50%) scale(1);
    background: var(--primary-black-color);
}

#contact-form .btnelem {
    justify-content: flex-start;
    width: fit-content;
    margin: 2rem auto 0;
}

/* --- Info Section --- */
.contact-info-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.contact-info-section .tag {
    margin-bottom: 3rem;
}

.info-details-col {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.info-block {
    border-bottom: 1px solid rgba(236, 207, 156, 0.15);
    padding-bottom: 40px;
}

.info-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-block h3 {
    font-family: 'didot-medium', serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.info-link,
.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-link:hover .info-value {
    color: var(--accent-color);
    transform: translateX(5px);
}

.info-label {
    /* font-family: 'din-next-regular', sans-serif; */
    font-size: 0.85rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-family: 'din-next-regular', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.info-block .btnelem {
    margin-top: 10px;
    margin: 0 auto;
    width: fit-content;
}

.info-block .btnelem button a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;;
}

.info-block .btnelem button a img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    margin-bottom: 5px;
    /* filter: brightness(0) invert(0); */
}
.info-block .btnelem button:hover a{
    color: white;
}
.info-block .btnelem button:hover a img{
    filter: brightness(0) invert(1);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-left {
        padding: 4rem 3rem 6rem 3rem;
    }
    
    .contact-right {
        position: relative;
        height: 60vh;
    }
    
    .contact-form-section {
        margin-bottom: 6rem;
    }
}

@media (max-width: 768px) {
    #hero {
        height: 55vh;
    }
    
    #contact-title {
        font-size: 3rem;
    }
    
    #contact-tagline {
        font-size: 1.1rem;
    }
    
    .contact-left {
        padding: 3rem 2rem 5rem 2rem;
    }
    
    .contact-right {
        height: 50vh;
    }
    
    .contact-form-section {
        margin-bottom: 5rem;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info-section {
        max-width: 100%;
    }
    
    .info-details-col {
        gap: 35px;
    }
    
    .info-block {
        padding-bottom: 30px;
    }
    
    .info-block h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}
    


@media (max-width: 480px) {
    #contact-title {
        font-size: 2.5rem;
    }
    
    #contact-content {
        padding: 3rem 1rem 5rem 1rem;
    }
    
    .form-field input,
    .form-field textarea,
    .form-field select {
        font-size: 1rem;
        padding: 1rem 0;
    }
}

/* --- RTL Support --- */
html[dir="rtl"] .contact-left {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .form-field label {
    text-align: right;
}

html[dir="rtl"] .form-field input,
html[dir="rtl"] .form-field textarea {
    text-align: right;
}

html[dir="rtl"] .dropdown-btn {
    text-align: right;
    justify-content: space-between;
}

html[dir="rtl"] .dropdown-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

html[dir="rtl"] .dropdown-option {
    text-align: right;
}

html[dir="rtl"] .btnelem button {
    direction: rtl;
}

html[dir="rtl"] .info-label,
html[dir="rtl"] .info-value {
    text-align: right;
}
html[dir="rtl"] .info-label{
    font-size: 1rem;
}

html[dir="rtl"] .info-block .btnelem button a {
    flex-direction: row-reverse;
}

html[dir="rtl"] #contact-title,
html[dir="rtl"] #contact-tagline {
    direction: rtl;
    line-height: 1.2;
}

html[dir="rtl"] .info-block .btnelem button a img{
    transform: none !important;
}

html[dir="rtl"] .info-block .btnelem button a span{
    margin-bottom: 10px
}

html[dir="rtl"] .service-option{
    font-size: 1.1rem;;
    font-weight: 500;
}