* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-h: 0px;

    --color-bg: #ffffff;
    --color-bg-secondary: #f8f7f6;
    --color-gold: #a08968;
    --color-gold-dark: #7d6b54;
    --color-silver: #9CA3AF;
    --color-silver-dark: #6B7280;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #6b6b6b;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;

    --font-size-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    /* 14px */
    --font-size-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
    /* 16px */
    --font-size-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    /* 18px */
    --font-size-xl: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    /* 22px */
    --font-size-2xl: clamp(1.375rem, 1.05rem + 1.4vw, 2rem);
    /* 32px */
    --font-size-3xl: clamp(1.5rem, 1rem + 2.6vw, 3rem);
    /* 48px */
    --font-size-4xl: clamp(1.75rem, 1.125rem + 3.5vw, 4rem);
    /* 64px */

    --spacing-sm: 0.5rem;
    /* 8px   */
    --spacing-md: 1rem;
    /* 16px  */
    --spacing-lg: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    /* 24px  */
    --spacing-xl: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    /* 40px  */
    --spacing-2xl: clamp(1.5rem, 0.8rem + 3.5vw, 3.75rem);
    /* 60px  */
    --spacing-3xl: clamp(2.5rem, 1rem + 6vw, 6.25rem);
    /* 100px */

    --card-padding: clamp(1rem, 0.4rem + 3.5vw, 3.75rem);
    --update-card-padding: clamp(1.25rem, 0.75rem + 2.5vw, 3.125rem) clamp(1rem, 0.5rem + 1.5vw, 1.875rem);
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/static/fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 100%;
    font-family: 'Vazirmatn', sans-serif;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    scroll-behavior: smooth;
    font-feature-settings: "ss01";
    letter-spacing: 0;
    /* stops mobile browsers (iOS / Android landscape) from auto-inflating fonts */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    line-height: 1.9;
    overflow-wrap: break-word;
    /* safety net: never allow sideways scrolling */
    overflow-x: hidden;
    overflow-x: clip;
}

h1,
h2,
h3 {
    overflow-wrap: break-word;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold-dark);
}

button {
    font-family: "Vazirmatn";
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0.625rem;
}

#updates-section,
#documents-section {
    scroll-margin-top: var(--header-h);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: clamp(0.75rem, 0.6rem + 0.5vw, 1rem) var(--spacing-xl);
}

nav {
    font-family: "Vazirmatn";
    max-width: 87.5rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    align-items: center;
    position: relative;
}

.logo {
    font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    justify-self: center;
    gap: var(--spacing-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-gold);
}

nav a.active {
    color: var(--color-gold);
}

.cta-button {
    background: var(--color-gold);
    color: white;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: "Vazirmatn";
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
}

