/* =======================================================================
   10-base.css — Samundri Theme (Base Typography & Elements)
   یہ فائل صرف ٹیکسٹ، لنکس اور فارم ایلیمنٹس کو کنٹرول کرتی ہے۔
======================================================================= */

body {
    font-family: var(--font-urdu);
    font-size: var(--fs-md);
    line-height: var(--lh);
    color: var(--text);
    background: var(--bg);
    text-align: right;
    direction: rtl;
}

/* Typography */
p { margin: 0 0 .9em; }

h1, h2, h3, h4, h5, h6 { 
    margin: .6em 0 .4em; 
    font-weight: 800; 
    color: var(--text); 
}

h1 { font-size: var(--fs-3xl); line-height: 1.25; }
h2 { font-size: var(--fs-2xl); line-height: 1.3; }
h3 { font-size: var(--fs-xl);  line-height: 1.35; }
h4 { font-size: var(--fs-lg);  line-height: 1.4; }
h5 { font-size: var(--fs-md);  line-height: 1.45; }
h6 { font-size: var(--fs-sm);  line-height: 1.5; }

/* Links */
a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover { 
    text-decoration: underline; 
    color: var(--brand-600);
}

a:focus-visible {
    outline: 2px dashed var(--brand);
    outline-offset: 3px;
}

/* ─── FIX: Blue Flash روکنے کے لیے — link click کے وقت رنگ inherit رہے گا ─── */
a:active {
    color: inherit;
}

/* Selection */
::selection {
    background: rgba(29, 78, 216, 0.15); 
    color: var(--brand);
}

/* Lists */
ul, ol {
    margin: 0 0 1em;
    padding: 0 1.2em 0 0; 
}

/* Blockquote */
blockquote {
    margin: .9em 0;
    padding: .6em .8em;
    border-right: 4px solid var(--brand);
    background: var(--surface);
    border-radius: var(--radius-sm);
}

/* Forms */
input[type="text"], input[type="tel"],
input[type="email"], input[type="number"], select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6em .8em;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Container */
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad-inline);
}

/* Section heading */
.section-heading {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 10px; 
    padding-bottom: 8px; 
    margin: 8px 0 15px;
    border-bottom: 2px solid var(--border);
}

.section-heading h2,
.section-heading h3 {
    margin: 0; 
    color: var(--brand);
}

/* Accessibility */
[tabindex]:focus-visible,
.focus-ring:focus-visible {
    outline: 2px dashed var(--brand);
    outline-offset: 3px;
}
