﻿/* ==========================================
   IG REPUBLIC - PROFESSIONAL DESIGN SYSTEM
========================================== */

:root {
    --ir-red: #bd0028;
    --ir-dark: #171416;
    --ir-muted: #777174;
    --ir-cream: #f8f5f3;
    --ir-border: #eee7e5;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    box-shadow: 0 2px 18px rgba(0,0,0,.045);
}

.navbar {
    min-height: 82px;
}

.brand {
    transition: opacity .25s ease;
}

.brand:hover {
    opacity: .78;
}

.brand img {
    background: white;
    border-radius: 2px;
}

.nav-links a {
    position: relative;
    padding: 10px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--ir-red);
    transition: width .25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--ir-red);
}

/* Improved editorial hero */

.hero {
    min-height: 590px;
    padding-top: 85px;
    padding-bottom: 85px;
    gap: 45px;
    background:
        radial-gradient(ellipse at 85% 40%, rgba(189,0,40,.055), transparent 36%),
        linear-gradient(110deg,#faf7f5,#f5eeee);
}

.hero-content {
    max-width: 760px;
    flex: 1;
}

.hero h1 {
    font-size: clamp(46px, 5.8vw, 76px);
    line-height: 1.04;
    letter-spacing: -2px;
    margin-bottom: 26px;
}

.hero-content > p:not(.eyebrow) {
    max-width: 510px;
    line-height: 1.9;
}

.hero-side {
    width: 275px;
    height: 275px;
    border: 1px solid rgba(189,0,40,.25);
    background: rgba(255,255,255,.32);
    box-shadow: 0 15px 55px rgba(189,0,40,.055);
}

.hero-side span {
    font-size: 112px;
    letter-spacing: -8px;
}

.btn {
    position: relative;
    overflow: hidden;
    transition: background .25s ease, color .25s ease,
                transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* Premium collection cards */

.category-grid {
    gap: 25px;
}

.category-art {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    isolation: isolate;
    letter-spacing: 3px;
}

.category-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg,transparent 35%,rgba(0,0,0,.24));
    transition: transform .6s ease;
}

.category-card:hover .category-art::before {
    transform: scale(1.12);
}

.category-card h3 {
    font-family: 'Playfair Display',serif;
    font-size: 20px;
    margin-top: 23px;
}

.category-card > span {
    display: inline-block;
    margin-top: 5px;
    letter-spacing: 1.3px;
}

.category-card {
    display: block;
}

.category-card:hover > span {
    letter-spacing: 2px;
}

/* Rental presentation */

.rental-section {
    padding-top: 105px;
    padding-bottom: 105px;
}

.rental-highlight {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%,rgba(255,255,255,.15),transparent 35%),
        linear-gradient(140deg,#c40031,#780019);
}

.rental-highlight::after {
    content: "IG REPUBLIC";
    position: absolute;
    bottom: 24px;
    font-size: 9px;
    letter-spacing: 4px;
    color: rgba(255,255,255,.6);
}

.rental-type {
    transition: padding .25s ease, background .25s ease;
}

.rental-type:hover {
    padding-left: 12px;
    background: rgba(255,255,255,.035);
}

.catalogue-message {
    border: 1px solid var(--ir-border);
    min-height: 250px;
}

.tab {
    transition: all .25s ease;
}

/* Branch cards */

.branch-grid {
    gap: 25px;
}

.branch-card {
    min-height: 190px;
    border: 1px solid #f0e9e7;
    border-bottom: 3px solid var(--ir-red);
    transition: transform .25s ease, box-shadow .25s ease;
}

.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,.07);
}

/* Contact section */

.contact-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 120%,rgba(255,255,255,.13),transparent 45%),
        linear-gradient(110deg,#b90029,#a80025);
}

.contact-section .btn-white:hover {
    background: #171416;
    color: white;
}

/* Footer */

.footer {
    padding-top: 55px;
    padding-bottom: 30px;
}

.footer-links a {
    transition: color .2s ease;
}

/* Scroll reveal */

.ir-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

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

/* Scroll-to-top */

.ir-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--ir-red);
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s ease;
    box-shadow: 0 5px 20px rgba(189,0,40,.2);
}

.ir-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ir-top:hover {
    background: #85001c;
}

/* Accessibility */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #e66b86;
    outline-offset: 4px;
}

::selection {
    background: var(--ir-red);
    color: white;
}

@media(max-width: 1100px) {
    .hero-side {
        width: 230px;
        height: 230px;
    }

    .hero-side span {
        font-size: 90px;
    }

    .hero h1 {
        font-size: clamp(45px,6vw,68px);
    }
}

@media(max-width: 900px) {
    .hero {
        gap: 20px;
    }

    .hero-side {
        width: 190px;
        height: 190px;
    }

    .hero-side span {
        font-size: 75px;
    }
}

@media(max-width: 650px) {
    .header {
        position: sticky;
    }

    .navbar {
        min-height: 70px;
    }

    .nav-links {
        top: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero {
        min-height: 500px;
        padding: 70px 7%;
        gap: 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(42px,11vw,58px);
        letter-spacing: -1.5px;
        line-height: 1.06;
    }

    .hero-side {
        display: none;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 14px 16px;
        font-size: 10px;
    }

    .category-art {
        min-height: 175px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    .rental-section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .ir-top {
        right: 15px;
        bottom: 15px;
    }
}

/* Homepage catalogue CTA - links to the live rental catalogue page */
.catalogue-live-link {
    margin-top: 18px;
}

.catalogue-live-link a {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--ir-red);
    border-bottom: 2px solid var(--ir-red);
    padding-bottom: 4px;
    transition: color .2s ease;
}

.catalogue-live-link a:hover {
    color: var(--ir-dark);
    border-color: var(--ir-dark);
}

/* "Book Rentals" header link (sits outside .nav-links) */
.navbar > a:not(.brand) {
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease;
}

.navbar > a:not(.brand):hover {
    color: var(--ir-red);
}

@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .ir-reveal {
        opacity: 1;
        transform: none;
    }
}
