/*
 * Diemer's Coins & Jewelry
 * Plain CSS. No imports, framework, generated styles, or external font requests.
 * Contents: tokens, base, header, home, about, contact, footer, responsive rules.
 */

/* ---------- Design tokens: change the site's colors and spacing here. ---------- */
:root {
    --color-navy: #132b46;
    --color-navy-deep: #0b1c2d;
    --color-gold: #c4a15d;
    --color-gold-light: #e2c488;
    --color-paper: #f8f6f0;
    --color-sand: #eeeae0;
    --color-ink: #223345;
    --color-muted: #5c6570;
    --color-line: #d9d9d0;
    --color-white: #ffffff;
    --font-body: Arial, Helvetica, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;
    --container-width: 1240px;
    --page-gutter: clamp(24px, 5vw, 80px);
    --header-height: 96px;
}

/* ---------- Base elements and shared utilities. ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    font: inherit;
}

button,
a {
    touch-action: manipulation;
}

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

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

h1,
h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-wrap: balance;
}

h2 {
    font-size: clamp(38px, 4.5vw, 62px);
}

h1 em,
h2 em {
    font-weight: 400;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 5px;
}

::selection {
    color: var(--color-navy-deep);
    background: var(--color-gold-light);
}

.container {
    width: min(var(--container-width), calc(100% - var(--page-gutter) * 2));
    margin-inline: auto;
}

.eyebrow {
    margin-bottom: 23px;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.5;
    text-transform: uppercase;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    min-height: 44px;
    padding-block: 6px;
    border-bottom: 1px solid var(--color-gold);
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 600;
    transition: color 180ms ease, gap 180ms ease;
}

.text-link:hover {
    gap: 32px;
    color: #765b2b;
}

.text-link span[aria-hidden="true"] {
    font-size: 20px;
    font-weight: 400;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 16px;
    padding: 12px 20px;
    color: var(--color-white);
    background: var(--color-navy);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- Sticky header and sign-inspired live-text wordmark. ---------- */
.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(19, 43, 70, 0.1);
    background: var(--color-paper);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: var(--header-height);
}

.wordmark {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    color: var(--color-navy);
    font-family: var(--font-heading);
    line-height: 1;
}

.wordmark-name {
    width: 100%;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-gold);
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-align: center;
    text-transform: uppercase;
}

.wordmark-description {
    padding-top: 7px;
    font-size: 15px;
    letter-spacing: 0.005em;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navigation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
}

.navigation-link::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--color-gold);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.navigation-link:hover::after,
.navigation-link[aria-current="location"]::after {
    transform: scaleX(1);
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-block: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}