.cta-button:hover {
    background: var(--color-gold-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(160, 137, 104, 0.15);
}

.hamburger-menu {
    display: none;
    margin-left: auto;
}

/* End of Header */


/* Main Home Page */
main {
    padding-top: 4.375rem;
    flex: 1;
}

.container {
    width: 100%;
    margin: 0 auto;
    /* on ultra-wide screens the content is centered and capped at 100rem,
       on every other screen this is the same as the normal side padding */
    padding: 0 max(var(--spacing-xl), calc((100% - 100rem) / 2));
}

.hero {
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.hero-content {
    max-width: 56.25rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.015em;
}

.hero-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
    max-width: 43.75rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

.btn-primary {
    background: var(--color-gold);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    font-family: "Vazirmatn";
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-gold-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(160, 137, 104, 0.2);
}

.btn-cta-mobile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 16px 36px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #8f7a5a 0%, #7d6b54 100%);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow:
        0 10px 24px rgba(125, 107, 84, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    animation: ctaHalo 2.8s ease-out infinite;
    text-decoration: none;
}


.btn-cta-mobile:hover {
    transform: translateY(-2px);
}

.btn-cta-mobile:active {
    transform: scale(0.98);
}

.btn-cta-mobile:focus-visible {
    outline: 3px solid rgba(160, 137, 104, 0.45);
    outline-offset: 3px;
}

/* Shimmer sweeps for about 40% of the cycle, then rests */
@keyframes ctaTextShimmer {
    0% {
        background-position: 130% 0;
    }

    40% {
        background-position: -30% 0;
    }

    100% {
        background-position: -30% 0;
    }
}


/* Halo pulses once, then stays quiet */
@keyframes ctaHalo {
    0% {
        box-shadow: 0 10px 24px rgba(125, 107, 84, 0.30), 0 0 0 0 rgba(160, 137, 104, 0.45);
    }

    70% {
        box-shadow: 0 10px 24px rgba(125, 107, 84, 0.30), 0 0 0 12px rgba(160, 137, 104, 0);
    }

    100% {
        box-shadow: 0 10px 24px rgba(125, 107, 84, 0.30), 0 0 0 12px rgba(160, 137, 104, 0);
    }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .btn-cta-mobile {
        animation: none;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-gold);
    background: var(--color-bg-secondary);
}

.hero-visual {
    background: linear-gradient(135deg, rgba(160, 137, 104, 0.08) 0%, rgba(155, 155, 155, 0.08) 100%);
    border-radius: 1.25rem;
    padding: clamp(1rem, 0.25rem + 6vw, 6.25rem);
    margin-top: var(--spacing-xl);
    min-height: clamp(13.75rem, 10rem + 20vw, 25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: clamp(12rem, 30vw, 18.75rem);
    height: clamp(12rem, 30vw, 18.75rem);
    background: radial-gradient(circle, rgba(160, 137, 104, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
}

.visual-icon {
    font-size: clamp(3.125rem, 2rem + 5vw, 5rem);
    margin-bottom: var(--spacing-lg);
}

.section {
    padding: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section h2 {
    font-size: clamp(1.5rem, 4vw, var(--font-size-3xl));
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 45rem;
    margin: 0 auto;
    direction: rtl;
    text-align: center;
    line-height: 2;
}

.desc-name {
    color: #3c3c3c;
}

.desc-year {
    color: black;
    font-size: 1.2rem;
}

.desc-gold {
    background: linear-gradient(135deg, #D4A017, #9A6B00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.desc-silver {
    background: linear-gradient(135deg, #6B7688, #3D4656);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.desc-c {
    background: linear-gradient(135deg, #C98A2B, #8C5A12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.desc-j {
    background: linear-gradient(135deg, #1F4FC4 0%, #4A85F0 45%, #153589 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.section-description strong {
    font-size: 1.03rem;
    color: black;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.desc-important {
    color: black;
}

.section-description-dl {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 45rem;
    margin: 0 auto;
    text-align: center;
    line-height: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border-light, #f0f0f0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold, #a08968), var(--color-product-green, #2f9e6b));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(160, 137, 104, 0.35);
    box-shadow: 0 20px 40px rgba(160, 137, 104, 0.12);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f3ec 0%, #ece3d4 100%);
    color: var(--color-gold-dark, #7d6b54);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.feature-card:hover .feature-icon {
    background: var(--color-gold, #a08968);
    color: #ffffff;
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: var(--font-size-xl, 22px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-primary, #1a1a1a);
    margin-bottom: 0.75rem;
}

/* End of Main Home Page */


/* Main Download Page */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.os-card-gold,
.os-card-silver {
    border: 2px solid var(--color-border);
    border-radius: 1rem;
    padding: var(--spacing-lg) var(--card-padding);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--color-bg);
}

.os-card-gold:hover {
    border-color: var(--color-gold);
    box-shadow: 0 16px 40px rgba(160, 137, 104, 0.12);
    transform: translateY(-4px);
}

.os-card-silver:hover {
    border-color: var(--color-silver);
    box-shadow: 0 16px 40px rgba(160, 137, 104, 0.12);
    transform: translateY(-4px);
}

.os-icon {
    font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    margin-bottom: var(--spacing-lg);
}

.os-card-gold h3,
.os-card-silver h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.os-version {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.os-version-size {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.download-btn {
    width: 100%;
    background: var(--color-gold);
    color: white;
    padding: clamp(0.75rem, 0.6rem + 0.5vw, 1rem) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: 0.5rem;
}

/* hover only for real mouse devices, and never while disabled */
@media (hover: hover) {

    .btn-primary:hover:not(:disabled) {
        background: var(--color-gold-dark);
    }

    .download-btn:hover:not(:disabled) {
        background: var(--color-gold-dark);
    }

    .download-btn-silver:hover:not(:disabled) {
        background: var(--color-silver-dark);
        color: black;
    }

    .download-btn-product:hover:not(:disabled) {
        background: #1f7a50;
        color: black;
    }

}

.download-btn:disabled {
    background: #2563eb;
    color: #fff;
    opacity: .7;
    cursor: not-allowed;
}

.download-btn.downloading {
    background: #2563eb;
    color: #fff;
    opacity: .7;
    cursor: not-allowed;
}

.download-btn-silver {
    width: 100%;
    background: var(--color-silver);
    color: black;
    padding: clamp(0.75rem, 0.6rem + 0.5vw, 1rem) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: 0.5rem;
    margin-top: auto;
}

.download-btn-silver:disabled {
    background: #2563eb;
    color: #fff;
    opacity: .7;
    cursor: not-allowed;
}

.download-btn-product {
    width: 100%;
    background: #10B981;
    color: white;
    padding: clamp(0.75rem, 0.6rem + 0.5vw, 1rem) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: 0.5rem;
    margin-top: auto;
}

.download-btn-product:disabled {
    background: #2563eb;
    color: #fff;
    opacity: .7;
    cursor: not-allowed;
}

.download-header {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
    border-bottom: 1px solid var(--color-border);
}

.download-header h1 {
    font-size: var(--font-size-2xl);
}

.download-details {
    padding: var(--spacing-3xl) var(--spacing-xl);
    width: 100%;
    margin: 0 auto;
}

.download-gold-container {
    margin-bottom: var(--spacing-3xl);
}

.download-silver-container {
    margin-bottom: var(--spacing-3xl);
    padding-top: var(--spacing-3xl);
    border-top: 1px solid var(--color-border);
}

.download-app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.download-app-header h2 {
    text-align: center;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
}

.download-app-header p {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
}

.svg-container {
    text-align: center;
    margin-top: 0.625rem;
}

.card-section {
    margin-bottom: var(--spacing-3xl);
    padding-top: var(--spacing-3xl);
    border-top: 1px solid var(--color-border);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21.25rem), 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.update-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-gold);
    border-radius: 1rem;
    padding: var(--update-card-padding);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
}

.update-card-silver {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-silver);
    border-radius: 1rem;
    padding: var(--update-card-padding);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
}

.update-card-product {
    background: var(--color-bg-secondary);
    border: 1px solid #1f7a50;
    border-radius: 1rem;
    padding: var(--update-card-padding);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
}

.update-card:hover,
.update-card-silver:hover,
.update-card-product:hover {
    box-shadow: 0 16px 40px rgba(160, 137, 104, 0.1);
    transform: translateY(-4px);
}

.update-card h3,
.update-card-silver h3,
.update-card-product h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.update-card button {
    margin-top: auto;
}

.update-card-context {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.right-sec p {
    background: #fff3cd;
    color: #856404;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: var(--font-size-sm);
    width: fit-content;
    max-width: 100%;
    text-align: center;
}

.right-sec .old {
    background-color: #d1ecf1;
    color: #0c5460;
    margin-top: 0.625rem;
    text-align: right;
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem);
}

.right-sec-silver p {
    background: #d1ecf1;
    color: #0c5460;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: var(--font-size-sm);
    width: fit-content;
    max-width: 100%;
    text-align: center;
}

.right-sec-product p {
    background: #b1e0c9;
    color: #1f7a50;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: var(--font-size-sm);
    width: fit-content;
    max-width: 100%;
    text-align: center;
}

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

.left-sec p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.doc-card-booklet {
    background: white;
    border: 1px solid #394240;
    border-radius: 1rem;
    padding: var(--card-padding);
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.doc-card-videos {
    background: white;
    border: 1px solid #616882;
    border-radius: 1rem;
    padding: var(--card-padding);
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.doc-card-booklet:hover,
.doc-card-videos:hover {
    box-shadow: 0 16px 40px rgba(160, 137, 104, 0.1);
    transform: translateY(-6px);
}

.doc-card-booklet h3,
.doc-card-videos h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

.type-size {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Mobile Quick Links */
.quick-links {
    display: none;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-2xl) var(--spacing-md);
}

.quick-links-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.quick-links-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.quick-links-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.quick-link {
    display: grid;
    grid-template-columns: 40px 1fr 22px;
    /* in order: icon | label | arrow */
    align-items: center;
    column-gap: 14px;
    min-height: 56px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.quick-link:hover,
.quick-link:focus-visible {
    border-color: var(--color-gold);
    background: #fffdf9;
    outline: none;
}

.quick-link:active {
    transform: scale(0.98);
}

.quick-link-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(160, 137, 104, 0.12);
    border-radius: 10px;
    color: var(--color-gold);
}

.quick-link-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.quick-link-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    min-width: 0;
}

.quick-link-arrow {
    font-size: 22px;
    line-height: 1;
    color: var(--color-gold);
    text-align: right;
}

/* End of Mobile Quick Links */


/* Footer */
footer {
    background: var(--color-text-primary);
    color: white;
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
    gap: var(--spacing-2xl);
    text-align: left;
    margin-bottom: var(--spacing-2xl);
}

.footer-section {
    text-align: center;
    min-width: 0;
}

.footer-section h3 {
    font-size: clamp(1rem, 0.85rem + 0.9vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
}

.contact-us {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.phone-info div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.phone-info svg {
    margin-bottom: 0.875rem;
}

.phone-info a {
    text-align: center;
    padding-bottom: 0.125rem;
    margin-right: 0.875rem;
    display: inline-flex;
    font-size: var(--font-size-sm);
}

.address-info {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
}

.address-info p {
    width: 100%;
    font-size: var(--font-size-sm);
    margin-right: 0.5rem;
}

.question-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.question-info p {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: default;
}

.question-info p:hover {
    color: var(--color-gold-dark);
}

.footer-section a {
    color: #cccccc;
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.footer-section a:hover {
    color: var(--color-gold);
}

.footer-section .in-progress {
    cursor: default;
    color: white;
}

.footer-section .in-progress:hover {
    cursor: default;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: clamp(0.625rem, 0.625rem + 0.15vw, 0.75rem);
    color: #999;
}

/* End of Footer */


/* Errors */
.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 18.75rem);
    min-height: calc(100dvh - 18.75rem);
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.error-content {
    max-width: 37.5rem;
}

.error-icon {
    font-size: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
    margin-bottom: var(--spacing-lg);
}

.error-code {
    font-size: clamp(3.75rem, 2rem + 9vw, 7.5rem);
    font-weight: 900;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--spacing-lg);
}

.error-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.error-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

/* End Of Error */


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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


/* Start Responsive */
@media (min-width: 790px) and (max-width: 1130px) {
    .cta-button {
        font-size: 0.5625rem;
    }
}

@media (min-width: 790px) and (max-width: 1121px) {
    .logo {
        font-size: clamp(0.875rem, 0.875rem + 1.2vw, 1rem);
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .quick-links {
        display: block;
    }

    .phone-info .desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    .phone-info .mobile-only {
        display: none;
    }
}

/* Tablets and phones: mobile menu, stacked buttons (790px) */
@media (max-width: 49.375em) {
    img {
        aspect-ratio: 4/5;
    }

    nav {
        padding: 0;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: var(--spacing-sm);
        width: 60px;
        height: 45px;
        padding-top: 15px;
    }

    .hamburger-menu span {
        width: 24px;
        height: 2px;
        background: var(--color-text-primary);
        transition: all 0.3s ease;
        display: block;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .cta-button {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        border-top: 2px solid black;
        border-bottom: 2px solid black;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 999;
        /* keeps the menu usable on short screens (landscape phones) */
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
        background-color: #F5F6F8;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #b0b0b0;
        width: 100%;
        text-align: center;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
    }

    .hero-visual {
        order: 1 !important;
    }

    .hero h1 {
        order: -2;
    }

    .hero-subtitle {
        line-height: 1.9;
    }

    .hero-cta {
        order: 2 !important;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .download-header {
        padding: var(--spacing-2xl) var(--spacing-lg) !important;
    }

    .error-container {
        min-height: auto;
    }

    .error-actions {
        flex-direction: column;
    }

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

}

/* Phones (480px) */
@media (max-width: 30em) {

    /* Header section for download page (inline-styled flex rows) */
    [style*="display: flex; align-items: center; gap"] {
        flex-direction: column;
        text-align: center;
        margin-bottom: var(--spacing-xl) !important;
    }

    [style*="display: flex; align-items: center; gap"] div:last-child {
        width: 100%;
    }

    [style*="display: flex; align-items: center; gap"] h2 {
        font-size: 1.375rem;
    }

    [style*="display: flex; align-items: center; gap"] p {
        font-size: 0.875rem;
    }

    .download-details {
        padding: 0 var(--spacing-md);
    }
}

/* Very small phones (373px) */
@media (max-width: 23.3125em) {

    .update-card,
    .update-card-silver,
    .update-card-product {
        text-align: center;
    }

    .right-sec h3,
    .right-sec-silver h3,
    .right-sec-product h3 {
        font-size: 0.9375rem;
    }

    .right-sec p,
    .right-sec-silver p,
    .right-sec-product p {
        padding: 1px;
        font-size: 0.8125rem;
    }

    .left-sec p {
        text-align: center;
        font-size: 0.75rem;
    }
}

/* Large / ultra-wide screens: the whole site scales up proportionally
   because every size is in rem */
@media (min-width: 120em) {
    html {
        font-size: 112.5%;
    }
}

@media (min-width: 160em) {
    html {
        font-size: 125%;
    }
}

@media (min-width: 240em) {
    html {
        font-size: 150%;
    }
}

/* Accessibility: respect "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}