/* ─────────────────────────────────────────────────────────────────────────
   AfroCurls Interior Gallery – Frontend Styles
   Premium, modern, aesthetic design aligned with the AfroCurls theme
   ───────────────────────────────────────────────────────────────────────── */

/* ── Page Layout & Airy Feel ────────────────────────────────────────── */
.page-id-154 .site-content-contain {
    background-color: #fdfbf9;
}

.page-id-154 .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.page-id-154 .container {
    max-width: 100% !important;
    /* Truly full width */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove theme-specific margins that cause gaps */
.page-id-154 .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.page-id-154 .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Lighten the Hero Overlay to avoid "black background" feel */
.page-id-154 .custom-header-media::after {
    background-color: rgba(10, 5, 0, 0.3) !important;
    /* Even lighter */
}

/* ── Gallery Wrapper ─────────────────────────────────────────────────── */
.acig-gallery-wrap {
    width: 100%;
    padding: 0;
    margin-top: 20px;
    /* Reduced gap between text and gallery */
    margin-bottom: 50px;
    /* Standard spacing at bottom */
}

/* ── Media Grids ─────────────────────────────────────────────────────── */
.acig-media-grid {
    display: grid;
    gap: 8px;
    /* Tighter premium gap */
    padding: 0 10px;
}

.acig-media-grid.acig-grid-landscape {
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns instead of 3 for smaller size */
}

.acig-media-grid.acig-grid-portrait {
    grid-template-columns: repeat(5, 1fr);
    /* 5 columns instead of 4 */
}

/* ── Media Item ──────────────────────────────────────────────────────── */
.acig-media-item {
    position: relative;
    border-radius: 16px;
    /* Smoother corners */
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(156, 124, 58, 0.08);
    /* Subtle gold-tinted border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    /* Softer, more premium shadow */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.acig-media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(156, 124, 58, 0.12);
    border-color: rgba(156, 124, 58, 0.3);
}

/* ── Image & Video Wrappers ──────────────────────────────────────────── */
.acig-img-wrap,
.acig-video-thumb {
    position: relative;
    overflow: hidden;
    display: block;
}

.acig-grid-landscape .acig-img-wrap,
.acig-grid-landscape .acig-video-thumb {
    aspect-ratio: 16 / 10;
}

.acig-grid-portrait .acig-img-wrap,
.acig-grid-portrait .acig-video-thumb {
    aspect-ratio: 3 / 4;
}

.acig-img-wrap img,
.acig-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Ensure no gaps or padding inside the box */
    padding: 0 !important;
    margin: 0 !important;
}

.acig-media-item:hover .acig-img-wrap img {
    transform: scale(1.08);
}

/* ── Overlay & Icons ─────────────────────────────────────────────────── */
.acig-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(156, 124, 58, 0.4) 0%,
            rgba(156, 124, 58, 0) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.acig-media-item:hover .acig-img-overlay {
    opacity: 1;
}

.acig-zoom-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    /* Made transparent as requested */
    border: 2px solid #fff;
    /* Added white border for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.acig-zoom-icon svg {
    display: block !important;
    opacity: 1 !important;
}

.acig-zoom-icon svg stroke {
    stroke: #fff !important;
    /* Made icon white to stand out against transparent bg */
}

.acig-media-item:hover .acig-zoom-icon {
    transform: translateY(0);
}

/* ── Video Specifics ─────────────────────────────────────────────────── */
.acig-video-thumb video {
    opacity: 0.95;
}

.acig-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.acig-play-btn svg circle {
    fill: rgba(255, 255, 255, 0.9);
    transition: fill 0.3s;
}

.acig-play-btn svg polygon {
    fill: #9c7c3a;
}

.acig-media-item:hover .acig-play-btn svg circle {
    fill: #9c7c3a;
}

.acig-media-item:hover .acig-play-btn svg polygon {
    fill: #fff;
}

/* ── Text Styling & Translation Fallback ─────────────────────────────── */
.ac-intro-box {
    text-align: center;
    padding: 20px 20px 0 !important;
    /* Reduced bottom padding */
    max-width: 900px;
    margin: 0 auto;
}

.ac-intro-content p {
    font-size: 1.15rem !important;
    color: #443322 !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    margin: 15px 0 10px !important;
    /* Adjusted margins */
    letter-spacing: 0.01em;
}

/* Small horizontal line below text */
.ac-intro-line {
    width: 60px;
    height: 2px;
    background: #c9a84c;
    margin: 0 auto 20px;
    border: none;
    opacity: 0.8;
}

