/* =========================================================
   MAKORO - Information / Policy Pages
   Used by:
   about.php, contact-us.php, faq.php, privacy-policy.php,
   terms-conditions.php, shipping-policy.php,
   refund-replacement-policy.php
   ========================================================= */

:root {
    --mk-primary: #0b5d3b;
    --mk-primary-dark: #063d29;
    --mk-primary-light: #eaf5ef;
    --mk-accent: #c5a25d;
    --mk-accent-soft: #f7f0df;
    --mk-text: #1e2923;
    --mk-text-soft: #5f6f66;
    --mk-border: #e2e9e5;
    --mk-page-bg: #f7f9f8;
    --mk-white: #ffffff;
    --mk-shadow: 0 10px 32px rgba(13, 64, 43, 0.07);
    --mk-shadow-hover: 0 16px 42px rgba(13, 64, 43, 0.11);
    --mk-radius-lg: 22px;
    --mk-radius-md: 16px;
    --mk-radius-sm: 12px;
}

/* Page shell */
.info-page {
    width: 100%;
    min-height: 60vh;
    padding: 46px 0 76px;
    background:
        radial-gradient(circle at 100% 0%, rgba(11, 93, 59, 0.06), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(197, 162, 93, 0.07), transparent 25%),
        var(--mk-page-bg);
    color: var(--mk-text);
}

.info-page .container {
    max-width: 1140px;
}

/* Hero */
.info-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 52px;
    margin-bottom: 28px;
    border-radius: var(--mk-radius-lg);
    background: linear-gradient(135deg, var(--mk-primary-dark) 0%, var(--mk-primary) 62%, #16714d 100%);
    color: var(--mk-white);
    box-shadow: 0 22px 55px rgba(6, 61, 41, 0.14);
}

.info-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -120px;
    right: -70px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.info-hero::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: 70px;
    bottom: -90px;
    background: rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.info-hero > * {
    position: relative;
    z-index: 1;
}

.info-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #e5cf9d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.info-hero h1 {
    max-width: 850px;
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.info-hero p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.8;
}

/* Generic content card */
.info-card {
    position: relative;
    margin-bottom: 20px;
    padding: 32px;
    background: var(--mk-white);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-md);
    box-shadow: var(--mk-shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: #d4dfd9;
    box-shadow: var(--mk-shadow-hover);
}

.info-card h2 {
    position: relative;
    margin: 0 0 17px;
    padding-bottom: 11px;
    color: var(--mk-primary-dark);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.info-card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--mk-accent);
}

.info-card h3 {
    margin: 23px 0 9px;
    color: var(--mk-primary-dark);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

.info-card p,
.info-card li {
    color: var(--mk-text-soft);
    font-size: 15px;
    line-height: 1.82;
}

.info-card p:last-child,
.info-card ul:last-child,
.info-card ol:last-child {
    margin-bottom: 0;
}

.info-card ul,
.info-card ol {
    padding-left: 22px;
}

.info-card li {
    margin-bottom: 7px;
}

.info-card li:last-child {
    margin-bottom: 0;
}

.info-card strong {
    color: #30423a;
    font-weight: 750;
}

.info-card a,
.info-contact-item a {
    color: var(--mk-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease;
}

.info-card a:hover,
.info-contact-item a:hover {
    color: var(--mk-primary-dark);
    text-decoration: underline;
}

/* Highlight / important note */
.info-highlight {
    margin-top: 20px;
    padding: 17px 20px;
    background: var(--mk-primary-light);
    border: 1px solid #d9ebe1;
    border-left: 4px solid var(--mk-primary);
    border-radius: 0 var(--mk-radius-sm) var(--mk-radius-sm) 0;
    color: #3d5549;
    font-size: 14px;
    line-height: 1.75;
}

.info-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: #748178;
    font-size: 13px;
    line-height: 1.5;
}

/* Contact page */
.info-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.info-contact-item {
    height: 100%;
    padding: 27px 24px;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-md);
    box-shadow: var(--mk-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--mk-shadow-hover);
}

