/* -------------------------------------------------------
   Global Styles
------------------------------------------------------- */

:root {
    --text-color: #1b2633;
    --headline-color: #0F4761;
    --accent-color: #b2813a;
    --light-accent: #f4e6cd;
    --surface: #ffffff;
    --surface-strong: #f6f0e8;
    --border: rgba(15, 71, 97, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f7f3ef;
    color: var(--text-color);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* -------------------------------------------------------
   Header & Navigation
------------------------------------------------------- */

header {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid rgba(15, 71, 97, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-strip {
    background: var(--light-accent);
    padding: 12px 0 18px;
}

.nav-buttons {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-buttons a {
    background: var(--surface);
    color: var(--headline-color);
    border: 1px solid rgba(15,71,97,0.14);
    border-radius: 999px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.nav-buttons a:hover,
.nav-buttons a:focus {
    background: #fff5d9;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

/* -------------------------------------------------------
   Hero sections
------------------------------------------------------- */

.hero {
    position: relative;
    margin: 30px 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 71, 97, 0.08);
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: min(90%, 520px);
    background: rgba(15, 71, 97, 0.88);
    color: white;
    padding: 26px;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}

.hero-text p,
.hero-text h1,
.hero-text h2 {
    margin: 0;
}

.hero-text h1 {
    font-size: 2rem;
    line-height: 1.15;
}

.hero-text p {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.7;
}

/* -------------------------------------------------------
   Page sections
------------------------------------------------------- */

.section-title {
    margin-bottom: 16px;
    color: var(--headline-color);
    font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.content-box,
.card,
.hero-text,
.testimonial-card,
.details-wrapper,
footer {
    word-wrap: break-word;
}

.content-box {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 71, 97, 0.08);
    padding: 28px;
    margin: 24px 0;
}

.content-box p,
.content-box li {
    color: var(--text-color);
}

.page-hero {
    padding: 40px 20px;
    text-align: center;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 3vw, 3rem);
    color: var(--headline-color);
}

.grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

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

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

.grid-1-2 {
    grid-template-columns: 1.4fr 1fr;
}

.card {
    background: var(--surface);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 24px rgba(15, 71, 97, 0.08);
    border: 1px solid rgba(15, 71, 97, 0.08);
}

.card h2 {
    margin-top: 0;
    font-size: 1.35rem;
    color: var(--headline-color);
}

.card p,
.card ul,
.card li {
    margin: 0;
    color: var(--text-color);
}

.card ul {
    padding-left: 20px;
}

.card li {
    margin-bottom: 0.8rem;
}

.asset-box {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 71, 97, 0.08);
    background: #fff;
    min-height: 280px;
    display: flex;
    align-items: stretch;
}

.asset-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: center;
}

.about-top .about-photo {
    min-height: 320px;
    overflow: hidden;
    border-radius: 22px;
}

.about-top .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-line {
    text-align: center;
    margin: 40px 0 20px;
    font-weight: 700;
    color: var(--headline-color);
}

footer {
    text-align: center;
    padding: 28px 16px;
    font-size: 14px;
    background: var(--surface-strong);
    border-top: 1px solid rgba(15, 71, 97, 0.08);
    color: var(--text-color);
}

footer a {
    text-decoration: none;
    color: var(--headline-color);
    font-weight: 700;
}

footer a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 14px 26px;
    background: var(--accent-color);
    color: #0F4761;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(15,71,97,0.2);
}

.button:hover,
.button:focus {
    background: #ffe4a0;
}

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .header-inner {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-buttons {
    direction: rtl;
}

html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .content-box,
html[dir="rtl"] .card,
html[dir="rtl"] .details-wrapper,
html[dir="rtl"] footer {
    text-align: right;
}

html[dir="rtl"] .about-top {
    grid-template-columns: 1fr 1.4fr;
}

html[dir="rtl"] .hero-text {
    left: auto;
    right: 24px;
}

/* -------------------------------------------------------
   FAQ details
------------------------------------------------------- */

details {
    background: #fff;
    border: 1px solid rgba(15,71,97,0.12);
    border-radius: 20px;
    margin: 16px 0;
    overflow: hidden;
}

summary {
    cursor: pointer;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--headline-color);
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    background: var(--surface-strong);
}

details p {
    padding: 0 24px 22px;
    margin: 0;
    line-height: 1.8;
}

/* -------------------------------------------------------
   Responsive behaviour
------------------------------------------------------- */

@media (max-width: 992px) {
    .grid-3,
    .grid-1-2,
    .about-top {
        grid-template-columns: 1fr;
    }

    .hero-text {
        width: calc(100% - 48px);
        left: 16px;
        right: 16px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-buttons {
        justify-content: center;
    }

    .hero-text {
        position: static;
        transform: none;
        margin: 0;
        border-radius: 0 0 22px 22px;
    }
}

