/* ============================
   Dr. Móricz Ügyvédi Iroda
   Modern, Dark, Professional
   ============================ */

:root {
    /* Colors */
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #141414;
    --color-bg-lighter: #1a1a1a;
    --color-bg-hover: #242424;
    --color-accent: #c9a227;
    --color-accent-light: #d4b445;
    --color-accent-dark: #a68820;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-text-subtle: #666666;
    --color-border: #2a2a2a;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ============================
   Typography
   ============================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--color-text-muted);
}

/* ============================
   Buttons
   ============================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-full {
    width: 100%;
}

/* ============================
   Navigation
   ============================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.logo-icon-img {
    width: 40px;
    height: 40px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.footer-logo {
    height: 55px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-medium);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* ============================
   Hero Section
   ============================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        #1a1a1a 0%,
        #242424 25%,
        #1e1e1e 50%,
        #2a2a2a 75%,
        #1a1a1a 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '§';
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(400px, 50vw, 700px);
    font-weight: 700;
    color: rgba(201, 162, 39, 0.08);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.03);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(60, 60, 60, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(40, 40, 40, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(201, 162, 39, 0.03) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    animation: fadeInUp 1s ease forwards;
}

.hero h1 .accent {
    color: var(--color-accent);
    font-size: 0.5em;
    display: block;
    margin-top: 10px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.7s forwards;
    opacity: 0;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-accent);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ============================
   Section Styles
   ============================ */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto;
}

/* ============================
   About Section
   ============================ */

.about {
    background: var(--color-bg-lighter);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-card);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--color-bg-card);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    z-index: -1;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-hover) 100%);
    color: var(--color-text-subtle);
    font-size: 1.5rem;
    font-weight: 500;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-accent);
    color: var(--color-bg-dark);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.experience-badge .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
}

.about-content h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* ============================
   Services Section
   ============================ */

.services {
    background: var(--color-bg-lighter);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-bg-card);
    padding: 40px 32px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 8px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================
   Contact Section
   ============================ */

.contact {
    background: var(--color-bg-lighter);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-card);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-medium);
}

.contact-card:hover {
    border-color: var(--color-accent);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 8px;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.contact-details h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-form-wrapper {
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.contact-map {
    background: var(--color-bg-card);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    min-height: 400px;
}

.contact-map iframe {
    display: block;
    min-height: 400px;
}

.contact-form h3 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--color-bg-lighter);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-bg-dark);
}

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

/* ============================
   Footer
   ============================ */

.footer {
    background: var(--color-bg-dark);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .about-grid {
        gap: 60px;
    }

}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .experience-badge {
        right: 0;
        bottom: -20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ============================
   Animations
   ============================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ============================
   Privacy Page
   ============================ */

.privacy-page {
    padding-top: 140px;
    padding-bottom: var(--section-padding);
    background: var(--color-bg-lighter);
    min-height: 100vh;
}

.privacy-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.privacy-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.privacy-section p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.privacy-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.privacy-section li {
    color: var(--color-text-muted);
    margin-bottom: 8px;
    line-height: 1.7;
}

.privacy-section a {
    color: var(--color-accent);
}

.privacy-section a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

.footer-bottom a {
    color: var(--color-accent);
}

.footer-bottom a:hover {
    text-decoration: underline;
}
