:root {
    --bg: #3a0908;
    --bg2: #800000;
    --panel: #7a0b07;
    --panel2: #9b0f06;
    --text: #fff8ee;
    --muted: #eed9b9;
    --accent: #d53e0f;
    --accent2: #9b0f06;
    --accent-soft: #eed9b9;
    --border: rgba(238,217,185,0.16);
    --border-strong: rgba(238,217,185,0.30);
    --shadow: 0 16px 40px rgba(0,0,0,0.38);
    --radius: 20px;
    --maxw: 1150px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(238,217,185,0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(213,62,15,0.12), transparent 26%),
        linear-gradient(180deg, #3a0908 0%, #800000 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--maxw), calc(100% - 32px));
    margin: 0 auto;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 2000;
    background: linear-gradient(90deg, #eed9b9, #d53e0f, #9b0f06);
    box-shadow: 0 0 14px rgba(208,176,144,0.40);
}

/* Services Page Cards */
.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.15));
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    text-align: left; /* Ensures all content aligns left */
    display: flex;
    flex-direction: column;
}

/* Service Titles */
.service-card h3 {
    margin: 0 0 18px;
    line-height: 1.3;
    text-align: left;
    color: var(--text);
}

/* Service Lists */
.service-card .check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card .check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    text-align: left;
}

/* Tick Icons */
.service-card .check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #eed9b9;
    font-weight: bold;
}

/* Override any inherited centering from global styles */
.service-card,
.service-card h3,
.service-card p,
.service-card ul,
.service-card li {
    text-align: left !important;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .service-card {
        padding: 24px;
    }

    .service-card h3 {
        font-size: 20px;
    }
}

.service-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card h3 {
    margin: 0 0 18px;
    line-height: 1.25;
    text-align: center;
}

.service-card .check-list {
    margin: 0;
    padding: 0;
}

.service-card .check-list li {
    text-align: center;
}

.brand-highlight {
    font-size: 64px; /* Adjust as needed */
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap; /* Keeps text on one line */
    line-height: 1.1;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #5e0006, #9b0f06);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(208,176,144,0.18);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 86px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    padding: 4px 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    flex-shrink: 0;
}

.logo-mark img {
    height: 78px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff8ee;
    line-height: 1.1;
}

.logo-tag {
    margin-top: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f7e8d1;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

nav a {
    color: rgba(255,255,255,0.88);
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 7px;
    height: 2px;
    background: linear-gradient(90deg, #eed9b9, #eed9b9);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    border-radius: 999px;
}

nav a.active {
    color: #fff8ee;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(208,176,144,0.24);
    box-shadow: 0 0 16px rgba(94,0,6,0.24);
}

nav a.active::after,
nav a:hover::after {
    transform: scaleX(1);
}

nav a:hover {
    color: #fff8ee;
    background: rgba(255,255,255,0.08);
}

.hero {
    position: relative;
    padding: 80px 0 50px;
    border-bottom: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.28), rgba(0,0,0,0.10)),
        linear-gradient(to top, rgba(58,9,8,0.56), transparent 50%);
    pointer-events: none;
}

.hero .container,
.page-hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.hero-content {
    max-width: 760px;
}

.kicker {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(208,176,144,0.18);
    color: #eed9b9;
    font-size: 0.82rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-sub {
    margin-top: 18px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #f5e6d3;
    max-width: 720px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.34);
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.08;
    margin: 18px 0 16px;
    letter-spacing: -0.03em;
    max-width: 10ch;
    text-shadow: 0 2px 18px rgba(0,0,0,0.40);
}

.page-hero h1 {
    max-width: 14ch;
}

