/*
  Theme: Untowardliness - Юридичне агентство
  Design System: Brutalism + Eco-minimalism
  Color Scheme: Monochromatic
  Fonts: Oswald (Headings), Nunito (Body)
*/

/* CSS Variables */
:root {
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    /* Monochromatic Palette - Strict, High Contrast */
    --color-background: #FFFFFF; /* Pure white for eco-minimalism base */
    --color-background-alt: #F5F5F5; /* Very light grey for subtle section differentiation */
    --color-background-dark: #1A1A1A; /* Off-black for dark sections like footer/header */
    
    --color-text-primary: #1A1A1A; /* Off-black for primary text on light backgrounds */
    --color-text-secondary: #333333; /* Dark grey for secondary text */
    --color-text-light: #FFFFFF; /* Pure white for text on dark backgrounds */
    --color-text-subtle: #555555; /* Medium grey for less important text */

    --color-border-strong: #000000; /* Pure black for brutalist borders */
    --color-border-medium: #BFBFBF; /* Medium grey for card borders */
    --color-border-light: #D9D9D9; /* Light grey for subtle borders */

    --color-accent: #1A1A1A; /* Main accent - often the same as primary text or dark bg */
    --color-accent-hover: #000000; /* Darker hover for accent */
    
    --color-button-primary-bg: var(--color-accent);
    --color-button-primary-text: var(--color-text-light);
    --color-button-primary-border: var(--color-accent);
    --color-button-primary-bg-hover: var(--color-accent-hover);
    --color-button-primary-border-hover: var(--color-accent-hover);

    --color-button-light-outlined-text: var(--color-text-light);
    --color-button-light-outlined-border: var(--color-text-light);
    --color-button-light-outlined-bg-hover: rgba(255, 255, 255, 0.1);

    --shadow-brutalist: 4px 4px 0px var(--color-border-medium);
    --shadow-brutalist-hover: 6px 6px 0px var(--color-border-strong);
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.05);

    --border-radius-sharp: 0; /* Brutalism: no rounded corners */
    --navbar-height: 60px; /* Adjust as needed */

    --gradient-overlay-dark: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
}

/* Global Resets & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.title,
.subtitle { /* Bulma classes */
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em; /* Default margin */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05); /* Very subtle shadow for depth */
}

.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.25rem; }
.title.is-3 { font-size: 1.75rem; }
.title.is-4 { font-size: 1.5rem; }
.subtitle { color: var(--color-text-secondary); }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

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

/* Utility Classes */
.has-text-centered { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Sections */
.section {
    padding: 4rem 1.5rem; /* Default padding */
}
.section.has-background-light {
    background-color: var(--color-background-alt);
}
.section .container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.section-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    margin-bottom: 2.5rem; /* More space below section titles */
}

/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sharp);
    padding: 0.75em 1.75em;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Primary Button Style */
.button.is-primary, button.is-primary, input[type="submit"].is-primary {
    background-color: var(--color-button-primary-bg);
    color: var(--color-button-primary-text);
    border-color: var(--color-button-primary-border);
}
.button.is-primary:hover, button.is-primary:hover, input[type="submit"].is-primary:hover {
    background-color: var(--color-button-primary-bg-hover);
    border-color: var(--color-button-primary-border-hover);
    color: var(--color-button-primary-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

/* Light Outlined Button Style (e.g., for Hero) */
.button.is-light.is-outlined {
    background-color: transparent;
    color: var(--color-button-light-outlined-text);
    border-color: var(--color-button-light-outlined-border);
}
.button.is-light.is-outlined:hover {
    background-color: var(--color-button-light-outlined-bg-hover);
    color: var(--color-button-light-outlined-text);
    border-color: var(--color-button-light-outlined-border);
}

.button.is-large {
    font-size: 1.1rem;
    padding: 0.85em 2em;
}
.button.is-fullwidth {
    display: block;
    width: 100%;
}

/* Forms */
.field {
    margin-bottom: 1.25rem;
}
.label {
    color: var(--color-text-primary);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}
.input, .textarea {
    display: block;
    width: 100%;
    padding: 0.75em 1em;
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    border: 2px solid var(--color-border-medium);
    border-radius: var(--border-radius-sharp);
    box-shadow: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.input:focus, .textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(26,26,26,0.15); /* Subtle focus ring */
}
.textarea {
    min-height: 120px;
    resize: vertical;
}
.checkbox {
    font-size: 0.9rem;
}
.checkbox input[type="checkbox"] {
    margin-right: 0.5em;
    vertical-align: middle;
}
.checkbox a {
    text-decoration: underline;
}

/* Header & Navbar */
.header .navbar.is-fixed-top {
    background-color: var(--color-background-dark);
    /* border-bottom: 2px solid var(--color-border-strong); */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    min-height: var(--navbar-height);
}
.navbar-brand .navbar-item.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-light) !important;
    letter-spacing: -1px;
}
.navbar-menu {
    background-color: var(--color-background-dark); /* For mobile dropdown */
}
.navbar-item, .navbar-link {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-light) !important; /* Important to override Bulma */
    padding: 0.75rem 1rem;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--color-text-light) !important;
}
.navbar-burger {
    color: var(--color-text-light);
    height: var(--navbar-height);
    width: var(--navbar-height);
}
.navbar-burger span {
    background-color: var(--color-text-light);
    height: 2px;
    left: calc(50% - 8px);
    width: 16px;
}
.navbar-burger span:nth-child(1) { top: calc(50% - 6px); }
.navbar-burger span:nth-child(2) { top: calc(50% - 1px); }
.navbar-burger span:nth-child(3) { top: calc(50% + 4px); }

