/* ==========================================================================
   Odelia Coal Trading — site stylesheet
   --------------------------------------------------------------------------
   One stylesheet for the whole site. To restyle globally, change the
   variables in :root below — colours, fonts and page width all come from
   there. Sections are ordered: base, layout, header, hero, components,
   forms, footer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme variables — change these first
   -------------------------------------------------------------------------- */
:root {
    --brand:        #e3791c;   /* orange accent */
    --brand-hover:  #cc4a02;
    --bg:           #000000;
    --bg-panel:     rgba(9, 9, 9, 0.9);   /* cards */
    --bg-band:      #090909;              /* alternating bands */
    --text:         #9ea6b2;
    --heading:      #ffffff;
    --rule:         rgba(255, 255, 255, 0.2);

    --font:         'Barlow', Arial, Helvetica, sans-serif;
    --container:    1140px;
    --gutter:       20px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--heading);
    text-decoration: none;
    transition: color 250ms ease;
}

a:hover,
a:focus { color: var(--brand); }

h1, h2, h3, h4 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    text-transform: uppercase;
}

h1 { font-size: clamp(34px, 7vw, 64px); letter-spacing: 1px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 20px; color: var(--brand); letter-spacing: 1px; }
h4 { font-size: 17px; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--brand); }

/* Screen-reader-only text */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: 70px 0; }
.section--tight { padding: 45px 0; }
.section--band { background-color: var(--bg-band); }

/* Section with a photographic background */
.section--photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.72) 100%);
}

.section--photo > .container { position: relative; }

.section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.section__head h2 { margin-bottom: 0.25em; }
.section__head h3 { margin-bottom: 0.25em; }

/* Simple responsive grid. Use .grid--2 / --3 / --4 for column counts. */
.grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 700px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Centred orange rule used above section headings */
.rule {
    width: 60px;
    height: 3px;
    background: var(--brand);
    border: 0;
    margin: 0 auto 25px;
}

/* --------------------------------------------------------------------------
   4. Icons
   -------------------------------------------------------------------------- */
.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.icon--feature {
    font-size: 52px;
    color: var(--brand);
    margin: 0 auto 20px;
    display: block;
}

/* --------------------------------------------------------------------------
   5. Header & primary navigation
   -------------------------------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--rule);
    position: relative;
    z-index: 100;
    background: var(--bg);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading);
}

.logo img { height: 60px; width: auto; }

.logo__text {
    display: flex;
    flex-direction: column;
    font-size: 32px;
    line-height: 0.85;
}

.logo__text span { font-size: 16px; }

.nav-toggle {
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    line-height: 0;
}

.nav-toggle .icon { font-size: 30px; stroke-width: 2; }

.nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 99;
    background: #050505;
    border: 1px solid var(--rule);
    border-top: 0;
    min-width: 220px;
}

.nav.is-open { display: block; }

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.nav a {
    display: block;
    position: relative;
    padding: 16px 15px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: all 0.2s ease;
}

.nav a:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--brand-hover);
}

.nav a:hover::after,
.nav a.is-active::after { width: 100%; left: 0; }

.nav a.is-active { color: #fff; }

@media (min-width: 768px) {
    .nav-toggle { display: none; }

    .nav {
        display: block;
        position: static;
        background: none;
        border: 0;
        min-width: 0;
    }

    .nav ul { flex-direction: row; justify-content: flex-end; }
    .nav a { padding: 28px 15px; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    min-height: 460px;
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero > .container { position: relative; }

.hero--home { min-height: 620px; }

.hero__content { max-width: 560px; }

.hero h1 { margin-bottom: 0.15em; }
.hero h2 { margin-bottom: 0.9em; letter-spacing: 1px; }
.hero h3 { margin-bottom: 0.3em; }

@media (min-width: 992px) {
    /* Copy sits in the right half, as on the original site. */
    .hero__content { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background 250ms ease;
}

