/* ============================================================
   KUBBEALTÍ ATÖLYE — Main Stylesheet (index + apps)
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FDF5E6;
    color: #2C3E50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* Screen reader only */
.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;
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
}

/* === NAVBAR === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #FDF5E6;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    padding: 1rem 0;
}

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

.navbar-logo img {
    height: 38px;
    width: auto;
}

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

.navbar-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2C3E50;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: #C07E47;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #2C3E50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero {
    padding: 5rem 0 4.5rem;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: #2C3E50;
    margin-bottom: 1.25rem;
}

.hero-content h1 .accent {
    color: #C07E47;
}

.hero-content p {
    font-size: 1.05rem;
    color: #5a6a7a;
    line-height: 1.8;
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #C07E47;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(192, 126, 71, 0.3);
}

.btn-primary:hover {
    background-color: #a86a38;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(192, 126, 71, 0.38);
}

.btn-primary svg {
    transition: transform 0.2s;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

/* === APPS PREVIEW (homepage) === */
.section-apps {
    padding: 4rem 0 5rem;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.section-underline {
    width: 36px;
    height: 3px;
    background-color: #C07E47;
    border-radius: 3px;
    margin-top: 0.5rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.app-card-link {
    display: block;
    border-radius: 16px;
    outline-offset: 3px;
}

.app-card-link:focus-visible {
    outline: 2px solid #C07E47;
}

.app-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid rgba(44, 62, 80, 0.08);
    transition: box-shadow 0.25s, transform 0.25s;
}

.app-card:hover {
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
    transform: translateY(-3px);
}

.app-card .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    object-fit: contain;
}

.app-card .app-info {
    flex: 1;
    min-width: 0;
}

.app-card .app-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.3rem;
}

.app-card .app-info p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.55;
}

.app-card .arrow-icon {
    color: #C07E47;
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.2s, opacity 0.2s;
}

.app-card:hover .arrow-icon {
    transform: translateX(3px);
    opacity: 1;
}

/* === APPS PAGE === */
.page-header {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1rem;
    color: #6b7280;
}

.apps-section {
    padding-bottom: 5rem;
}

.app-full-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(44, 62, 80, 0.08);
    max-width: 560px;
    transition: box-shadow 0.25s;
}

.app-full-card:hover {
    box-shadow: 0 8px 28px rgba(44, 62, 80, 0.09);
}

.app-full-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.app-full-header .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    flex-shrink: 0;
    object-fit: contain;
}

.app-full-header .app-meta h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.35rem;
}

.app-badge {
    display: inline-block;
    font-size: 0.75rem;
    background-color: #FDF5E6;
    color: #C07E47;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(192, 126, 71, 0.28);
    letter-spacing: 0.02em;
}

.app-full-desc {
    font-size: 0.925rem;
    color: #5a6a7a;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 2px solid #C07E47;
    color: #C07E47;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.btn-outline:hover {
    background-color: #C07E47;
    color: #fff;
}

/* === FOOTER === */
.footer {
    background-color: #2C3E50;
    color: #e2e8f0;
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    max-width: 260px;
    line-height: 1.65;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #C07E47;
}

.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #475569;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background-color: #FDF5E6;
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 1.1rem;
        border-bottom: 1px solid rgba(44, 62, 80, 0.08);
        box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
    }

    .navbar-menu.open {
        display: flex;
    }

    .hero {
        padding: 3rem 0 3.5rem;
    }

    .section-apps {
        padding: 3rem 0 4rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-header {
        padding: 2.5rem 0 2rem;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
