/* M.Hamouda */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
    --color-primary: #e63946;
    --color-primary-dark: #c1121f;
    --color-secondary: #1d3557;

    --color-accent: #c8a97e;
    --color-accent-light: rgba(200, 169, 126, 0.25);
    --color-accent-dim: rgba(200, 169, 126, 0.15);

    --color-light: #f1faee;
    --color-dark: #111827;
    --color-gray: #6b7280;

    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-light: rgba(17, 24, 39, 0.08);

    --color-surface: #ffffff;
    --color-surface-2: #f8f8f8;

    --color-bg-dark: #0d0d0f;
    --color-surface-dark: #16161a;
    --color-surface-dark-2: #1e1e24;

    --color-danger: #e07070;
    --color-success: #7ec8a9;
    --color-highlight: #fffc53;

    --font-body: "DM Sans", sans-serif;
    --font-display: "Playfair Display", serif;

    --space-xxs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;

    --max-width: 1200px;
    --max-width-wide: 1400px;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.25);

    --transition-fast: 0.2s ease;
    --transition: 0.3s ease-in-out;
    --transition-slow: 0.45s ease;

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal: 1050;

    --container-padding: clamp(1rem, 3vw, 2rem);
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--color-light);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-gray);
    line-height: 1.8;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-accent-light);
    outline-offset: 2px;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

textarea {
    resize: vertical;
}

ul,
ol {
    list-style: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container-wide {
    width: min(100% - 2rem, var(--max-width-wide));
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--space-2xl);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

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

.justify-between {
    justify-content: space-between;
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mt-5 {
    margin-top: var(--space-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.pt-1 {
    padding-top: var(--space-xs);
}

.pt-2 {
    padding-top: var(--space-sm);
}

.pt-3 {
    padding-top: var(--space-md);
}

.pt-4 {
    padding-top: var(--space-lg);
}

.pt-5 {
    padding-top: var(--space-xl);
}

.pb-1 {
    padding-bottom: var(--space-xs);
}

.pb-2 {
    padding-bottom: var(--space-sm);
}

.pb-3 {
    padding-bottom: var(--space-md);
}

.pb-4 {
    padding-bottom: var(--space-lg);
}

.pb-5 {
    padding-bottom: var(--space-xl);
}

.mx-auto {
    margin-inline: auto;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-2);
}

::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.4);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.6);
}

@media (max-width: 992px) {
    :root {
        --space-xl: 3.5rem;
        --space-2xl: 4rem;
    }

    body {
        font-size: 15.5px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    body {
        font-size: 15px;
    }

    .section {
        padding-block: var(--space-xl);
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.75rem;
    }

    body {
        font-size: 14.5px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.35rem;
    }
}