.btn:hover,
.btn:focus { background: var(--brand-hover); color: #fff; }

.btn--block { display: flex; width: 100%; }

.btn--ghost {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
}

.btn--ghost:hover { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   8. Cards & content blocks
   -------------------------------------------------------------------------- */
.card {
    background: var(--bg-panel);
    padding: 30px;
    height: 100%;
}

.card h2 { margin-bottom: 0.15em; }
.card h3 { margin-bottom: 1em; }

/* BEE Level 2 badge */
.bee {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.bee__label {
    font-size: 22px;
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--heading);
}

.bee__number {
    font-size: 68px;
    font-weight: 700;
    line-height: 0.8;
    color: var(--brand);
}

/* Image + button teaser used on the home page */
.teaser img { width: 100%; }
.teaser .btn { margin-top: 15px; }

/* Contact / location list item */
.info-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
}

.info-item:last-child { border-bottom: 0; }

.info-item .icon {
    font-size: 24px;
    color: var(--brand);
    margin-top: 4px;
}

.info-item__body h4 {
    margin-bottom: 0.2em;
    color: var(--brand);
    letter-spacing: 1px;
}

.info-item__body p { margin: 0; line-height: 1.5; }

.info-item__body a { color: var(--text); }
.info-item__body a:hover { color: var(--brand); }

/* Product card (Get Coal) */
.product {
    background: var(--bg-panel);
    padding: 25px;
    text-align: center;
}

.product img { margin: 0 auto 15px; }
.product h2 { font-size: 24px; margin-bottom: 0.1em; }
.product h3 { font-size: 16px; margin-bottom: 1.2em; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.spec-table th,
.spec-table td { padding: 6px 0; }

.spec-table th + th,
.spec-table td + td { text-align: right; }

.spec-table th {
    color: var(--heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.spec-table tbody tr + tr td { border-top: 1px solid var(--rule); }

/* Definition list (Terminology) */
.terms dt {
    color: var(--brand);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.terms dd {
    margin: 0 0 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}

.terms dd:last-child { border-bottom: 0; margin-bottom: 0; }

/* Client logo grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 700px)  { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }

.logo-grid img {
    width: 100%;
    background: #fff;
    padding: 12px;
}

/* Call-to-action band */
.cta {
    text-align: center;
    padding: 90px 0;
}

.cta h2 { margin-bottom: 0.2em; }
.cta p { margin-bottom: 1.6em; font-size: 19px; }

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.form { max-width: 640px; }

.form__row { margin-bottom: 18px; }

.form label {
    display: block;
    margin-bottom: 6px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rule);
    color: var(--heading);
    font-family: inherit;
    font-size: 16px;
}

.form textarea { min-height: 140px; resize: vertical; }

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 0;
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.1);
}

.form select option { background: #111; }

.form__note {
    font-size: 14px;
    margin-top: 14px;
}

/* Success / error message injected by forms.js after submitting */
.form-status {
    margin: 18px 0 0;
    padding: 14px 18px;
    font-size: 15px;
    border-left: 3px solid var(--brand);
    background: rgba(255, 255, 255, 0.06);
}

.form-status:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

.form-status.is-ok {
    border-left-color: #4c8c00;
    background: rgba(126, 188, 58, 0.15);
    color: #cfe9b0;
}

.form-status.is-error {
    border-left-color: #ba2204;
    background: rgba(186, 34, 4, 0.15);
    color: #f3c3b8;
}

.form button[type="submit"]:disabled { opacity: .6; cursor: default; }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--rule);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.site-footer .nav { display: block; position: static; background: none; border: 0; }
.site-footer .nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.site-footer .nav a { padding: 18px 12px; }
.site-footer .nav a::after { top: 0; bottom: auto; }

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    font-size: 16px;
}

.footer-contact .icon { color: var(--brand); font-size: 18px; }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 14px;
    padding: 15px 0 35px;
}

.footer-legal p { margin: 0; }
.footer-legal a { color: var(--text); }

@media (max-width: 767px) {
    .site-footer__inner,
    .footer-legal { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   11. Scroll-to-top button
   -------------------------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--rule);
    color: #fff;
    z-index: 300;
}

.to-top.is-visible { display: flex; }
.to-top:hover { background: var(--brand); color: #fff; }
.to-top .icon { font-size: 22px; }
