/* Rafstormur — custom overrides on top of the Agency theme.
   Keep this file small; put new styles here rather than touching styles.css. */

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: #ffc800;
    color: #212529;
    font-weight: 700;
    text-decoration: none;
}

*:focus-visible {
    outline: 3px solid #ffc800;
    outline-offset: 2px;
    border-radius: 2px;
}

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

/* --------------------------------------------------------------------------
   Navbar CTA
   -------------------------------------------------------------------------- */
#mainNav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #212529;
}

#mainNav .nav-cta svg {
    flex: 0 0 auto;
}

#mainNav .icon-bars {
    vertical-align: -2px;
    margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   Responsive hero background (smaller asset on narrow viewports)
   -------------------------------------------------------------------------- */
header.masthead {
    background-image: image-set(
        url("../assets/img/background.jpg") 1x,
        url("../assets/img/background.jpg") 2x
    );
}

@media (max-width: 991.98px) {
    header.masthead {
        background-image: url("../assets/img/background-960.jpg");
    }
}

/* Contact section: the original theme referenced a map-image.png that has been
   removed as part of the cleanup. Replace with a clean dark backdrop. */
section#contact {
    background-image: none;
    background-color: #1d2024;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
header.masthead {
    position: relative;
    overflow: hidden;
}

header.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 0;
}

.masthead .container {
    position: relative;
    z-index: 1;
}

.masthead-heading {
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.75rem);
    font-weight: 700;
    margin: 1rem auto 0.5rem;
    max-width: 900px;
    letter-spacing: 0.03em;
}

.masthead-sub {
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto 1.75rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.masthead-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

#masthead-logo {
    max-width: min(420px, 80vw);
    height: auto;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.service-card {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffc800;
    color: #212529;
    margin-bottom: 0.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: #495057;
    font-size: 0.95rem;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: #ffc800;
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-photo {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.team-member h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.team-member a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
}

.team-member a:hover {
    text-decoration-color: #ffc800;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-accordion {
    max-width: 820px;
}

.faq-accordion .accordion-item {
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-accordion .accordion-button {
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #fff8d6;
    color: #212529;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 200, 0, 0.35);
}

.faq-accordion .accordion-body {
    background: #fff;
    color: #495057;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
#contactForm select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23adb5bd' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}

.form-consent {
    font-size: 0.85rem;
}

.form-consent a {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Sticky mobile CTA bar
   -------------------------------------------------------------------------- */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    background: #212529;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
    padding: 0;
}

.mobile-cta__btn {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.6rem 0.25rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    border: none;
    background: transparent;
}

.mobile-cta__btn:hover,
.mobile-cta__btn:focus {
    color: #ffc800;
}

.mobile-cta__btn--primary {
    background: #ffc800;
    color: #212529;
}

.mobile-cta__btn--primary:hover,
.mobile-cta__btn--primary:focus {
    background: #ffd43a;
    color: #212529;
}

.mobile-cta__btn svg {
    display: block;
}

/* Give content room above the fixed bar on mobile so nothing is covered */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 68px;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #212529;
    color: rgba(255, 255, 255, 0.82);
}

.footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer a:hover {
    color: #ffc800;
}

.footer h4 {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.05em;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 2rem 0 1rem;
}

.footer ul li {
    margin-bottom: 0.25rem;
}

.footer .btn-social {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
}

.footer .btn-social:hover {
    background: #ffc800;
    color: #212529;
}

/* --------------------------------------------------------------------------
   Privacy page
   -------------------------------------------------------------------------- */
.privacy-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.privacy-page h1 {
    margin-bottom: 1.5rem;
}

.privacy-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.privacy-page p,
.privacy-page li {
    line-height: 1.7;
    color: #495057;
}

/* --------------------------------------------------------------------------
   No rounded corners — sitewide override (Bootstrap + Agency theme)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    border-radius: 0 !important;
}