.hero p,
.page-hero p {
    color: #f7e8d1;
    font-size: 1.05rem;
    max-width: 700px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.34);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-title {
    margin: 18px 0 12px;
    font-size: 1.6rem;
    color: #fff8ee;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .hero h1,
    .page-hero h1,
    .hero-title {
        max-width: 100%;
        font-size: 2.6rem;
        line-height: 1.1;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .brand-highlight {
        display: block;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .hero-sub,
    .hero p,
    .page-hero p {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-grid {
        display: block;
    }

    .hero,
    .page-hero {
        min-height: auto !important;
        padding: 70px 0 50px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: bold;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #d53e0f, #9b0f06);
    color: #fff;
    box-shadow: 0 12px 28px rgba(94,0,6,0.30);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(94,0,6,0.36);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(208,176,144,0.16);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(208,176,144,0.28);
}

.btn-gold {
    display: inline-block;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff8ee;
    background: linear-gradient(135deg, #d53e0f, #9b0f06);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d53e0f, #9b0f06);
    transform: translateY(-2px);
}

.hero-card,
.card,
.contact-box,
.content-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid rgba(208,176,144,0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card,
.content-panel {
    padding: 28px;
    backdrop-filter: blur(8px);
}

.hero-card h3,
.content-panel h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.hero-card p,
.card p,
.contact-box p,
.content-panel p,
.section-sub,
.list-muted li {
    color: var(--muted);
}

.hero-list,
.check-list,
.feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.hero-list li,
.check-list li,
.feature-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
}

.hero-list li::before,
.check-list li::before,
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #eed9b9;
    font-weight: bold;
}

.section {
    padding: 70px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading h2,
.content-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 12px 0 10px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 22px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-align: center;
}

.card h3 {
    margin: 0 0 14px;
    line-height: 1.25;
    max-width: 250px;
    text-align: center;
}

.card p {
    margin: 0 0 18px;
    line-height: 1.65;
    max-width: 250px;
    text-align: center;
}

.certificate-center,
.capability-btn {
    width: 100%;
    max-width: 250px;
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.nexus-doc-image {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 22px;
}

.nexus-doc-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 5px;
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nexus-doc-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

/* Mobile fix for document images */
@media (max-width: 768px) {
    .nexus-doc-image {
        height: auto;           /* Allow the container to grow naturally */
        min-height: auto;
        display: block;         /* Prevent flex-related spacing issues */
        margin-bottom: 18px;
        text-align: center;
    }

    .nexus-doc-image img {
        width: 100%;
        max-width: 220px;       /* Slightly smaller for mobile balance */
        height: auto;
        margin: 0 auto;
        display: block;
    }
}

.grid-3 > .card h3 {
    min-height: 64px;
    display: flex;
    align-items: flex-start;
}

.grid-3 > .card p {
    flex-grow: 1;
}

.certificate-center,
.capability-btn,
.flyer-btn {
    text-align: center;
    margin-top: 24px;
}

.certificate-btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff8ee;
    background: linear-gradient(135deg, #d53e0f, #9b0f06);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.certificate-btn:hover {
    background: linear-gradient(135deg, #d53e0f, #9b0f06);
    transform: translateY(-2px);
}

.placeholder-title,
.placeholder-text,
.capability-text {
    color: var(--text);
}

.alt-section {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.025));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
}

.contact-box {
    padding: 24px;
}

.contact-box h3 {
    margin-top: 0;
}

.contact-lines div {
    margin-bottom: 12px;
    color: var(--text);
}

.contact-person {
    margin-bottom: 18px;
    line-height: 1.6;
}

.contact-person strong {
    font-size: 1.05rem;
    color: var(--text);
}

.contact-person a {
    color: #eed9b9;
    text-decoration: none;
}

.contact-person a:hover {
    text-decoration: underline;
}

.contact-form {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font: inherit;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #d8b78d;
}

input:focus,
textarea:focus {
    border-color: rgba(208,176,144,0.72);
    box-shadow: 0 0 0 3px rgba(208,176,144,0.14);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.full-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.form-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.page-hero {
    position: relative;
    padding: 70px 0 50px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.breadcrumbs {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, #5e0006, #9b0f06);
    padding: 30px 0;
    text-align: center;
    color: #f7e8d1;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-content strong {
    color: #eed9b9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-copy {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Directors Section */
.directors-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    flex-wrap: wrap;
    text-align: center;
}

.director-card {
    flex: 0 1 260px;
}

.director-photo img {
    width: 180px;
    height: 210px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #c9a14a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
}

.director-card h3 {
    margin: 10px 0 5px;
    color: #ffffff;
}

.director-title {
    color: #c9a14a;
    font-weight: 600;
    margin: 0;
}

/* Full directors section layout */
.directors-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.director-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

.director-row:last-child {
    margin-bottom: 0;
}

.director-photo {
    flex: 0 0 180px;
}

.director-photo img {
    width: 180px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.director-bio {
    flex: 1;
}

.director-bio h3 {
    margin-bottom: 5px;
}

.director-bio p {
    margin-bottom: 10px;
}

.director-bio p:last-child {
    margin-bottom: 0;
}

/* Feature list */
.feature-list {
    margin: 15px 0 0;
}

.feature-list li {
    color: var(--muted);
    line-height: 1.6;
}

/* Page hero images */
.hero-home {
    background:
        linear-gradient(rgba(58, 9, 8, 0.18), rgba(94, 0, 6, 0.22)),
        url('../images/hero-home.jpg') center center / cover no-repeat;
}

.hero-services {
    background:
        linear-gradient(rgba(58, 9, 8, 0.18), rgba(94, 0, 6, 0.22)),
        url('../images/hero-services.jpg') center center / cover no-repeat;
}

.hero-about {
    background:
        linear-gradient(rgba(58, 9, 8, 0.18), rgba(94, 0, 6, 0.22)),
        url('../images/hero-about.jpg') center center / cover no-repeat;
}

.hero-contact {
    background:
        linear-gradient(rgba(58, 9, 8, 0.18), rgba(94, 0, 6, 0.22)),
        url('../images/hero-contact.jpg') center center / cover no-repeat;
}

@media (max-width: 920px) {
    .hero-grid,
    .grid-3,
    .grid-2,
    .two-col,
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        max-width: none;
    }

    .nexus-doc-image {
        height: 280px;
    }

    .grid-3 > .card h3 {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .directors-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .director-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .director-photo {
        flex: none;
    }

    .director-photo img {
        width: 160px;
        height: auto;
    }

    .nexus-doc-image {
        height: 220px;
    }
}

@media (max-width: 700px) {
    header {
        position: relative;
        top: auto;
        padding: 8px 0;
    }

    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 6px 0;
        min-height: auto;
    }

    .logo {
        justify-content: center;
        text-align: left;
        gap: 12px;
    }

    .logo-mark {
        padding: 2px 0;
    }

    .logo-mark img {
        height: 62px;
    }

    .logo-text {
        align-items: flex-start;
    }

    .logo-name {
        font-size: 1.3rem;
    }

    .logo-tag {
        font-size: 0.72rem;
        letter-spacing: 1.2px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav a {
        padding: 8px 12px;
    }

    .hero,
    .page-hero {
        padding: 55px 0 45px;
        background-position: center center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .container {
        width: min(var(--maxw), calc(100% - 24px));
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    header {
        position: relative;
        top: auto;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
        gap: 14px;
    }

    .logo-mark img {
        height: 48px;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-tag {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }

    nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .hero,
    .page-hero {
        padding: 40px 0 35px;
    }
}

@media (max-width: 768px) {
    .certificate-card .nexus-doc-image,
    .capability-card .nexus-doc-image,
    .flyer-card .nexus-doc-image {
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        margin-bottom: 18px !important;
        text-align: center !important;
    }

    .certificate-card .nexus-doc-image a,
    .capability-card .nexus-doc-image a,
    .flyer-card .nexus-doc-image a {
        display: block !important;
    }

    .certificate-card .nexus-doc-image img,
    .capability-card .nexus-doc-image img,
    .flyer-card .nexus-doc-image img {
        width: 100% !important;
        max-width: 220px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .certificate-card h3,
    .capability-card h3,
    .flyer-card h3 {
        margin-top: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .certificate-card p,
    .capability-card p,
    .flyer-card p {
        position: relative !important;
        z-index: 2 !important;
    }
}