/*
Theme Name: Kebab Joane
Theme URI: http://example.com/kebab-joane
Author: Antigravity
Author URI: http://example.com
Description: A minimalist white and red theme for Kebab Joane.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kebabjoane
*/

:root {
    --primary-color: #b5511c;
    --primary-hover: #ee7a20;
    --bg-color: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-color: #0d0d0d;
    --text-light: #444444;
    --font-main: 'Montserrat', sans-serif;
    --font-headings: 'Chewy', system-ui;
    --header-height: 80px;

    --menu-color: #ffffffc1;
    --menu-hover: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Encoded SVG with primary color fill */
    background-image: url("data:image/svg+xml,%3Csvg width='935' height='508' viewBox='0 0 935 508' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M618.855 260.246L934.107 33.0098V507.996H881.107V136.546L606.044 334.816L491.542 169.557V360.086L246.797 185.661L53 322.393V507.996H0V294.924L246.951 120.689L438.542 257.231V0L618.855 260.246Z' fill='%23b5511c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* Or contain/150% depending on desired effect. Cover ensures it fills. */
    opacity: 0.03;
    /* Very subtle watermark */
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3 {
    font-family: var(--font-headings);
    font-weight: 400;
    /* Chewy usually only has 400 */
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0;
    /* Bloby fonts usually don't need negative spacing */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}


/* Header & Nav */
header {
    backdrop-filter: blur(10px);
    padding: 0 5%;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bg-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    width: auto;
}

nav ul {
    display: none;
    gap: 2.5rem;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul li a:hover {
    background-color: var(--primary-color);
}

/* FAB Menu in Header */
.fab-menu {
    width: 50px;
    height: 50px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
    border: 2px solid rgba(191, 191, 191, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
}

.fab-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.btn-edit-site {
    background: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-edit-site:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(181, 81, 28, 0.3);
}

/* Mobile adjustments for edit button */
@media (max-width: 768px) {
    .btn-edit-site {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}

.fab-icon {
    width: 24px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fab-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-hover);
    transition: 0.3s;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    /* Expanding from top right (approx match to FAB) */
    clip-path: circle(0% at calc(100% - 5% - 25px) 40px);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay.active {
    visibility: visible;
    clip-path: circle(150% at calc(100% - 5% - 25px) 40px);
}

.menu-close {
    position: absolute;
    top: 10px;
    right: calc(5% - 5px);
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.menu-content ul {
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-content ul li {
    margin: 2rem 0;
}

.menu-content ul li a {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--menu-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-content ul li a:hover {
    color: var(--menu-hover);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-color);
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

#hero .container {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 1000px;
    text-align: center;
    color: #fff;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 10%;
    background: var(--bg-color);
    clip-path: ellipse(80% 100% at 50% 100%);
    z-index: 5;
}

#hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.05);
    padding: 5px;
    border-radius: 16px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dot.active {
    background: var(--primary-color);
    transform: scale(2);
}

.btn {
    display: inline-block;
    padding: 1.25rem 3.5rem;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 16px;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: var(--primary-hover);
}

/* Standard Sections */
section {
    padding: 120px 5%;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    text-align: center;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    width: 50px;
    height: 5px;
    margin: 0 auto;
    background: var(--primary-color);
}

/* Sobre */

#sobre .container,
#contacto .container {
    padding: 0;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    padding: 2rem;
    border-left: 4px solid transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.info-item:hover,
.info-item.active {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
}

.info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.info-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.sobre-image {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: visible;
}

.sobre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    border-radius: 16px;
}

.image-backdrop {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-color: rgba(181, 81, 28, 0.15);
    z-index: 1;
    transform: rotate(-4deg) scale(.9) !important;
    transform-origin: center center;
    border-radius: 16px;
}

/* Galeria */

.gallery-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.gallery-text h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.gallery-text h2::before {
    margin: 0 auto;
    /* Center the underline */
}

.gallery-slider-wrapper {
    width: 100%;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    position: relative;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

/* Allow pointer events on interactive elements */
.gallery-dots,
.control-wrapper {
    pointer-events: auto;
}

.control-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

/* Restore Modern Button Styles */
.slider-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: none;
    border-radius: 16px;
    /* Reset potential shadow */
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.slider-btn svg {
    fill: currentColor;
}

.gallery-dots {
    display: flex;
    gap: 1rem;
    padding: 5px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: 0.3s;
    border-radius: 16px;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(2);
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 16px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(181, 81, 28, 0.15);
    /* Primary color shadow tint */
    border-color: rgba(181, 81, 28, 0.1);
}

.contact-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(181, 81, 28, 0.1);
    /* Primary with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    border-radius: 8px;
}

.contact-card .details h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
}

.contact-card .details p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 2rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-direction: column;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    justify-content: space-between;
}

.footer-prr-logo {
    max-width: 300px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-prr-logo:hover {
    opacity: 1;
}


footer p {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-bottom strong {
    letter-spacing: 1px;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: #fff;
}

/* Contact Form Wrapper */

.contact-form-wrapper h3 {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

#contacto form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

#contacto input,
#contacto textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--secondary-bg);
    border-radius: 16px;
}

#contacto input:focus,
#contacto textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 0, 43, 0.05);
}

#contacto textarea {
    min-height: 150px;
    resize: vertical;
}

#contacto button {
    display: inline-block;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 0, 43, 0.2);
}

#contacto button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 0, 43, 0.3);
    background-color: var(--primary-hover);
}

/* Map Section */
#map {
    padding: 0;
}

#map .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
    filter: grayscale(10%) contrast(105%);
}

/* ============================
   Subpages (Privacy & Litigation)
   ============================ */

/* Page Hero */
.page-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .entry-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    color: #fff;
    /* Ensure white for hero */
}

.page-hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-main);
}

/* Content Area */
.section-padding {
    padding: 80px 5%;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.entry-content ul {
    margin-bottom: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.section-title {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
}

/* RAL Grid (Litigation) */
.ral-entities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.ral-entity-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

.ral-entity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.ral-entity-logo {
    height: 80px;
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ral-entity-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.ral-entity-card:hover .ral-entity-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.ral-entity-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
    font-family: var(--font-main);
    /* Keep card titles readable sans-serif */
}

.ral-entity-info p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
    /* Pushes button down if needed */
}

.ral-entity-info a {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ral-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 992px) {
    .info-item {
        padding: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 120px 5% 60px 5%;
    }

    nav,
    .menu-toggle {
        display: none !important;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .page-hero {
        height: 300px;
    }

    .ral-entities-grid {
        grid-template-columns: 1fr;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sobre-image {
        height: 350px;
    }

    .gallery-slider-wrapper {
        height: 60vh;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-text {
        max-width: 100%;
        text-align: center;
    }

    .gallery-text h2 {
        text-align: center;
    }

    .gallery-text h2::before {
        margin: 0 auto;
    }

    .gallery-controls {
        justify-content: center;
    }

    .gallery-slide {
        aspect-ratio: 1/1;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    #contacto form {
        padding: 1.5rem;
    }

    .contact-form-wrapper h3 {
        margin-bottom: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}