.navbar-burger.is-active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.navbar-burger.is-active span:nth-child(2) { opacity: 0; }
.navbar-burger.is-active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media screen and (max-width: 1023px) {
    .navbar-menu {
        padding: 0.5rem 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .navbar-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-item:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex; /* For vertical centering if needed and fullheight */
    align-items: center;
    justify-content: center;
    /* min-height will be handled by is-fullheight from Bulma */
}
#hero .hero-body {
    padding: 3rem 1.5rem;
}
#hero .hero-title {
    font-size: 3.5rem; /* Responsive adjustments below */
    font-weight: 700;
    color: var(--color-text-light) !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* Stronger shadow for readability */
    margin-bottom: 0.5em;
}
#hero .hero-subtitle {
    font-size: 1.5rem; /* Responsive adjustments below */
    color: var(--color-text-light) !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5em;
    font-weight: 400; /* Subtitles are usually lighter */
    font-family: var(--font-secondary);
}
#hero .hero-text-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
    color: var(--color-text-light) !important;
    opacity: 0.9;
}
#hero .buttons .button {
    margin: 0.5em;
}

/* Cards (Generic Styling - Brutalism + Eco-minimalism) */
.card {
    background-color: var(--color-background);
    border: 2px solid var(--color-border-strong); /* Strong brutalist border */
    border-radius: var(--border-radius-sharp);
    box-shadow: var(--shadow-brutalist);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    overflow: hidden; /* To contain image if it's directly inside */
    display: flex;
    flex-direction: column;
    /* align-items: center; For card content, applied to card-content if needed */
    height: 100%; /* For consistent height in columns */
}
.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-brutalist-hover);
}

.card .card-image, 
.card .image-container { /* Specific class for image wrapper */
    border-bottom: 2px solid var(--color-border-strong);
    overflow: hidden; /* Crucial for object-fit */
    height: 200px; /* Default fixed height, can be overridden per card type */
    width: 100%;
    display: flex; /* Centering the image if it's smaller than container */
    align-items: center;
    justify-content: center;
}
.card .card-image img,
.card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    display: block;
}

.card .card-content {
    padding: 1.5rem;
    text-align: center; /* Center text content within cards */
    flex-grow: 1; /* Allows content to take available space for equal height cards */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical centering of content block */
}
.card .card-content .title {
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}
.card .card-content .content,
.card .card-content p { /* Ensure paragraphs inside also follow text-align */
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-align: center;
}
.card .card-content strong {
    color: var(--color-text-primary);
}

