/* IranNordic — shared styles for English (ltr) and Persian (rtl) pages */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --navy: #0F1E2E;
  --navy-line: #2C4257;
  --paper: #F6F3EC;
  --card: #FFFDF8;
  --border: #E4DED1;
  --teal: #17706E;
  --teal-light: #5FC4BC;
  --saffron: #E0A944;
  --saffron-soft: #F3D9A4;
  --ink: #0F1E2E;
  --body: #45525F;
  --body-dark: #B9C6CF;
  --muted: #6B7680;
  --muted-dark: #8796A3;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --fa: "Vazirmatn", Tahoma, sans-serif;
  --wrap: 1200px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
html[lang="fa"] body { font-family: var(--fa); line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-block-end: 48px; }
.eyebrow { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 600; }
html[lang="fa"] .eyebrow { letter-spacing: 0; font-size: 16px; text-transform: none; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
html[lang="fa"] .h2 { font-family: var(--fa); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.4; }
.lead { font-size: 18px; color: var(--body); }
.dark { background: var(--navy); color: var(--paper); }
.dark .eyebrow { color: var(--saffron); }
.dark .lead, .dark p { color: var(--body-dark); }
.dark h2, .dark h3 { color: var(--paper); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--saffron); color: var(--navy); padding: 8px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }
.latin { font-family: var(--serif); }
.fa-text { font-family: var(--fa); }

/* Buttons */
.btn { display: inline-block; font-weight: 600; font-size: 17px; padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn-primary { background: var(--saffron); color: var(--navy); }
.btn-primary:hover { background: #ECBC62; color: var(--navy); }
.btn-ghost { border-color: var(--teal-light); color: var(--paper); }
.btn-ghost:hover { background: rgba(95, 196, 188, 0.12); color: var(--paper); }

/* Header */
.site-header { background: var(--navy); color: var(--paper); position: relative; z-index: 2; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--paper); text-decoration: none; }
.logo:hover { color: var(--paper); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 16px; }
.nav-links a { color: var(--body-dark); text-decoration: none; padding-block: 8px; }
.nav-links a:hover { color: var(--paper); }
.nav-links .lang { color: var(--teal-light); }
.nav-links .btn { padding: 10px 20px; font-size: 15px; color: var(--navy); }

/* Hero */
.hero { position: relative; color: var(--paper); background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(15,30,46,0.94) 0%, rgba(15,30,46,0.78) 45%, rgba(15,30,46,0.35) 100%), url("../img/hero-1920.jpg");
  background-image: linear-gradient(90deg, rgba(15,30,46,0.94) 0%, rgba(15,30,46,0.78) 45%, rgba(15,30,46,0.35) 100%), image-set(url("../img/hero-1920.webp") type("image/webp"), url("../img/hero-1920.jpg") type("image/jpeg"));
  background-size: cover; background-position: center 35%; }
html[dir="rtl"] .hero { background-image: linear-gradient(270deg, rgba(15,30,46,0.94) 0%, rgba(15,30,46,0.78) 45%, rgba(15,30,46,0.35) 100%), url("../img/hero-1920.jpg");
  background-image: linear-gradient(270deg, rgba(15,30,46,0.94) 0%, rgba(15,30,46,0.78) 45%, rgba(15,30,46,0.35) 100%), image-set(url("../img/hero-1920.webp") type("image/webp"), url("../img/hero-1920.jpg") type("image/jpeg")); }
@media (max-width: 900px) {
  .hero, html[dir="rtl"] .hero { background-image: linear-gradient(0deg, rgba(15,30,46,0.92), rgba(15,30,46,0.72)), url("../img/hero-960.jpg");
    background-image: linear-gradient(0deg, rgba(15,30,46,0.92), rgba(15,30,46,0.72)), image-set(url("../img/hero-960.webp") type("image/webp"), url("../img/hero-960.jpg") type("image/jpeg")); }
}
.hero-inner { padding-block: 112px 128px; display: flex; flex-direction: column; gap: 28px; }
.hero .eyebrow { color: var(--saffron); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 76px); line-height: 1.05; max-width: 780px; }
html[lang="fa"] .hero h1 { font-family: var(--fa); font-weight: 700; font-size: clamp(36px, 5.5vw, 66px); line-height: 1.35; }
.hero .lead { color: #D6E0E6; font-size: 20px; max-width: 620px; }
.hero .fa-line { font-family: var(--fa); font-size: 24px; color: var(--teal-light); }
html[dir="ltr"] .fa-line { text-align: left; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-block-start: 8px; }

/* Status strip */
.status { background: var(--teal); color: var(--paper); }
.status .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding-block: 20px; }
.status strong { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--saffron-soft); }
html[lang="fa"] .status strong { letter-spacing: 0; font-size: 15px; }
.status p { flex: 1 1 480px; font-size: 16px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 240px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; font-weight: 600; }
html[lang="fa"] .card h3 { font-size: 22px; font-weight: 700; color: var(--teal); }
.card p { font-size: 16px; color: var(--body); }
.card svg { width: 36px; height: 36px; }

