/* ========================================
   Contact Form 7 — PMS Sogo Theme Styling
   Style Flat
   ======================================== */

/* --- Form wrapper (flat) --- */
.contact-section .wpcf7 {
    background: #fff;
    border-radius: 8px;
    padding: 40px 35px;
    border: 1px solid #e9ecef;
}

/* --- Form title --- */
.contact-section .contact-form-title {
    font-family: "Playfair Display", times, serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.contact-section .contact-form-subtitle {
    font-family: "Roboto", arial, sans-serif;
    font-size: 15px;
    color: #adb5bd;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

/* --- Form fields layout --- */
.contact-section .wpcf7-form p {
    margin-bottom: 22px;
}

.contact-section .wpcf7-form label {
    display: block;
    font-family: "Roboto", arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #495057;
    margin-bottom: 8px;
}

/* --- Input & Textarea (flat) --- */
.contact-section .wpcf7-form input[type="text"],
.contact-section .wpcf7-form input[type="email"],
.contact-section .wpcf7-form input[type="tel"],
.contact-section .wpcf7-form input[type="url"],
.contact-section .wpcf7-form input[type="number"],
.contact-section .wpcf7-form textarea {
    width: 100%;
    height: 50px;
    padding: 12px 16px;
    font-family: "Roboto", arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.contact-section .wpcf7-form textarea {
    height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Focus state (flat) */
.contact-section .wpcf7-form input[type="text"]:focus,
.contact-section .wpcf7-form input[type="email"]:focus,
.contact-section .wpcf7-form input[type="tel"]:focus,
.contact-section .wpcf7-form input[type="url"]:focus,
.contact-section .wpcf7-form input[type="number"]:focus,
.contact-section .wpcf7-form textarea:focus {
    border-color: #ffba5a;
    background-color: #fff;
}

/* Placeholder */
.contact-section .wpcf7-form input::placeholder,
.contact-section .wpcf7-form textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
    font-weight: 300;
}

/* --- Submit button (flat) --- */
.contact-section .wpcf7-form input[type="submit"] {
    display: inline-block;
    background: #ffba5a;
    color: #fff;
    border: none;
    padding: 14px 45px;
    font-family: "Roboto", arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.contact-section .wpcf7-form input[type="submit"]:hover {
    background: #ff9a3c;
}

.contact-section .wpcf7-form input[type="submit"]:active {
    background: #e88a30;
}

/* --- Validation messages --- */
.contact-section .wpcf7-not-valid-tip {
    font-family: "Roboto", arial, sans-serif;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 6px;
    display: block;
}

.contact-section .wpcf7-not-valid {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

/* --- Response output messages --- */
.contact-section .wpcf7-response-output {
    border-radius: 4px !important;
    padding: 15px 20px !important;
    font-family: "Roboto", arial, sans-serif;
    font-size: 14px;
    margin: 20px 0 0 0 !important;
    border-width: 1px !important;
}

.contact-section .wpcf7-mail-sent-ok {
    border-color: #27ae60 !important;
    color: #27ae60;
    background: #f0faf4;
}

.contact-section .wpcf7-mail-sent-ng,
.contact-section .wpcf7-validation-errors {
    border-color: #e74c3c !important;
    color: #e74c3c;
    background: #fdf2f2;
}

/* --- Spinner --- */
.contact-section .wpcf7-spinner {
    margin-left: 15px;
}

/* --- Contact info sidebar (flat) --- */
.contact-section .contact-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 35px 30px;
}

.contact-section .contact-info p {
    font-family: "Playfair Display", times, serif;
    font-size: 22px;
    margin-bottom: 25px;
    color: #212529;
    line-height: 1.4;
}

.contact-section .contact-info p .d-block {
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-family: "Roboto", arial, sans-serif;
    text-transform: uppercase;
    color: #ffba5a;
    margin-bottom: 5px;
}

/* --- High-Impact Contact Design Overhaul --- */

.site-hero.contact-hero {
    height: 70vh !important;
    min-height: 550px !important;
    background-position: center bottom !important;
}

.contact-over-section {
    position: relative;
    padding-top: 80px !important;
    margin-top: 0 !important;
    /* No overlap with hero */
    padding-bottom: 100px !important;
    background: #f8f9fa;
    /* Light background to detach cards */
    z-index: 10;
}

.contact-main-wrapper {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
}

.contact-glass-card {
    padding: 60px 45px;
    height: 100%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease;
}

.contact-glass-card.form-card {
    background: rgba(255, 255, 255, 0.9);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-glass-card.form-card-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    border-right: none;
    color: #fff !important;
    overflow: hidden;
}

.contact-glass-card.form-card-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    /* Dark overlay for readability */
    z-index: 1;
}

.contact-glass-card.form-card-with-bg>* {
    position: relative;
    z-index: 2;
}

.contact-glass-card.form-card-with-bg .contact-form-title {
    color: #fff !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-glass-card.form-card-with-bg .contact-form-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 40px !important;
}

.contact-glass-card.form-card-with-bg .cf7-premium-wrapper label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 10px !important;
}

.contact-glass-card.form-card-with-bg .cf7-premium-wrapper .wpcf7-form p,
.contact-glass-card.form-card-with-bg .cf7-premium-wrapper label,
.contact-glass-card.form-card-with-bg .cf7-premium-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-glass-card.form-card-with-bg .cf7-premium-wrapper input[type="text"],
.contact-glass-card.form-card-with-bg .cf7-premium-wrapper input[type="email"],
.contact-glass-card.form-card-with-bg .cf7-premium-wrapper input[type="tel"],
.contact-glass-card.form-card-with-bg .cf7-premium-wrapper textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    color: #fff !important;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin-bottom: 5px !important;
}

.contact-glass-card.form-card-with-bg .cf7-premium-wrapper input:focus,
.contact-glass-card.form-card-with-bg .cf7-premium-wrapper textarea:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffba5a !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 186, 90, 0.3) !important;
    transform: translateY(-2px);
    outline: none !important;
}