/* Specific Card Types - Adjust .card-image height if needed */
.service-card .image-container { height: 180px; }
.case-study-card .image-container { height: 220px; }
.team-member-card .image-container { 
    height: 250px; /* Square-ish for portraits */
    width: 250px; /* If using fixed width for team member image */
    max-width: 100%;
    margin: 0 auto; /* Center the image container itself if fixed width */
    border-bottom: none; /* No border if image is centered with padding around */
    padding-top: 1rem; /* Space above image if needed */
}
.team-member-card .card-image.image-container { /* If image-container is also card-image */
     border-bottom: 2px solid var(--color-border-strong); 
     padding-top: 0;
}
.team-member-card .card-content .subtitle {
    color: var(--color-text-subtle);
}

/* Vision Section */
#vision .image img {
    border: 2px solid var(--color-border-strong);
    box-shadow: var(--shadow-brutalist);
}
#vision .content.is-medium {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* Our Process Section - Timeline (Bulma based, enhanced) */
.timeline {
    margin-top: 2rem;
}
.timeline .timeline-item {
    padding-bottom: 2rem;
}
.timeline .timeline-marker {
    background-color: var(--color-accent);
    border: 3px solid var(--color-background); /* Creates a 'pop' effect */
    box-shadow: 0 0 0 2px var(--color-accent); /* Outer ring */
    width: 45px; /* Slightly larger */
    height: 45px;
    border-radius: var(--border-radius-sharp); /* Brutalist square */
}
.timeline .timeline-marker.is-icon { /* For numbered steps */
    font-family: var(--font-primary);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Colors for timeline markers if needed */
.timeline .timeline-marker.is-primary { background-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent); }
.timeline .timeline-marker.is-info   { background-color: #4A4A4A; box-shadow: 0 0 0 2px #4A4A4A; }
.timeline .timeline-marker.is-success { background-color: #555555; box-shadow: 0 0 0 2px #555555; }

.timeline .timeline-content .heading {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    font-size: 1.2em;
    margin-bottom: 0.3em;
}
.timeline .timeline-content p:not(.heading) {
    font-size: 1rem;
    color: var(--color-text-secondary);
}
.timeline .timeline-header { /* If Bulma timeline-header is used */
    background-color: var(--color-accent);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    padding: 0.5em 1em;
    border-radius: var(--border-radius-sharp);
}

/* Clientele Section - Stats */
.stat-widget {
    border: 2px solid var(--color-border-strong);
    background-color: var(--color-background-alt);
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-brutalist);
}
.stat-widget .title.is-1 {
    color: var(--color-accent) !important;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 0.25em;
}
.stat-widget .subtitle.is-5 {
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* External Resources Section */
.resource-card { /* Can reuse .card or make specific if needed */
    border-left: 4px solid var(--color-accent); /* Accent bar */
}
.resource-card .card-content .title a {
    color: var(--color-accent);
}
.resource-card .card-content .title a:hover {
    color: var(--color-accent-hover);
}

/* Contact Section */
#contact .contact-details-block {
    background-color: var(--color-background-alt);
    padding: 2rem;
    border: 2px solid var(--color-border-medium);
    border-radius: var(--border-radius-sharp);
}
#contact .contact-details-block .title.is-4 {
    margin-bottom: 1em;
}
#contact .contact-details-block p {
    margin-bottom: 0.75em;
    color: var(--color-text-secondary);
}
#contact .contact-details-block .icon-text .icon { /* If using Bulma icon-text */
    color: var(--color-accent);
    margin-right: 0.5em;
}
#contact .contact-details-block a {
    color: var(--color-accent);
    font-weight: 600;
}
#contact .map-placeholder {
    border: 2px dashed var(--color-border-medium);
    color: var(--color-text-subtle);
}

/* Footer */
.footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light); /* Base text color for footer */
    padding: 3rem 1.5rem 2rem; /* Adjusted padding */
    border-top: 3px solid var(--color-border-strong);
}
.footer .title.is-5.has-text-light { /* Forcing Bulma helper */
    color: var(--color-text-light) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1em;
}
.footer p, .footer li {
    font-size: 0.9rem;
    color: #A9A9A9; /* Lighter grey for footer paragraphs */
}
.footer a.has-text-light { /* Forcing Bulma helper */
    color: #A9A9A9 !important;
    transition: color 0.3s ease;
}
.footer a.has-text-light:hover {
    color: var(--color-text-light) !important;
    text-decoration: underline;
}
.footer .content.has-text-centered p {
    color: #777777 !important; /* Even lighter for copyright */
    font-size: 0.85rem;
}
.footer .column {
    margin-bottom: 1.5rem; /* Space between columns on mobile */
}

