/*
Theme Name: Wishbar Studio
Theme URI: https://wishbarstudio.com
Author: Wishbar Studio
Author URI: https://wishbarstudio.com
Description: Custom theme for Wishbar Studio - a design agency website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wishbar
*/

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: 'Glinster';
    src: url('assets/fonts/glinster.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Brandon Grotesque loaded via Adobe Typekit (see functions.php) */

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'brandon-grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: #404142;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Glinster', Georgia, serif;
    font-weight: 400;
    line-height: 0.91;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 700;
    font-size: 18.74px;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    border-radius: 43px;
    padding: 16px 36px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    border: 0.937px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--white {
    background: #fff;
    color: #006bff;
    border-color: #fff;
    box-shadow: 0 4px 4px rgba(0,0,0,0.11);
}

.btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.btn--outline-white:hover {
    background: #fff;
    color: #006bff;
}

.btn--outline-dark {
    background: transparent;
    color: #404142;
    border-color: #404142;
    border-radius: 24px;
    padding: 9px 28px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.btn--outline-dark:hover {
    background: #404142;
    color: #006bff;
}

.btn--small {
    font-size: 16px;
    padding: 9px 24px;
    border-radius: 24px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 45px 0 30px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 90px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-menu a {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.67px;
    text-transform: uppercase;
    color: #fff;
    transition: opacity 0.2s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-cta {
    margin-left: 20px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 830px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('assets/images/hero-gradient.svg') center top / cover no-repeat;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 140px 40px 80px;
}

.hero__title {
    font-family: 'Glinster', Georgia, serif;
    font-size: 75px;
    line-height: 1.07;
    color: #fff;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.8px;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 40px;
}

.hero__subtitle em {
    font-style: italic;
}

.hero__subtitle strong {
    font-weight: 700;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scrolling ticker */
.hero__ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.75);
    padding: 16px 0;
    overflow: hidden;
}

.hero__ticker-track {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.hero__ticker-item {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    color: #fff;
}

.hero__ticker-divider {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.hero__ticker-divider svg {
    width: 100%;
    height: 100%;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Our Story Section
   ========================================================================== */

.our-story {
    padding: 80px 0 100px;
    overflow: hidden;
}

.our-story .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.our-story__visual {
    flex-shrink: 0;
    position: relative;
    width: 425px;
    height: 500px;
}

.our-story__arch {
    width: 100%;
    height: 100%;
    background: #006bff;
    border-radius: 212.5px 212.5px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    position: relative;
}

.our-story__arch::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 3px solid #b4b1fe;
    border-radius: 200px 200px 0 0;
    pointer-events: none;
}

.our-story__stat {
    font-family: 'Glinster', Georgia, serif;
    font-size: 64px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2.56px;
    line-height: 1;
    text-align: center;
}

.our-story__stat-label {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.72px;
    color: #fff;
    margin-top: 8px;
}

.our-story__content {
    flex: 1;
}

.our-story__label {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.64px;
    color: #f2629c;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.our-story__label svg {
    width: 14px;
    height: 14px;
}

.our-story__title {
    font-family: 'Glinster', Georgia, serif;
    font-size: 60px;
    line-height: 0.91;
    color: #404142;
    margin-bottom: 32px;
}

.our-story__text {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 500;
    font-size: 18.74px;
    letter-spacing: 0.75px;
    color: #404142;
    line-height: 1.6;
    max-width: 407px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    background: #fefaf9;
    padding: 80px 0 100px;
}

.services__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.services__title {
    font-family: 'Glinster', Georgia, serif;
    font-size: 60px;
    line-height: 0.91;
    color: #404142;
}

.services__header-right {
    text-align: right;
}

.services__header-text {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.72px;
    color: #404142;
    margin-bottom: 16px;
    line-height: 1.5;
}

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

.service-card {
    background: #fff;
    border: 1px solid #c2c0bf;
    border-radius: 10px;
    padding: 40px 24px 30px;
    position: relative;
    min-height: 379px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #006bff, #b060e0, #f2629c, #ea8d01);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    background: radial-gradient(ellipse at center, rgba(242,98,156,0.04) 0%, rgba(242,98,156,0.08) 100%);
    border-color: rgba(242, 98, 156, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-card__tag {
    border-color: rgba(242, 98, 156, 0.5);
    border-width: 2px;
}


.service-card__name {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #404142;
    margin-bottom: 24px;
}

.service-card--featured .service-card__name {
    font-weight: 700;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
}

.service-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #000;
    border-radius: 5px;
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.64px;
    color: #404142;
    white-space: nowrap;
}

.service-card__arrow {
    display: block;
    margin-top: 20px;
    font-size: 20px;
    line-height: 1;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects {
    padding: 80px 0 100px;
}

.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.projects__title {
    font-family: 'Glinster', Georgia, serif;
    font-size: 60px;
    line-height: 0.91;
    color: #404142;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.project-card {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    height: 407px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-card__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay for cards without images */
.project-card--gradient {
    background: linear-gradient(218deg, #f2629c 3%, #ea8d01 125%);
}

/* Dark overlay for readability */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
    z-index: 1;
}

.project-card__content {
    position: relative;
    z-index: 2;
}

.project-card__title {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 10px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-card__tags {
    opacity: 1;
    transform: translateY(0);
}

.project-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.64px;
    color: #fff;
}

.project-card__arrow {
    display: block;
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card__arrow {
    opacity: 1;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        135deg,
        #f2629c 0%,
        #e85d3a 25%,
        #ea8d01 50%,
        #f5a623 75%,
        #f2629c 100%
    );
}

.cta__bg svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: 'Glinster', Georgia, serif;
    font-size: 60px;
    line-height: 0.91;
    color: #fff;
    margin-bottom: 24px;
    max-width: 591px;
    margin-left: auto;
    margin-right: auto;
}

.cta__text {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.72px;
    color: #fff;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #fff;
    padding: 50px 0;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    height: 118px;
    width: auto;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 45px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    color: #404142;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .hero__title {
        font-size: 55px;
    }

    .our-story .container {
        flex-direction: column;
        text-align: center;
    }

    .our-story__visual {
        width: 320px;
        height: 380px;
    }

    .our-story__arch::after {
        border-radius: 150px 150px 0 0;
    }

    .our-story__title {
        font-size: 45px;
    }

    .our-story__text {
        max-width: 100%;
    }

    .our-story__label {
        justify-content: center;
    }

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

    .services__title {
        font-size: 45px;
    }

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

    .projects__grid .project-card:nth-child(2) {
        height: 407px;
    }

    .projects__title {
        font-size: 45px;
    }

    .cta__title {
        font-size: 45px;
    }

    .footer-nav {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Mobile nav */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.9);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-cta {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 700px;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__ticker-item {
        font-size: 14px;
    }

    .our-story__visual {
        width: 260px;
        height: 320px;
    }

    .our-story__arch::after {
        border-radius: 120px 120px 0 0;
    }

    .our-story__stat {
        font-size: 44px;
    }

    .our-story__title {
        font-size: 36px;
    }

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

    .services__title {
        font-size: 36px;
    }

    .services__header {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .services__header-right {
        text-align: center;
    }

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

    .projects__title {
        font-size: 36px;
    }

    .project-card {
        height: 350px;
    }

    .cta__title {
        font-size: 36px;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 16px;
        font-size: 15px;
    }

    .footer-nav a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 32px;
    }

    .our-story__title {
        font-size: 30px;
    }

    .services__title,
    .projects__title,
    .cta__title {
        font-size: 30px;
    }
}
