/* ==========================================================
   NIKAH BOOK - CHILD SAFETY STANDARDS
   Website: https://nikahbook.in/child-safety/
   Brand: #065C6F
   ========================================================== */

/* ------------------------------
   VARIABLES
------------------------------ */

:root {
    --brand: #065C6F;
    --brand-dark: #044A59;
    --brand-light: #EFF7F8;

    --background: #FFFFFF;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFB;

    --text-primary: #18292F;
    --text-secondary: #53666D;
    --text-muted: #718087;

    --border: #E2EAED;
    --border-strong: #CBDDE2;

    --font-body: "DM Sans", sans-serif;
    --font-heading: "Montserrat", sans-serif;

    --container-width: 1160px;
    --radius: 14px;
}

/* ------------------------------
   RESET & GLOBAL
------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    padding: 0;

    background: var(--background);
    color: var(--text-primary);

    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;

    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
    border-radius: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.4;
}

.container {
    width: min(var(--container-width),
            calc(100% - 48px));

    margin-left: auto;
    margin-right: auto;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 1000;

    padding: 10px 16px;

    background: var(--brand);
    color: #FFFFFF;

    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

/* ------------------------------
   HEADER
------------------------------ */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 82px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--brand);

    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    border: 1px solid var(--border-strong);
    border-radius: 8px;

    background: #FFFFFF;
    color: var(--brand);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.header-link:hover {
    background: var(--brand-light);
    text-decoration: none;
}

/* ------------------------------
   PAGE INTRODUCTION
------------------------------ */

.page-intro {
    padding: 64px 0 52px;
    background: #FFFFFF;
}

.intro-inner {
    max-width: var(--container-width);
}

.eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--brand);

    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.page-intro h1 {
    max-width: 850px;

    margin-bottom: 20px;

    font-size: clamp(29px, 4vw, 43px);
    font-weight: 600;
    letter-spacing: -1.3px;
    line-height: 1.25;
}

.intro-description {
    max-width: 760px;

    margin-bottom: 28px;

    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.commitment-note {
    max-width: 860px;

    padding: 24px 26px;

    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--brand);
    border-radius: 10px;

    background: var(--brand-light);
}

.note-title {
    display: block;

    margin-bottom: 9px;

    color: var(--brand);

    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.commitment-note p {
    margin-bottom: 0;

    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.85;
}

.updated-date {
    margin-top: 22px;
    margin-bottom: 0;

    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* ------------------------------
   CONTENT LAYOUT
------------------------------ */

.content-section {
    padding: 40px 0 86px;

    background: var(--surface-soft);
    border-top: 1px solid var(--border);
}

.content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 260px) minmax(0, 1fr);

    align-items: start;
    gap: 28px;
}

.toc-column,
.policy-column {
    min-width: 0;
}

/* ------------------------------
   TABLE OF CONTENTS
------------------------------ */

.toc-column {
    position: sticky;
    top: 24px;
}

.toc-card {
    padding: 25px 20px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.toc-card h2 {
    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 600;
}

.toc-card a {
    display: block;

    padding: 10px 12px;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;

    border-radius: 7px;
}

.toc-card a:hover,
.toc-card a:focus-visible {
    background: var(--brand-light);
    color: var(--brand);
    text-decoration: none;
}

/* ------------------------------
   POLICY SECTIONS
------------------------------ */

.policy-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.policy-card {
    min-width: 0;

    padding: 36px 38px;

    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);

    scroll-margin-top: 24px;
}

