/*
Theme Name: Terra
Theme URI: https://www.terra-mallorca.com
Author: Terra
Author URI: https://www.terra-mallorca.com
Description: A beautiful landing page theme for Terra - Your Private Estate in Mallorca
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terra
*/

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Hero Header */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Glassmorphism Overlay */
.glass-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 1300px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2.5rem 2rem;
    color: #fff;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.glass-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Left Main Content */
.glass-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.tagline {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0.8;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.website {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(201, 169, 98, 0.8);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.website::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a962;
    transition: width 0.3s ease;
}

.website:hover {
    color: #c9a962;
}

.website:hover::after {
    width: 100%;
}

/* Main Content Section */
.main-content {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.8;
    max-width: 520px;
    letter-spacing: 0.01em;
    text-align: center;
    margin: 0 auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.rooms-section {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.rooms-divider {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: #c9a962;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rooms-divider::before,
.rooms-divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.5), transparent);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.tag {
    background: transparent;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    cursor: default;
}

.tag:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: rgba(201, 169, 98, 0.4);
    color: #c9a962;
}

/* Right Sidebar - Signup */
.glass-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.signup-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.signup-badge {
    display: inline-block;
    background: transparent;
    color: #c9a962;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(201, 169, 98, 0.3);
    animation: subtlePulse 3s ease-in-out infinite;
}

.signup-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.email-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    outline: none;
    transition: all 0.4s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

.email-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 169, 98, 0.4);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.notify-btn {
    background: linear-gradient(135deg, #c9a962 0%, #b8954f 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.2);
}

.notify-btn:hover {
    background: linear-gradient(135deg, #d4b76e 0%, #c9a962 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.3);
}

.notify-btn:active {
    transform: translateY(0);
}

.notify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.signup-disclaimer {
    font-size: 0.68rem;
    font-weight: 300;
    opacity: 0.5;
    margin-top: 1rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Form feedback messages */
.form-message {
    font-size: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    margin-top: 0.5rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Footer */
.glass-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.45;
    text-transform: uppercase;
}

/* Responsive - Large Tablet / Small Desktop */
@media (max-width: 1100px) {
    .glass-overlay {
        width: 94%;
        padding: 2.5rem 3rem;
    }

    .logo {
        height: 72px;
    }

    .tagline {
        font-size: 0.65rem;
    }
}

/* Responsive - Tablet (iPad) */
@media (max-width: 900px) {
    .glass-overlay {
        padding: 2.5rem;
        width: 90%;
    }

    .top-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .logo {
        height: 65px;
    }

    .tagline {
        font-size: 0.6rem;
        max-width: 200px;
        text-align: center;
        line-height: 1.5;
    }

    .website {
        font-size: 0.8rem;
    }

    .glass-container {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }

    .glass-main {
        width: 100%;
    }

    .headline {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.95rem;
        max-width: 450px;
    }

    .glass-sidebar {
        width: 100%;
        max-width: 500px;
    }

    .signup-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding: 2rem;
    }

    .signup-box > .signup-badge {
        display: inline-block;
    }

    .signup-title {
        margin-bottom: 0;
        font-size: 1.3rem;
    }

    .signup-form {
        flex-direction: row;
        width: 100%;
        max-width: 400px;
        gap: 0.75rem;
    }

    .email-input {
        flex: 1;
        min-width: 0;
    }

    .notify-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .signup-disclaimer {
        display: block;
        max-width: 300px;
    }

    .glass-footer {
        margin-top: 2rem;
    }
}

/* Responsive - Small Tablet / Large Phone */
@media (max-width: 768px) {
    .glass-overlay {
        width: 92%;
        padding: 2rem 1.75rem;
    }

    .top-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
        margin-bottom: 1.75rem;
        padding-bottom: 1.25rem;
    }

    .logo {
        height: 4.5rem;
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    }

    .tagline {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        max-width: none;
    }

    .website {
        font-size: 0.78rem;
    }

    .headline {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .rooms-divider::before,
    .rooms-divider::after {
        width: 30px;
    }

    .glass-sidebar {
        max-width: none;
    }

    .signup-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .signup-box > .signup-badge {
        display: inline-block;
    }

    .signup-title {
        white-space: normal;
        font-size: 1.25rem;
    }

    .signup-form {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .signup-disclaimer {
        display: block;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .hero {
        height: 100dvh;
    }

    .glass-overlay {
        width: 92%;
        padding: 1.25rem 1.1rem;
        border-radius: 16px;
    }

    .top-header {
        gap: 0.35rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .logo {
        height: 4.25rem;
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    }

    .tagline {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
        line-height: 1.4;
    }

    .website {
        font-size: 0.7rem;
    }

    .glass-container {
        gap: 1.25rem;
    }

    .main-content {
        margin-bottom: 0;
    }

    .headline {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .rooms-section {
        margin: 1rem 0;
    }

    .rooms-divider {
        font-size: 0.65rem;
        gap: 0.5rem;
    }

    .rooms-divider::before,
    .rooms-divider::after {
        width: 20px;
    }

    .tags {
        gap: 0.35rem;
    }

    .tag {
        font-size: 0.6rem;
        padding: 0.35rem 0.7rem;
    }

    .signup-box {
        padding: 1rem;
        gap: 0.75rem;
    }

    .signup-badge {
        font-size: 0.5rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0;
    }

    .signup-title {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .signup-form {
        gap: 0.5rem;
    }

    .email-input,
    .notify-btn {
        padding: 0.7rem 0.85rem;
        font-size: 0.72rem;
    }

    .signup-disclaimer {
        font-size: 0.55rem;
        margin-top: 0.25rem;
    }

    .glass-footer {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        margin-top: 1rem;
        padding-top: 0.75rem;
        font-size: 0.6rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 400px) {
    .glass-overlay {
        width: 94%;
        padding: 1rem 0.9rem;
        border-radius: 12px;
    }

    .logo {
        height: 4rem;
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    }

    .tagline {
        font-size: 0.45rem;
    }

    .website {
        font-size: 0.65rem;
    }

    .headline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.72rem;
    }

    .tag {
        font-size: 0.55rem;
        padding: 0.3rem 0.6rem;
    }

    .signup-title {
        font-size: 0.95rem;
    }

    .email-input,
    .notify-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.68rem;
    }
}

/* Landscape mode for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .glass-overlay {
        max-height: 85vh;
        overflow-y: auto;
        padding: 1.25rem 2rem;
    }

    .top-header {
        flex-direction: row;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .main-content {
        margin-top: 0;
    }

    .rooms-section {
        margin: 1rem 0;
    }

    .glass-footer {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
}
