/* ============================================
   Procurama AB - Static Site Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 15%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 15%, 15%);
    --primary: hsl(220, 60%, 20%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(220, 15%, 96%);
    --secondary-foreground: hsl(220, 60%, 20%);
    --muted: hsl(220, 15%, 96%);
    --muted-foreground: hsl(220, 10%, 45%);
    --accent: hsl(45, 90%, 55%);
    --accent-foreground: hsl(220, 60%, 20%);
    --border: hsl(220, 15%, 90%);
    --input: hsl(220, 15%, 90%);
    --radius: 0.5rem;
    
    --gradient-primary: linear-gradient(135deg, hsl(220, 60%, 20%), hsl(220, 50%, 30%));
    --gradient-accent: linear-gradient(135deg, hsl(45, 90%, 55%), hsl(40, 85%, 60%));
    --shadow-elegant: 0 10px 40px -10px hsla(220, 60%, 20%, 0.2);
    --shadow-card: 0 4px 20px -2px hsla(220, 30%, 50%, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(0, 0%, 100%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    height: 3.5rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-nav {
    padding: 1rem;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-primary);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0zNiAxOGMzLjMxNCAwIDYgMi42ODYgNiA2cy0yLjY4NiA2LTYgNi02LTIuNjg2LTYtNiAyLjY4Ni02IDYtNnoiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvZz48L3N2Zz4=");
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: hsla(0, 0%, 98%, 0.9);
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid hsla(0, 0%, 98%, 0.3);
    border-radius: 9999px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.scroll-dot {
    width: 0.375rem;
    height: 0.375rem;
    background-color: hsla(0, 0%, 98%, 0.5);
    border-radius: 50%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--primary-foreground);
    color: var(--primary);
    box-shadow: var(--shadow-elegant);
}

.btn-secondary:hover {
    background-color: hsla(0, 0%, 98%, 0.9);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-foreground);
    border: 1px solid hsla(0, 0%, 98%, 0.3);
}

.btn-outline:hover {
    background-color: hsla(0, 0%, 98%, 0.1);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 6rem 0;
    background-color: var(--background);
}

.section-secondary {
    background-color: var(--secondary);
}

.section-header {
    max-width: 48rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* ============================================
   About / Values Section
   ============================================ */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-4px);
}

.value-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--muted-foreground);
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.portfolio-card:hover .portfolio-icon {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

.portfolio-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    background-color: var(--secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.portfolio-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.portfolio-year {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 9999px;
}

.portfolio-sector {
    display: inline-block;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background-color: hsla(45, 90%, 55%, 0.1);
    color: var(--accent);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--muted-foreground);
}

/* ============================================
   Strategy Section
   ============================================ */
.strategy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 84rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .strategy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .strategy-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.strategy-card {
    position: relative;
    overflow: hidden;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.strategy-card:hover {
    box-shadow: var(--shadow-card);
}

.strategy-card:hover .strategy-progress {
    transform: translateX(0);
}

.strategy-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.strategy-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.strategy-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.strategy-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.strategy-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--background);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    color: var(--foreground);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: none;
    font-family: inherit;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-card);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
    display: block;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    height: 4rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.875rem;
    color: hsla(0, 0%, 98%, 0.8);
}

.footer-copyright {
    font-size: 0.875rem;
    color: hsla(0, 0%, 98%, 0.8);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-elegant);
    z-index: 100;
    animation: slideIn 0.3s ease;
}

.toast-title {
    display: block;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
