/* ==========================================================================
   APSARA SILVER HOUSE — stylesheet

   Contents
   01. Design tokens
   02. Base & resets
   03. Layout helpers
   04. Buttons, links & icons
   05. Header & navigation
   06. Hero
   07. Section headings
   08. Collection tiles
   09. About
   10. Instagram band
   11. Contact
   12. Footer
   13. Floating controls
   14. Motion
   15. Responsive rules
   ========================================================================== */


/* ==========================================================================
   01. Design tokens
   Colours are themed per section: --fg, --fg-muted, --bg and --rule are
   redefined on light sections so components need no colour overrides.
   ========================================================================== */

:root {
    /* Brand palette */
    --ink-900: #100d0a;
    --ink-800: #171208;
    --ink-700: #221a10;
    --paper: #f3efe7;
    --paper-deep: #e7e0d3;

    --gold-light: #f2dcae;
    --gold: #c79a4b;
    --gold-deep: #8c6524;
    --silver: #cbd2d6;

    /* Default (dark) theme */
    --bg: var(--ink-900);
    --fg: #e9e2d5;
    --fg-muted: #a79c89;
    --rule: rgba(199, 154, 75, 0.22);

    /* Type */
    --display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing & shape */
    --wrap-max: 1200px;
    --wrap-pad: 24px;
    --section-y: 112px;
    --radius: 3px;
}


/* ==========================================================================
   02. Base & resets
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

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

body {
    background: var(--ink-900);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.65;
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.005em;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

::selection {
    background: var(--gold);
    color: var(--ink-900);
}

/* Keyboard shortcut to the main content */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 18px;
    background: var(--gold);
    color: var(--ink-900);
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}


/* ==========================================================================
   03. Layout helpers
   ========================================================================== */

.wrap {
    width: 100%;
    max-width: var(--wrap-max);
    margin-inline: auto;
    padding-inline: var(--wrap-pad);
}

.section {
    background: var(--bg);
    color: var(--fg);
    padding-block: var(--section-y);
}

/* Light theme applied to a single section */
.section--paper {
    --bg: var(--paper);
    --fg: var(--ink-900);
    --fg-muted: #6b6355;
    --rule: rgba(16, 13, 10, 0.14);
}


/* ==========================================================================
   04. Buttons, links & icons
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button--gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--ink-900);
}

.button--gold:hover {
    background: linear-gradient(135deg, #fff0d2, var(--gold-light));
}

.button--ghost {
    border-color: var(--rule);
    color: var(--fg);
}

.button--ghost:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

/* Inline link with an underline that stays out of the way of descenders */
.text-link {
    display: inline-block;
    color: var(--fg);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    font-size: 15px;
    transition: color 0.25s ease;
}

.text-link:hover {
    color: var(--gold-light);
}

.icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   05. Header & navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(16, 13, 10, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(16, 13, 10, 0.95);
    border-bottom-color: var(--rule);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-block: 16px;
}

/* Wordmark: display face on top, spaced sans beneath */
.wordmark {
    margin-right: auto;
    font-family: var(--display);
    font-size: 27px;
    font-weight: 500;
    line-height: 1;
    color: var(--gold-light);
}

.wordmark__line {
    display: block;
    margin-top: 4px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.34em;
    color: var(--fg-muted);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
}

.primary-nav a {
    position: relative;
    padding-block: 4px;
    color: var(--fg);
    transition: color 0.25s ease;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--gold-light);
}

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

.header-phone {
    font-size: 15px;
    color: var(--gold-light);
    white-space: nowrap;
}

.header-phone:hover {
    color: #fff;
}

/* Hamburger — shown on small screens only */
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: var(--gold-light);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* ==========================================================================
   06. Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 78% 40%, rgba(199, 154, 75, 0.16) 0%, rgba(199, 154, 75, 0) 62%),
        linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 78%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    min-height: 84vh;
    padding-block: 96px;
}

.hero__location {
    margin-bottom: 26px;
    padding-left: 44px;
    position: relative;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--fg-muted);
}

/* Short gold rule standing in for a divider before the location line */
.hero__location::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.hero__title {
    font-size: clamp(48px, 7.4vw, 98px);
    line-height: 0.98;
    color: #fbf6ea;
}