.header-phone-label {
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-phone:hover {
    color: #765b2b;
}

/* Hidden by default so the full navigation remains usable without JavaScript. */
.menu-toggle {
    display: none;
}

/* ---------- Home: actual storefront photograph, editorial headline, quick details. ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 570px;
    min-height: clamp(570px, calc(100svh - var(--header-height) - 112px), 820px);
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-navy-deep);
    isolation: isolate;
}

.hero-image,
.hero-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center 48%;
}

.hero-shade {
    background: linear-gradient(90deg, rgba(9, 23, 38, 0.95) 0%, rgba(9, 23, 38, 0.87) 25%, rgba(9, 23, 38, 0.49) 52%, rgba(9, 23, 38, 0.12) 100%), linear-gradient(0deg, rgba(9, 23, 38, 0.42), transparent 38%);
}

.hero-content {
    padding-top: 75px;
    padding-bottom: 95px;
}

.hero-eyebrow {
    margin-bottom: 27px;
    color: var(--color-gold-light);
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(58px, 6.6vw, 94px);
}

.hero h1 em {
    color: var(--color-gold-light);
}

.hero-description {
    margin-top: 29px;
    color: #e8e9e9;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 30px;
    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 54px;
    padding: 14px 25px;
    font-size: 13px;
    font-weight: 700;
    transition: background 180ms ease, transform 180ms ease;
}

.button-gold {
    color: var(--color-navy-deep);
    background: var(--color-gold-light);
}

.button-gold:hover {
    background: #f0d59f;
    transform: translateY(-2px);
}

.button span {
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}

.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 44px;
    padding-block: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

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

.hero-location {
    position: absolute;
    right: var(--page-gutter);
    bottom: 31px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0f0ed;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.location-marker {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-gold-light);
}

.home-details {
    border-bottom: 1px solid var(--color-line);
    background: var(--color-sand);
}

.home-details-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    align-items: center;
    min-height: 112px;
}

.home-details-inner > * {
    padding-block: 12px;
}

.home-details-inner > * + * {
    padding-left: 36px;
    border-left: 1px solid #d2d1c9;
}

.detail-label,
.detail-value {
    display: block;
}

.detail-label {
    margin-bottom: 7px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.detail-value {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.4;
}

.home-details-link .detail-value {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.home-details-link:hover .detail-value {
    color: #765b2b;
}

/* ---------- About: spacious introduction and a simple numbered specialty list. ---------- */
.about-section {
    display: flex;
    align-items: center;
    min-height: 85vh;
    min-height: 85svh;
    padding-block: clamp(64px, 6vw, 88px);
}

.about-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.about-introduction h2 {
    color: var(--color-navy);
}

.about-introduction h2 em {
    color: #83632f;
}

.gold-rule {
    width: 53px;
    height: 2px;
    margin-top: 35px;
    background: var(--color-gold);
}

.about-lead {
    margin-top: 25px;
    margin-bottom: 26px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.8;
}

.about-copy {
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.85;
}

.about-copy + .about-copy {
    margin-top: 18px;
}

.specialties {
    margin-top: 31px;
    border-top: 1px solid var(--color-line);
}

.specialty {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 20px;
    padding-block: 22px;
    border-bottom: 1px solid var(--color-line);
}

.specialty-number {
    padding-top: 3px;
    color: #83632f;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.specialty h3 {
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 400;
}

.specialty p {
    margin-top: 5px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- Contact: edge-to-edge map and direct contact information. ---------- */
.contact-section {
    border-top: 1px solid var(--color-line);
    background: var(--color-sand);
}

.contact-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding-top: 76px;
    padding-bottom: 49px;
}

.contact-heading .eyebrow {
    margin-bottom: 15px;
}

.contact-heading h2 {
    color: var(--color-navy);
}

.contact-heading h2 em {
    color: #83632f;
}

.contact-heading > p {
    padding-bottom: 3px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.8;
}

.map-container {
    width: 100%;
    height: 25vh;
    height: 25svh;
    min-height: 180px;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    background: #dfe3dc;
}

.contact-map {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 48px;
    padding-top: 51px;
    padding-bottom: 65px;
}

.contact-block h3 {
    margin-bottom: 19px;
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 400;
}

.contact-block address {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.9;
}

.visit-block .text-link {
    margin-top: 17px;
}

.contact-phone {
    display: block;
    width: fit-content;
    min-height: 44px;
    padding-block: 5px;
    color: var(--color-navy);
    font-size: 21px;
    line-height: 1.5;
}

.contact-email {
    display: block;
    width: fit-content;
    min-height: 44px;
    padding-block: 9px;
    color: var(--color-muted);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.contact-phone:hover,
.contact-email:hover {
    color: #765b2b;
}

.contact-note {
    max-width: 260px;
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.8;
}

.hours-list {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.7;
}

.hours-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 4px;
    border-bottom: 1px solid rgba(19, 43, 70, 0.09);
}

.hours-list dd {
    color: var(--color-navy);
    text-align: right;
    white-space: nowrap;
}

.hours-note {
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 11px;
    line-height: 1.7;
}

/* ---------- Footer. ---------- */
.site-footer {
    padding-block: 36px;
    color: #d7dee4;
    background: var(--color-navy-deep);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-wordmark {
    color: var(--color-paper);
}

.footer-wordmark .wordmark-name {
    font-size: 24px;
}

.footer-wordmark .wordmark-description {
    font-size: 12px;
}

.footer-inner > p {
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    min-height: 44px;
    font-size: 12px;
}

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

/* ---------- Tablet adjustments. ---------- */
@media (max-width: 1000px) {
    .primary-navigation {
        gap: 24px;
    }

    .hero h1 {
        font-size: 76px;
    }

    .home-details-inner {
        grid-template-columns: 0.7fr 1.2fr 1fr;
    }

    .home-details-inner > * + * {
        padding-left: 22px;
    }

    .detail-value {
        font-size: 17px;
    }

    .about-layout {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 42px;
    }

    .about-introduction h2 {
        font-size: 44px;
    }

    .contact-heading {
        align-items: flex-start;
    }

    .contact-heading > p {
        max-width: 260px;
        padding-top: 32px;
    }

    .desktop-break {
        display: none;
    }

    .contact-details {
        grid-template-columns: 1fr 1fr;
        gap: 38px;
    }

    .hours-block {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}

/* Reduce vertical spacing on shorter desktop screens without clipping content. */
@media (min-width: 1001px) and (max-height: 850px) {
    .about-section {
        padding-block: 44px;
    }

    .about-copy {
        font-size: 15px;
        line-height: 1.75;
    }

    .specialty {
        padding-block: 14px;
    }
}

/* ---------- Mobile layout; navigation is progressively enhanced by main.js. ---------- */
@media (max-width: 700px) {
    :root {
        --header-height: 82px;
        --page-gutter: 24px;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 0 24px;
        padding-block: 15px;
    }

    .wordmark-name {
        font-size: 26px;
    }

    .wordmark-description {
        font-size: 13px;
    }

    .header-phone {
        display: none;
    }

    .primary-navigation {
        justify-content: flex-end;
        gap: 18px;
    }

    .navigation-link {
        font-size: 12px;
    }

    .navigation-enhanced .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 80px;
        min-height: 44px;
        padding: 8px 0 8px 8px;
        border: 0;
        color: var(--color-navy);
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle-label {
        font-size: 12px;
        font-weight: 600;
    }

    .menu-toggle-lines {
        position: relative;
        width: 20px;
        height: 2px;
        background: var(--color-navy);
    }

    .menu-toggle-lines::before,
    .menu-toggle-lines::after {
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        background: var(--color-navy);
        content: "";
    }

    .menu-toggle-lines::before {
        top: -6px;
    }

    .menu-toggle-lines::after {
        top: 6px;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
        background: transparent;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .navigation-enhanced .primary-navigation {
        display: none;
        flex: 1 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 15px;
        padding-top: 8px;
        border-top: 1px solid var(--color-line);
    }

    .navigation-enhanced .primary-navigation.is-open {
        display: flex;
    }

    .navigation-enhanced .navigation-link {
        min-height: 48px;
        font-size: 14px;
    }

    .navigation-enhanced .navigation-link::after {
        right: auto;
        width: 28px;
    }

    .hero {
        min-height: 640px;
    }

    .hero-image {
        object-position: 63% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(9, 23, 38, 0.88), rgba(9, 23, 38, 0.58)), linear-gradient(0deg, rgba(9, 23, 38, 0.42), transparent 50%);
    }

    .hero-content {
        padding-top: 69px;
        padding-bottom: 110px;
    }

    .hero-eyebrow {
        margin-bottom: 25px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: clamp(56px, 12vw, 76px);
    }

    .hero-description {
        margin-top: 26px;
        font-size: 16px;
    }

    .hero-actions {
        align-items: flex-start;
        gap: 18px;
    }

    .hero-location {
        right: auto;
        bottom: 28px;
        left: var(--page-gutter);
    }

    .home-details-inner {
        grid-template-columns: 1fr;
        padding-block: 13px;
    }

    .home-details-inner > * {
        padding-block: 16px;
    }

    .home-details-inner > * + * {
        padding-left: 0;
        border-top: 1px solid #d2d1c9;
        border-left: 0;
    }

    .detail-label {
        margin-bottom: 4px;
    }

    .detail-value {
        font-size: 19px;
    }

    .about-section {
        min-height: auto;
        padding-block: 76px;
    }

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

    .about-introduction h2 {
        font-size: clamp(40px, 8vw, 54px);
    }

    .about-copy {
        font-size: 15px;
    }

    .specialty {
        gap: 14px;
        padding-block: 21px;
    }

    .specialty h3 {
        font-size: 22px;
    }

    .contact-heading {
        flex-direction: column;
        gap: 24px;
        padding-top: 60px;
        padding-bottom: 38px;
    }

    .contact-heading h2 {
        font-size: clamp(39px, 8vw, 54px);
    }

    .contact-heading > p {
        max-width: 340px;
        padding-top: 0;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 33px;
        padding-top: 39px;
        padding-bottom: 52px;
    }

    .contact-block + .contact-block {
        padding-top: 28px;
        border-top: 1px solid var(--color-line);
    }

    .contact-block h3 {
        margin-bottom: 15px;
    }

    .hours-block {
        grid-column: auto;
        max-width: none;
    }

    .contact-note {
        max-width: 340px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 26px;
        text-align: center;
    }

    .back-to-top {
        gap: 18px;
    }
}

/* Keep the fallback navigation legible on very narrow phones without JavaScript. */
@media (max-width: 380px) {
    .primary-navigation {
        flex: 1 0 100%;
        justify-content: flex-start;
        padding-top: 12px;
    }

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

    .hero h1 {
        font-size: 54px;
    }
}

/* Respect visitors who request reduced motion in their operating system. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* Useful when someone prints the address and hours before visiting. */
@media print {
    .site-header,
    .hero,
    .home-details,
    .about-section,
    .map-container,
    .site-footer {
        display: none;
    }

    body,
    .contact-section {
        color: #000000;
        background: #ffffff;
    }

    .contact-heading,
    .contact-details {
        display: block;
        width: 100%;
        padding: 20px 0;
    }

    .contact-block {
        margin-bottom: 25px;
        break-inside: avoid;
    }
}
