/* ============================================
   SBRIMA - Shared Stylesheet
   Singapore Belt and Road Investment Management Advisory
   ============================================ */

/* ---------- Fonts (downloaded from original site, self-hosted) ---------- */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/cinzel-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/sourcesanspro-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sourcesanspro-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/sourcesanspro-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Vollkorn';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/vollkorn-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Vollkorn';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/vollkorn-900.woff2') format('woff2');
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #0d2c54;        /* Deep navy */
    --color-primary-dark: #081f3d;
    --color-accent: #c9a961;          /* Gold */
    --color-accent-hover: #b5954d;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-border: #e1e5eb;
    --shadow-sm: 0 2px 4px rgba(13, 44, 84, 0.08);
    --shadow-md: 0 4px 12px rgba(13, 44, 84, 0.12);
    --shadow-lg: 0 10px 30px rgba(13, 44, 84, 0.18);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --font-sans: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Vollkorn', Georgia, "Times New Roman", serif;
    --font-display: 'Cinzel', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto 32px;
    border: none;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
}

.brand-name {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #1b1b1b;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
    /* Scales the same way as the original site:
       ~14-18px on small screens, ~22px on desktop */
    font-size: clamp(14px, 1.6vw, 22px);
    max-width: 360px;
}

.main-nav ul {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    display: inline-block;
    padding: 10px 18px;
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 4px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* ---------- Hero / Banner ---------- */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(13, 44, 84, 0.85) 0%, rgba(26, 68, 128, 0.75) 100%),
        url("../images/hero-stock.jpg") center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(8, 31, 61, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 80px 24px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 36px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Page hero (sub pages) */
.page-hero {
    background:
        linear-gradient(135deg, rgba(13, 44, 84, 0.88) 0%, rgba(26, 68, 128, 0.82) 100%),
        url("../images/hero-stock.jpg") center/cover no-repeat;
    color: #fff;
    padding: 100px 24px 80px;
    text-align: center;
}

/* Events page hero uses the same photo as the original site */
.page-hero--events {
    background:
        linear-gradient(135deg, rgba(8, 31, 61, 0.82) 0%, rgba(13, 44, 84, 0.75) 100%),
        url("../images/stock-12338.jpg") center/cover no-repeat;
}

/* Contact page hero has no photo on the original site - solid gradient only */
.page-hero--contact {
    background: linear-gradient(135deg, rgba(13, 44, 84, 0.96) 0%, rgba(26, 68, 128, 0.94) 100%);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-block {
    width: 100%;
}

/* ---------- About (homepage) ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--color-bg-alt);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ---------- Expertise (homepage) ---------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.expertise-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
    border-top: 4px solid var(--color-accent);
}

.expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a4480 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.8rem;
}

.expertise-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.expertise-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Subscribe ---------- */
.subscribe-section {
    background:
        linear-gradient(135deg, rgba(13, 44, 84, 0.95) 0%, rgba(26, 68, 128, 0.95) 100%),
        url("../images/trade-sg.jpg") center/cover no-repeat fixed;
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}

.subscribe-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.subscribe-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
}

.subscribe-form input[type="email"]:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.subscribe-form button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.subscribe-message {
    margin-top: 16px;
    min-height: 22px;
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---------- Why Us / 3Es (about page) ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.why-card {
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    isolation: isolate;
}

/* Dark overlay on top of the photo (matches original 24% black overlay) */
.why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.why-card--experienced {
    background-image: url("../images/stock-QgBPbQw.jpg");
}

.why-card--efficient {
    background-image: url("../images/stock-pYK3aV4.jpg");
}

.why-card--exceptional {
    background-image: url("../images/stock-96897.jpg");
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-letter {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.why-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.why-card .why-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.why-card p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.why-card strong {
    color: #fff;
}

/* ---------- Contact Form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: var(--color-primary);
    color: #fff;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.92);
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 97, 0.15);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-detail strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-detail span,
.contact-detail a {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.contact-detail a:hover {
    color: var(--color-accent);
}

.contact-form {
    background: #fff;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-form > p {
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #d9534f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 44, 84, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-error {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #d9534f;
}

.form-group.has-error .form-error {
    display: block;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: none;
    font-size: 0.95rem;
}

.form-status.success {
    display: block;
    background: #e7f5ec;
    color: #1f7a3d;
    border: 1px solid #b6e0c2;
}

.form-status.error {
    display: block;
    background: #fdecea;
    color: #b32424;
    border: 1px solid #f5c2c0;
}

.recaptcha-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 16px;
    line-height: 1.5;
}

.recaptcha-note a {
    color: var(--color-text-light);
    text-decoration: underline;
}

/* ---------- Events page ---------- */
.coming-soon {
    text-align: center;
    padding: 100px 24px;
    max-width: 640px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

.coming-soon h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
    font-weight: 700;
}

.coming-soon p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-brand {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expertise-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 56px 0;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .main-nav.open {
        max-height: 400px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        align-items: stretch;
    }

    .main-nav a {
        display: block;
        padding: 14px 18px;
    }

    .main-nav a.active::after {
        left: 18px;
        right: auto;
        width: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 32px 24px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input[type="email"] {
        width: 100%;
    }

    .brand-name {
        font-size: 14px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 420px;
    }

    .coming-soon h2 {
        font-size: 2rem;
    }
}
