/* =========================================================
   RGIE CONSULTANCY
   Shared website stylesheet
   ========================================================= */

/* ---------- Design variables ---------- */
:root {
    --navy-950: #07172f;
    --navy-900: #0b2345;
    --navy-800: #14345f;
    --blue-600: #1e5fa8;
    --gold-500: #c9a23c;
    --gold-300: #e0c979;

    --white: #ffffff;
    --gray-050: #f8fafc;
    --gray-100: #eef2f6;
    --gray-200: #dce3eb;
    --gray-400: #8a98a8;
    --gray-600: #596879;
    --gray-700: #3e4b5b;
    --gray-900: #172231;

    --shadow-sm: 0 10px 30px rgba(7, 23, 47, 0.08);
    --shadow-md: 0 20px 60px rgba(7, 23, 47, 0.14);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --container: 1180px;
    --transition: 180ms ease;
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--white);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy-950);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h1 {
    max-width: 820px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.65rem, 5vw, 5.25rem);
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3.4vw, 3.45rem);
}

h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

p {
    color: var(--gray-600);
}

.container {
    width: min(calc(100% - 2.5rem), var(--container));
    margin-inline: auto;
}

.section {
    padding: 6.5rem 0;
}

.section-light {
    background: var(--gray-050);
}

.section-dark {
    background:
        radial-gradient(circle at top right, rgba(30, 95, 168, 0.24), transparent 34%),
        var(--navy-950);
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--navy-950);
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold-300);
    outline-offset: 4px;
}

/* ---------- Header and navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(11, 35, 69, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--white);
    background: linear-gradient(145deg, var(--navy-900), var(--blue-600));
    border: 2px solid rgba(201, 162, 60, 0.42);
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.brand-text strong {
    color: var(--navy-950);
    font-size: 1rem;
}

.brand-text small {
    margin-top: 0.24rem;
    color: var(--gray-600);
    font-size: 0.7rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

.primary-nav a {
    color: var(--navy-900);
    font-size: 0.92rem;
    font-weight: 650;
    transition:
        color var(--transition),
        transform var(--transition);
}

.primary-nav a:hover {
    color: var(--blue-600);
}

.primary-nav .nav-button {
    padding: 0.72rem 1rem;
    color: var(--white);
    background: var(--navy-900);
    border-radius: 999px;
}

.primary-nav .nav-button:hover {
    color: var(--white);
    background: var(--blue-600);
    transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 7.2rem 0 6.5rem;
    background:
        linear-gradient(110deg, rgba(248, 250, 252, 0.98), rgba(238, 242, 246, 0.86)),
        radial-gradient(circle at 80% 20%, rgba(201, 162, 60, 0.18), transparent 30%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -190px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(30, 95, 168, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 65px rgba(30, 95, 168, 0.04),
        0 0 0 130px rgba(30, 95, 168, 0.025);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
    gap: 5rem;
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin-bottom: 1rem;
    color: var(--blue-600);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 760px;
    margin-bottom: 2rem;
    font-size: 1.13rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.6rem;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 750;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--navy-900);
    box-shadow: 0 10px 24px rgba(11, 35, 69, 0.18);
}

.button-primary:hover {
    background: var(--blue-600);
    box-shadow: 0 14px 32px rgba(30, 95, 168, 0.23);
}

.button-secondary {
    color: var(--navy-900);
    background: transparent;
    border-color: var(--gray-200);
}

.button-secondary:hover {
    background: var(--white);
    border-color: var(--navy-900);
}

.button-full {
    width: 100%;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 760px;
}

.trust-row div {
    padding-right: 1rem;
    border-right: 1px solid var(--gray-200);
}

.trust-row div:last-child {
    border-right: 0;
}

.trust-row strong,
.trust-row span {
    display: block;
}

.trust-row strong {
    color: var(--navy-950);
    font-size: 1rem;
}

.trust-row span {
    margin-top: 0.25rem;
    color: var(--gray-600);
    font-size: 0.8rem;
    line-height: 1.45;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.visual-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.visual-card-main {
    min-height: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(11, 35, 69, 0.96), rgba(30, 95, 168, 0.84)),
        var(--navy-900);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.visual-card-main::before {
    content: "";
    width: 72px;
    height: 72px;
    margin-bottom: 1.4rem;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 18px;
}

.visual-card-main .placeholder-label {
    color: var(--white);
    font-weight: 800;
}

.visual-card-main p {
    max-width: 310px;
    margin-top: 0.8rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.73);
    font-size: 0.92rem;
}

.visual-card-small {
    position: absolute;
    right: -1.6rem;
    bottom: 0.3rem;
    width: min(310px, 82%);
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1.15rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.mini-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--navy-950);
    background: var(--gold-300);
    border-radius: 50%;
    font-weight: 900;
}

.visual-card-small strong,
.visual-card-small span {
    display: block;
}

.visual-card-small strong {
    color: var(--navy-950);
    font-size: 0.9rem;
}

.visual-card-small span {
    margin-top: 0.2rem;
    color: var(--gray-600);
    font-size: 0.74rem;
    line-height: 1.35;
}

/* ---------- General section layouts ---------- */
.two-column {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6rem;
    align-items: start;
}

