/* ==========================================================================
   VELIYATH GOLD & DIAMONDS
   FRONTEND — GLOBAL STYLE
   Luxury Editorial Jewellery Website
   ========================================================================== */


/* ==========================================================================
   01. RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    margin: 0;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}


/* ==========================================================================
   02. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-text-dark);

    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);

    line-height: var(--line-height-heading);

    text-wrap: balance;
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-5);

    color: var(--color-text-muted);

    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

p:last-child {
    margin-bottom: 0;
}

strong,
b {
    font-weight: var(--font-weight-semibold);
}

small {
    font-size: var(--font-size-sm);
}

em {
    font-style: italic;
}


/* ==========================================================================
   03. SELECTION
   ========================================================================== */

::selection {
    background: var(--color-maroon);
    color: var(--color-text-white);
}


/* ==========================================================================
   04. CONTAINER
   ========================================================================== */

.container {
    width: min(
        100% - (var(--container-padding) * 2),
        var(--container-width)
    );

    margin-inline: auto;
}

.container-wide {
    width: min(
        100% - (var(--container-padding) * 2),
        var(--container-wide)
    );

    margin-inline: auto;
}

.container-narrow {
    width: min(
        100% - (var(--container-padding) * 2),
        var(--container-narrow)
    );

    margin-inline: auto;
}


/* ==========================================================================
   05. SITE MAIN
   ========================================================================== */

.site-main {
    position: relative;
    width: 100%;
    overflow: clip;
}


/* ==========================================================================
   06. SECTION FOUNDATION
   ========================================================================== */

.site-section {
    position: relative;
    width: 100%;
    padding-block: var(--section-space-lg);
}

.site-section-small {
    padding-block: var(--section-space-sm);
}

.site-section-large {
    padding-block: var(--section-space-xl);
}

.section-inner {
    position: relative;
    width: 100%;
}


/* ==========================================================================
   07. SECTION HEADING
   ========================================================================== */

.section-heading {
    max-width: 760px;
    margin-bottom: var(--space-10);
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: var(--space-4);

    color: var(--color-gold);

    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);

    letter-spacing: var(--letter-spacing-luxury);
    line-height: 1.2;

    text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: "";

    width: 24px;
    height: 1px;

    background: var(--color-gold);
}

.section-heading h2 {
    margin-bottom: var(--space-4);

    font-size: var(--font-display-md);
    letter-spacing: var(--letter-spacing-tight);
}

.section-heading p {
    max-width: 650px;
    margin-bottom: 0;
}

.section-heading.center p {
    margin-inline: auto;
}


/* ==========================================================================
   08. GOLD DIVIDER
   ========================================================================== */

.gold-divider {
    width: 54px;
    height: 1px;

    margin: var(--space-6) 0;

    background: var(--color-gold);
}

.gold-divider.center {
    margin-inline: auto;
}


/* ==========================================================================
   09. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: var(--button-height-md);
    padding: 0 var(--button-padding-x);

    border: 1px solid transparent;
    border-radius: var(--button-radius);

    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);

    letter-spacing: var(--letter-spacing-wide);
    line-height: 1;

    text-align: center;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal),
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-text-on-gold);
}

.btn-gold:hover {
    background: var(--color-gold-dark);
    color: var(--color-text-white);
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
    background: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
}

.btn-outline-gold:hover {
    background: var(--color-gold);
    color: var(--color-text-white);
}

.btn-light {
    background: var(--color-background);
    color: var(--color-primary);
}

.btn-light:hover {
    background: var(--color-background-ivory);
}

.btn-dark {
    background: var(--color-maroon-dark);
    color: var(--color-text-white);
}

.btn-dark:hover {
    background: var(--color-maroon);
}

.btn-sm {
    min-height: var(--button-height-sm);
    padding-inline: 17px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    min-height: var(--button-height-lg);
    padding-inline: 26px;
}


/* ==========================================================================
   10. TEXT LINKS
   ========================================================================== */

.text-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--color-primary);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);

    letter-spacing: var(--letter-spacing-wide);

    transition:
        color var(--transition-normal),
        gap var(--transition-normal);
}

.text-link::after {
    content: "→";

    transition: transform var(--transition-normal);
}

.text-link:hover {
    color: var(--color-gold-dark);
    gap: 11px;
}

.text-link:hover::after {
    transform: translateX(2px);
}


/* ==========================================================================
   11. GOLD TEXT
   ========================================================================== */

.text-gold {
    color: var(--color-gold);
}

