/*
Theme Name: WoodCode Coming Soon
Theme URI: https://woodcode.eu
Author: WoodCode
Author URI: https://woodcode.eu
Description: Temă Coming Soon pentru WoodCode.eu — Mobilier unic din lemn reciclat recuperat din case vechi românești. Landing page cu imagine de fundal, animații, formular de contact și hartă.
Version: 1.0.2
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woodcode-coming-soon
Tags: one-page, custom-background, full-width-template
*/

/* ═══════════════════════════════════════════
   RESET & BASE — MOBILE FIRST
═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #2a2218;
    color: #f5f0eb;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════
   IMAGE BACKGROUND
═══════════════════════════════════════════ */
.video-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1f1710;
}

.video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.6s ease, transform 5s ease;
    filter: brightness(0.48) saturate(0.8) contrast(1.05);
}

.video-wrap img.loaded {
    opacity: 1;
    transform: scale(1);
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(40,35,28,0.25) 0%, rgba(28,22,16,0.65) 100%);
    pointer-events: none;
}

/* ── Mobile portrait ── */
@media (max-width: 768px) and (orientation: portrait) {
    .video-wrap img {
        object-fit: cover;
        object-position: center center;
        filter: brightness(0.55) saturate(0.85) contrast(1.08);
    }

    .bg-overlay {
        background:
            radial-gradient(ellipse at center, rgba(40,35,28,0.15) 0%, rgba(28,22,16,0.50) 100%);
    }
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ═══════════════════════════════════════════
   CONTENT — MOBILE FIRST
═══════════════════════════════════════════ */
.content {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 0;
}

/* ═══════════════════════════════════════════
   LOGO — centered icon only
═══════════════════════════════════════════ */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    margin-bottom: 1.8rem;
}

.logo-container.animate {
    animation: logoReveal 1.4s ease 0.2s forwards;
}

.logo-icon {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-container.animate .logo-icon {
    filter: drop-shadow(0 0 8px rgba(210, 175, 120, 0.5))
            drop-shadow(0 0 24px rgba(210, 175, 120, 0.25))
            drop-shadow(0 0 48px rgba(180, 140, 80, 0.12));
    animation: haloBreath 4s ease-in-out 1.6s infinite;
}

/* ═══════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════ */
.divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,170,120,0.5), transparent);
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: scaleX(0);
}

