/*
 * Starcastle Solutions — site styles.
 *
 * Colours, typography and spacing are taken from the Elementor stylesheets in
 * the WordPress export (post-10 kit, post-1489 page, post-2613 header,
 * post-2637 footer) so the Laravel build matches the original design.
 */

:root {
    --orange: #ffa500;
    --ink: #000000;
    --white: #ffffff;
    --deep: #09272f;
    --deeper: #001317;
    --muted: #ababab;
    --line: #95959573;

    --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Inter", "Roboto", system-ui, sans-serif;
    --font-ui: "Poppins", "Roboto", system-ui, sans-serif;

    --container: 1140px;
    --header-h: 96px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Anchor links must clear the fixed header. */
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 500;
    line-height: 1.25;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* Shared bits ------------------------------------------------------------ */

.eyebrow {
    font-size: 16px;
    font-weight: 400;
    color: var(--orange);
    word-spacing: 0.2px;
}

.eyebrow--upper {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-head--center {
    align-items: center;
    text-align: center;
}

.section-head__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    word-spacing: 2px;
}

.section-head__title--light {
    color: var(--white);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.btn--primary {
    padding: 14px 35px;
    background: var(--orange);
    color: var(--white);
    border-color: var(--deeper);
    border-radius: 5px;
    box-shadow: 0 0 1px 0 rgb(255 255 255 / 0.5);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--deeper);
    border-color: var(--orange);
    color: var(--white);
}

.btn--lg {
    padding: 16px 40px;
    border-color: var(--orange);
}

.btn--pulse:hover {
    animation: pulse-grow 0.6s ease-in-out;
}

@keyframes pulse-grow {
    50% { transform: scale(1.06); }
}

/* Outlined white buttons used in the About section. */
.btn--outline {
    flex-direction: row-reverse;
    padding: 13px 28px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    text-transform: uppercase;
    border: 2px solid var(--orange);
    border-radius: 1px;
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--orange);
}

.btn--submit {
    padding: 14px 40px;
    font-size: 18px;
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
    border-radius: 22px;
}

.btn--submit:hover,
.btn--submit:focus-visible {
    background: transparent;
    color: var(--orange);
}

/* Header ----------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 333;
    background: transparent;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-stuck {
    background: var(--deeper);
    box-shadow: 0 2px 18px rgb(0 0 0 / 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-h);
}

.site-header__brand img {
    width: auto;
    max-height: 66px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding: 6px 2px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--white);
    transition: color 0.3s;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--orange);
}

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

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__actions .btn--primary {
    padding: 11px 35px;
}

.nav-toggle {
    display: none;
    padding: 10px 14px;
    font-size: 20px;
    color: var(--white);
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* Off-canvas drawer ------------------------------------------------------ */

.off-canvas {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgb(0 0 0 / 0.6);
}

.off-canvas[hidden] {
    display: none;
}

.off-canvas__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    width: min(320px, 85vw);
    height: 100%;
    margin-left: auto;
    padding: 28px 26px;
    background: var(--deeper);
    animation: slide-in 0.3s ease;
    overflow-y: auto;
}

@keyframes slide-in {
    from { transform: translateX(100%); }
}

.off-canvas__close {
    align-self: flex-end;
    font-size: 22px;
    color: var(--white);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.off-canvas__brand img {
    max-height: 60px;
}

.off-canvas nav ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.off-canvas nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.off-canvas nav a:hover {
    color: var(--orange);
}

/* Hero ------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--header-h) + 30px) 0 30px;
    background-color: var(--deep);
    background-image: var(--hero-bg);
    background-position: bottom center;
    background-size: cover;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    opacity: 0.55;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 720px;
}

.hero__title {
    font-size: clamp(30px, 4.6vw, 45px);
    line-height: 1.22;
    color: var(--white);
}

.hero__text {
    font-size: 16px;
    color: var(--white);
}

.hero__content .btn {
    margin-top: 8px;
}

/* About ------------------------------------------------------------------ */

.about {
    padding: 80px 0;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: center;
}

.about__media img {
    width: 100%;
    border-radius: 50px;
}

.about__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 35px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
}

