/* ============================================
   Garmont brand overrides
   Loaded AFTER plugins.css and style.css
   Only contains Garmont-specific color, button, and accent overrides.
   ============================================ */

:root {
    --garmont-bg: #0F0F11;
    --garmont-text: #F5F5F2;
    --garmont-gold: #C9A961;
    --garmont-muted: #7A7A82;
}

/* === Brand color overrides === */

/* Buttons — gold accent on hover */
.c-btn,
.button-link {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.c-btn:hover span,
.button-link:hover span {
    color: var(--garmont-gold) !important;
}

/* Underlined inline links — gold accent */
.link-underline {
    transition: color 0.3s ease;
}

.link-underline:hover {
    color: var(--garmont-gold) !important;
}

/* Social icons — gold accent on hover */
.social-icon a:hover {
    color: var(--garmont-gold) !important;
}

/* Section dividers — subtle gold */
.dividerOT {
    border-color: rgba(201, 169, 97, 0.2);
}

/* Stat numbers (Events Crafted, Years) — gold */
.about-number-title,
.facts-counter-number {
    color: var(--garmont-gold);
}

/* Section subheading underline — gold */
.section-subheading span::after {
    background-color: var(--garmont-gold);
}

/* Form inputs — gold focus ring */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: var(--garmont-gold) !important;
    outline: none;
}

/* Hero tagline — already inline-styled, but extra safety */
.home-page-title + p {
    color: var(--garmont-gold);
}

/* Skill bar progress — gold */
.skillbar-bar {
    background-color: var(--garmont-gold) !important;
}

/* Service hover heading — gold */
.services-block:hover .service-heading,
.services-block:hover .service-number-title {
    color: var(--garmont-gold);
}

/* Portfolio hover overlay — slightly more gold tint */
.hover-effect {
    background-color: rgba(201, 169, 97, 0.15);
}

/* === Accessibility === */

/* Improve focus visibility for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--garmont-gold);
    outline-offset: 2px;
}

/* Smooth scroll with offset to account for fixed nav */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
@media (max-width: 900px) {
    html { scroll-padding-top: 80px; }
}

/* Prevent accidental horizontal scroll on mobile (template layout leaks ~10px) */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 900px) {
    .introduction,
    .left-side-home .container-home,
    .left-side-home {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix Bootstrap row negative margin leaking past container in mobile */
    #services .row,
    #about .row,
    #works .row,
    #contact .row,
    .garmont-services-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ensure all col-* children stay inside the container */
    #services [class*="col-"],
    #about [class*="col-"],
    #works [class*="col-"],
    #contact [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    /* Give the section container some safe lateral padding */
    .fireOT-left.left-side > .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ============================================
   Garmont services — elegant editorial style
   Replaces the original template's skill-bar layout.
   ============================================ */

.garmont-services-grid {
    margin-top: 24px;
}

.garmont-service {
    position: relative;
    padding: 40px 28px 40px 0;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .garmont-service {
        padding: 48px 56px 48px 0;
    }
}

.garmont-service__num {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--garmont-gold);
    margin-bottom: 20px;
}

.garmont-service__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 2.2vw, 36px);
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.2;
    color: #0F0F11;
    margin: 0 0 24px 0;
}

.garmont-service__divider {
    display: block;
    width: 56px;
    height: 1px;
    background: var(--garmont-gold);
    margin: 0 0 28px 0;
    transition: width 0.4s ease;
}

.garmont-service:hover .garmont-service__divider {
    width: 104px;
}

/* Reset the template's #services p { margin-top: -50px } that was meant for skill bars */
#services p.garmont-service__desc {
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #5b5b63;
    margin: 0;
    padding-left: 0;
    max-width: 480px;
}

/* ============================================
   Garmont global navigation (fixed top, full-width)
   Replaces the original two-column header from the template.
   ============================================ */

/* Hide the original template header/logo/socials — fully replaced by .garmont-nav */
.left-side-home > .header,
.left-side-home > .logo,
.left-side-home > .social-icons-wrapper {
    display: none !important;
}

.garmont-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(15, 15, 17, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.garmont-nav.is-scrolled {
    box-shadow: 0 6px 20px rgba(15, 15, 17, 0.06);
}

.garmont-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 40px;
    gap: 24px;
}

.garmont-nav .garmont-nav__logo {
    position: static;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    width: auto;
    height: auto;
    background: none;
    top: auto;
    left: auto;
}

.garmont-nav .garmont-nav__logo img {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    display: block;
}

@media (max-width: 900px) {
    .garmont-nav .garmont-nav__logo img {
        height: 48px !important;
        max-height: 48px !important;
    }
}

.garmont-nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.garmont-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.garmont-nav__links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0F0F11;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.25s ease;
}

