/* ============================================
   Saigon Grand Homes — Custom Styles
   ============================================ */

/* Global Typography */
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
h1, h2, h3, .font-heading { font-family: 'Playfair Display', Georgia, serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

/* WordPress caption styling */
.wp-caption-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ============================================
   Navigation Menu — Plain CSS
   (Tailwind CDN v4 doesn't process @apply in external files)
   ============================================ */
#site-navigation ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
#site-navigation > ul > li {
    position: relative;
}
#site-navigation > ul > li > a {
    display: block;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}
#site-navigation > ul > li > a:hover,
#site-navigation > ul > li.current-menu-item > a {
    color: #FCB515;
}

/* Mobile Nav */
#site-navigation.flex-col ul {
    flex-direction: column;
    width: 100%;
}
#site-navigation.flex-col > ul > li > a {
    padding: 1rem;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* ============================================
   Content Typography
   ============================================ */
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: #15513A; text-decoration: underline; }
.entry-content a:hover { color: #FCB515; }

/* ============================================
   FluentForm Brand Overrides — Saigon Grand Homes
   ============================================ */
.fluentform .ff-el-input--label label {
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}
.fluentform .ff-el-form-control {
    padding: 0.875rem 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    width: 100% !important;
    background: #fff !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
}
.fluentform .ff-el-form-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(252, 181, 21, 0.2) !important;
    border-color: #FCB515 !important;
}
.fluentform .ff-btn-submit {
    width: 100% !important;
    background: linear-gradient(135deg, #15513A, #1a6b4d) !important;
    color: #fff !important;
    padding: 1rem 2rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.025em !important;
}
.fluentform .ff-btn-submit:hover {
    background: linear-gradient(135deg, #FCB515, #e5a513) !important;
    color: #15513A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(252, 181, 21, 0.3) !important;
}
.fluentform .ff-el-group {
    margin-bottom: 1.25rem !important;
}
/* Select dropdown */
.fluentform select.ff-el-form-control {
    appearance: none !important;
    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='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}
/* Checkbox & Radio */
.fluentform .ff-el-form-check-input:checked {
    background-color: #15513A !important;
    border-color: #15513A !important;
}
/* File Upload */
.fluentform .ff-el-file-upload {
    border: 2px dashed #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: all 0.2s !important;
}
.fluentform .ff-el-file-upload:hover {
    border-color: #FCB515 !important;
    background-color: rgba(252, 181, 21, 0.05) !important;
}
/* Success message */
.fluentform .ff-message-success {
    background-color: rgba(21, 81, 58, 0.1) !important;
    border: 1px solid #15513A !important;
    color: #15513A !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.5rem !important;
}

/* ============================================
   Hover Effects (safe — no opacity changes)
   ============================================ */
.hover-scale {
    transition: transform 0.2s ease;
}

/* ============================================
   Footer
   ============================================ */
footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   Application Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
}
.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* ============================================
   WordPress Admin Bar offset
   ============================================ */
body.admin-bar #masthead { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar #masthead { top: 46px; }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.reveal-active {
    opacity: 1;
    transform: scale(1);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.reveal-active > * {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.reveal-active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.reveal-active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.reveal-active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.reveal-active > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.reveal-active > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.reveal-active > *:nth-child(6) { transition-delay: 0.6s; }
