/* EDITORIAL PORT CITY DESIGN - NAUTICAL, CLEAN, MINIMALIST */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --primary: #0a192f; /* Deep nautical navy */
    --accent: #d84b20; /* Industrial port rust/orange */
    --bg-color: #fdfdfd;
    --bg-alt: #f0f4f8; /* Light slate sea breeze */
    --text-color: #1a2530;
    --text-light: #5e6b7a;
    --border-color: #cbd5e1;
    --transition: all 0.2s ease;
}

/* WCAG ACCESSIBILITY CLASSES */
.high-contrast {
    --primary: #ffff00 !important;
    --accent: #00ff00 !important;
    --bg-color: #000000 !important;
    --bg-alt: #111111 !important;
    --text-color: #ffffff !important;
    --text-light: #cccccc !important;
    --border-color: #ffff00 !important;
}

body.large-text {
    font-size: 125% !important;
}

body.dyslexia-font, body.dyslexia-font * {
    font-family: 'Comic Sans MS', Arial, sans-serif !important;
    line-height: 2 !important;
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

body.highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 4px !important;
    text-decoration-color: #ff0000 !important;
    background-color: #ffff00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    padding: 2px !important;
}

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

/* FIX STRETCHED IMAGES */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.content-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.img-grid > figure > img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* STRICT HEADER */
header {
    background: var(--bg-color);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* TRANSLATE WIDGET CUSTOMIZED */
.custom-language-selector {
    display: flex;
    gap: 5px;
    align-items: center;
}
.custom-language-selector button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    border-radius: 0;
}
.custom-language-selector button:hover {
    background: var(--primary);
    color: white;
}
#google_translate_element {
    opacity: 0;
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

/* PROGRESS BAR */
#pb {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0%;
    z-index: 9999;
}

/* EDITORIAL HERO SECTION */
.hero {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Lora', serif;
}

/* ARTICLE LAYOUT */
.article-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 100px;
}

/* MINIMAL TOC */
.toc-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: max-content;
    padding-top: 10px;
}

.toc-sidebar h3 {
    margin-bottom: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

#toc ul {
    list-style: none;
}

#toc li {
    margin-bottom: 12px;
}

#toc a {
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

#toc a:hover {
    color: var(--accent);
}

/* CONTENT AREA */
.content {
    flex-grow: 1;
    max-width: 800px;
}

.article-hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
}

.content-img {
    width: 100%;
    height: auto;
    margin: 40px 0;
    display: block;
}

.img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.img-grid > figure > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 1;
}

.content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.meta-info {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: block;
}

.content h2 {
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.content h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-color);
    font-family: 'Lora', serif; /* Elegant serif for long reads */
    line-height: 1.8;
}

.content blockquote {
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 25px;
    margin: 40px 0;
    color: var(--primary);
    font-size: 1.4rem;
    font-family: 'Lora', serif;
    background: var(--bg-alt);
    padding: 30px;
}

figure {
    margin: 40px 0;
}

figure img {
    margin: 0 !important;
}

figcaption {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

figcaption a {
    color: var(--text-light);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

figcaption a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* STRICT EDITORIAL CALCULATOR */
.calculator-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 40px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.calc-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-item label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-inputs {
    display: flex;
    gap: 10px;
}

.calc-item input, .calc-item select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    width: 140px;
    background: white;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
}

.calc-item input:focus {
    outline: none;
    border-color: var(--primary);
}

.total-box {
    margin-top: 30px;
    padding: 20px 0 0 0;
    text-align: right;
}

.total-box h3 {
    color: var(--primary);
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--bg-color);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-align: center;
    border-radius: 0;
}

.btn:hover {
    background: var(--bg-color);
    color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-color);
}

/* PROFESSIONAL COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--bg-color);
    padding: 20px 40px;
    z-index: 10001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btns .btn {
    padding: 10px 20px;
    font-size: 11px;
    border: 1px solid var(--bg-color);
}

.cookie-btns .btn-primary {
    background: var(--bg-color);
    color: var(--primary);
}
.cookie-btns .btn-primary:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* FOOTER */
footer {
    background: var(--primary);
    color: var(--bg-color);
    padding: 60px 0 30px;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--bg-color);
    margin-bottom: 25px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #999999;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #999999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a:hover {
    color: var(--bg-color);
}

