/* ============================================================
   Speak Australia - Main Stylesheet
   Design: Refined editorial with warm Australian tones
   ============================================================ */

:root {
    --navy:      #1a2744;
    --navy-light:#253460;
    --gold:      #c9973e;
    --gold-light:#e8b96a;
    --cream:     #faf8f4;
    --white:     #ffffff;
    --text:      #2c2c2c;
    --text-mid:  #555555;
    --text-light:#888888;
    --border:    #e8e2d8;
    --bg-light:  #f5f2ed;
    --japanese:  #c0392b;
    --korean:    #1a5ca3;
    --indonesian:#27ae60;
    --ukrainian: #1565c0;
    --shadow-sm: 0 2px 8px rgba(26,39,68,0.08);
    --shadow-md: 0 6px 24px rgba(26,39,68,0.12);
    --shadow-lg: 0 16px 48px rgba(26,39,68,0.16);
    --radius:    8px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Nunito', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Topbar ── */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-left: 12px;
    font-size: 0.85rem;
    transition: var(--transition);
}
.topbar-links a:hover { color: var(--gold-light); }

/* ── Header ── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Logo */
.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-text { display: flex; align-items: baseline; gap: 0; }
.logo-speak {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.65rem;
    color: var(--navy);
    letter-spacing: -0.5px;
}
.logo-australia {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--gold);
    letter-spacing: -0.5px;
}

/* ── Navigation ── */
.main-nav { margin-left: auto; }
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--bg-light); }
.nav-item.active > .nav-link { color: var(--gold); }
.flag { font-size: 1rem; }
.chevron { transition: transform 0.2s ease; opacity: 0.6; }

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 220px;
    padding: 8px;
    padding-top: 16px;   /* extra top padding so menu starts visually below trigger */
    margin-top: -8px;    /* overlap the trigger by 8px to eliminate the gap */
    z-index: 1100;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.has-dropdown:hover .chevron,
.has-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-menu li { display: block; }
.dropdown-menu a {
    display: block;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}
.dropdown-menu a:hover, .dropdown-menu a.active {
    background: var(--bg-light);
    color: var(--navy);
    padding-left: 20px;
}

/* Mobile toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero (Homepage) ── */
.hero {
    background: var(--navy);
    background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a5f 100%);
    color: var(--white);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,151,62,0.2);
    border: 1px solid rgba(201,151,62,0.4);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}
.hero h1 em {
    font-style: normal;
    color: var(--gold-light);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,151,62,0.4); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ── Language Cards Grid ── */
.section { padding: 72px 0; }
.section-light { background: var(--cream); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 12px;
}
.section-header p { color: var(--text-mid); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.lang-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.lang-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lang-card-header {
    padding: 28px 28px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.lang-flag { font-size: 2.5rem; }
.lang-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    color: var(--white);
}
.badge-japanese  { background: var(--japanese); }
.badge-korean    { background: var(--korean); }
.badge-indonesian{ background: var(--indonesian); }
.badge-ukrainian { background: var(--ukrainian); }

.lang-card-body { padding: 20px 28px 28px; }
.lang-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.lang-card-body p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.lang-card-links { display: flex; flex-direction: column; gap: 6px; }
.lang-card-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.lang-card-links a:last-child { border-bottom: none; }
.lang-card-links a:hover { color: var(--navy); padding-left: 6px; }
.lang-card-links a::after { content: '→'; opacity: 0.5; }

/* ── Feature Strip ── */
.features-strip {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.feature-item { padding: 16px; }
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-item p { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ── Blog Preview ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-category-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.blog-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.35;
}
.blog-card-body h3 a { color: inherit; text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--gold); }
.blog-card-body p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.6; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.8rem; color: var(--text-light); }

/* ── Page Layout ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 52px 0 56px;
}
.page-hero-jp { background: linear-gradient(135deg, #6b1a1a 0%, #c0392b 100%); }
.page-hero-ko { background: linear-gradient(135deg, #0d2b5e 0%, #1a5ca3 100%); }
.page-hero-id { background: linear-gradient(135deg, #145a32 0%, #27ae60 100%); }
.page-hero-uk { background: linear-gradient(135deg, #0d3b6e 0%, #1565c0 100%); }
.page-hero-res { background: linear-gradient(135deg, #3d1a6b 0%, #6c3483 100%); }
.page-hero-blog { background: linear-gradient(135deg, #1a4a3c 0%, #1a6b4a 100%); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 12px;
}
.page-hero .hero-sub { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; }

/* Content + Sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    padding: 56px 0;
}
.content-main { min-width: 0; }
.content-main h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--navy);
    margin: 0 0 20px;
}
.content-main h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy);
    margin: 32px 0 14px;
}
.content-main p { margin-bottom: 16px; color: var(--text); line-height: 1.8; }
.content-main ul, .content-main ol { padding-left: 24px; margin-bottom: 16px; }
.content-main li { margin-bottom: 6px; line-height: 1.7; }
.content-main a { color: var(--navy); }
.content-main a:hover { color: var(--gold); }
.content-main table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.content-main th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-size: 0.9rem; }
.content-main td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.content-main tr:nth-child(even) td { background: var(--cream); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}
.sidebar-widget h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}
.sidebar-widget ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sidebar-widget ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
    text-decoration: none;
    padding: 6px 0;
    transition: var(--transition);
}
.sidebar-widget ul li a:hover { color: var(--navy); padding-left: 8px; }

/* ── Blog Page ── */
.blog-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border);
    color: var(--text-mid);
    background: var(--white);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text-mid);
}
.pagination a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination .current { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); }
.footer-top { padding: 64px 0 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 6px; }
.footer-brand .footer-logo { display: block; margin-bottom: 16px; }
.footer-brand .logo-speak { color: var(--white); }
.footer-brand .logo-australia { color: var(--gold-light); }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 20px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Admin Notice ── */
.admin-bar {
    background: var(--gold);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-bar a { color: var(--white); font-weight: 700; margin-left: 8px; }

/* ── Notice / Alert ── */
.notice {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid;
}
.notice-success { background: #d4edda; border-color: #28a745; color: #155724; }
.notice-error   { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.notice-info    { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; }

/* ── Homepage Category Cards ── */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.category-card-icon { font-size: 2.4rem; margin-bottom: 12px; }
.category-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--navy);
        z-index: 9999;
        overflow-y: auto;
        padding: 80px 24px 40px;
        flex-direction: column;
    }
    .main-nav.open { display: flex; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
    .nav-link { width: 100%; padding: 14px 0; font-size: 1rem; color: var(--white); background: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.05); border-radius: var(--radius); margin: 8px 0 12px; padding: 4px 0; display: none; opacity: 1; transform: none; }
    .dropdown-menu.open { display: block; }
    .dropdown-menu a { color: rgba(255,255,255,0.75); padding: 10px 20px; }
    .dropdown-menu a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
    .hero { padding: 56px 0 64px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .blog-filters { gap: 8px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .pagination a, .pagination span { width: 36px; height: 36px; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.no-results { text-align: center; padding: 60px 20px; color: var(--text-mid); }
.no-results h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 12px; }

/* Coming soon */
.coming-soon-badge {
    display: inline-block;
    background: var(--cream);
    border: 1px dashed var(--border);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: 8px;
}