/* Footer Social Links (Text-based) */
.footer .social-links-list { /* Assuming a <ul> with this class */
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer .social-links-list li {
    margin-bottom: 0.5em;
}
.footer .social-links-list li a {
    /* Style as other footer links or make distinct */
    font-weight: 600; /* Slightly bolder for social links */
}

/* Read More Links */
.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    padding: 0.25em 0; /* Minimal padding */
    position: relative; /* For pseudo-element underline */
    font-size: 0.9rem;
}
.read-more-link::after {
    content: '→'; /* Arrow */
    margin-left: 0.5em;
    transition: transform 0.2s ease-out;
}
.read-more-link:hover::after {
    transform: translateX(3px);
}
.read-more-link:hover {
    color: var(--color-accent-hover);
    text-decoration: none; /* Remove default underline if any */
}

/* Scroll-dependent Animations - Base (GSAP will handle the trigger) */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    /* GSAP will handle transition, this is a fallback or for non-GSAP */
    /* transition: opacity 0.6s ease-out, transform 0.6s ease-out; */
}
.animated-element.is-visible { /* Class added by JS or simple observer */
    opacity: 1;
    transform: translateY(0);
}

/* Parallax support (JS will control background-position) */
.parallax-background-section {
    background-attachment: fixed; /* Simple parallax, JS can do better */
}

/* Specific Page Styling */
/* Success Page */
body.success-page-body { /* Add this class to body of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page-body .header,
.success-page-body .footer {
    flex-shrink: 0; /* Prevent header/footer from shrinking */
}
.success-page-body main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem; /* Padding for content within main */
}
.success-page-body .box { /* Bulma box on success page */
    border: 2px solid var(--color-border-strong);
    box-shadow: var(--shadow-brutalist);
    max-width: 500px;
}

/* Privacy & Terms Pages */
body.privacy-page-body main,
body.terms-page-body main { /* Add class to body of privacy/terms.html */
    padding-top: calc(var(--navbar-height) + 2rem); /* Space for fixed navbar + extra */
    padding-bottom: 2rem;
}
.content-page-container h2.title,
.content-page-container h3.title {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-page-container p,
.content-page-container li {
    font-size: 1rem;
    line-height: 1.8;
}

/* Cookie Consent Popup (from HTML) */
#cookieConsentPopup {
    /* Styles are mostly inline in HTML for simplicity, can be moved here */
    font-family: var(--font-secondary);
}
#cookieConsentPopup a {
    color: #00d1b2; /* Example color from prompt, adjust to theme */
}
#acceptCookieButton {
    font-family: var(--font-primary);
}


/* Responsive Adjustments */
@media screen and (max-width: 1023px) { /* Tablet and below */
    .section {
        padding: 3rem 1rem;
    }
    #hero .hero-title {
        font-size: 2.8rem;
    }
    #hero .hero-subtitle {
        font-size: 1.3rem;
    }
    .columns.is-multiline .column { /* Ensure spacing for stacked columns */
        margin-bottom: 1.5rem;
    }
     .footer .column {
        text-align: center; /* Center footer columns on mobile */
    }
    .footer .social-links-list {
        display: inline-block; /* Center list items within centered column */
        text-align: left;
    }
}

@media screen and (max-width: 768px) { /* Mobile */
    html {
        font-size: 15px; /* Slightly smaller base on mobile */
    }
    #hero .hero-title {
        font-size: 2.2rem;
    }
    #hero .hero-subtitle {
        font-size: 1.1rem;
    }
    .button.is-large {
        font-size: 1rem;
        padding: 0.75em 1.5em;
    }
    .timeline::before { /* Adjust Bulma timeline line for mobile */
        left: 22px;
    }
    .timeline .timeline-item .timeline-marker {
        left: 0;
    }
    .timeline .timeline-item .timeline-content {
        padding-left: 60px; /* Adjust content padding for timeline */
    }
    .team-member-card .image-container {
        height: 200px;
        width: 200px;
    }
    #contact .columns {
        flex-direction: column-reverse; /* Form below contact details on mobile */
    }
    #contact .contact-details-block {
        margin-top: 2rem;
    }
}
figure{
    width: 100%;
}
*{
    opacity: 1 !important;
}