.info-contact-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    border-radius: 14px;
    background: var(--mk-primary-light);
    color: var(--mk-primary);
    font-size: 18px;
}

.info-contact-item h3 {
    margin: 0 0 8px;
    color: var(--mk-primary-dark);
    font-size: 17px;
    font-weight: 800;
}

.info-contact-item p {
    margin: 0;
    color: var(--mk-text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* FAQ */
.faq-item {
    position: relative;
    padding: 21px 0;
    border-bottom: 1px solid var(--mk-border);
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.faq-item h3 {
    margin: 0 0 8px;
    padding-right: 10px;
    color: var(--mk-primary-dark);
    font-size: 17px;
    font-weight: 800;
}

.faq-item p {
    margin: 0;
}

/* Policy table */
.policy-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--mk-border);
    border-radius: 12px;
    background: #fff;
}

.policy-table th,
.policy-table td {
    padding: 14px 16px;
    border-right: 1px solid var(--mk-border);
    border-bottom: 1px solid var(--mk-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.65;
}

.policy-table th:last-child,
.policy-table td:last-child {
    border-right: 0;
}

.policy-table tr:last-child td {
    border-bottom: 0;
}

.policy-table th {
    background: var(--mk-primary-light);
    color: var(--mk-primary-dark);
    font-weight: 800;
}

.policy-table td {
    color: var(--mk-text-soft);
}

/* Bottom CTA */
.info-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 26px;
    padding: 26px 29px;
    background: linear-gradient(135deg, #ffffff, #f8fbf9);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-md);
    box-shadow: var(--mk-shadow);
}

.info-cta strong {
    display: block;
    color: var(--mk-primary-dark);
    font-size: 17px;
    font-weight: 800;
}

.info-cta p {
    margin: 4px 0 0;
    color: var(--mk-text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--mk-primary);
    border-radius: 999px;
    background: var(--mk-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(11, 93, 59, 0.16);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.info-btn:hover {
    background: var(--mk-primary-dark);
    border-color: var(--mk-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 11px 23px rgba(11, 93, 59, 0.22);
}

.info-btn:focus {
    outline: 3px solid rgba(11, 93, 59, .15);
    outline-offset: 2px;
}

/* Accessible text selection */
.info-page ::selection {
    background: rgba(11, 93, 59, 0.18);
    color: var(--mk-primary-dark);
}

/* Tablet */
@media (max-width: 991.98px) {
    .info-page {
        padding: 36px 0 62px;
    }

    .info-hero {
        padding: 42px 36px;
    }

    .info-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .info-page {
        padding: 24px 0 46px;
    }

    .info-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .info-hero {
        padding: 31px 23px;
        margin-bottom: 18px;
        border-radius: 17px;
    }

    .info-hero h1 {
        margin-bottom: 12px;
        font-size: 31px;
    }

    .info-hero p {
        font-size: 14px;
        line-height: 1.72;
    }

    .info-card {
        padding: 23px 20px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .info-card:hover,
    .info-contact-item:hover {
        transform: none;
    }

    .info-card h2 {
        font-size: 20px;
    }

    .info-card p,
    .info-card li {
        font-size: 14px;
        line-height: 1.75;
    }

    .info-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .info-contact-item {
        padding: 23px 20px;
    }

    .info-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        padding: 23px 20px;
    }

    .info-btn {
        width: 100%;
    }

    .policy-table {
        display: block;
        overflow-x: auto;
        white-space: normal;
        -webkit-overflow-scrolling: touch;
    }

    .policy-table th,
    .policy-table td {
        min-width: 160px;
        padding: 12px 13px;
        font-size: 13px;
    }
}

/* Extra-small phones */
@media (max-width: 420px) {
    .info-hero {
        padding: 27px 19px;
    }

    .info-hero h1 {
        font-size: 27px;
    }

    .info-card {
        padding: 21px 17px;
    }
}