.about__text,
.about__note {
    font-size: 17px;
    line-height: 30px;
    color: var(--ink);
}

.about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

/* Services --------------------------------------------------------------- */

.services {
    position: relative;
    padding: 70px 0;
    background-image: var(--services-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    isolation: isolate;
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    opacity: 0.55;
}

.services .section-head {
    padding-bottom: 50px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.service-card {
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);
}

.service-card__inner {
    display: flex;
    gap: 15px;
    height: 100%;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--white);
    transition: border-color 0.3s;
}

.service-card__inner:hover,
.service-card__inner:focus-visible {
    border-color: var(--orange);
    border-radius: 1px;
}

.service-card__icon {
    flex: 0 0 auto;
    font-size: 42px;
    line-height: 1;
    color: var(--orange);
    transition: color 0.3s;
}

.service-card__inner:hover .service-card__icon {
    color: var(--ink);
}

/* The original card title was 28px against "Lorem ipsum"; scaled down so the
   real service names wrap cleanly in a three-up grid. */
.service-card__title {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 500;
    color: var(--orange);
}

.service-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
}

/* Fun facts -------------------------------------------------------------- */

.funfacts {
    position: relative;
    padding: 80px 0;
    background-color: var(--deeper);
    background-image: var(--funfacts-bg);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.funfacts::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--deeper);
    opacity: 0.86;
}

.funfacts__map {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--funfacts-map);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.12;
    pointer-events: none;
}

.funfacts .section-head {
    max-width: 780px;
    margin-inline: auto;
    padding-bottom: 50px;
}

.funfacts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.funfact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 18px;
    text-align: center;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.04);
    transition: border-color 0.3s, transform 0.3s;
}

.funfact:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.funfact__icon {
    font-size: 40px;
    line-height: 1;
    color: var(--orange);
}

.funfact__value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--orange);
}

.funfact__label {
    font-size: 16px;
    color: var(--white);
}

.funfacts__footnote {
    max-width: 720px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 16px;
    color: var(--white);
}

/* Why choose us ---------------------------------------------------------- */

.why {
    padding: 30px;
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
}

.why__media img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.why__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why__title {
    font-size: clamp(30px, 4vw, 48px);
    color: var(--orange);
}

.why__text {
    font-size: 16px;
    color: var(--ink);
}

.tick-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tick-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
}

.tick-list i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 17px;
    color: var(--orange);
}

.why__body .btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* Contact ---------------------------------------------------------------- */

.contact {
    position: relative;
    padding: 70px 0;
    background-image: var(--contact-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    isolation: isolate;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    opacity: 0.49;
}

.contact .section-head {
    padding-bottom: 40px;
}

.contact__title {
    font-size: clamp(28px, 3.6vw, 40px);
    color: var(--orange);
}

.contact__lead {
    max-width: 56%;
    font-size: 16px;
    color: var(--white);
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: start;
}

.contact__panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 22px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card > a,
.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-card {
    padding: 12px;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 22px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.info-card:hover {
    border-color: var(--orange);
    box-shadow: 0 0 10px 0 rgb(255 255 255 / 0.5);
}

.info-card__icon {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    color: var(--orange);
}

.info-card__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--orange);
    overflow-wrap: anywhere;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-list a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.social-list--tinted a {
    background: rgb(255 255 255 / 0.07);
    color: var(--orange);
    border-radius: 4px;
}

.social-list--tinted a:hover {
    background: var(--white);
}

.social-list--outline a {
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 22px;
}

.social-list--outline a:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.map-embed {
    overflow: hidden;
    border-radius: 4px;
}

.map-embed iframe {
    display: block;
    width: 100%;
    border: 0;
}

.map-embed--contact iframe {
    height: 187px;
    filter: brightness(61%) blur(0.5px);
    transition: filter 0.3s;
}

.map-embed--contact:hover iframe {
    filter: none;
}

.map-embed--footer iframe {
    height: 150px;
}

/* Contact form ----------------------------------------------------------- */

.contact__form-wrap {
    padding: 10px;
}

.contact__form-title {
    margin-bottom: 20px;
    font-size: clamp(28px, 3.8vw, 45px);
    color: var(--white);
}

.contact-form__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 17px;
}

