:root {
    --blue: #082f49;
    --nautic: #003b5c;
    --yellow: #d8a21b;
    --black: #111111;
    --white: #ffffff;
    --soft: #f7f4ec;
    --border: #e7e1d2;
}

/* GLOBAL */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    color: var(--black);
    background: var(--white);
    font-size: 18px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

/* HEADER */
.site-header {
    background: #ffffff;
    height: 118px;
    padding: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 50;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    height: 115px !important;
    width: auto !important;
    max-height: none !important;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-weight: bold;
    color: var(--blue);
}

.main-nav a:hover {
    color: var(--yellow);
}

/* HERO */
.hero {
    min-height: 540px;
    background:
        linear-gradient(90deg, rgba(0, 34, 59, 0.86), rgba(0, 59, 92, 0.55)),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
    color: #ffffff;
}

.hero-inner {
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 58px;
    max-width: 850px;
    line-height: 1.06;
    margin: 12px 0 28px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--yellow);
    font-weight: bold;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--yellow);
    color: #111111;
    border: 0;
    border-radius: 999px;
    padding: 14px 26px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
}

.btn.light {
    background: #ffffff;
}

.btn.small {
    padding: 9px 18px;
    font-size: 15px;
}

.text-link {
    color: var(--yellow);
    font-weight: bold;
}

/* LAYOUT */
.page-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

/* COMMON CARDS */
.section-card,
.project-card,
.news-sidebar,
.map-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
    margin: 30px 0;
}

/* WHAT WE OWN */
.own-section {
    width: 100%;
    margin: 50px 0;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e6d6a8;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.own-section h2 {
    font-size: 32px;
    margin: 0 0 16px;
}

.own-intro {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 30px;
}

.own-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.own-card {
    display: block;
    background: #ffffff;
    border: 1px solid #eadcad;
    border-radius: 20px;
    overflow: hidden;
    color: #000000;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.own-card:hover {
    transform: translateY(-6px);
}

.own-img {
    height: 240px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f7f4ec;
}

.own-content {
    padding: 22px;
}

.own-content h3 {
    font-size: 22px;
    margin: 0 0 10px;
}

.own-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 14px;
}

.own-content span {
    color: #b8860b;
    font-weight: bold;
}

/* TEAM */
.team-list {
    margin-top: 25px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    background: var(--soft);
    padding: 20px;
    border-radius: 16px;
}

.team-row img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.team-info h3 {
    font-size: 22px;
    margin: 0 0 10px;
}

.team-info p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* NEWS SIDEBAR */
.news-sidebar {
    position: sticky;
    top: 110px;
}

.news-sidebar h3 {
    margin-top: 0;
}

.news-card {
    border-bottom: 1px solid #eeeeee;
    padding: 16px 0;
}

.news-card:last-child {
    border-bottom: 0;
}

.news-card small {
    color: #777777;
}

.news-card h4 {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.35;
}

.news-card h4 a:hover {
    color: var(--yellow);
}

/* NEWS PAGE */
.news-page {
    max-width: 850px;
    margin: 40px auto;
}

.news-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
}

.news-page .note {
    text-align: center;
    margin-bottom: 25px;
    color: #777777;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--blue), var(--nautic));
    color: #ffffff;
    border-radius: 28px;
    padding: 42px;
    margin: 35px 0;
    text-align: center;
}

/* INNER PAGES */
.page-hero {
    background: linear-gradient(135deg, var(--blue), var(--nautic));
    color: #ffffff;
    padding: 74px 0;
}

.page-hero h1 {
    font-size: 48px;
    margin: 0 0 10px;
}

.narrow {
    max-width: 900px;
}

blockquote {
    border-left: 5px solid var(--yellow);
    padding-left: 20px;
    font-size: 26px;
    color: var(--blue);
}

/* ABOUT PAGE */
.about-page {
    max-width: 980px;
    margin: 40px auto;
}

.about-page p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.about-page blockquote {
    margin-top: 40px;
}

/* PROJECTS */
.projects-section {
    margin-top: 20px;
    margin-bottom: 60px;
}

.projects-section h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    background: var(--soft);
    overflow: hidden;
    padding: 0;
}

.project-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 24px;
    margin-bottom: 14px;
}