.section-copy {
    max-width: 700px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    color: var(--blue-600);
    font-weight: 750;
}

.text-link:hover {
    color: var(--navy-900);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: 3rem;
}

.section-heading > p {
    margin-bottom: 0.4rem;
}

.section-heading-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.68);
}

/* ---------- Service cards ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.service-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 95, 168, 0.34);
    box-shadow: var(--shadow-md);
}

.service-number {
    margin-bottom: 2rem;
    color: var(--gold-500);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.service-card p {
    font-size: 0.94rem;
}

.service-card a {
    margin-top: auto;
    padding-top: 1.1rem;
    color: var(--blue-600);
    font-size: 0.88rem;
    font-weight: 760;
}

.secondary-service {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 4rem;
    align-items: center;
    margin-top: 1.2rem;
    padding: 2rem;
    background: linear-gradient(120deg, var(--gray-050), var(--white));
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.secondary-service h3 {
    margin-bottom: 0;
}

.secondary-service p:last-child {
    margin-bottom: 0;
}

/* ---------- Advantages ---------- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.advantage-grid article {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
}

.advantage-grid article > span {
    display: block;
    margin-bottom: 2rem;
    color: var(--gold-300);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

/* ---------- Projects ---------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.project-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image {
    min-height: 230px;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(145deg, rgba(11, 35, 69, 0.88), rgba(30, 95, 168, 0.72)),
        var(--navy-900);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-image span {
    padding: 0.7rem 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.58);
    border-radius: 999px;
}

.project-content {
    padding: 1.5rem;
}

.project-content p {
    margin-bottom: 0.55rem;
    color: var(--blue-600);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* ---------- Contact ---------- */
.contact-section {
    background:
        radial-gradient(circle at 10% 20%, rgba(201, 162, 60, 0.15), transparent 25%),
        var(--gray-050);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 0.72fr);
    gap: 5rem;
    align-items: center;
}

.contact-card {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-list {
    margin: 1.6rem 0;
}

.contact-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-list div:last-child {
    border-bottom: 0;
}

.contact-list dt {
    color: var(--navy-950);
    font-weight: 750;
}

.contact-list dd {
    margin: 0;
    color: var(--gray-600);
}

.contact-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.78rem;
    text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    padding-top: 4.5rem;
    color: rgba(255, 255, 255, 0.78);
    background: var(--navy-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.55fr 0.85fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.brand-footer .brand-text strong {
    color: var(--white);
}

.brand-footer .brand-text small {
    color: rgba(255, 255, 255, 0.58);
}

.footer-grid > div:first-child > p {
    max-width: 480px;
    margin-top: 1.2rem;
}

.footer-grid h2 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-grid a {
    display: block;
    width: fit-content;
    margin: 0.45rem 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid a:hover {
    color: var(--gold-300);
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.footer-bottom {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 1040px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-visual {
        max-width: 680px;
        width: 100%;
        margin-inline: auto;
    }

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

    .two-column,
    .section-heading,
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .primary-nav {
        width: 100%;
        gap: 0.95rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .primary-nav a {
        white-space: nowrap;
    }

    .hero {
        padding-top: 5rem;
    }

    .two-column,
    .section-heading,
    .secondary-service,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .secondary-service {
        gap: 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.5rem), var(--container));
    }

    .section {
        padding: 4.5rem 0;
    }

    .brand-text small {
        display: none;
    }

    .primary-nav {
        font-size: 0.88rem;
    }

    .primary-nav .nav-button {
        padding: 0.58rem 0.8rem;
    }

    .hero {
        padding: 4rem 0;
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    .trust-row {
        grid-template-columns: 1fr;
    }

    .trust-row div {
        padding-right: 0;
        padding-bottom: 0.85rem;
        border-right: 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .trust-row div:last-child {
        border-bottom: 0;
    }

    .hero-visual {
        min-height: 430px;
    }

    .visual-card-main {
        min-height: 390px;
    }

    .visual-card-small {
        right: 0.5rem;
        bottom: -0.5rem;
    }

    .service-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .contact-grid {
        gap: 2.5rem;
    }

    .contact-list div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 1.2rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ---------- Actual website images ---------- */
.brand-mark { overflow: hidden; padding: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.hero-photo { padding: 0; overflow: hidden; background: var(--gray-100); }
.hero-photo::before { display: none; }
.hero-photo img { width: 100%; height: 470px; object-fit: cover; object-position: center; }
.project-photo { display: block; padding: 0; overflow: hidden; background: var(--gray-100); }
.project-photo img { width: 100%; height: 230px; object-fit: cover; object-position: center; }
@media (max-width: 640px) { .hero-photo img { height: 390px; } }