.garmont-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--garmont-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.garmont-nav__links a:hover,
.garmont-nav__links a:focus-visible {
    color: var(--garmont-gold);
}

.garmont-nav__links a:hover::after,
.garmont-nav__links a:focus-visible::after {
    transform: scaleX(1);
}

.garmont-nav__cta {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0F0F11;
    background: var(--garmont-gold);
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.garmont-nav__cta:hover,
.garmont-nav__cta:focus-visible {
    background: #0F0F11;
    color: var(--garmont-gold);
    transform: translateY(-1px);
}

/* Hamburger button (hidden on desktop) */
.garmont-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.garmont-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0F0F11;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.garmont-nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.garmont-nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.garmont-nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile: stacked menu with hamburger */
@media (max-width: 900px) {
    .garmont-nav__inner {
        padding: 12px 20px;
    }
    .garmont-nav__logo img {
        height: 48px;
    }
    .garmont-nav__toggle {
        display: flex;
    }
    .garmont-nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(12px);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px 28px 32px;
        border-bottom: 1px solid rgba(15, 15, 17, 0.06);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.25s ease;
    }
    .garmont-nav__menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .garmont-nav__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .garmont-nav__links li {
        border-bottom: 1px solid rgba(15, 15, 17, 0.06);
    }
    .garmont-nav__links a {
        display: block;
        padding: 16px 0;
        font-size: 14px;
    }
    .garmont-nav__links a::after {
        display: none;
    }
    .garmont-nav__cta {
        margin-top: 20px;
        align-self: flex-start;
    }
}

/* Push hero down so it doesn't sit under fixed nav */
.left-side-home {
    padding-top: 90px;
}
@media (max-width: 900px) {
    .left-side-home {
        padding-top: 72px;
    }
}

/* === Mobile hero: cap image height to a banner so it doesn't fill the whole screen === */
@media (max-width: 900px) {
    /* Cap the home hero image container to a sensible banner height (not 100vh).
       Targets only the hero right-side (the one that's a direct child of body). */
    body > .right-side {
        position: absolute !important;
        width: 100% !important;
        height: 56vh !important;
        min-height: 320px;
        max-height: 460px;
        top: 72px !important;
        right: 0 !important;
        left: 0 !important;
    }

    .home-img-container {
        height: 100% !important;
    }

    .home-img-container .slick-list,
    .home-img-container .slick-track,
    .home-img-container .slide-img {
        height: 100% !important;
    }

    .home-img-container .slide-img img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    /* Push the text block (left-side-home) below the banner */
    .left-side-home {
        padding-top: calc(72px + 56vh + 24px);
        padding-bottom: 32px;
        min-height: auto;
    }
    .left-side-home .container-home {
        padding: 24px 0 8px 0;
    }

    /* Cap the calculated padding when banner reaches its max-height */
    @media (min-height: 880px) {
        .left-side-home {
            padding-top: calc(72px + 460px + 24px);
        }
    }
    @media (max-height: 580px) {
        .left-side-home {
            padding-top: calc(72px + 320px + 24px);
        }
    }

    /* Slider description over the image, anchored to bottom */
    .right-side .slider {
        position: absolute !important;
        bottom: 20px;
        left: 0;
        right: 0;
        width: 100% !important;
        height: auto !important;
        z-index: 5;
        padding: 0 24px;
        pointer-events: none;
    }

    .right-side h2,
    .right-side .slide h2 {
        font-size: 22px !important;
        line-height: 1.25;
        max-width: 100%;
    }
    .right-side p,
    .right-side .slide p {
        max-width: 100% !important;
        font-size: 12px;
    }
    .right-side .slick-arrow {
        bottom: 16px !important;
        z-index: 6;
    }
}

/* Hero CTA button (left-side) — override template's white-on-mobile color */
@media (max-width: 900px) {
    a.button-link.button-link-home,
    a.button-link.button-link-home i {
        color: #0F0F11 !important;
    }
    a.button-link.button-link-home:before {
        background-color: #0F0F11 !important;
    }
    a.button-link.button-link-home:hover,
    a.button-link.button-link-home:hover i {
        color: var(--garmont-gold) !important;
    }
    a.button-link.button-link-home:hover:before {
        background-color: var(--garmont-gold) !important;
    }
}

