/* ============================================
   Pagina Acasă — Home Page Styles
   Matches old Next.js layout exactly
   ============================================ */

/* Header offset is applied globally via theme.css. Keep this file focused on layout. */

/* ── Hero Video ────────────────────────────── */
.acasa-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid white;
    border-bottom: none;
    line-height: 0;
}
.acasa-hero__video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.acasa-hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* ── History Section 1 ─────────────────────── */
/* Grid: Image LEFT | Text + Figure2 RIGHT */
.acasa-h1 {
    border: 1px solid white;
    border-bottom: none;
}
.acasa-h1__grid {
    display: grid;
    grid-template-columns: 1fr;
}
.acasa-h1__image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-bottom: 1px solid white;
}
.acasa-h1__circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid white;
}
.acasa-h1__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.acasa-h1__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.acasa-h1__text-wrap {
    padding: 40px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.acasa-h1__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--color-white);
}
.acasa-h1__text {
    font-size: 15px;
    font-weight: 300;
    line-height: 25px;
    color: var(--color-white);
}
.acasa-h1__text p {
    margin-bottom: 16px;
}
.acasa-h1__figure {
    border-top: 1px solid white;
    line-height: 0;
}
.acasa-h1__figure img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 1024px) {
    .acasa-h1__grid {
        grid-template-columns: 1fr 1fr;
    }
    .acasa-h1__image-col {
        border-bottom: none;
        border-right: 1px solid white;
        padding: 0;
    }
    .acasa-h1__circle {
        width: 100%;
        height: 100%;
    }
    .acasa-h1__text-wrap {
        padding: 40px 80px;
    }
}

/* ── History Section 2 ─────────────────────── */
/* Grid: Figure1 + Text + Figure1 LEFT | GIF RIGHT */
.acasa-h2 {
    border: 1px solid white;
}
.acasa-h2__grid {
    display: grid;
    grid-template-columns: 1fr;
}
.acasa-h2__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    order: 2;
}
.acasa-h2__figure {
    border-top: 1px solid white;
    line-height: 0;
}
.acasa-h2__figure:first-child {
    border-top: none;
    border-bottom: 1px solid white;
}
.acasa-h2__figure img {
    display: block;
    width: 100%;
    height: auto;
}
.acasa-h2__text-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
}
.acasa-h2__text {
    font-size: 15px;
    font-weight: 300;
    line-height: 25px;
    color: var(--color-white);
}
.acasa-h2__text p {
    margin-bottom: 16px;
}
.acasa-h2__image-col {
    order: 1;
    line-height: 0;
    border-bottom: 1px solid white;
}
.acasa-h2__gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 1024px) {
    .acasa-h2__grid {
        grid-template-columns: 1fr 1fr;
    }
    .acasa-h2__left {
        order: 1;
        border-right: 1px solid white;
    }
    .acasa-h2__text-wrap {
        padding: 30px 80px;
    }
    .acasa-h2__image-col {
        order: 2;
        border-bottom: none;
    }
}

/* ── Reservation Section ───────────────────── */
/* Grid: Circular image LEFT | GIF + Title + Form RIGHT */
.acasa-res {
    border: 1px solid white;
    border-top: none;
}
.acasa-res__grid {
    display: grid;
    grid-template-columns: 1fr;
}
.acasa-res__image-col {
    display: none;
}
.acasa-res__circle {
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid white;
}
.acasa-res__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.acasa-res__form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}
.acasa-res__content {
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.acasa-res__gif {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}
.acasa-res__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4px;
    color: var(--color-white);
    text-align: center;
}
.acasa-res__desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    max-width: 305px;
    margin-bottom: 30px;
    text-align: center;
}

@media (min-width: 1024px) {
    .acasa-res__grid {
        grid-template-columns: 1fr 1fr;
    }
    .acasa-res__image-col {
        display: flex;
        border-right: 1px solid white;
    }
    .acasa-res__form-col {
        padding: 40px 40px;
    }
}