.disclaimer {
    text-align: left;
    font-size: 11px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .article-container {
        flex-direction: column;
    }
    .toc-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 40px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
        display: none;
        z-index: 9999;
    }
    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .content h1 {
        font-size: 2.2rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .img-grid {
        grid-template-columns: 1fr;
    }
    .cookie-banner {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 20px;
    }
    .calc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .calc-inputs {
        width: 100%;
    }
    .calc-item input {
        width: 100%;
    }
}

/* ROADMAP PLANNER FORM */
.roadmap-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.roadmap-group label.group-label {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}
.roadmap-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.roadmap-option {
    position: relative;
}
.roadmap-option input {
    display: none;
}
.roadmap-option span {
    display: block;
    padding: 25px 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    background: white;
}
.roadmap-option input:checked + span {
    border-color: var(--accent);
    background: var(--bg-alt);
    color: var(--accent);
}
.roadmap-option span:hover {
    border-color: var(--primary);
}

#roadmap-result {
    display: none;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 4px solid var(--primary);
    animation: slideDown 0.5s ease forwards;
}

.roadmap-day {
    margin-bottom: 50px;
}
.roadmap-day h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
}
.roadmap-day ul {
    list-style: none;
}
.roadmap-day li {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}
.roadmap-day li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 30px;
    width: 10px;
    height: 10px;
    background: var(--primary);
}

body.large-text {
    font-size: 125% !important;
}
body.dyslexia-font, body.dyslexia-font * {
    font-family: 'Comic Sans MS', Arial, sans-serif !important;
    line-height: 2 !important;
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}
body.highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 4px !important;
    text-decoration-color: #ff0000 !important;
    background-color: #ffff00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    padding: 2px !important;
}








/* HEADER AND SEARCH BAR LAYOUT */
.header-top {
    padding: 15px 0;
    background: var(--bg-color);
}
.header-bottom {
    background: var(--bg-alt);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.nav-search-unified {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: white;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    height: 45px;
}
.nav-search-category {
    border: none;
    background: var(--bg-alt);
    padding: 0 15px;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    outline: none;
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    max-width: 180px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.custom-language-selector button.active-lang {
    background: var(--primary);
    color: white;
}
.nav-search-unified input {
    flex: 1;
    border: none;
    padding: 0 20px;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    background: white;
}
.nav-search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.nav-search-btn:hover {
    background: var(--accent);
}
@media (max-width: 768px) {
    .nav-search-unified {
        border-radius: 8px;
        flex-direction: column;
        height: auto;
    }
    .nav-search-category {
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 8px 8px 0 0;
        padding: 12px 15px;
    }
    .nav-search-unified input {
        width: 100%;
        padding: 12px 20px;
    }
    .nav-search-btn {
        width: 100%;
        padding: 15px;
        border-radius: 0 0 8px 8px;
    }
}


/* MODERN CALCULATOR UX */
.num-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    height: 45px;
}
.num-control button {
    background: var(--bg-alt);
    border: none;
    padding: 0 15px;
    height: 100%;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.num-control button:hover {
    background: #e2e8f0;
}
.num-control input {
    width: 50px !important;
    text-align: center;
    border: none !important;
    padding: 0 !important;
    height: 100%;
    font-size: 16px !important;
    font-weight: bold;
    color: var(--primary);
    -moz-appearance: textfield;
}
.num-control input::-webkit-outer-spin-button,
.num-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-badge {
    background: var(--accent);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 800;
    vertical-align: middle;
    white-space: nowrap;
}
.calc-item label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 600px) {
    .calc-inputs {
        flex-direction: row !important;
        width: 100%;
        justify-content: space-between;
    }
    .num-control {
        flex: 1;
        margin-right: 10px;
    }
    .num-control:last-child {
        margin-right: 0;
    }
}
