/* Theme Styles */

/* Base Variables */
:root {
    --theme-primary: #333;
    --theme-bg: #fff;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Global Header Fix - removes transparent gap */
#header {
    top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 15px !important;
}

#header h1 {
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
}

#header h1 img {
    margin-bottom: 5px !important;
}

/* --- Color Themes --- */
body.theme-light {
    background-color: #fcfcfc;
    color: #444;
}

body.theme-light #header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
}

body.theme-light #header a {
    color: #333;
}

body.theme-dark {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.theme-dark .wrapper.style2 {
    background-color: #2a2a2a;
}

body.theme-ocean {
    background-color: #f0f8ff;
    color: #004d40;
}

body.theme-ocean .wrapper.style1 {
    background-color: #e0f7fa;
}

/* --- Fonts --- */
/* --- Fonts --- */
body.font-serif,
body.font-serif h1,
body.font-serif h2,
body.font-serif h3,
body.font-serif #header nav a,
body.font-serif .button {
    font-family: 'Playfair Display', serif;
}

body.font-sans_modern,
body.font-sans_modern h1,
body.font-sans_modern h2,
body.font-sans_modern h3,
body.font-sans_modern #header nav a,
body.font-sans_modern .button {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

body.font-handwritten,
body.font-handwritten h1,
body.font-handwritten h2,
body.font-handwritten h3,
body.font-handwritten #header nav a {
    font-family: 'Caveat', cursive;
    font-size: 1.25em;
    /* Slightly larger for readability */
}

/* --- Hero: Ken Burns --- */
.hero-ken-burns {
    overflow: hidden;
}

.hero-ken-burns img {
    animation: kenburns 20s infinite alternate;
    transform-origin: center;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* --- Gallery: Masonry --- */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5em;
    padding: 1em 0;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5em;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* --- Icon Styles --- */
/* Classic is default */
.icon-style-modern .icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    width: 3em !important;
    height: 3em !important;
    line-height: 3em !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-style-minimal .icon {
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
    padding: 0.2em;
}

.icon-style-glass .icon {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #fff !important;
    width: 3.5em !important;
    height: 3.5em !important;
    line-height: 3.5em !important;
    /* Vertically center icon */
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.icon-style-glass .icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Glass Modal Override */
.icon-style-glass .modalDialog {
    background: rgba(0, 0, 0, 0.5) !important;
    /* Dark semi-transparent overlay */
}

.icon-style-glass .modalDialog>div {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border-radius: 20px !important;
    color: #333;
    padding: 30px !important;
}

.icon-style-glass .modalDialog>div h2 {
    color: #222;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.icon-style-glass .modalDialog>div p {
    font-size: 1.1em;
    line-height: 1.6;
}

.icon-style-glass .closemodal {
    background: #ff5f56;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    top: -10px;
    right: -10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- Service Labels & Box Layout (Glass) --- */
/* Hide labels by default for other styles */
.service-label {
    display: none;
}

/* Glass Style Layout */
/* Container Style */
.glass-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 30px;
    display: inline-flex;
    /* Fit content */
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin: 0 auto;
}

/* Items inside glass container */
.glass-container li {
    padding: 0 !important;
    /* Reset default padding */
    margin: 0 !important;
}

.icon-style-glass .button.special {
    background: transparent !important;
    /* Transparent items */
    border: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 10px 15px;

    /* Layout */
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: auto;
    /* Let text define width */
    color: #fff !important;
    transition: transform 0.2s ease;
}

.icon-style-glass .button.special:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1) !important;
    /* Subtle hover on item */
    border-radius: 12px;
}

.icon-style-glass .service-label {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevent breaking names */
}

/* Icon adjustments */
.icon-style-glass .icon {
    /* Keep existing icon style but maybe smaller? */
    width: 2em !important;
    height: 2em !important;
    line-height: 2em !important;
    font-size: 1em;
    /* Baseline */
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Gallery: Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    padding: 20px 0;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

/* Bento Spans */
.bento-span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-span-2x1 {
    grid-column: span 2;
}

.bento-span-1x2 {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bento-span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Keep big items big or reduce? */
}

@media (max-width: 600px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .bento-item {
        height: 280px;
        width: 100%;
    }
}

/* --- Contact Styles --- */
.contact-boxed p {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
}

/* General Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner Position Adjustment */
#banner.banner-lifted {
    padding-top: 10em !important;
    padding-bottom: 6em !important;
}

#banner.banner-lifted .inner {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#banner.banner-lifted article {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding-top: 2em !important;
}

@media (max-width: 900px) {
    #banner.banner-lifted {
        padding-top: 8em !important;
        padding-bottom: 4em !important;
    }
}