/* =========================================
   STRIX SOLUTIONS — Custom Styles
   ========================================= */

/* ---- Base ---- */

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: rgba(155, 27, 48, 0.1);
    color: #1C1917;
}

/* ---- Animations ---- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lineGrow {
    from { width: 0; }
    to { width: 2rem; }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Header ---- */

#site-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 0 rgba(28, 25, 23, 0.05);
}

/* ---- Navigation ---- */

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #9B1B30;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 15px 36px;
    border: 1px solid #9B1B30;
    color: #9B1B30;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9B1B30;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: #FFFFFF;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    color: #1C1917;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1C1917;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.btn-secondary:hover {
    color: #9B1B30;
}

.btn-secondary:hover::after {
    background-color: #9B1B30;
}

.btn-primary-light {
    display: inline-flex;
    align-items: center;
    padding: 15px 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary-light:hover {
    background-color: #FFFFFF;
    color: #1C1917;
    border-color: #FFFFFF;
}

/* ---- Service Cards ---- */

.service-card {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card .card-inner {
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover .card-inner {
    border-color: rgba(155, 27, 48, 0.2);
    box-shadow: 0 8px 32px -8px rgba(155, 27, 48, 0.06);
}

/* ---- Form ---- */

.form-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid #E7E5E0;
    background: transparent;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1C1917;
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus {
    border-bottom-color: #9B1B30;
}

.form-input::placeholder {
    color: #B5AFA4;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ---- Section Divider ---- */

.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-label .label-line {
    display: block;
    width: 2rem;
    height: 1px;
    background-color: #9B1B30;
}

.section-label .label-text {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9B1B30;
}

/* ---- Dot Grid Background ---- */

.bg-dot-grid {
    background-image: radial-gradient(circle at 1px 1px, #1C1917 0.5px, transparent 0);
    background-size: 32px 32px;
}

/* ---- Process Steps ---- */

.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: calc(100% + 0.5rem);
    width: calc(100% - 1rem);
    height: 1px;
    background: linear-gradient(to right, #E7E5E0, transparent);
    display: none;
}

@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        display: block;
    }
}

/* ---- Privacy / Legal Content ---- */

.legal-content h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1C1917;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: #6E685E;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    color: #6E685E;
    line-height: 1.8;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

/* ---- Abstract Graphics ---- */

.hero-graphic {
    animation: slowSpin 200s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.float-graphic {
    animation: gentleFloat 24s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---- Responsive refinements ---- */

@media (max-width: 640px) {
    .btn-primary,
    .btn-primary-light {
        padding: 13px 28px;
        font-size: 0.6875rem;
    }
}
