/* CONDOT - Thailand's On-Chain Real Estate Marketplace */

:root {
    --condot-primary: #0d3b66;
    --condot-secondary: #1a5f7a;
    --condot-accent: #159895;
    --condot-gold: #c9a227;
    --condot-dark: #0a1628;
    --condot-light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

/* Navigation */
.condot-nav {
    background: var(--condot-dark) !important;
    border: none;
    margin: 0;
    border-radius: 0;
}

.condot-nav .navbar-brand {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 45px;
    width: auto;
}

.brand-thai {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--condot-gold);
}

.brand-condot {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.condot-nav .nav a {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 15px 20px;
}

.condot-nav .nav a:hover {
    color: var(--condot-gold) !important;
}

/* Navbar mobile toggle */
.condot-nav .navbar-toggle {
    border-color: rgba(255,255,255,0.5);
}

.condot-nav .navbar-toggle .icon-bar {
    background-color: #fff;
}

.condot-nav .navbar-toggle:hover,
.condot-nav .navbar-toggle:focus {
    background-color: rgba(255,255,255,0.1);
}

/* Toast notification */
.condot-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--condot-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.condot-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Logo fallback if image fails */
.logo-fallback {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--condot-gold);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--condot-dark) 0%, var(--condot-primary) 50%, var(--condot-secondary) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #fff;
}

.hero-tagline {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--condot-gold);
}

.hero-sub {
    font-size: 18px;
    margin-top: 0.5em;
    opacity: 0.95;
}

.hero-cta {
    margin-top: 2em;
}

.hero-cta .btn {
    margin: 0 8px 10px;
}

.hero-token-info {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.hero-token-info span {
    display: inline-block;
    margin: 0 15px;
    font-size: 14px;
    opacity: 0.9;
}

/* Buttons */
.btn-condot-primary {
    background: var(--condot-gold);
    color: var(--condot-dark) !important;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-condot-primary:hover {
    background: #d4af37;
    color: var(--condot-dark) !important;
}

.btn-condot-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
    padding: 10px 26px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-condot-outline:hover {
    background: #fff;
    color: var(--condot-dark) !important;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--condot-accent);
    margin: 0 auto 25px;
}

.section-intro {
    margin-bottom: 40px;
    color: #666;
}

/* Summary Section */
.summary-section {
    background: var(--condot-light);
}

.summary-section .lead {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Benefit Cards */
.benefit-card {
    padding: 40px 35px;
    border-radius: 8px;
    height: 100%;
}

.benefit-card.buyers {
    background: linear-gradient(135deg, var(--condot-primary), var(--condot-secondary));
    color: #fff;
}

.benefit-card.sellers {
    background: linear-gradient(135deg, var(--condot-secondary), var(--condot-accent));
    color: #fff;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: inherit;
}

.benefit-card ul {
    list-style: none;
    padding: 0;
}

.benefit-card ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.benefit-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--condot-gold);
}

/* Steps Section */
.steps-section {
    background: #fff;
}

.step-card {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--condot-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--condot-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.step-card p {
    font-size: 14px;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: var(--condot-primary);
    color: #fff;
}

.core-message {
    font-size: 22px;
    font-style: italic;
    border: none;
    color: #fff;
    padding: 0;
}

.core-message:before {
    content: '"';
}

.core-message:after {
    content: '"';
}

/* Token Table */
.token-section {
    background: var(--condot-light);
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.token-table tr {
    border-bottom: 1px solid #eee;
}

.token-table tr:last-child {
    border-bottom: none;
}

.token-table td {
    padding: 15px 20px;
}

.token-table td:first-child {
    font-weight: 600;
    color: var(--condot-primary);
    width: 35%;
}

.token-table code.contract-addr {
    font-size: 12px;
    word-break: break-all;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.contract-actions {
    margin-top: 25px;
}

.hero-contract-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.hero-contract-link:hover {
    color: var(--condot-gold);
}

.footer-contract {
    font-size: 13px;
    margin-top: 8px;
}

.footer-contract a {
    color: rgba(255,255,255,0.85);
}

.footer-contract a:hover {
    color: var(--condot-gold);
}

/* Contact Section */
.contact-form .form-control {
    border-radius: 6px;
    padding: 12px 18px;
    border: 1px solid #ddd;
}

.contact-form .form-control:focus {
    border-color: var(--condot-accent);
    box-shadow: 0 0 0 2px rgba(21, 152, 149, 0.2);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

/* Footer */
.condot-footer {
    background: var(--condot-dark);
    color: #fff;
    padding: 40px 0;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.8;
    margin: 5px 0;
}

.copyright {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 15px;
}

.condot-footer .copyright a {
    color: rgba(255,255,255,0.85);
}

.condot-footer .copyright a:hover {
    color: var(--condot-gold);
}

/* Page Header (for subpages) */
.page-hero {
    background: linear-gradient(135deg, var(--condot-dark), var(--condot-primary));
    padding: 60px 0 50px;
    color: #fff;
    text-align: center;
}

.page-hero-logo {
    max-width: 90px;
    height: auto;
    margin-bottom: 15px;
}

.page-hero h1 {
    font-size: 36px;
    color: #fff;
}

.page-hero p {
    margin-top: 10px;
    opacity: 0.9;
}

/* Listing Cards */
.listing-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.listing-card-link:hover {
    color: inherit;
}

.listing-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.listing-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.listing-card .listing-image {
    height: 180px;
    background: linear-gradient(135deg, var(--condot-secondary), var(--condot-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.listing-card .listing-body {
    padding: 20px;
}

.listing-card .listing-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--condot-accent);
    font-weight: 600;
}

.listing-card .listing-title {
    font-size: 18px;
    margin: 8px 0;
}

.listing-card .listing-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--condot-primary);
}

/* Journey Steps (platform page) */
.journey-steps {
    margin-top: 30px;
}

.journey-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.journey-item:last-child {
    border-bottom: none;
}

.journey-num {
    width: 45px;
    height: 45px;
    background: var(--condot-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 25px;
}

.journey-content h4 {
    margin-bottom: 8px;
}

.journey-content p {
    margin: 0;
    color: #666;
}

/* Platform features */
.platform-features {
    list-style: none;
    padding: 0;
}

.platform-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

.platform-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--condot-accent);
    font-weight: bold;
}

/* City badges */
.city-badge {
    display: inline-block;
    padding: 15px 30px;
    background: var(--condot-primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    margin: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-tagline {
        font-size: 18px;
    }
    
    .hero-token-info span {
        display: block;
        margin: 8px 0;
    }
    
    .benefit-card {
        margin-bottom: 20px;
    }
    
    .step-card {
        margin-bottom: 20px;
    }
}
