/* ==========================================================
   CYBER HOUSE 360 — BASE STYLES
   Shared styles used across all website pages

   1. Design variables
   2. Global reset
   3. Typography
   4. Layout
   5. Buttons
   6. Form messages
   7. Accessibility
   8. Responsive design
   ========================================================== */


/* ==========================================================
   1. DESIGN VARIABLES
   ========================================================== */

:root {

    /* Brand colors */
    --header-bg: #0A0F2C;
    --navy: #001540;

    --purple: #9B4DFF;
    --purple-dark: #8438EE;
    --blue: #1A0FD0;

    --gradient: linear-gradient(
        135deg,
        #9B4DFF 0%,
        #1A0FD0 100%
    );

    /* Text */
    --text: #1B2140;
    --text-light: #5A6284;

    /* Backgrounds */
    --bg: #FFFFFF;
    --bg-soft: #F4F5FB;

    /* Borders */
    --border: #E3E6F2;

    /* Layout */
    --radius: 10px;
    --max-width: 1520px;

    /* Typography */
    --font: "Sora", "Segoe UI", Arial, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

}


/* ==========================================================
   2. GLOBAL RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;

    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;

    color: var(--text);
    background: var(--bg);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--purple);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.05rem;
}

p {
    color: var(--text-light);
    line-height: 1.75;
}

strong,
b {
    font-weight: 700;
}

small {
    font-size: 0.875rem;
}

a {
    text-decoration-skip-ink: auto;
}

::selection {
    background: #DCC5FF;
    color: var(--navy);
}


/* ==========================================================
   4. LAYOUT HELPERS
   ========================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}

.section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.section-soft {
    background: var(--bg-soft);
}


/* ==========================================================
   5. BUTTONS
   ========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 13px 26px;

    min-height: 48px;

    border: 2px solid transparent;
    border-radius: var(--radius);

    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-normal),
        transform var(--transition-normal);
}


/* Primary button */

.btn-primary {
    background: var(--purple);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--purple-dark);
    color: #FFFFFF;

    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(155, 77, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}


/* Outline button */

.btn-outline {
    background: transparent;

    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #FFFFFF;

    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
}


/* Disabled buttons */

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;

    box-shadow: none;
    transform: none;
}


/* ==========================================================
   6. FLASH MESSAGES
   ========================================================== */

.flash-area {
    padding-top: 20px;
}

.flash {
    padding: 14px 18px;

    margin-bottom: 10px;

    border-radius: var(--radius);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}


/* Success message */

.flash-success {
    background: #E6F9EE;
    color: #13653A;

    border: 1px solid #B6E9CA;
}


/* Error message */

.flash-error {
    background: #FDECEC;
    color: #9B1C1C;

    border: 1px solid #F5C2C2;
}


/* ==========================================================
   7. ACCESSIBILITY
   ========================================================== */

/* Keyboard focus */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}


/* Better keyboard navigation */

:focus:not(:focus-visible) {
    outline: none;
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}


/* ==========================================================
   8. RESPONSIVE DESIGN
   ========================================================== */


/* Tablets */

@media (max-width: 1024px) {

    .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

}


/* Mobile */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    h1 {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }

    h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    h3 {
        font-size: 1.15rem;
    }

    .btn {
        padding: 12px 22px;
        min-height: 46px;
    }

}


/* Small mobile devices */

@media (max-width: 480px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .flash {
        font-size: 13px;
        padding: 12px 14px;
    }

}