/* Phases */
.phases { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.phases li { flex: 1 1 280px; border-block-start: 4px solid var(--saffron); padding-block-start: 24px; display: flex; flex-direction: column; gap: 12px; }
.phases li:nth-child(2) { border-color: var(--teal-light); }
.phases li:nth-child(3) { border-color: var(--paper); }
.phase-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--saffron) !important; }
.phases li:nth-child(2) .phase-label { color: var(--teal-light) !important; }
.phases li:nth-child(3) .phase-label { color: var(--paper) !important; }
html[lang="fa"] .phase-label { letter-spacing: 0; font-size: 15px; }
.phases h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
html[lang="fa"] .phases h3 { font-family: var(--fa); }

/* Split panels */
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 400px; border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.panel-light { background: var(--card); border: 1px solid var(--border); }
.panel-teal { background: var(--teal); color: var(--paper); }
.panel-teal p { color: #E3EFEC; }
.panel h3 { font-size: 26px; font-weight: 600; }
.panel ul { margin: 0; padding-inline-start: 20px; color: var(--body); line-height: 1.8; }
.panel .btn { align-self: flex-start; }

/* Compliance list */
.comply { background: var(--card); border-block: 1px solid var(--border); }
.comply .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.comply .stack { flex: 1 1 360px; }
.rules { flex: 1 1 420px; list-style: none; margin: 0; padding: 0; }
.rules li { padding-block: 20px; border-block-start: 1px solid var(--border); font-size: 17px; }
.rules li:last-child { border-block-end: 1px solid var(--border); }
.note { font-size: 14px; color: var(--muted); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips span { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 12px 22px; font-size: 16px; font-weight: 500; }

/* About */
.about .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.photo { flex: 0 1 320px; aspect-ratio: 4 / 5; border: 2px dashed var(--navy-line); border-radius: 24px; display: flex; align-items: center; justify-content: center; color: var(--muted-dark); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.photo.has-img { border: 0; display: block; }
html[dir="rtl"] .h2.latin { text-align: right; font-family: var(--serif); font-weight: 500; }
.photo.has-img img { border-radius: 24px; }
.about .stack { flex: 1 1 420px; }

/* Contact */
.contact { background: var(--teal); color: var(--paper); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.contact .stack { flex: 1 1 340px; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
html[lang="fa"] .contact h2 { font-family: var(--fa); font-weight: 700; line-height: 1.4; }
.contact p { color: #E3EFEC; }
.contact .fa-line { font-family: var(--fa); font-size: 24px; color: var(--saffron-soft); }
.contact .mail { color: var(--paper); font-weight: 600; }

form.contact-form { flex: 1 1 480px; background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #C9C2B4; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid rgba(23,112,110,0.25); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 12px; }
.radios label { display: flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid #C9C2B4; border-radius: 999px; padding: 10px 18px; cursor: pointer; min-height: 44px; }
.radios input { width: 18px; height: 18px; min-height: 0; accent-color: var(--teal); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-block-start: 3px; accent-color: var(--teal); flex: none; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 15px; border-radius: 10px; padding: 12px 16px; display: none; }
.form-status.ok { display: block; background: #E3F2EF; color: #0C4F4D; }
.form-status.err { display: block; background: #FBE9E7; color: #8A2A1B; }
form.contact-form .btn { justify-self: start; border: 0; }
@media (max-width: 640px) { form.contact-form { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-dark); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px; }
.site-footer a { color: var(--body-dark); }
.site-footer .logo { font-size: 18px; }

/* Legal page */
.legal { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); margin-block-end: 24px; }
html[lang="fa"] .legal h1 { font-family: var(--fa); font-weight: 700; }
.legal h2 { font-size: 22px; margin-block: 32px 8px; }
.legal p, .legal li { color: var(--body); }

@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .hero-inner { padding-block: 72px 88px; }
  .panel, .card { padding: 28px; }
}