.contact-glass-card.form-card-with-bg .cf7-premium-wrapper input::placeholder,
.contact-glass-card.form-card-with-bg .cf7-premium-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.contact-glass-card.form-card-with-bg .cf7-premium-wrapper input[type="submit"] {
    margin-top: 20px;
    background: linear-gradient(135deg, #ffba5a, #ff9a3c) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(255, 154, 60, 0.2) !important;
    transition: all 0.4s ease !important;
}

.contact-glass-card.form-card-with-bg .cf7-premium-wrapper input[type="submit"]:hover {
    box-shadow: 0 15px 30px rgba(255, 154, 60, 0.3) !important;
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
}

.contact-glass-card.info-card.dark-glass {
    background: rgba(26, 26, 26, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-title {
    font-size: 38px !important;
    letter-spacing: -0.02em;
    margin-bottom: 15px !important;
}

.contact-info-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.contact-info-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffba5a;
}

.contact-item {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon-box {
    width: 54px;
    height: 54px;
    background: rgba(255, 186, 90, 0.1);
    border: 1px solid rgba(255, 186, 90, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffba5a;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-box {
    background: #ffba5a;
    color: #fff;
    transform: rotate(-10deg) scale(1.1);
}

.contact-text h3 {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 4px !important;
}

.contact-text p {
    font-size: 18px !important;
    font-weight: 400;
    margin-bottom: 0px !important;
}

/* --- Form Field Refinements --- */
.cf7-premium-wrapper input[type="text"],
.cf7-premium-wrapper input[type="email"],
.cf7-premium-wrapper input[type="tel"],
.cf7-premium-wrapper textarea {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
}

.cf7-premium-wrapper input:focus,
.cf7-premium-wrapper textarea:focus {
    border-bottom-color: #ffba5a !important;
}

.cf7-premium-wrapper label {
    font-size: 12px !important;
    color: #999 !important;
}

.cf7-premium-wrapper input[type="submit"] {
    margin-top: 30px;
    width: auto !important;
    min-width: 200px;
    border-radius: 50px !important;
    letter-spacing: 0.2em;
    padding: 15px 45px !important;
    font-weight: 700;
    text-transform: uppercase;
    background: #ffba5a !important;
    color: #fff !important;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cf7-premium-wrapper input[type="submit"]:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(255, 186, 90, 0.2);
    transform: translateY(-2px);
}

/* --- Responsive Layout --- */
@media (max-width: 991px) {
    .contact-over-section {
        margin-top: -80px;
    }

    .contact-over-section .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-main-wrapper {
        display: block !important;
    }

    .contact-form-column,
    .contact-info-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .contact-glass-card {
        padding: 40px 25px;
        height: auto;
    }

    .contact-glass-card.form-card-with-bg {
        padding: 35px 20px;
    }

    /* Ensure Contact Form 7 fields never overflow on smaller screens */
    .contact-glass-card .wpcf7,
    .contact-glass-card .wpcf7 * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .contact-section .wpcf7 {
        padding: 25px 18px;
    }

    .contact-section .contact-form-title {
        font-size: 26px;
    }

    .contact-section .wpcf7-form input[type="submit"] {
        width: 100%;
        text-align: center;
    }

    .contact-section .contact-info {
        margin-top: 40px;
    }
}

/* ========================================
   Site Logo — h1 color follows background
   ======================================== */

/* Default: white text over dark hero image */
.site-logo a h1 {
    color: #fff;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;
    transition: color 0.3s ease;
}

/* Scrolled: black text on white header */
.site-header.scrolled .site-logo a h1 {
    color: #000;
}

/* Menu open: black text */
.menu-open .site-logo a h1 {
    color: #000;
}

/* --- Dish Card Refinements (Using Native media-custom) --- */
.post .media-custom {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    margin-bottom: 20px !important;
}

.post .media-custom:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px) !important;
}

/* Images generiques dans les cards (ex: Evenements) */
.post .media-custom img {
    height: 240px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-bottom: 1px solid #f8f9fa;
}

/* Zone image des cards Plats/Restaurant */
.post .media-custom.dish-card .dish-card-image {
    height: 320px;
    overflow: hidden;
    border-bottom: 1px solid #f8f9fa;
}

.post .media-custom.dish-card .dish-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block;
}

/* Corps de la card plat */
.post .media-custom.dish-card .media-body {
    padding: 16px 18px 18px !important;
    background: #fff !important;
    display: flex;
    flex-direction: column;
}

.post .media-custom.dish-card .media-body h2 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
    font-family: 'Playfair Display', serif;
}

.post .media-custom.dish-card .media-body p {
    font-size: 0.82rem !important;
    color: #888 !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
    flex-grow: 1;
}

.post .media-custom.dish-card .media-body .border-top {
    padding-top: 12px !important;
    margin-top: auto !important;
    border-top: 1px solid #f0f0f0 !important;
}

.post .media-custom .media-body {
    padding: 14px 16px !important;
    background: #fff !important;
}

/* Force 4-column alignment and spacing */
.tab-content .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.tab-content [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* --- Testimonials Alignment --- */
.testimonial-section .owl-stage {
    display: flex !important;
}

.testimonial-section .owl-item {
    display: flex !important;
}

.testimonial-section .testimonial {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.testimonial-section .testimonial blockquote {
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
}

.testimonial-section .testimonial .author-info {
    margin-top: auto !important;
    padding-top: 20px !important;
}

/* --- Services Icons Size (Nos Services - single-restaurant.php) --- */
.service-item .service-icon-box,
.service-icon-box {
    width: 44px !important;
    height: 44px !important;
    font-size: 1rem !important;
    margin-bottom: 8px !important;
}

.service-name {
    font-size: 0.72rem !important;
    letter-spacing: 1px !important;
}

/* --- Justified Description Style --- */
.description-justified {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #666 !important;
    text-align: justify !important;
    font-style: normal !important;
    margin-bottom: 30px !important;
}

/* Ensure no centering overrides justification */
.text-center .description-justified {
    text-align: justify !important;
}

/* Trinity of Excellence - Magazine Layout */
.trinity-section {
    padding: 100px 0;
    overflow: hidden;
}

.trinity-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 30px;
    align-items: stretch;
}

.trinity-panel {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.panel-vision {
    grid-column: span 7;
    height: 600px;
}

.panel-experience {
    grid-column: span 5;
    height: 600px;
    margin-top: 50px;
}

.panel-promise {
    grid-column: 3 / span 8;
    height: 400px;
    margin-top: -50px;
    z-index: 2;
}

.trinity-image-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.trinity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.trinity-panel:hover .trinity-image {
    transform: scale(1.05);
}

.trinity-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid rgba(243, 198, 35, 0.2);
}

.trinity-panel:hover .trinity-content-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.trinity-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.trinity-panel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: #f3c623;
}

.trinity-panel-label {
    position: absolute;
    top: 30px;
    left: 30px;
    background: #1a1a1a;
    color: #fff;
    padding: 5px 20px;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 3;
}

.gold-vertical-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, #f3c623, transparent);
    margin: 20px auto;
}

@media (max-width: 991px) {
    .trinity-grid {
        display: block;
    }

    .panel-vision,
    .panel-experience,
    .panel-promise {
        grid-column: span 12;
        height: auto;
        margin: 20px 0 !important;
    }

    .trinity-content-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        width: 100%;
        opacity: 1;
        padding: 30px;
    }
}
