/**
 * Aesthetic Fonts - Main Styles
 *
 * @package AestheticFonts
 */

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: var(--aw-color-surface);
    border-bottom: 2px solid var(--aw-color-line);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-brand {
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--aw-color-text-default);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    background: var(--aw-color-text-heading);
    color: var(--aw-color-surface);
    border-radius: 50%;
    font-family: Georgia, Times New Roman, serif;
    font-weight: 700;
    font-size: 0.8rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-mark span:first-child {
    position: absolute;
    font-size: 0.82rem;
    transform: translate(-0.17rem, -0.05rem);
}

.brand-mark span:last-child {
    position: absolute;
    color: var(--aw-color-accent);
    font-size: 0.68rem;
    font-style: italic;
    transform: translate(0.2rem, 0.14rem);
}

.brand-word {
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tld {
    color: var(--aw-color-accent-strong);
    font-weight: 760;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--aw-color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: var(--aw-color-text-heading);
    background: var(--aw-color-bg-page);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--aw-color-text-heading);
    transition: all 0.2s ease;
}

.mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--aw-color-surface);
    border-bottom: 2px solid var(--aw-color-line);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--aw-color-line);
}

.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--aw-color-text-default);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .navbar-menu.desktop-only {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--aw-color-bg-page);
    border-top: 2px solid var(--aw-color-line);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .footer-brand {
        grid-column: auto;
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--aw-color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 300px;
}

.footer-contact a {
    color: var(--aw-color-primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--aw-color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--aw-color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: var(--aw-color-primary);
}

.footer-bottom {
    border-top: 2px solid var(--aw-color-line);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom-inner {
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--aw-color-text-muted);
}

.footer-copyright a {
    color: var(--aw-color-primary);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* ============================================
   PAGES
   ============================================ */

.page-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--aw-color-text-heading);
    margin: 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--aw-color-text-default);
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--aw-color-text-heading);
}

.page-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--aw-color-text-heading);
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--aw-color-primary);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form-wrapper {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--aw-color-surface);
    border: 2px solid var(--aw-color-line);
    border-radius: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--aw-color-text-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--aw-color-line);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--aw-color-surface);
    color: var(--aw-color-text-default);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--aw-color-primary);
}

.contact-form .btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-left {
    text-align: left;
}

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

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-700 {
    animation-delay: 0.7s;
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--aw-color-text-heading);
    color: var(--aw-color-surface);
    padding: 0.5rem 1rem;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */

.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--aw-color-text-heading);
    color: var(--aw-color-surface);
    border: 2px solid var(--aw-color-line);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 999;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 1.25rem;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--aw-color-text-muted);
}

.loading-state::after {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--aw-color-line);
    border-top-color: var(--aw-color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-content {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .brand-word {
        font-size: 0.9rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .dark-mode-toggle,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