.hero__lede {
    max-width: 46ch;
    margin-top: 28px;
    color: var(--fg-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.hero__art img {
    width: 100%;
    height: auto;
}


/* ==========================================================================
   07. Section headings
   ========================================================================== */

.section-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.section-head h2 {
    font-size: clamp(34px, 4.4vw, 56px);
}

.section-head p {
    max-width: 54ch;
    margin-top: 18px;
    color: var(--fg-muted);
}


/* ==========================================================================
   08. Collection tiles
   ========================================================================== */

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tile {
    display: flex;
    flex-direction: column;
}

.tile__image {
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.tile__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tile:hover .tile__image img {
    transform: scale(1.04);
}

.tile__body {
    padding-top: 22px;
}

.tile__body h3 {
    font-size: 32px;
}

.tile__body p {
    max-width: 34ch;
    margin: 10px 0 18px;
    font-size: 16px;
    color: var(--fg-muted);
}


/* ==========================================================================
   09. About
   ========================================================================== */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.about__image img {
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

.about__copy h2 {
    font-size: clamp(34px, 4.2vw, 54px);
}

.about__copy p {
    max-width: 52ch;
    margin-top: 20px;
    color: var(--fg-muted);
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 40px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}

.fact {
    padding: 22px;
    background: var(--bg);
}

.fact dt {
    font-family: var(--display);
    font-size: 22px;
}

.fact dd {
    margin-top: 6px;
    font-size: 15px;
    color: var(--fg-muted);
}


/* ==========================================================================
   10. Instagram band
   ========================================================================== */

.instagram {
    background:
        linear-gradient(90deg, rgba(199, 154, 75, 0.14) 0%, rgba(199, 154, 75, 0) 60%),
        var(--ink-800);
    border-block: 1px solid var(--rule);
    padding-block: 88px;
}

.instagram__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.instagram__copy h2 {
    font-size: clamp(30px, 3.4vw, 44px);
}

.instagram__copy p {
    max-width: 48ch;
    margin-top: 14px;
    color: var(--fg-muted);
}


/* ==========================================================================
   11. Contact
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    padding: 34px 30px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 0.25s ease;
}

.contact-card:hover {
    border-color: rgba(199, 154, 75, 0.5);
}

.contact-card h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--fg-muted);
}

.contact-card__line {
    margin-top: 14px;
    font-family: var(--display);
    font-size: 24px;
    line-height: 1.3;
}

.contact-card__line a:hover {
    color: var(--gold-light);
}

.contact-card__note {
    margin-top: 12px;
    font-size: 15px;
    color: var(--fg-muted);
}

.contact-cta {
    margin-top: 44px;
}


/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
    padding-block: 46px;
    background: #0b0906;
    border-top: 1px solid var(--rule);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-footer__brand {
    font-family: var(--display);
    font-size: 22px;
    color: var(--gold-light);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 15px;
}

.site-footer__links a:hover {
    color: var(--gold-light);
}

.site-footer__legal {
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    font-size: 14px;
    color: var(--fg-muted);
}


/* ==========================================================================
   13. Floating controls
   ========================================================================== */

.float-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--ink-900);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
}

.float-whatsapp:hover {
    transform: translateY(-3px);
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 84px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: rgba(16, 13, 10, 0.92);
    color: var(--gold-light);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.to-top:hover {
    border-color: var(--gold);
}


/* ==========================================================================
   14. Motion
   One orchestrated entrance on page load; nothing animates on scroll.
   ========================================================================== */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero__location,
.hero__title,
.hero__lede,
.hero__actions {
    animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__title {
    animation-delay: 0.08s;
}

.hero__lede {
    animation-delay: 0.16s;
}

.hero__actions {
    animation-delay: 0.24s;
}

.hero__art {
    animation: fade 1.4s ease 0.2s both;
}

@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;
    }
}


/* ==========================================================================
   15. Responsive rules
   ========================================================================== */

/* Tablet */
@media (max-width: 1000px) {
    :root {
        --section-y: 84px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: 0;
        padding-block: 72px;
    }

    .hero__art {
        max-width: 420px;
    }

    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

/* Mobile — collapse the navigation into a panel */
@media (max-width: 760px) {
    :root {
        --wrap-pad: 20px;
        --section-y: 68px;
    }

    body {
        font-size: 16px;
    }

    .site-header__inner {
        gap: 12px;
    }

    .menu-button {
        display: flex;
    }

    .header-phone {
        display: none;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ink-800);
        border-bottom: 1px solid var(--rule);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .primary-nav.is-open {
        max-height: 330px;
    }

    .primary-nav a {
        padding: 16px var(--wrap-pad);
        border-top: 1px solid var(--rule);
    }

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

    .tiles {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tile__body p {
        max-width: none;
    }

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

    .float-whatsapp {
        right: 16px;
        bottom: 16px;
        padding: 12px 18px;
    }

    .to-top {
        right: 16px;
        bottom: 76px;
    }
}