.field {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field--half {
    grid-column: span 1;
}

.field label {
    font-size: 16px;
    color: var(--orange);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--white);
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 22px;
    outline-offset: 2px;
}

.field textarea {
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--orange);
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "\f078";
    position: absolute;
    top: 50%;
    right: 18px;
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 12px;
    color: var(--line);
    transform: translateY(-50%);
    pointer-events: none;
}

.field select {
    appearance: none;
    padding-right: 42px;
}

/* Native option lists render on the OS surface, so keep them readable. */
.field select option {
    color: var(--ink);
    background: var(--white);
}

.contact-form .btn--submit {
    margin-top: 26px;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
}

.alert ul {
    margin-top: 6px;
    padding-left: 18px;
    list-style: disc;
}

.alert--success {
    color: #0d3b1e;
    background: #d8f5e3;
    border: 1px solid #2f9e5f;
}

.alert--error {
    color: #4d0f0f;
    background: #fbdada;
    border: 1px solid #c0392b;
}

/* Closing call to action -------------------------------------------------- */

.cta {
    padding: 40px 0;
}

.cta__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 10px;
    padding: 20px;
    text-align: center;
    border-radius: 22px;
    box-shadow: 0 0 10px 0 rgb(124 124 124 / 0.5);
}

.cta__title {
    font-size: clamp(24px, 3.2vw, 35px);
    color: var(--ink);
}

.cta__text {
    max-width: 86%;
    font-size: 16px;
    color: var(--ink);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
    position: relative;
    padding-top: 70px;
    background-color: var(--deeper);
    background-image: var(--footer-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    isolation: isolate;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    opacity: 0.79;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr;
    gap: 30px;
    padding-bottom: 40px;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__col h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--orange);
}

.site-footer__brand img {
    max-width: 190px;
}

.site-footer__col p {
    font-size: 15px;
    color: var(--white);
}

.site-footer__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__menu a {
    font-size: 17px;
    color: var(--white);
    transition: color 0.3s;
}

.site-footer__menu a:hover {
    color: var(--orange);
}

.icon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--white);
    overflow-wrap: anywhere;
}

.icon-list i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--white);
    transition: color 0.3s;
}

.icon-list li:hover i,
.icon-list a:hover {
    color: var(--orange);
}

.site-footer__location {
    font-size: 17px;
    color: var(--white);
    transition: color 0.3s;
}

.site-footer__location:hover {
    color: var(--orange);
}

.site-footer__bar {
    padding: 18px 0;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    text-align: center;
}

.site-footer__bar p {
    font-size: 14px;
    color: var(--white);
}

/* Back to top ------------------------------------------------------------ */

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Entrance animation ------------------------------------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-header__actions .btn--primary {
        padding: 10px 24px;
        font-size: 14px;
    }

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

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

    .why__media img {
        height: 380px;
    }

    .why__title {
        font-size: 35px;
    }

    .contact__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact__lead {
        max-width: 100%;
    }

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

@media (max-width: 767px) {
    :root {
        --header-h: 80px;
    }

    .about,
    .funfacts {
        padding: 50px 0;
    }

    .about__grid,
    .why__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about__media {
        order: -1;
    }

    .services__grid,
    .funfacts__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .why {
        padding: 30px 0;
    }

    .why__media img {
        height: 280px;
    }

    .why__title {
        font-size: 30px;
    }

    .contact-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .field--half {
        grid-column: 1 / -1;
    }

    .cta__text {
        max-width: 100%;
        font-size: 14px;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-header__brand img {
        max-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
