/* Buttons */
.btn {
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: var(--transition-fast);
    font-size: var(--text-sm);
}

.btn-primary {
    background-color: var(--color-teal);
    color: var(--color-white);
    border: 2px solid var(--color-teal);
}

.btn-primary:hover {
    background-color: #128a95;
    border-color: #128a95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 165, 178, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-teal);
    border: 2px solid var(--color-teal);
}

.btn-secondary:hover {
    background-color: var(--color-teal);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    /* transition handled in hover state specific to cookies */
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Cookie Card Specifics */
.cookie-card {
    padding-bottom: var(--space-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.cookie-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

.cookie-card:hover .card-image {
    transform: rotate(5deg) scale(1.05);
}

.cookie-info {
    padding: 0 var(--space-md);
    text-align: center;
}

.cookie-name {
    font-size: var(--text-h3-mobile);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.cookie-desc {
    font-size: var(--text-sm);
    color: var(--color-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Form Elements */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.input-field {
    padding: 12px 16px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.input-field:focus {
    outline: none;
    background: white;
    border-color: var(--color-teal);
}

/* Footer specific form overrides */
.footer-form {
    display: flex;
    gap: var(--space-sm);
}

.footer-form .input-field {
    flex: 1;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Animation Classes used in PHP */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.pop-in {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.fade-in-stagger>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-stagger>*:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-stagger>*:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in-stagger>*:nth-child(3) {
    animation-delay: 0.3s;
}

.rotate-hover {
    transition: transform 0.5s ease;
}

.rotate-hover:hover {
    transform: rotate(5deg) scale(1.05);
}

/* SVG Divider Helpers */
.drip-divider {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 2;
    margin-top: -1px;
    /* Fix sub-pixel gaps */
}

.drip-divider svg {
    display: block;
    width: 100%;
    height: 60px;
    /* Default height */
}

@media (min-width: 1024px) {
    .drip-divider svg {
        height: 100px;
    }
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-trigger {
    font-family: var(--font-heading);
    font-style: italic;
    width: 100%;
    padding: 1.4rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    text-align: left;
    color: var(--color-black);
}

.faq-trigger .icon {
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.3s;
    color: var(--color-teal);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.6rem;
    line-height: 1.6;
    color: var(--color-gray-dark, #444);
}

.faq-item.active .faq-content {
    max-height: 320px;
    padding-bottom: 1.2rem;
}

.faq-item.active .faq-trigger .icon {
    transform: rotate(45deg);
}

/* Checkbox */
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-teal);
}
