/* ==========================================================================
   CONTACT.CSS — Kashmir Decor Contact page
   Self-contained: this page loads only global.css + contact.css, no home.css.
   The block below is the shared site chrome (nav, footer, buttons, eyebrow,
   swatch-strip, container) copied from home.scss so this page doesn't depend
   on it. If you change nav/footer/buttons on the home page, mirror the
   change here too — these are now two separate copies, not one shared file.
   Everything still traces back to tokens in global.css.
   ========================================================================== */

/* --- BASE PAGE WRAPPER --- */
.kd-home {
    background: var(--color-linen);
    color: var(--color-black);
}

.kd-home img {
    max-width: 100%;
    display: block;
    object-fit: contain;
    box-sizing: border-box;
}

.kd-home a {
    color: inherit;
    text-decoration: none;
}

.kd-home h1,
.kd-home h2,
.kd-home h3,
.kd-home h4 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.kd-container {
    width: 90%;
    max-width: var(--global-width);
    margin: 0 auto;
}

/* --- EYEBROW --- */
.kd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--dim-8px);
    font-size: var(--font-small);
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
    color: var(--color-gold) !important;
    margin-bottom: var(--dim-16px);
}

.kd-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--color-gold);
}

/* --- BUTTONS --- */
.kd-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--dim-10px);
    padding: var(--dim-16px) var(--dim-24px);
    border-radius: var(--roundness-full);
    font-size: var(--font-medium);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.kd-btn-primary {
    background: var(--color-emerald);
    color: var(--color-white) !important;
    box-sizing: border-box;
}

.kd-btn-primary:hover {
    background: var(--color-emerald-dark);
    transform: translateY(-3px);
    box-shadow: var(--color-shadow-emerald);
}

.kd-btn-ghost {
    border-color: var(--color-stroke-warm);
    color: var(--color-black);
}

.kd-btn-ghost:hover {
    border-color: var(--color-emerald);
    transform: translateY(-3px);
}

.kd-btn-gold {
    background: var(--color-gold);
    color: var(--color-emerald-dark);
}

.kd-btn-gold:hover {
    background: var(--color-gold-light);
    transform: translateY(-3px);
}

/* --- SWATCH STRIP --- */
.kd-swatch-strip {
    display: flex;
    height: var(--dim-12px);
}

.kd-swatch-strip span {
    flex: 1;
}

.kd-swatch-strip span:nth-child(1) { background: var(--color-emerald); }
.kd-swatch-strip span:nth-child(2) { background: var(--color-gold); }
.kd-swatch-strip span:nth-child(3) { background: var(--color-brick); }
.kd-swatch-strip span:nth-child(4) { background: var(--color-sand); }
.kd-swatch-strip span:nth-child(5) { background: var(--color-emerald-dark); }
.kd-swatch-strip span:nth-child(6) { background: var(--color-gold-light); }
.kd-swatch-strip span:nth-child(7) { background: var(--color-black); }
.kd-swatch-strip span:nth-child(8) { background: var(--color-emerald); }

/* --- NAV --- */
.kd-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 241, 231, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-stroke-warm);
}

.kd-nav-inner {
    width: 90%;
    max-width: var(--global-max-width);
    margin: 0 auto;
    height: var(--dim-nav-size);
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kd-nav-brand {
    font-family: var(--font-display);
    font-size: var(--font-large);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: var(--dim-16px);
}

.kd-nav-brand > img:nth-child(1) {
    width: 40px;
    height: 40px;
}

.kd-nav-brand > img:nth-child(2) {
    width: fit-content;
    height: 24px;
}

.kd-nav-links {
    display: none;
    align-items: center;
    gap: var(--dim-40px);
    font-size: var(--font-medium);
}

.kd-nav-links a:hover {
    color: var(--color-emerald);
}

.kd-nav-links a.kd-nav-active {
    color: var(--color-emerald);
}

.kd-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--dim-16px);
}

.kd-lang-switch {
    font-size: var(--font-small);
    border: 1px solid var(--color-stroke-warm);
    border-radius: var(--roundness-full);
    padding: var(--dim-8px) var(--dim-12px);
}