/* Hero tagline restyle (replaces the giant "Garmont." H1) */
.home-eyebrow {
    color: var(--garmont-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

h1.home-page-title.home-page-title--tagline {
    font-size: clamp(32px, 3.4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: #0F0F11;
    text-transform: none;
    overflow-wrap: break-word;
    hyphens: auto;
    padding-right: 12px;
    margin: 0 0 24px 0;
}

@media (max-width: 1280px) {
    h1.home-page-title.home-page-title--tagline {
        font-size: clamp(28px, 3.2vw, 44px);
    }
}

@media (max-width: 900px) {
    h1.home-page-title.home-page-title--tagline {
        font-size: clamp(28px, 7vw, 42px);
    }
}

/* ============================================
   Garmont social / Follow section
   Lives between Portfolio (#works) and Contact
   ============================================ */

.garmont-social-intro {
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #5b5b63;
    margin: 16px 0 8px 0;
    max-width: 560px;
}

/* Instagram-style grid: 3x2 desktop, 3x2 tablet, 2x3 mobile */
.garmont-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0;
}

@media (max-width: 640px) {
    .garmont-ig-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.garmont-ig-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f4f4;
    transition: transform 0.4s ease;
}

.garmont-ig-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.garmont-ig-tile:hover img {
    transform: scale(1.06);
}

.garmont-ig-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.0), rgba(15, 15, 17, 0.55));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.garmont-ig-tile:hover .garmont-ig-tile__overlay,
.garmont-ig-tile:focus-visible .garmont-ig-tile__overlay {
    opacity: 1;
}

.garmont-ig-tile__icon {
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    border-radius: 8px;
    position: relative;
}
.garmont-ig-tile__icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
}
.garmont-ig-tile__icon::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

/* Follow CTAs (Instagram + Facebook) */
.garmont-follow-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 8px 0;
}

.garmont-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px 16px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease;
    color: #fff;
    background: #0F0F11;
    flex: 1 1 auto;
    min-width: 240px;
}

.garmont-follow-btn:hover,
.garmont-follow-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 15, 17, 0.18);
    color: #fff;
}

.garmont-follow-btn--ig {
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
.garmont-follow-btn--ig:hover {
    background: linear-gradient(135deg, #ffd54a 0%, #ff3c8a 50%, #7a3ce8 100%);
}

.garmont-follow-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    flex-shrink: 0;
}

.garmont-follow-btn__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.garmont-follow-btn__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.garmont-follow-btn__handle {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
}

@media (max-width: 640px) {
    .garmont-follow-ctas {
        flex-direction: column;
        gap: 12px;
    }
    .garmont-follow-btn {
        min-width: 0;
        width: 100%;
    }
}

/* === Inline contact form (moved out of modal) === */
.garmont-form-intro {
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #5b5b63;
    margin: 0 0 28px 0;
    max-width: 560px;
}

#contact #contact-form.garmont-form {
    width: 100%;
    max-width: 760px;
    margin: 8px 0 32px 0;
    padding: 0;
    text-align: left;
    line-height: 1.4;
}

#contact #contact-form.garmont-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
    margin: 0;
}

#contact #contact-form.garmont-form form > div {
    flex: 1 1 calc(50% - 10px);
    min-width: 240px;
    padding: 0;
    margin: 0;
}

#contact #contact-form.garmont-form form > .make-space,
#contact #contact-form.garmont-form form > div:last-of-type {
    flex: 1 1 100%;
}

#contact #form input,
#contact #form select,
#contact #form textarea {
    position: relative;
    width: 100%;
    height: 48px;
    background: #fafafa;
    border: 1px solid rgba(15, 15, 17, 0.12);
    border-bottom: 1px solid rgba(15, 15, 17, 0.12);
    border-radius: 4px;
    padding: 12px 16px;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #0F0F11;
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease;
    box-shadow: none;
}

#contact #form textarea {
    height: 140px;
    resize: vertical;
    padding-top: 14px;
}

#contact #form input::placeholder,
#contact #form textarea::placeholder {
    color: #9a9aa3;
    font-weight: 400;
}

#contact #form input:hover,
#contact #form select:hover,
#contact #form textarea:hover {
    border-color: rgba(15, 15, 17, 0.25);
    background: #f4f4f4;
}

#contact #form input:focus,
#contact #form select:focus,
#contact #form textarea:focus {
    outline: none;
    border-color: var(--garmont-gold) !important;
    background: #fff;
}

#contact #form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235b5b63' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 10px 7px;
    padding-right: 40px;
}

#contact #form #submit.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0F0F11;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 18px 38px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    width: auto;
    height: auto;
}

#contact #form #submit.c-btn:hover {
    background: var(--garmont-gold);
    color: #0F0F11;
    transform: translateY(-1px);
}
#contact #form #submit.c-btn:hover span {
    color: #0F0F11 !important;
}

#contact #form #submit.c-btn span {
    color: #fff !important;
    font-size: 13px;
}

/* === Form result message === */
#form-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}
#form-result.is-success {
    display: block;
    background: rgba(201, 169, 97, 0.15);
    color: #C9A961;
    border: 1px solid #C9A961;
}
#form-result.is-error {
    display: block;
    background: rgba(200, 60, 60, 0.1);
    color: #c83c3c;
    border: 1px solid #c83c3c;
}