.project-content p {
    font-size: 16px;
    line-height: 1.7;
}

/* INVESTOR PAGE */
.investor-page {
    padding-top: 40px;
    padding-bottom: 40px;
}

.investor-intro p,
.investor-text p {
    max-width: 950px;
    font-size: 18px;
    line-height: 1.7;
}

.tradingview-widget-container {
    width: 100%;
    min-height: 560px;
    overflow: hidden;
    border-radius: 18px;
}

#tradingview_cgld {
    width: 100%;
    height: 560px;
}

.stock-widget iframe {
    width: 100%;
    height: 620px;
    border: 1px solid #dddddd;
    border-radius: 18px;
}

.note {
    font-size: 15px;
    color: #666666;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.map-card iframe {
    width: 100%;
    height: 520px;
    border: 0;
    border-radius: 18px;
}

.contact-form,
.admin-form {
    display: grid;
    gap: 14px;
}

.contact-form input,
.contact-form textarea,
.admin-form input,
.admin-form textarea,
.login-card input,
.news-edit input,
.news-edit textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 13px;
    font-family: inherit;
    font-size: 17px;
}

.contact-form textarea,
.admin-form textarea,
.news-edit textarea {
    min-height: 140px;
}

/* ALERTS */
.alert {
    padding: 13px 16px;
    border-radius: 12px;
    margin: 12px 0;
}

.success {
    background: #e8f8ef;
    color: #13592d;
}

.error {
    background: #fdeaea;
    color: #8a1f1f;
}

/* LEGAL */
.legal h2 {
    color: var(--blue);
    margin-top: 34px;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
}

.legal th,
.legal td {
    border: 1px solid #dddddd;
    padding: 10px;
    text-align: left;
}

/* FOOTER */
.footer {
    background: #061f33;
    color: #ffffff;
    margin-top: 70px;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    align-items: start;
}

.footer h4 {
    margin-bottom: 22px;
    font-size: 24px;
    color: #ffffff;
}

.footer p {
    line-height: 1.9;
    color: #ffffff;
}

.footer a {
    display: block;
    margin-bottom: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.16);
    padding: 18px 0;
    margin-top: 40px;
    width: 100%;
    color: #ffffff;
}

/* ADMIN */
.admin-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--nautic));
}

.login-card {
    background: #ffffff;
    padding: 38px;
    border-radius: 24px;
    width: min(430px, 92vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-card form {
    display: grid;
    gap: 14px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel {
    padding-top: 40px;
}

.news-edit {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.danger {
    background: #8a1f1f;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 9px 16px;
    cursor: pointer;
}

/* COOKIE */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e7e1d2;
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.cookie-banner p {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.cookie-btn {
    background: #d8a21b;
    color: #111111;
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

/* TABLET */
@media (max-width: 900px) {
    .page-with-sidebar,
    .own-grid,
    .project-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .tradingview-widget-container {
        min-height: 460px;
    }

    #tradingview_cgld {
        height: 460px;
    }

    .investor-intro p,
    .investor-text p {
        font-size: 16px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .site-header {
        height: auto;
        padding: 4px 0 8px;
    }

    .nav-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 12px;
    }

    .brand {
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .brand img {
        height: 135px !important;
        width: auto !important;
        max-height: none !important;
        object-fit: contain;
    }

    .main-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: center;
        gap: 14px;
        width: 100%;
        margin-top: -22px;
    }

    .main-nav a {
        font-size: 17px;
        line-height: 1;
        white-space: nowrap;
        font-weight: bold;
    }

    .hero {
        min-height: 640px;
    }

    .hero-inner {
        min-height: 640px;
        padding: 38px 0;
        align-items: center;
    }

    .hero h1 {
        font-size: 44px;
        line-height: 1.06;
        margin-bottom: 26px;
    }

    .eyebrow {
        font-size: 15px;
        letter-spacing: 0.1em;
    }

    .btn {
        padding: 14px 28px;
        font-size: 17px;
    }

    .section-card,
    .own-section,
    .news-sidebar,
    .map-card {
        padding: 24px;
        border-radius: 18px;
    }

    .team-row {
        flex-direction: column;
        text-align: center;
    }

    .team-row img {
        width: 100%;
        height: 240px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .cookie-btn {
        width: 100%;
    }
}