/* PlanReal Website - Styles */
/* Colors extracted from brand: Professional blue, clean Swiss design */

:root {
    /* Primary Colors - extracted from PlanReal Logo */
    --primary: #1a5276;
    --primary-dark: #154360;
    --primary-light: #5dade2;

    /* Accent */
    --accent: #7ab51d;
    --accent-dark: #5a9010;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f7f7f7;
    --gray-100: #ededed;
    --gray-200: #dcdcdc;
    --gray-300: #c4c4c4;
    --gray-400: #a3a3a3;
    --gray-500: #8a8a8a;
    --gray-600: #6f6f6f;
    --gray-700: #5b5b5b;
    --gray-800: #3f3f3f;
    --gray-900: #2b2b2b;
    --gray-950: #1f1f1f;

    /* Blue-gray accents */
    --blue-gray-900: #23313a;
    --blue-gray-800: #2c3d48;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 48px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-200);
    background: var(--gray-950);
}

h1, h2, h3, h4 {
    color: var(--gray-50);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--gray-300); }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Alignment */
.problem-solution,
.features,
.pricing,
.about,
.contact,
.footer {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--gray-900);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--blue-gray-900);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    border-bottom: 1px solid var(--blue-gray-800);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 52px;
    width: auto;
    display: block;
    transform-style: preserve-3d;
    animation: logo-spin 24s linear infinite;
    will-change: transform;
}

.nav-logo {
    perspective: 900px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-200);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

@keyframes logo-spin {
    0% {
        transform: rotateY(0deg) rotateX(12deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(12deg);
    }
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-950) 100%);
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-50);
    text-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    background: var(--gray-800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.25rem;
    border: 2px dashed var(--gray-700);
}



.hero-gallery-trigger {
    width: 100%;
    max-width: 520px;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid var(--blue-gray-800);
    background: var(--blue-gray-900);
    color: var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-gallery-trigger:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.hero-gallery-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gray-50);
}

.hero-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.hero-gallery-label {
    font-size: 1rem;
    color: var(--gray-300);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.gallery-modal.open {
    display: flex;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.gallery-content {
    position: relative;
    width: min(960px, 92vw);
    max-height: 90vh;
    background: var(--gray-950);
    border-radius: 16px;
    border: 1px solid var(--blue-gray-800);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
}

.gallery-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--gray-300);
    font-size: 28px;
    cursor: pointer;
}

.gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
    border-radius: 14px;
    padding: 16px;
}

.gallery-main img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-thumb {
    background: transparent;
    border: 1px solid var(--blue-gray-800);
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.gallery-thumb img {
    width: 120px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.no-scroll {
    overflow: hidden;
}
/* Problem/Solution Section */
.problem-solution {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.problem-solution .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.problem, .solution {
    padding: 40px;
    border-radius: 12px;
}

.problem {
    background: var(--gray-800);
    border-left: 4px solid var(--gray-700);
}

.solution {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-left: 4px solid var(--accent);
}

.solution h2 {
    color: var(--white);
}

.problem ul, .solution ul {
    margin-top: 1rem;
}

.problem li, .solution li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.problem li::before {
    content: "✗";
    color: var(--gray-400);
}

.solution li::before {
    content: "✓";
    color: var(--accent);
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.feature-card {
    background: var(--gray-800);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--gray-700);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary);
    z-index: 10;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-short {
    color: var(--gray-300);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.feature-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    text-align: left;
    margin-top: 0;
}

.feature-card:hover .feature-details {
    max-height: 400px;
    opacity: 1;
    margin-top: 1.5rem;
}

.feature-details p {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-details li {
    color: var(--gray-400);
    font-size: 0.85rem;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.feature-details li::before {
    content: ">";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--gray-800);
    border: 2px solid var(--gray-700);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    transition: border-color 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(26, 82, 118, 0.35);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pricing-card h3 {
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-400);
}

.pricing-card ul {
    margin-bottom: 2rem;
    text-align: center;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-card li::before {
    content: "✓";
    color: var(--accent);
}

/* About Section */
.about {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.about .container {
    max-width: 800px;
    text-align: center;
}

.about h2 {
    margin-bottom: 1.5rem;
}

.about > .container > p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 3rem;
}

.team {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    background: var(--gray-800);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
}

.team-member h4 {
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.contact .container {
    max-width: 600px;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact > .container > p {
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.contact-form {
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-main);
    border: 2px solid var(--gray-700);
    border-radius: 8px;
    background: var(--gray-800);
    color: var(--gray-100);
    text-align: center;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--gray-950);
    color: var(--gray-500);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 44px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links a,
.footer-legal a {
    display: block;
    color: var(--gray-400);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .nav-links {
        display: none; /* TODO: Add mobile menu */
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .problem-solution .container {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-logo img {
        animation: none;
        transform: none;
    }
}

/* Print styles */
@media print {
    .nav, .hero-buttons, .contact-form {
        display: none;
    }
}


.hero-logo-mark {
    font-size: 0.6em;
    margin-left: 4px;
    vertical-align: super;
    color: var(--gray-200);
}


.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.45);
    color: var(--gray-50);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
    left: 16px;
}

.gallery-nav.next {
    right: 16px;
}