/* Removed horizontal lines as requested */

/* Removed translation fallback hack as we now use English source */
.ac-main-text {
    display: block;
}

/* ── Site Footer Cleanup ─────────────────────────────────────────────── */
/* Reset footer and site-content to theme defaults (removed previous overrides) */

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .acig-media-grid.acig-grid-landscape {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .acig-media-grid {
        padding: 0 12px;
        gap: 12px;
    }

    .acig-media-grid.acig-grid-landscape,
    .acig-media-grid.acig-grid-portrait {
        grid-template-columns: 1fr;
    }

    .acig-media-item:hover {
        transform: none;
    }
}

/* ── About Page Redesign (.page-id-18) ─────────────────────────────────── */
.page-id-18 .site-content-contain,
.page-id-18 .site-content,
.page-id-18 #content,
.page-id-18 .container {
    background-color: #fdfbf9 !important; /* Matching project theme */
    padding-top: 0 !important; /* Reduce extra theme space */
}

.page-id-18 .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.ac-about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px; /* Reduced top padding */
    color: #443322; /* Premium deep brown */
    font-family: inherit;
}

.ac-about-section {
    margin-bottom: 50px; /* Reduced from 80px */
}

/* Hero / Intro Section */
.ac-about-hero {
    text-align: center;
    margin-bottom: 40px; /* Reduced from 60px */
}

.ac-about-title {
    font-size: 2.2rem !important; /* Reduced from 3rem */
    font-weight: 300 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 15px !important;
    color: #101010;
}

.ac-about-line {
    width: 60px; /* Sightly smaller */
    height: 2px;
    background: #c9a84c;
    margin: 0 auto 25px;
}

.ac-about-subtitle {
    font-size: 1.15rem !important; /* Reduced from 1.4rem */
    font-weight: 300 !important;
    line-height: 1.6 !important;
    max-width: 750px;
    margin: 0 auto !important;
    font-style: italic;
    opacity: 0.9;
}

/* General Section Content */
.ac-section-title {
    font-size: 1.6rem !important; /* Reduced from 2rem */
    font-weight: 400 !important;
    color: #9c7c3a; /* Gold accent */
    margin-bottom: 25px !important;
    text-align: center;
}

.ac-about-content p {
    font-size: 1rem !important; /* Reduced from 1.15rem */
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    text-align: center;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.ac-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ac-service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(156, 124, 58, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    text-align: center;
}

.ac-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 124, 58, 0.3);
    box-shadow: 0 20px 60px rgba(156, 124, 58, 0.08);
}

.ac-service-card h3 {
    font-size: 1.1rem !important; /* Reduced from 1.25rem */
    color: #101010 !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
}

.ac-service-card p {
    font-size: 0.95rem !important; /* Reduced */
    line-height: 1.6 !important;
    color: #665544;
}

.ac-services-footer {
    text-align: center;
    margin-top: 40px;
    font-weight: 400;
    font-style: italic;
    color: #9c7c3a;
    font-size: 0.95rem;
}

/* Why Choose Us Grid */
.ac-about-why {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid rgba(156, 124, 58, 0.05);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.02);
}

.ac-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.ac-why-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ac-why-icon {
    font-size: 1.5rem;
    color: #c9a84c;
    flex-shrink: 0;
    margin-top: 2px;
}

.ac-why-text strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #101010;
}

.ac-why-text p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #665544;
}

/* Contact Box */
.ac-about-contact {
    margin-top: 100px;
    text-align: center;
}

.ac-contact-box {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf9 100%);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid rgba(156, 124, 58, 0.15);
    box-shadow: 0 15px 50px rgba(156, 124, 58, 0.05);
}

.ac-contact-box h3 {
    font-size: 1.4rem !important; /* Reduced from 1.8rem */
    font-weight: 300 !important;
    color: #101010 !important;
    margin: 15px 0 30px !important;
}

.ac-contact-info p {
    font-size: 1rem !important; /* Reduced from 1.1rem */
    margin: 12px 0 !important;
    color: #443322;
}

.ac-contact-info strong {
    color: #c9a84c;
}

.ac-about-jobs {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    border-top: 1px solid rgba(156, 124, 58, 0.1);
}

.ac-about-jobs h3 {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
    color: #9c7c3a;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .ac-about-title { font-size: 2.2rem !important; }
    .ac-about-subtitle { font-size: 1.2rem !important; }
    .ac-why-grid { grid-template-columns: 1fr; }
    .ac-section-title { font-size: 1.6rem !important; }
    .ac-contact-box h3 { font-size: 1.5rem !important; }
}