/*
Theme Name: Spadana
Description: The Persian WordPress home and workspace directory for Spadana Steel.
Version: 1.0.0
Text Domain: spadana
Requires at least: 6.6
Requires PHP: 8.3
*/

@font-face {
    font-family: Vazirmatn;
    src: url("assets/Vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #232526;
    --muted: #585b5c;
    --page: #f6f4f0;
    --white: #fff;
    --edge: #dedbd5;
    --brand: #a51e34;
    --brand-hover: #85182a;
    --night: #202225;
    --measure: 1210px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #ce4160; outline-offset: 5px; }
.wrap { width: min(var(--measure), calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: white; color: var(--ink); }
.skip:focus { top: 10px; }
.site-header { background: var(--night); color: white; border-bottom: 3px solid var(--brand); }
.header-row { min-height: 84px; display: flex; align-items: center; gap: 36px; }
.wordmark { display: inline-flex; flex: 0 0 auto; width: 146px; min-height: 52px; align-items: center; }
.wordmark img { max-height: 58px; width: auto; object-fit: contain; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; align-items: center; }
.main-nav a { color: #f4f2ef; text-decoration: none; white-space: nowrap; font-size: .91rem; }
.main-nav a:hover, .main-nav a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.button, .wp-block-button__link {
    min-height: 46px;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--brand);
    color: white;
    padding: 9px 19px;
    font-weight: 680;
    font-size: .94rem;
    line-height: 1.6;
    text-decoration: none;
}
.button:hover, .wp-block-button__link:hover { background: var(--brand-hover); color: white; }
.button--quiet { background: transparent; border-color: #c8c3bc; color: var(--ink); }
.button--quiet:hover { background: #eae5de; color: var(--ink); }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; color: white; border: 1px solid #7a7979; border-radius: 8px; background: transparent; padding: 8px 13px; font: inherit; cursor: pointer; }
.hero { padding: clamp(36px, 6vw, 92px) 0 clamp(36px, 5vw, 68px); }
.hero-grid { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(30px, 7vw, 94px); align-items: center; }
.hero .eyebrow { margin: 0 0 14px; color: var(--brand); font-size: .94rem; font-weight: 740; }
.hero h1 { margin: 0; font-size: clamp(2.55rem, 5.1vw, 5.1rem); font-weight: 850; line-height: 1.2; letter-spacing: -.065em; }
.hero .lead { margin: 20px 0 28px; max-width: 32rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { position: relative; margin: 0; overflow: hidden; border-radius: 16px; isolation: isolate; background: #222; aspect-ratio: 1.33; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; inset-inline-end: 16px; bottom: 16px; color: white; background: #242427; border-radius: 6px; padding: 5px 12px; font-size: .82rem; }
.work-section { border-top: 1px solid var(--edge); padding-block: 34px 56px; }
.section-title { margin: 0 0 5px; font-size: clamp(1.55rem, 3.3vw, 2.3rem); font-weight: 820; letter-spacing: -.035em; }
.section-intro { margin: 0 0 22px; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.work-card {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--edge);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    padding: 19px 21px;
}
.work-card:hover { border-color: var(--brand); }
.work-card .icon { width: 25px; height: 25px; color: var(--brand); margin-bottom: 10px; }
.work-card h3 { margin: 0; font-size: 1.12rem; font-weight: 760; }
.work-card p { margin: 5px 0 12px; color: var(--muted); font-size: .9rem; }
.work-card .more { margin-block-start: auto; color: var(--brand); font-weight: 720; font-size: .86rem; }
.paper-section { background: #ece8e0; padding: clamp(26px, 5vw, 55px) 0; }
.paper-row { display: grid; grid-template-columns: minmax(210px, .56fr) 1fr; align-items: center; gap: clamp(28px, 7vw, 95px); }
.paper-image { width: min(100%, 410px); display: block; padding: 8px; background: #fff; border: 1px solid #ded8ce; border-radius: 10px; }
.paper-section p { color: var(--muted); max-width: 32rem; }
.site-footer { background: var(--night); color: #ece9e4; padding: 24px 0; }
.footer-row { display: flex; gap: 18px 36px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer-row p { margin: 0; }
.site-footer a { color: white; text-underline-offset: 5px; }
.page-shell { min-height: 52vh; padding-block: 46px 68px; }
.entry-content { max-width: 780px; }
.entry-content .alignwide { max-width: var(--measure); }
.page-title { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.25; margin: 0 0 20px; }
.home-content:empty { display: none; }
.home-content { padding-block: 20px 45px; }

@media (max-width: 960px) {
    .header-row { gap: 20px; }
    .main-nav ul { gap: 15px; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .wrap { width: calc(100% - 32px); }
    .header-row { min-height: 70px; gap: 10px 12px; flex-wrap: wrap; padding-block: 8px; }
    .wordmark { width: 111px; }
    .header-cta { margin-inline-start: auto; font-size: .82rem; min-height: 42px; padding-inline: 11px; }
    .menu-toggle { display: block; }
    .main-nav { flex-basis: 100%; margin: 0; order: 5; }
    .js .main-nav:not(.is-open) { display: none; }
    .main-nav ul { padding-block: 4px 10px; flex-wrap: wrap; }
    .hero-grid, .paper-row { grid-template-columns: 1fr; }
    .hero-photo { aspect-ratio: 1.55; }
    .paper-image { max-height: 340px; width: auto; }
}
@media (max-width: 435px) {
    .work-grid { grid-template-columns: 1fr; }
    .work-card { min-height: 145px; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