.divider.animate {
    animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

/* ═══════════════════════════════════════════
   TAGLINE & SUBTITLE
═══════════════════════════════════════════ */
.tagline {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(200, 170, 120, 0.85);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(14px);
    text-align: center;
    line-height: 1.45;
    text-shadow: 0 0 12px rgba(200, 170, 120, 0.3), 0 0 30px rgba(200, 170, 120, 0.12);
}

.tagline.animate {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

.subtitle {
    font-weight: 300;
    font-size: 0.78rem;
    color: rgba(245, 240, 235, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(14px);
    text-align: center;
    max-width: 320px;
    line-height: 1.7;
    text-shadow: 0 0 10px rgba(245, 240, 235, 0.15), 0 0 24px rgba(200, 170, 120, 0.08);
}

.subtitle.animate {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}

/* ═══════════════════════════════════════════
   COMING SOON BADGE
═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.4rem;
    border: 1px solid rgba(200, 170, 120, 0.2);
    border-radius: 50px;
    background: rgba(200, 170, 120, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(14px);
}

.badge.animate {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.1s forwards;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(200, 170, 120, 0.9);
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(200, 170, 120, 0.35);
    animation: pulse 2s ease-in-out infinite;
}

.badge span {
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 170, 120, 0.85);
    text-shadow: 0 0 10px rgba(200, 170, 120, 0.3);
}

/* ═══════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════ */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 340px;
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(14px);
}

.contact-form.animate {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}

.contact-form .form-label {
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.32);
    margin-bottom: 0.2rem;
    text-shadow: 0 0 8px rgba(245, 240, 235, 0.12);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(200, 170, 120, 0.25);
    border-radius: 8px;
    background: rgba(200, 170, 120, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #f5f0eb;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(200, 170, 120, 0.06), inset 0 0 12px rgba(200, 170, 120, 0.03);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(245, 240, 235, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(200, 170, 120, 0.45);
    background: rgba(200, 170, 120, 0.10);
    box-shadow: 0 0 14px rgba(200, 170, 120, 0.12), inset 0 0 16px rgba(200, 170, 120, 0.05);
}

.contact-form textarea {
    resize: none;
    height: 72px;
    line-height: 1.5;
}

.contact-form button {
    padding: 0.6rem 2rem;
    border: 1px solid rgba(200, 170, 120, 0.3);
    border-radius: 50px;
    background: rgba(200, 170, 120, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(200, 170, 120, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s ease;
}

.contact-form button:hover {
    background: rgba(200, 170, 120, 0.18);
    border-color: rgba(200, 170, 120, 0.5);
    color: rgba(200, 170, 120, 1);
}

.contact-form .form-success {
    display: none;
    font-size: 0.78rem;
    color: rgba(200, 170, 120, 0.85);
    text-align: center;
    line-height: 1.5;
}

.contact-form.sent .form-fields { display: none; }
.contact-form.sent .form-success { display: block; }

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    align-items: center;
}

.form-row {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.form-row input { flex: 1; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(14px);
}

.contact.animate {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
}

.contact-label {
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.32);
    text-shadow: 0 0 8px rgba(245, 240, 235, 0.12);
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(245, 240, 235, 0.55);
    font-size: 0.78rem;
    font-weight: 400;
    transition: color 0.35s ease;
    position: relative;
}

.contact-item::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(200, 170, 120, 0.5);
    transition: width 0.35s ease;
}

.contact-item:hover {
    color: rgba(200, 170, 120, 0.95);
}

.contact-item:hover::after {
    width: 100%;
}

.contact-item svg {
    width: 15px;
    height: 15px;
    opacity: 0.4;
    transition: opacity 0.35s ease;
    flex-shrink: 0;
}

.contact-item:hover svg {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════
   SAWDUST PARTICLES
═══════════════════════════════════════════ */
.particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(200, 170, 120, 0.22);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

/* ═══════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════ */
@keyframes logoReveal {
    to { opacity: 1; }
}

@keyframes haloBreath {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(210, 175, 120, 0.5))
                drop-shadow(0 0 24px rgba(210, 175, 120, 0.25))
                drop-shadow(0 0 48px rgba(180, 140, 80, 0.12));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(210, 175, 120, 0.7))
                drop-shadow(0 0 36px rgba(210, 175, 120, 0.35))
                drop-shadow(0 0 64px rgba(180, 140, 80, 0.2));
    }
}

@keyframes scaleIn {
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(2); opacity: 0; }
}

@keyframes floatUp {
    0%   { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.5; }
    92%  { opacity: 0.5; }
    100% { transform: translateY(-5vh) translateX(var(--dx)) rotate(var(--rot)); opacity: 0; }
}

/* ═══════════════════════════════════════════
   TABLET — 600 px+
═══════════════════════════════════════════ */
@media (min-width: 600px) {
    .logo-container {
        margin-bottom: 2.4rem;
    }

    .logo-icon { width: 220px; height: 220px; }
    .tagline { font-size: 1.2rem; }
    .subtitle { font-size: 0.88rem; max-width: 420px; }
    .divider  { width: 50px; margin-bottom: 1.5rem; }

    .contact-form { max-width: 400px; }

    .contact-links {
        flex-direction: row;
        gap: 2rem;
    }

    .contact-item { font-size: 0.88rem; }
}

/* ═══════════════════════════════════════════
   DESKTOP — 900 px+
═══════════════════════════════════════════ */
@media (min-width: 900px) {
    .logo-icon { width: 260px; height: 260px; }

    .logo-container {
        margin-bottom: 3rem;
    }

    .tagline  { font-size: 1.35rem; }
    .subtitle { font-size: 0.95rem; max-width: 480px; margin-bottom: 3rem; }
    .divider  { width: 60px; margin-bottom: 2rem; }
    .badge    { padding: 0.8rem 2rem; margin-bottom: 3rem; }
}

