/* ===========================
   Craftery — Verdant Noir Custom CSS
   Minimal overrides for Tailwind CDN
   =========================== */

/* Material Symbols configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Base body styles */
body {
    background-color: #071610;
    color: #d4e7dd;
    font-family: 'Noto Serif', Georgia, serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Mobile nav overlay */
.nav-menu--open {
    display: flex !important;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: #071610;
    z-index: 40;
}

/* Hamburger animation */
.nav-toggle--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Active nav link */
.nav-link--active {
    color: #7ddc7a !important;
    opacity: 1 !important;
    border-bottom: 1px solid #7ddc7a;
    padding-bottom: 2px;
}

/* Form transition & success state */
#contact-form {
    transition: opacity 0.3s ease;
}

.form--success {
    opacity: 0;
}

.form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 280px;
    animation: fadeIn 0.4s ease forwards;
}

.form__checkmark {
    width: 72px;
    height: 72px;
    color: #7ddc7a;
    margin-bottom: 24px;
}

.form__checkmark svg {
    width: 100%;
    height: 100%;
}

.form__checkmark-circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: circleIn 0.5s ease 0.1s forwards;
}

.form__checkmark-tick {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: tickIn 0.35s ease 0.5s forwards;
}

.form__success-title {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4e7dd;
    margin-bottom: 8px;
}

.form__success-text {
    font-size: 0.9375rem;
    color: #bfcaba;
}

/* Form error state */
.form__status {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

.form__status--error {
    display: block;
    background: rgba(227, 74, 74, 0.12);
    color: #e34a4a;
    border: 1px solid rgba(227, 74, 74, 0.25);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes circleIn {
    to { stroke-dashoffset: 0; }
}

@keyframes tickIn {
    to { stroke-dashoffset: 0; }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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