/* ── Reservation Form ─────────────────────── */
.acasa-form {
    width: 100%;
}
.acasa-form__field {
    margin-bottom: 16px;
}
/* Pill-shaped inputs — matches the contact form treatment */
.acasa-form__field input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--color-white);
    border-radius: 100px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    padding: 10px 24px;
    outline: none;
    transition: border-color 0.3s ease;
}
.acasa-form__field textarea {
    width: 100%;
    background: transparent;
    border: 2px solid var(--color-white);
    border-radius: 29px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    padding: 14px 24px;
    min-height: 100px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}
.acasa-form__field input::placeholder,
.acasa-form__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}
.acasa-form__field input:focus,
.acasa-form__field textarea:focus {
    border-color: var(--color-gold);
}

/* Validation states — match Cricova validator output */
.acasa-form__field.field-invalid input,
.acasa-form__field.field-invalid textarea {
    border-color: #e74c3c;
}
.acasa-form__field.field-valid input,
.acasa-form__field.field-valid textarea {
    border-color: rgba(255, 255, 255, 0.85);
}
.acasa-form__error {
    display: none;
    font-size: 11px;
    color: #e74c3c;
    margin-top: 6px;
    padding-left: 24px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}
.acasa-form__field.field-invalid .acasa-form__error {
    display: block;
}
.acasa-form__field input[type="date"] {
    color-scheme: dark;
}
.acasa-form__row {
    display: flex;
    gap: 20px;
}
.acasa-form__row .acasa-form__field {
    flex: 1;
}
.acasa-form__submit {
    margin-top: 32px;
    margin-bottom: 30px;
    text-align: center;
}
/* Pill submit — matches contact form treatment */
.acasa-form__submit .btn,
.acasa-form__submit button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 380px;
    padding: 18px 40px;
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-white);
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.acasa-form__submit .btn:hover,
.acasa-form__submit button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-black);
}
.acasa-form__submit button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.acasa-form__message {
    margin-top: 16px;
    padding: 8px 16px;
    border: 1px solid white;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
    animation: cricova-message-in 0.35s ease;
}
.acasa-form__message--success {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-black);
    font-weight: 500;
}
.acasa-form__message--success::before {
    content: '\2713  '; /* checkmark, decorative — the message text already conveys the outcome */
}
.acasa-form__message--error {
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

/* ── Collections Section ───────────────────── */
/* Flex: Title LEFT | Arrow circle RIGHT */
.acasa-col {
    border: 1px solid white;
    border-top: none;
}
.acasa-col__inner {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.acasa-col__title-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.acasa-col__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    text-align: center;
}
.acasa-col__arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-left: 1px solid transparent;
}
.acasa-col__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid white;
    transition: all 0.4s ease;
    flex-shrink: 0;
    color: var(--color-white);
}
.acasa-col__link svg {
    width: 40px;
    height: 40px;
    transition: stroke 0.3s ease;
}
.acasa-col__inner:hover .acasa-col__link {
    border-color: var(--color-gold);
    background: rgba(145, 114, 54, 0.1);
}
.acasa-col__inner:hover .acasa-col__link svg {
    stroke: var(--color-gold);
}

@media (min-width: 768px) {
    .acasa-col__arrow-wrap {
        border-left-color: white;
    }
    .acasa-col__link {
        width: 160px;
        height: 160px;
    }
    .acasa-col__link svg {
        width: 60px;
        height: 60px;
    }
}
@media (min-width: 1024px) {
    .acasa-col__arrow-wrap {
        padding: 0;
    }
    .acasa-col__link {
        width: 240px;
        height: 240px;
    }
    .acasa-col__link svg {
        width: 80px;
        height: 80px;
    }
}

/* ── Location Section ──────────────────────── */
.acasa-loc {
    border: 1px solid white;
    border-top: none;
}
.acasa-loc__map {
    width: 100%;
    height: 500px;
}
/* WP Go Maps renders its own sized container — let it control the height */
.acasa-loc__map--plugin {
    height: auto;
}
.acasa-loc__map--plugin .wpgmza_map {
    width: 100% !important;
}
@media (max-width: 768px) {
    .acasa-loc__map {
        height: 300px;
    }
}
@media (max-width: 480px) {
    .acasa-loc__map {
        height: 250px;
    }
}
.acasa-loc__image {
    width: 100%;
}
.acasa-loc__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Social follow strip (under the map) ───── */
/* Moved to the shared .cricova-social component in theme.css
   (template-parts/social-follow.php) — see that file. */