/* ═══════════════════════════════════════════
   TINY PHONES — 380 px-
═══════════════════════════════════════════ */
@media (max-width: 380px) {
    .logo-icon { width: 140px; height: 140px; }
    .tagline  { font-size: 0.92rem; }
    .subtitle { font-size: 0.72rem; }
    .contact-item { font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════
   LANDSCAPE PHONE
═══════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
    .content { padding: 0.6rem 1.5rem; }

    .logo-container {
        margin-bottom: 0.6rem;
    }

    .logo-icon { width: 90px; height: 90px; }
    .divider  { margin-bottom: 0.4rem; }
    .tagline  { font-size: 0.82rem; margin-bottom: 0.25rem; }
    .subtitle { font-size: 0.68rem; margin-bottom: 0.6rem; }
    .badge    { margin-bottom: 0.6rem; padding: 0.45rem 1rem; }
}

/* ═══════════════════════════════════════════
   ADDRESS & MAP
═══════════════════════════════════════════ */
.location-section {
    width: 100%;
    max-width: 440px;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateY(14px);
}

.location-section.animate {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
}

.location-label {
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 240, 235, 0.32);
    text-shadow: 0 0 8px rgba(245, 240, 235, 0.12);
    text-align: center;
    margin-bottom: 0.75rem;
}

.location-card {
    border: 1px solid rgba(200, 170, 120, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(200, 170, 120, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 20px rgba(200, 170, 120, 0.06);
}

.location-card .map-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.location-card .map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: brightness(0.7) contrast(1.15) sepia(0.5) saturate(0.5) hue-rotate(5deg);
    transition: filter 0.5s ease;
}

.location-card .map-wrap:hover iframe {
    filter: brightness(0.8) contrast(1.1) sepia(0.3) saturate(0.7) hue-rotate(5deg);
}

.location-card .map-divider {
    height: 3px;
    background: linear-gradient(90deg,
        rgba(200, 170, 120, 0.05),
        rgba(200, 170, 120, 0.25) 20%,
        rgba(180, 140, 80, 0.35) 40%,
        rgba(200, 170, 120, 0.2) 60%,
        rgba(180, 140, 80, 0.3) 80%,
        rgba(200, 170, 120, 0.05));
}

.location-card .address-info {
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.location-card .address-info .pin-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(200, 170, 120, 0.75);
    filter: drop-shadow(0 0 4px rgba(200, 170, 120, 0.3));
}

.location-card .address-info .pin-icon circle {
    fill: rgba(200, 170, 120, 0.5);
}

.location-card .address-info a {
    text-decoration: none;
    color: rgba(245, 240, 235, 0.55);
    font-size: 0.76rem;
    font-weight: 300;
    line-height: 1.5;
    transition: color 0.3s ease;
    text-shadow: 0 0 8px rgba(245, 240, 235, 0.08);
}

.location-card .address-info a:hover {
    color: rgba(200, 170, 120, 0.9);
}

@media (min-width: 600px) {
    .location-section { max-width: 440px; }
    .location-card .map-wrap { height: 200px; }
}

@media (min-width: 900px) {
    .location-section { max-width: 480px; }
    .location-card .map-wrap { height: 220px; }
}

@media (max-width: 380px) {
    .location-card .address-info a { font-size: 0.7rem; }
    .location-card .map-wrap { height: 150px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .location-section { margin-top: 0.6rem; padding-bottom: 0.6rem; }
    .location-card .map-wrap { height: 120px; }
    .location-card .address-info { padding: 0.5rem 0.8rem; }
    .location-card .address-info a { font-size: 0.68rem; }
}

/* ═══════════════════════════════════════════
   WORDPRESS OVERRIDES — hide all WP chrome
═══════════════════════════════════════════ */
body .site-header,
body .site-footer,
body .entry-header,
body .entry-footer,
body #masthead,
body #colophon,
body .navigation,
body .sidebar,
body .widget-area,
body .site-branding,
body .wp-block-post-title,
body .wp-site-blocks > header,
body .wp-site-blocks > footer { display: none !important; }

.admin-bar .video-wrap { top: 32px; }
.admin-bar .bg-overlay,
.admin-bar .grain,
.admin-bar .particles { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .video-wrap,
    .admin-bar .bg-overlay,
    .admin-bar .grain,
    .admin-bar .particles { top: 46px; }
}
#wpadminbar { z-index: 99999; }

body .site-content,
body .entry-content,
body .site-main,
body main,
body #primary,
body #content,
body .site {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
