/* ============================================
   The Brandista Guide — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

/* --- Navigation --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-brand-text {
    color: #1e293b;
}

#navbar.scrolled .nav-link {
    color: #475569;
}

.nav-brand-text {
    color: #1e293b;
    transition: color 0.3s ease;
}

.nav-link {
    color: #475569;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.45);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.3);
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #0d9488;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- Hero Animations --- */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }
.hero-anim:nth-child(5) { animation-delay: 0.6s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Reveal Animations (below fold) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Service Cards --- */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card:hover .w-14 {
    transform: scale(1.05) rotate(-3deg);
}

.service-card > div:first-child .w-14 {
    transition: transform 0.3s ease;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #0d9488;
}

.mobile-nav-link:last-child {
    border-bottom: none;
    margin-top: 8px;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-anim { opacity: 1; transform: none; animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-indicator { animation: none; opacity: 1; }
    .service-card, .testimonial-card { transition: none; }
    .service-card:hover, .testimonial-card:hover { transform: none; }
    .btn-primary, .btn-nav, .btn-ghost-light, .btn-cta, .btn-cta-outline { transition: none; }
    .btn-primary:hover, .btn-nav:hover, .btn-ghost-light:hover, .btn-cta:hover, .btn-cta-outline:hover { transform: none; }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-anim {
        animation-duration: 0.6s;
    }
}
