/* ═══════════════════════════════════════════
   OMAY PHOTOGRAPHY — Theme Styles v1.1
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
.req { color: #c0392b; }

/* ═══════════════════════════════════════════
   HEADER — Fixed to top, always visible
   ═══════════════════════════════════════════ */
:root {
    --omay-header-height: 62px;
}
.omay-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: #FAFAF8 !important;
    border-bottom: 1px solid #E8E5E0;
    transition: box-shadow 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.omay-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
/* Site title — push left */
.omay-header .wp-block-site-title {
    margin: 0 !important;
    flex-shrink: 0;
}
/* Navigation — push right */
.omay-header .wp-block-navigation {
    margin-left: auto !important;
}
/* Mobile hamburger menu icon */
.omay-header .wp-block-navigation__responsive-container-open {
    color: #2C2C2C;
    padding: 4px;
}
/* Mobile overlay menu styling */
.omay-header .wp-block-navigation__responsive-container.is-menu-open {
    background: #FAFAF8;
    padding: 2rem;
}
.omay-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: #2C2C2C;
    font-size: 1.1rem;
    padding: 0.75rem 0;
}
.omay-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    color: #2C2C2C;
}
/* Push page content below fixed header */
body .wp-site-blocks {
    padding-top: var(--omay-header-height) !important;
}
/* Kill ALL gaps WordPress adds between blocks */
body .wp-site-blocks > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
body .wp-site-blocks > .wp-block-template-part + *,
body .wp-site-blocks > * + .wp-block-group,
body .wp-site-blocks > * + .alignfull {
    margin-top: 0 !important;
}
.wp-site-blocks > .wp-block-template-part {
    margin: 0 !important;
    padding: 0 !important;
}
/* Override WP block gap on site-blocks container */
body .wp-site-blocks {
    gap: 0 !important;
}
/* When WP admin bar is visible (logged in), push header below it */
body.admin-bar .omay-header {
    top: 32px !important;
}
body.admin-bar .wp-site-blocks {
    padding-top: calc(var(--omay-header-height) + 32px) !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .omay-header {
        top: 46px !important;
    }
    body.admin-bar .wp-site-blocks {
        padding-top: calc(var(--omay-header-height) + 46px) !important;
    }
}