.section-number {
    display: block;

    margin-bottom: 10px;

    color: var(--brand);

    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.policy-card h2 {
    margin-bottom: 22px;

    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.45;
}

.policy-card h3 {
    margin-top: 28px;
    margin-bottom: 12px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.policy-card p {
    margin-bottom: 16px;

    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.policy-card p:last-child {
    margin-bottom: 0;
}

.policy-card strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ------------------------------
   POLICY LISTS
------------------------------ */

.policy-list {
    margin: 14px 0 23px;
    padding-left: 23px;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.9;
}

.policy-list li {
    padding-left: 5px;
    margin-bottom: 11px;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

.policy-list li::marker {
    color: var(--brand);
}

/* ------------------------------
   REPORTING CONTACT
------------------------------ */

.contact-email {
    display: inline-block;

    margin: 0 0 16px;

    color: var(--brand);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.contact-email:hover {
    color: var(--brand-dark);
}

/* ------------------------------
   SAFETY NOTICE
------------------------------ */

.safety-notice {
    margin: 23px 0;

    padding: 21px 23px;

    background: #FFF9F1;
    border: 1px solid #F0DDC3;
    border-left: 4px solid #B87924;
    border-radius: 10px;
}

.safety-notice strong {
    display: block;

    margin-bottom: 9px;

    color: #76501C;
    font-size: 13px;
    font-weight: 700;
}

.safety-notice p {
    margin: 0;

    color: #69543A;
    font-size: 13px;
    line-height: 1.8;
}

/* ------------------------------
   EXTERNAL GOVERNMENT LINK
------------------------------ */

.external-link {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--brand);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.external-link:hover {
    color: var(--brand-dark);
}

.policy-card .small-note {
    color: var(--text-muted);
    font-size: 12px;
}

/* ------------------------------
   CONTACT PANEL
------------------------------ */

.contact-panel {
    margin: 22px 0;

    padding: 24px 25px;

    background: var(--brand-light);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
}

.contact-panel h3 {
    margin: 0 0 17px;

    color: var(--brand);

    font-size: 15px;
    font-weight: 600;
}

.contact-panel p {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 7px 16px;

    margin-bottom: 11px;

    font-size: 13px;
}

.contact-panel p:last-child {
    margin-bottom: 0;
}

.contact-panel strong {
    min-width: 65px;
    font-weight: 700;
}

.contact-panel a {
    color: var(--brand);
    font-weight: 600;

    overflow-wrap: anywhere;
}

/* ------------------------------
   BOTTOM CONTACT SECTION
------------------------------ */

.bottom-section {
    padding: 69px 0 75px;

    background: #FFFFFF;
    border-top: 1px solid var(--border);
}

.bottom-inner {
    max-width: 760px;
    text-align: center;
}

.bottom-inner h2 {
    margin-bottom: 16px;

    font-size: clamp(21px, 3vw, 29px);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.bottom-inner p {
    max-width: 600px;

    margin: 0 auto 25px;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.8;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    max-width: 100%;

    padding: 12px 24px;

    background: var(--brand);
    color: #FFFFFF;

    border: 1px solid var(--brand);
    border-radius: 9px;

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.contact-button:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #FFFFFF;
    text-decoration: none;
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
    background: var(--brand);
    color: #FFFFFF;

    padding: 38px 0 25px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 24px;

    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #FFFFFF;

    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-brand:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.site-footer nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px 25px;

    max-width: 100%;
}

.site-footer nav a {
    color: #FFFFFF;

    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;

    opacity: 0.88;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
    opacity: 1;
    text-decoration: underline;
}

.site-footer p {
    margin: 0;

    color: #FFFFFF;

    font-size: 11px;
    line-height: 1.6;

    opacity: 0.76;
}

/* ------------------------------
   TABLET
------------------------------ */

@media (max-width: 1000px) {

    .content-layout {
        grid-template-columns:
            minmax(0, 220px) minmax(0, 1fr);

        gap: 20px;
    }

    .policy-card {
        padding: 29px 28px;
    }

    .toc-card {
        padding: 20px 15px;
    }
}

/* ------------------------------
   MOBILE
------------------------------ */

@media (max-width: 760px) {

    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .brand {
        gap: 9px;
        font-size: 17px;
    }

    .brand img {
        width: 33px;
        height: 33px;
    }

    .header-link {
        padding: 8px 12px;
        font-size: 11px;
    }

    .page-intro {
        padding: 43px 0 36px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.1px;
    }

    .page-intro h1 {
        margin-bottom: 15px;

        font-size: 29px;
        letter-spacing: -0.8px;
    }

    .intro-description {
        margin-bottom: 22px;

        font-size: 14px;
        line-height: 1.85;
    }

    .commitment-note {
        padding: 20px;
    }

    .commitment-note p {
        font-size: 13px;
    }

    .content-section {
        padding: 25px 0 55px;
    }

    .content-layout {
        display: flex;
        flex-direction: column;

        gap: 23px;
    }

    .toc-column {
        position: static;
        width: 100%;
    }

    .toc-card {
        padding: 20px;
    }

    .toc-card h2 {
        margin-bottom: 10px;
    }

    .toc-card a {
        padding: 9px 10px;
        font-size: 12px;
    }

    .policy-column {
        width: 100%;
        gap: 17px;
    }

    .policy-card {
        padding: 25px 22px;
    }

    .policy-card h2 {
        margin-bottom: 18px;
        font-size: 19px;
    }

    .policy-card h3 {
        font-size: 14px;
    }

    .policy-card p,
    .policy-list {
        font-size: 13px;
        line-height: 1.85;
    }

    .safety-notice {
        padding: 18px;
    }

    .contact-panel {
        padding: 20px;
    }

    .bottom-section {
        padding: 52px 0 57px;
    }

    .bottom-inner h2 {
        font-size: 22px;
    }

    .site-footer {
        padding: 32px 0 24px;
    }

    .site-footer nav {
        gap: 13px 18px;
    }
}

/* ------------------------------
   SMALL MOBILE DEVICES
------------------------------ */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 28px);
    }

    .brand {
        font-size: 15px;
    }

    .brand img {
        width: 29px;
        height: 29px;
    }

    .header-link {
        font-size: 10px;
        padding: 7px 9px;
    }

    .page-intro h1 {
        font-size: 26px;
    }

    .policy-card {
        padding: 22px 18px;
    }

    .policy-card h2 {
        font-size: 18px;
    }

    .contact-button {
        width: 100%;
    }

    .site-footer nav {
        gap: 12px 15px;
    }
}

/* ==========================================
   NIKAH BOOK — STYLIZED BRAND WORDMARK
   Brand teal header / White footer
   ========================================== */

/* Header wordmark */
.site-header .brand img.brand-wordmark-img {
    display: block;
    width: auto;
    height: 20px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

/* Footer wordmark */
.site-footer .footer-brand img.brand-wordmark-img {
    display: block;
    width: auto;
    height: 20px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 700px) {

    .site-header .brand img.brand-wordmark-img,
    .site-footer .footer-brand img.brand-wordmark-img {
        height: 18.4px;
    }
}

/* Very small mobile screens */
@media (max-width: 360px) {
    .site-header .brand img.brand-wordmark-img {
        height: 16px;
    }
}