.text-primary {
    color: var(--color-primary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-white {
    color: var(--color-text-white);
}


/* ==========================================================================
   12. BACKGROUND UTILITIES
   ========================================================================== */

.bg-white {
    background: var(--color-background);
}

.bg-soft {
    background: var(--color-background-soft);
}

.bg-ivory {
    background: var(--color-background-ivory);
}

.bg-cream {
    background: var(--color-background-cream);
}

.bg-maroon {
    background: var(--color-background-dark);
}

.bg-maroon-dark {
    background: var(--color-background-darkest);
}


/* ==========================================================================
   13. IMAGE UTILITIES
   ========================================================================== */

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ==========================================================================
   14. CARD FOUNDATION
   ========================================================================== */

.card {
    position: relative;

    background: var(--color-surface);

    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);

    overflow: hidden;

    transition:
        transform var(--transition-luxury),
        box-shadow var(--transition-luxury),
        border-color var(--transition-normal);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-gold);
    box-shadow: var(--shadow-lg);
}


/* ==========================================================================
   15. FORM FOUNDATION
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label,
label {
    display: block;

    margin-bottom: var(--space-2);

    color: var(--color-text-dark);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

input,
textarea,
select {
    width: 100%;

    border: 1px solid var(--input-border);
    border-radius: var(--input-radius);

    background: var(--color-background);
    color: var(--color-text);

    font-size: var(--font-size-md);

    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

input,
select {
    min-height: var(--input-height);
    padding-inline: 14px;
}

textarea {
    min-height: 140px;
    padding: 13px 14px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-light);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;

    border-color: var(--input-border-focus);

    box-shadow:
        0 0 0 3px var(--color-gold-soft);
}


/* ==========================================================================
   16. LIST RESET
   ========================================================================== */

ul,
ol {
    margin: 0;
    padding: 0;
}

.list-reset {
    list-style: none;
}


/* ==========================================================================
   17. ACCESSIBILITY
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;

    z-index: 9999;

    padding: 10px 16px;

    background: var(--color-maroon);
    color: var(--color-text-white);

    border-radius: var(--radius-sm);

    transform: translateY(-150%);

    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}


/* ==========================================================================
   18. SCREEN READER ONLY
   ========================================================================== */

.sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* ==========================================================================
   19. VISIBILITY
   ========================================================================== */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}


/* ==========================================================================
   20. TEXT ALIGNMENT
   ========================================================================== */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


/* ==========================================================================
   21. FLEX UTILITIES
   ========================================================================== */

.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}


/* ==========================================================================
   22. SPACING UTILITIES
   ========================================================================== */

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.mx-auto {
    margin-inline: auto;
}


/* ==========================================================================
   23. OVERFLOW
   ========================================================================== */

.overflow-hidden {
    overflow: hidden;
}

.overflow-visible {
    overflow: visible;
}


/* ==========================================================================
   24. DIVIDER
   ========================================================================== */

.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border-light);
}

.divider-gold {
    width: 100%;
    height: 1px;
    background: var(--color-border-gold);
}


/* ==========================================================================
   25. DECORATIVE GOLD LINE
   ========================================================================== */

.luxury-line {
    position: relative;
    width: 100%;
}

.luxury-line::after {
    content: "";

    display: block;

    width: 46px;
    height: 1px;

    margin-top: var(--space-5);

    background: var(--color-gold);
}


/* ==========================================================================
   26. PAGE LOADING / TRANSITION
   ========================================================================== */

.site-main {
    animation: pageFadeIn 0.45s ease both;
}

@keyframes pageFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ==========================================================================
   27. REDUCED MOTION
   ========================================================================== */

@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;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   28. TABLET
   ========================================================================== */

@media (max-width: 992px) {

    .section-heading {
        margin-bottom: var(--space-8);
    }

    .section-heading h2 {
        font-size: var(--font-display-sm);
    }

    .site-section {
        padding-block: var(--section-space-md);
    }

}


/* ==========================================================================
   29. MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    html {
        scroll-padding-top: var(--header-height);
    }

    body {
        font-size: var(--font-size-md);
    }

    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    h3 {
        font-size: var(--font-size-2xl);
    }

    h4 {
        font-size: var(--font-size-xl);
    }

    p {
        font-size: var(--font-size-md);
        line-height: var(--line-height-relaxed);
    }

    .site-section {
        padding-block: var(--section-space-md);
    }

    .section-heading {
        margin-bottom: var(--space-7);
    }

    .section-heading h2 {
        font-size: var(--font-display-sm);
    }

    .btn {
        min-height: var(--button-height-md);
    }

}


/* ==========================================================================
   30. SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .container,
    .container-wide,
    .container-narrow {
        width: min(
            100% - (var(--container-padding) * 2),
            var(--container-width)
        );
    }

    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    h3 {
        font-size: var(--font-size-xl);
    }

    p {
        font-size: var(--font-size-sm);
    }

    .section-heading h2 {
        font-size: var(--font-display-sm);
    }

    .section-eyebrow {
        font-size: var(--font-size-xs);
        letter-spacing: var(--letter-spacing-wider);
    }

    .section-eyebrow::before,
    .section-eyebrow::after {
        width: 18px;
    }

    .btn {
        width: auto;
        max-width: 100%;
        padding-inline: 18px;
    }

}