.kd-lang-switch:hover {
    border-color: var(--color-emerald);
}

@media only screen and (min-width: 960px) {
    .kd-nav-links { display: flex; }
}

@media only screen and (max-width: 1350px) {
    .kd-nav-links > a:nth-child(3),
    .kd-nav-links > a:nth-child(4),
    .kd-nav-links > a:nth-child(5) {
        display: none;
    }
}

@media only screen and (max-width: 700px) {
    .kd-nav-inner { height: 64px; min-height: 64px; }
    .kd-nav-brand { font-size: var(--font-medium); gap: var(--dim-8px); }
    .kd-nav-brand > img:nth-child(1) { width: 30px; height: 30px; }
    .kd-nav-brand > img:nth-child(2) { height: 18px; }
    .kd-nav-actions .kd-btn { padding: var(--dim-10px) var(--dim-16px); font-size: var(--font-small); }
}

@media only screen and (max-width: 480px) {
    .kd-nav-actions > a:nth-child(2) { display: none; }
}

/* --- FOOTER --- */
.kd-footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--dim-64px) 0 var(--dim-16px);
}

.kd-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--dim-40px);
    padding-bottom: var(--dim-40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kd-footer-brand {
    font-family: var(--font-display);
    font-size: var(--font-large);
    color: var(--color-white);
    margin-bottom: var(--dim-16px);
}

.kd-footer-col p {
    font-size: var(--font-medium);
    line-height: var(--line-height);
    max-width: 320px;
    color: var(--color-white);
}

.kd-footer-col h5 {
    font-size: var(--font-small);
    font-weight: 700;
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--dim-16px);
}

.kd-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--dim-10px);
    font-size: var(--font-small);
    color: var(--color-white);
}

.kd-footer-col a {
    color: var(--color-white);
}

.kd-footer-col ul a:hover {
    color: var(--color-gold-light);
}

.kd-footer-social {
    display: flex;
    gap: var(--dim-10px);
    margin-top: var(--dim-16px);
}

.kd-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kd-footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

.kd-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--dim-16px);
    justify-content: space-between;
    align-items: center;
    padding-top: var(--dim-24px);
    font-size: var(--font-small);
}

.kd-footer-bottom * {
    color: var(--color-white);
}

@media only screen and (min-width: 800px) {
    .kd-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .kd-footer-bottom { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
    .kd-home * { transition: none !important; }
}

/* ==========================================================================
   PAGE-SPECIFIC — everything below this line is unique to the Contact page.
   ========================================================================== */

/* --- PAGE HEADER --- */
.kd-page-header {
    padding: var(--dim-92px) 0 var(--dim-64px);
    background: var(--color-emerald-dark);
    color: var(--color-white);
}

.kd-page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    color: var(--color-white);
    margin-bottom: var(--dim-16px);
}

.kd-page-header p {
    font-size: var(--font-medium);
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    line-height: var(--line-height);
}

/* --- CONTACT PAGE SECTION --- */
.kd-contact-page {
    padding: var(--dim-92px) 0;
    background: var(--color-linen);
}

.kd-contact-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--dim-16px);
    margin-bottom: var(--dim-64px);
}

.kd-contact-tile {
    display: flex;
    align-items: center;
    gap: var(--dim-16px);
    background: var(--color-white);
    border: 1px solid var(--color-stroke-warm);
    border-radius: var(--roundness-28px);
    padding: var(--dim-24px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kd-contact-tile:not(.kd-contact-tile-static):hover {
    transform: translateY(-4px);
    box-shadow: var(--color-shadow-emerald);
    border-color: var(--color-emerald);
}

.kd-contact-tile-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-emerald);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-large);
}

.kd-contact-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.kd-contact-tile-label {
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing);
    margin-bottom: var(--dim-4px);
}

.kd-contact-tile-body strong {
    font-family: var(--font-display);
    font-size: var(--font-large);
    color: var(--color-black);
    margin-bottom: var(--dim-2px);
}