/* ── Buttons ── */
.omay-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.omay-btn--primary { background: #8C7B6B; color: #fff; border-color: #8C7B6B; }
.omay-btn--primary:hover { background: #7A6A5B; border-color: #7A6A5B; }
.omay-btn--outline { background: transparent; color: #8C7B6B; border-color: #8C7B6B; }
.omay-btn--outline:hover { background: #8C7B6B; color: #fff; }
.omay-btn--white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.omay-btn--white:hover { background: #fff; color: #2C2C2C; border-color: #fff; }
.omay-btn--small { padding: 10px 24px; font-size: 0.75rem; }

/* ═══════════════════════════════════════════
   FULL-WIDTH SLIDER
   ═══════════════════════════════════════════ */
.omay-slider--fullwidth {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0 !important;
    overflow: hidden;
}
.omay-slider__track {
    position: relative;
}
.omay-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.omay-slider__slide.is-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.omay-slider__bg {
    width: 100%;
    height: calc(100vh - var(--omay-header-height));
    object-fit: cover;
    object-position: center;
    display: block;
}
.omay-slider__bg--placeholder {
    width: 100%;
    height: calc(100vh - var(--omay-header-height));
    background: linear-gradient(135deg, #E8E5E0 0%, #D5D0C8 100%);
}
.omay-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.05) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5rem;
}
.omay-slider__content {
    text-align: center;
    color: #fff;
    max-width: 700px;
    padding: 0 2rem;
}
.omay-slider__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.omay-slider__subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    margin: 0 0 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}
.omay-slider__nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}
.omay-slider__prev,
.omay-slider__next {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}
.omay-slider__prev:hover,
.omay-slider__next:hover {
    background: rgba(255,255,255,0.3);
}
.omay-slider__dots { display: flex; gap: 0.5rem; }
.omay-slider__dot {
    width: 8px; height: 8px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent; cursor: pointer;
    transition: all 0.3s ease; padding: 0;
}
.omay-slider__dot.is-active {
    background: #fff; border-color: #fff;
}

/* ═══════════════════════════════════════════
   PORTFOLIO GRID
   ═══════════════════════════════════════════ */
.omay-portfolio-filter {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2rem; margin-bottom: 3rem;
}
.omay-filter-btn {
    padding: 0; font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem; font-weight: 400; letter-spacing: 0.04em;
    background: transparent; border: none; border-bottom: 1px solid transparent;
    cursor: pointer; color: #8C8580; transition: all 0.3s ease;
    padding-bottom: 2px;
}
.omay-filter-btn:hover { color: #2C2C2C; }
.omay-filter-btn.is-active {
    color: #2C2C2C; border-bottom-color: #2C2C2C;
}
.omay-portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.omay-portfolio-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.omay-portfolio-item.is-hidden {
    opacity: 0; transform: scale(0.95);
    position: absolute; pointer-events: none;
}
.omay-portfolio-item__link { text-decoration: none; color: inherit; display: block; }
.omay-portfolio-item__image {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3; background: #F0EDE8;
}
.omay-portfolio-item__image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.omay-portfolio-item__link:hover .omay-portfolio-item__image img { transform: scale(1.04); }
.omay-portfolio-item__placeholder {
    width: 100%; height: 100%; background: linear-gradient(135deg, #F0EDE8, #E8E5E0);
}
.omay-portfolio-item__info {
    padding: 1rem 0 0; text-align: center;
}
.omay-portfolio-item__info h3 {
    font-size: 1.05rem; font-weight: 400; margin: 0 0 0.25rem;
    letter-spacing: 0.02em;
}
.omay-portfolio-item__date {
    font-size: 0.78rem; color: #8C8580; letter-spacing: 0.03em; margin: 0;
}
.omay-no-results { text-align: center; color: #6B6560; padding: 3rem 0; }

/* ═══════════════════════════════════════════
   PRICING CARDS (with image)
   ═══════════════════════════════════════════ */
.omay-pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.omay-pricing-card {
    background: #fff; border: 1px solid #E8E5E0; border-radius: 2px;
    display: flex; flex-direction: column; transition: box-shadow 0.3s ease;
    overflow: hidden;
}
.omay-pricing-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.omay-pricing-card__image {
    aspect-ratio: 16/10; overflow: hidden; background: #F0EDE8;
}
.omay-pricing-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.omay-pricing-card:hover .omay-pricing-card__image img { transform: scale(1.03); }
.omay-pricing-card__header {
    text-align: center; margin-bottom: 1.5rem; padding: 2.5rem 2rem 0;
    padding-bottom: 1.5rem; border-bottom: 1px solid #F0EDE8;
}
.omay-pricing-card.has-image .omay-pricing-card__header { padding-top: 1.5rem; }
.omay-pricing-card__header h3 {
    font-size: 1.3rem; font-weight: 400; letter-spacing: 0.04em; margin: 0 0 0.5rem;
}
.omay-pricing-card__duration { font-size: 0.85rem; color: #8C7B6B; margin: 0 0 0.25rem; font-weight: 400; }
.omay-pricing-card__suitable { font-size: 0.8rem; color: #6B6560; margin: 0; }
.omay-pricing-card__features {
    list-style: none; padding: 0 2rem; margin: 0 0 2rem; flex: 1;
}
.omay-pricing-card__features li {
    padding: 0.5rem 0; padding-left: 1.25rem; position: relative;
    font-size: 0.9rem; color: #2C2C2C; border-bottom: 1px solid #F8F6F3;
}
.omay-pricing-card__features li::before {
    content: '\2713'; position: absolute; left: 0; color: #8C7B6B; font-size: 0.8rem;
}
.omay-pricing-card__footer {
    text-align: center; padding: 1.5rem 2rem 2.5rem;
    border-top: 1px solid #F0EDE8; margin-top: auto;
}
.omay-pricing-card__price {
    font-size: 2rem; font-weight: 300; color: #2C2C2C;
    letter-spacing: 0.02em; margin-bottom: 1.25rem;
}
.omay-pricing-grid--compact .omay-pricing-card__header { padding: 2rem 1.5rem 1rem; }
.omay-pricing-grid--compact .omay-pricing-card__footer { padding: 1rem 1.5rem 2rem; }

/* ═══════════════════════════════════════════
   PORTFOLIO HERO (single project page)
   ═══════════════════════════════════════════ */
.omay-portfolio-hero {
    position: relative; width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 0 !important;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}
.omay-portfolio-hero__img {
    width: 100%; height: auto; display: block;
    max-height: 85vh; object-fit: cover; object-position: center;
    margin: 0; padding: 0; border: 0;
}
/* Kill all gaps around the hero — target every possible wrapper WordPress creates */
.wp-block-shortcode,
p:empty {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border: none !important;
}
/* Inside the single portfolio wrapper, kill all child gaps */
.single-portfolio .wp-site-blocks .wp-block-group > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.single-portfolio .wp-site-blocks .wp-block-group > .wp-block-group {
    margin-top: 0 !important;
}
.omay-portfolio-hero__overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
    padding: 3rem 2rem 2rem;
    text-align: center;
}
.omay-portfolio-hero__title {
    color: #fff; font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300; letter-spacing: 0.06em;
    margin: 0 0 0.35rem; text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.omay-portfolio-hero__meta {
    color: rgba(255,255,255,0.85); font-size: 0.82rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════
   GALLERY (masonry — progressive image loading)
   ═══════════════════════════════════════════ */
.omay-gallery {
    columns: 3;
    column-gap: 3px;
    font-size: 0;
    line-height: 0;
}
.omay-gallery__item {
    display: block;
    break-inside: avoid;
    margin-bottom: 3px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background: #F0EDE8;
}
/* Tiny blurred placeholder — loads instantly */
.omay-gallery__lqip {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 0.5s ease;
    z-index: 1;
}
/* Full image — hidden until loaded */
.omay-gallery__img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
}
.omay-gallery__img.is-loaded {
    opacity: 1;
}
/* Hide placeholder once real image is in */
.omay-gallery__item.is-revealed .omay-gallery__lqip {
    opacity: 0;
    pointer-events: none;
}
.omay-gallery__item:hover .omay-gallery__img { transform: scale(1.03); }

/* ═══════════════════════════════════════════
   FORM STYLES
   ═══════════════════════════════════════════ */
.omay-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.omay-field--full { grid-column: 1 / -1; }
.omay-field--half { grid-column: span 1; }
.omay-field--quarter { grid-column: span 1; }

.omay-field label {
    display: block; font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #2C2C2C; margin-bottom: 0.5rem;
}
.omay-field input[type="text"],
.omay-field input[type="email"],
.omay-field input[type="tel"],
.omay-field input[type="date"],
.omay-field input[type="time"],
.omay-field select,
.omay-field textarea {
    width: 100%; padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem; font-weight: 300;
    border: 1px solid #E8E5E0; border-radius: 2px;
    background: #fff; color: #2C2C2C;
    transition: border-color 0.3s ease;
    appearance: none; -webkit-appearance: none;
    height: 48px; box-sizing: border-box;
}
.omay-field input:focus,
.omay-field select:focus,
.omay-field textarea:focus { outline: none; border-color: #8C7B6B; }
.omay-field textarea { resize: vertical; min-height: 120px; height: auto; }
.omay-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}
.omay-phone-wrap { display: flex; gap: 0.5rem; height: 48px; }
.omay-phone-code { flex: 0 0 120px; height: 48px; }
.omay-phone-wrap input { flex: 1; height: 48px; }
.omay-checkbox {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.85rem; font-weight: 300; cursor: pointer;
    text-transform: none; letter-spacing: 0;
}
.omay-checkbox input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.omay-checkbox a { color: #8C7B6B; text-decoration: underline; text-underline-offset: 2px; }
.omay-checkbox a:hover { color: #2C2C2C; }
.omay-error { display: block; font-size: 0.78rem; color: #c0392b; margin-top: 0.3rem; min-height: 1rem; }
.omay-field.has-error input,
.omay-field.has-error select,
.omay-field.has-error textarea { border-color: #c0392b; }
#omay-form-message { padding: 1rem; margin-top: 1rem; border-radius: 2px; font-size: 0.9rem; }
#omay-form-message.is-error { background: #fdf2f2; color: #c0392b; border: 1px solid #f5c6cb; }
.omay-success-message { text-align: center; padding: 4rem 2rem; }
.omay-success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #8C7B6B; color: #fff; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}
.omay-success-message h3 { font-weight: 400; font-size: 1.5rem; margin: 0 0 0.75rem; }
.omay-success-message p { color: #6B6560; margin-bottom: 2rem; }

/* ═══════════════════════════════════════════
   SOCIAL LINKS
   ═══════════════════════════════════════════ */
.omay-social { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.omay-social__link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #6B6560; text-decoration: none; transition: color 0.3s ease;
}
.omay-social__link:hover { color: #8C7B6B; }
.omay-social__link--ig { font-weight: 400; }
.omay-social--footer .omay-social__link span { font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.omay-footer-links { list-style: none; }
.omay-footer-links li { margin-bottom: 0.5rem; }
.omay-footer-links a { color: #6B6560; text-decoration: none; transition: color 0.3s ease; }
.omay-footer-links a:hover { color: #8C7B6B; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .omay-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .omay-pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .omay-gallery { columns: 2; }
}
@media (max-width: 600px) {
    .omay-portfolio-grid { grid-template-columns: 1fr; }
    .omay-form-grid { grid-template-columns: 1fr; }
    .omay-field--half, .omay-field--quarter { grid-column: 1 / -1; }
    .omay-gallery { columns: 2; }
    .omay-portfolio-filter { gap: 0.35rem; }
    .omay-filter-btn { padding: 6px 14px; font-size: 0.72rem; }
    .wp-block-columns { flex-direction: column !important; }
}

/* ═══════════════════════════════════════════
   LEGAL PAGES (Impressum, Terms & Privacy)
   ═══════════════════════════════════════════ */
.omay-legal h2 { font-size: 1.15rem; font-weight: 500; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.omay-legal p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 1rem; color: #3a3a3a; }
.omay-legal a { color: #8C7B6B; text-decoration: underline; text-underline-offset: 2px; }
.omay-legal a:hover { color: #2C2C2C; }
.omay-legal hr { border: none; border-top: 1px solid #E8E5E0; margin: 2.5rem 0; }
.omay-legal__footer { font-size: 0.8rem; color: #8C8580; margin-top: 2rem; }

/* Hide reCAPTCHA badge — text disclosure is in privacy policy */
.grecaptcha-badge { visibility: hidden !important; }

/* ═══════════════════════════════════════════
   MODAL POPUP (Terms & Portfolio)
   ═══════════════════════════════════════════ */
.omay-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.omay-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
}
.omay-modal__content {
    position: relative; z-index: 1;
    background: #FAFAF8; border-radius: 6px;
    width: 100%; max-width: 640px; max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: omayModalIn 0.25s ease-out;
}
@keyframes omayModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.omay-modal__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid #E8E5E0;
    flex-shrink: 0;
}
.omay-modal__header h3 {
    font-size: 1rem; font-weight: 500; margin: 0;
    letter-spacing: 0.02em;
}
.omay-modal__close {
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; line-height: 1; color: #8C8580;
    padding: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; transition: background 0.15s;
}
.omay-modal__close:hover { background: #EFECE8; color: #2C2C2C; }
.omay-modal__body {
    overflow-y: auto; padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}
.omay-modal__body .omay-legal h2 { font-size: 1.05rem; margin-top: 2rem; }
.omay-modal__body .omay-legal h2:first-child { margin-top: 0; }
.omay-modal__body .omay-legal p { font-size: 0.88rem; }
.omay-modal__footer {
    display: flex; justify-content: flex-end; gap: 0.75rem;
    padding: 1rem 1.5rem; border-top: 1px solid #E8E5E0;
    flex-shrink: 0;
}
.omay-btn--small { padding: 0.5rem 1.25rem; font-size: 0.82rem; }
body.omay-modal-open { overflow: hidden; }

@media (max-width: 600px) {
    .omay-modal { padding: 0; align-items: flex-end; }
    .omay-modal__content {
        max-height: 90vh; border-radius: 12px 12px 0 0;
        animation: omayModalSlideUp 0.3s ease-out;
    }
    @keyframes omayModalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}
