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

body {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 20px;
    padding: 0 30px;
    min-height: 100vh;
}

/* Background */
.background-molod {
    background-image: url('images/molod/background_molod.png');
    background-position: center 0%;
    background-size: contain;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Fonts and text */
h1 {
    font-size: clamp(3rem, 10vw, 11.5625rem); /* More aggressive scaling */
    line-height: normal;
    font-family: 'Inter', sans-serif;
    font-weight: 900; /* Black weight */
}

h2 {
    font-family: Arial, sans-serif;
    font-weight: 400; /* Regular */
    font-size: clamp(1.5rem, 2vw, 1.875rem); /* More responsive scaling */
    line-height: 1;
}

p {
    font-size: clamp(0.875rem, 1.5vw, 1rem); /* More responsive scaling */
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

a {
    font-size: clamp(1.125rem, 2vw, 1.875rem); /* More responsive scaling */
    line-height: 1;
}

h1, p, a {
    transition: color 0.3s ease;
}

/* Header Object */
.header-object {
    grid-column: 2 / 12; /* columns 2-11, width = 1386px in Figma */
    height: 58vh; /* 651px / 1117px = 58.3% */
    display: flex;
    align-items: flex-end; /* h1 at bottom of container */
    justify-content: center;
}

.name {
    line-height: 16.47vh; /* 184px / 1117px = 16.47vh */
    margin: 0;
    padding: 0;
    text-align: center;
    color: #FFFFFF;
}

/* Subheader Object */
.subheader-object {
    grid-column: 2 / 12; /* aligns with columns 2-11 */
    height: 3.6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -0.985vh; /* -11px / 1117px = -0.985% */
}

.name-subtitle {
    margin: 0;
    padding: 0;
    text-align: center;
    font-style: italic;
    color: #FFFFFF;
}

/* Navigation */
.main-nav {
    grid-column: 2 / 12; /* aligns with columns 2-11 */
    height: clamp(45px, 3.49vh, 39px); /* Scales with viewport but has min/max bounds */
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(10px, 3.58vh, 40px); /* Scales with min 25px, max 40px */
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 100%;
    background-color: transparent;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.main-nav.scrolled::before {
    background-color: #FFC900;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 0 clamp(2px, 0.2vw, 4px) 0;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav li {
    width: 19.9%;
}

.nav-links {
    text-decoration: none;
    color: #FFFFFF;
    width: 100%;
    display: block;
    font-family: Arial, sans-serif;
}

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

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

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

/* Content Section */
.content-section {
    grid-column: 1 / -1; /* spans all 12 columns */
    grid-row: 4;
    background: #FFFFFF;
    min-height: calc(124 * min(5vh, 47px)); /* 124 rows × min(5vh, 47px) */
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min(5vh, 47px); /* Max 47px */
    column-gap: 20px;
    margin-left: -30px; /* break out of parent padding */
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
}

.sidebar-rectangle {
    width: 3.82%; /* 66px / 1728px viewport */
    height: 6720px; /* matches last image end at row 168 */
    background: #D9D9D9;
    position: absolute;
    left: 0;
    top: 0;
}

/* Brand Assets Section */
.brand-assets-header {
    grid-column: 2 / span 4;
    grid-row: 2;
}

.brand-assets-text {
    grid-column: 2 / span 4;
    grid-row: 3;
}

.brand-assets-text ul {
    margin: 1em 0;
    padding-left: 1.5em;
}

.brand-assets-text li {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

/* Merchandise Section */
.merchandise-header {
    grid-column: 2 / span 4;
    grid-row: 18;
}

.merchandise-text {
    grid-column: 2 / span 4;
    grid-row: 19;
}


/* Administrative Collateral Section */
.admin-collateral-header {
    grid-column: 2 / span 4;
    grid-row: 60;
}

.admin-collateral-text {
    grid-column: 2 / span 4;
    grid-row: 61;
}


/* Social Media Section */
.social-media-header {
    grid-column: 2 / span 4;
    grid-row: 78;
}

.social-media-text {
    grid-column: 2 / span 4;
    grid-row: 79;
}

/* Placeholder Image 2 */
.placeholder-image-2 {
    grid-column: 1 / -1; /* spans all 12 columns */
    grid-row: 89 / 108; /* Row 89-107 inclusive */
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #E5E5E5;
}

/* Packaging Section */
.packaging-header {
    grid-column: 2 / span 4;
    grid-row: 109;
}

.packaging-text {
    grid-column: 2 / span 4;
    grid-row: 110;
}


/* Right-side Placeholder Images */
.placeholder-right-1 {
    grid-column: 6 / span 7; /* columns 6-12 */
    grid-row: 2 / 17; /* Row 2-16 inclusive */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background-color: #D9D9D9;
}

.placeholder-right-2 {
    grid-column: 6 / span 7; /* columns 6-12 */
    grid-row: 18 / 33; /* Row 18-32 inclusive */
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #A5ADC0;
}

/* Placeholder Image Container (wraps left and right images) */
.placeholder-image-container {
    grid-column: 1 / -1; /* Spans all columns */
    grid-row: 34 / 59; /* Row 34-58 inclusive */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* No gap between images */
    width: 100%;
    height: 100%;
}

.placeholder-image-left {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    background-color: #D9D9D9;
}

.placeholder-image-right {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    background-color: #D9D9D9;
}

/* Placeholder Right 3 - Two images side by side */
.placeholder-right-3 {
    grid-column: 6 / 13;
    grid-row: 60 / 77; /* Row 60-76 inclusive */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.placeholder-right-3-left {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #D9D9D9;
}

.placeholder-right-3-right {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #D9D9D9;
}

.placeholder-right-4 {
    grid-column: 6 / span 7; /* columns 6-12 */
    grid-row: 78 / 88; /* Row 78-87 inclusive */
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #E5E5E5;
}

.placeholder-right-5 {
    grid-column: 6 / span 7; /* columns 6-12 */
    grid-row: 109 / 124; /* Row 109-123 inclusive */
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #D9D9D9;
}

.placeholder-right-6 {
    grid-column: 6 / 13;
    grid-row: 78 / 92; /* includes row 91 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-right-7 {
    grid-column: 6 / 13;
    grid-row: 108 / 123; /* includes row 122 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-right-8 {
    grid-column: 6 / 13;
    grid-row: 124 / 140; /* includes row 139 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Works section */
.works {
    width: 80.2%;
    margin: 0 auto;
    padding-top: clamp(1rem, 3vh, 2.375rem);
    display: flex;
    gap: 1.5%;
}

.works-text {
    width: 31.42%;
    flex-shrink: 0;
}

.works-list {
    width: 55.6%;
    padding-left: 13.50%;
}

.works-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 2.56%;
    text-decoration: none;
    color: #0a0a0a;
    cursor: pointer;
}

.work-image {
    width: 262px;
    height: 50px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 0.5px #0a0a0a;
    transition: box-shadow 0.3s ease;
}

.work-text {
    width: 424px;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    --underline-width: 0;
    --underline-color: transparent;
}

.work-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--underline-width);
    height: 0.5px;
    background-color: var(--underline-color);
    transition: width 0.3s ease;
}

@media (max-width: 1024px) {
    .work-text {
        display: none;
    }
}