.kd-contact-tile-sub {
    font-size: var(--font-small);
    color: var(--color-gray);
}

.kd-contact-tile-go {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-stroke-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald);
}

.kd-contact-tile-static {
    cursor: default;
}

@media only screen and (min-width: 700px) {
    .kd-contact-page-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- SERVICE AREAS --- */
.kd-service-areas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--dim-16px);
    margin-bottom: var(--dim-64px);
}

.kd-service-areas-label {
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--color-emerald);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing);
}

.kd-service-areas-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dim-8px);
}

.kd-chip {
    display: inline-flex;
    align-items: center;
    background: var(--color-sand);
    color: var(--color-black);
    font-size: var(--font-small);
    font-weight: 600;
    padding: var(--dim-8px) var(--dim-16px);
    border-radius: var(--roundness-full);
}

/* --- SOCIAL PANEL --- */
.kd-social-panel {
    display: flex;
    flex-direction: column;
    gap: var(--dim-24px);
    background: var(--color-emerald);
    border-radius: var(--roundness-28px);
    padding: var(--dim-40px);
    color: var(--color-white);
}

.kd-social-panel-copy h3 {
    font-family: var(--font-display);
    font-size: var(--font-large-extra);
    color: var(--color-white);
    margin-bottom: var(--dim-8px);
}

.kd-social-panel-copy p {
    font-size: var(--font-medium);
    color: rgba(255, 255, 255, 0.72);
    line-height: var(--line-height);
}

.kd-social-panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dim-12px);
}
.kd-social-panel-links span{
    color: var(--color-white);
}

.kd-social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--dim-8px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--color-white);
    font-size: var(--font-small);
    font-weight: 600;
    padding: var(--dim-12px) var(--dim-20px);
    border-radius: var(--roundness-full);
    transition: background 0.25s ease, transform 0.25s ease;
}

.kd-social-btn:hover {
    background: var(--color-gold);
    color: var(--color-emerald-dark);
    transform: translateY(-3px);
}

@media only screen and (min-width: 900px) {
    .kd-social-panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .kd-social-panel-copy {
        max-width: 420px;
    }
}

/* --- RESPONSIVE --- */
@media only screen and (max-width: 700px) {
    .kd-page-header {
        padding: var(--dim-64px) 0 var(--dim-48px);
    }

    .kd-contact-page {
        padding: var(--dim-64px) 0;
    }

    .kd-contact-tile {
        padding: var(--dim-16px);
    }

    .kd-social-panel {
        padding: var(--dim-24px);
    }
}

/* --- FOOTER LANG BUTTON --- */
.kd-footer-lang-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-family: inherit;
    font-size: var(--font-small);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.kd-footer-lang-btn:hover {
    color: var(--color-gold-light);
}

/* ==========================================================================
   RTL — applied when the language toggle sets <html dir="rtl">.
   Layout is built almost entirely with flex/grid + gap + inset-inline-start,
   so it flips automatically. What's below are the physical-property and
   iconography exceptions that don't flip on their own.
   ========================================================================== */
[dir="rtl"] .kd-home {
    font-family: var(--font-body-ar);
}

[dir="rtl"] .kd-home h1,
[dir="rtl"] .kd-home h2,
[dir="rtl"] .kd-home h3,
[dir="rtl"] .kd-home h4,
[dir="rtl"] .kd-nav-brand,
[dir="rtl"] .kd-footer-brand,
[dir="rtl"] .kd-page-header h1,
[dir="rtl"] .kd-social-panel-copy h3 {
    font-family: var(--font-display-ar);
}

/* arrow icons need to visually flip direction in RTL reading order */
[dir="rtl"] .kd-contact-tile-go i,
[dir="rtl"] .kd-lang-switch i {
    transform: scaleX(-1);
}

/* the tile's "go" arrow sits at the trailing edge either way via flex order,
   so no position change is needed — only the icon direction above */

@media only screen and (max-width: 700px) {
    [dir="rtl"] .kd-page-header p {
        max-width: 100%;
    }
}