/* 2026-04-23 v1 - Serenity Homes Turkey custom CSS layer.
   Keep minimal — prefer Tailwind utility classes where possible. */

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #faf7f0;
    color: #102a30;
}

h1, h2, h3, .font-display {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.02em;
}

/* Art-deco divider: thin ochre line with centred diamond */
.deco-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.25rem auto;
    max-width: 14rem;
}
.deco-divider::before,
.deco-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b8a23a, transparent);
}
.deco-divider span {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: #b8a23a;
    flex-shrink: 0;
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(180deg,
        rgba(8, 24, 33, 0.45) 0%,
        rgba(8, 24, 33, 0.70) 60%,
        rgba(8, 24, 33, 0.88) 100%);
}

/* Property card hover */
.prop-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(16, 42, 48, 0.25);
}

/* Primary button — with subtle gold top-line on hover */
.btn-primary {
    position: relative;
    display: inline-block;
    background: #1f4e57;
    color: #faf7f0;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.375rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #b8a23a;
    transition: width 0.3s ease;
}
.btn-primary:hover { background: #173a42; color: #faf7f0; }
.btn-primary:hover::before { width: 60%; }

/* Ghost (inverse) button for dark backgrounds */
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: #faf7f0;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(250, 247, 240, 0.45);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
    border-color: #b8a23a;
    background: rgba(184, 162, 58, 0.12);
    color: #faf7f0;
}

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* ==================================================================
   Compatibility shims for shared /includes_common_semseo/ forms
   The shared contact form renders as a legacy <table> with <th>/<td>.
   These rules make it look reasonable inside a Tailwind card wrapper.
   Apply by wrapping the shared include in <div class="tw-form-fix">.
   ================================================================== */
.tw-form-fix form,
.tw-form-fix table { width: 100%; }
.tw-form-fix table tr { display: block; width: 100%; }
.tw-form-fix table td,
.tw-form-fix table th {
    display: block; width: 100%; padding: 0; border: 0;
    text-align: left; font-weight: 600; font-size: 0.875rem; color: #173a42;
}
.tw-form-fix table th { padding-top: 0.75rem; }
.tw-form-fix table tr:first-child th { padding-top: 0; }
.tw-form-fix table td input[type="text"],
.tw-form-fix table td input[type="email"],
.tw-form-fix table td select,
.tw-form-fix table td textarea {
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 0.25rem;
    border-radius: 0.375rem;
    border: 1px solid #d2e3e6;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #173a42;
    background: #fff;
}
.tw-form-fix table td textarea { min-height: 6rem; }
.tw-form-fix table td input:focus,
.tw-form-fix table td select:focus,
.tw-form-fix table td textarea:focus {
    outline: none;
    border-color: #1f4e57;
    box-shadow: 0 0 0 2px rgba(31, 78, 87, 0.18);
}
.tw-form-fix .btn,
.tw-form-fix input[type="submit"] {
    background: #1f4e57; color: #faf7f0;
    padding: 0.65rem 1.5rem; font-weight: 600; font-size: 0.875rem;
    letter-spacing: 0.05em; text-transform: uppercase;
    border-radius: 0.375rem; border: 0; cursor: pointer;
}
.tw-form-fix .btn:hover,
.tw-form-fix input[type="submit"]:hover { background: #173a42; }
