/* ============================================
   DevHub Agency - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--border);
    color: var(--text-primary);
}

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

.btn-white:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.trust-icon {
    color: var(--success);
    font-weight: bold;
}

/* Hero Visual (Code Card) */
.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
}

.visual-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.visual-content {
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
}

.code-line {
    line-height: 1.8;
    color: #e2e8f0;
}

.code-line.indent {
    padding-left: 24px;
}

.code-comment { color: #64748b; }
.code-keyword { color: #c084fc; }
.code-prop { color: #38bdf8; }
.code-string { color: #4ade80; }

/* Transparency Banner */
.transparency-banner {
    background: var(--bg-dark);
    padding: 24px 0;
}

.transparency-content {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    font-size: 15px;
}

.transparency-icon {
    font-size: 24px;
}

.transparency-content strong {
    color: var(--primary-light);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
}

.service-price {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-features {
    font-size: 14px;
    color: var(--text-secondary);
}

.service-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
}

.step-arrow {
    color: var(--text-muted);
    font-size: 32px;
    padding-top: 12px;
}

.cta-center {
    text-align: center;
}

/* Advantages */
.advantages {
    padding: 100px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.advantage-main h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.advantage-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.advantage-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.advantage-card {
    padding: 28px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.advantage-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.advantage-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.about-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* CTA Final */
.cta-final {
    padding: 100px 0;
    background: var(--primary);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 0;
    color: white;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 15px;
}

.footer-brand .logo {
    color: white;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-simple {
    padding: 40px 0;
}

.footer-simple .footer-bottom {
    border: none;
    padding: 0;
}

/* ============================================
   Estimate Page Styles
   ============================================ */

.estimate-section {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: var(--bg-light);
}

.estimate-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.estimate-header {
    text-align: center;
    margin-bottom: 40px;
}

.estimate-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.estimate-header p {
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-bar {
    position: relative;
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    margin-bottom: 48px;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
    width: 25%;
    transition: var(--transition-slow);
}

.progress-steps {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.progress-step {
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.progress-step.active {
    border-color: var(--primary);
    color: var(--primary);
}

.progress-step.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Form Steps */
.estimate-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 24px;
    margin-bottom: 32px;
    text-align: center;
}

/* Option Cards */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.options-grid.options-3 {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
}

.option-card:hover .option-content {
    border-color: var(--border);
}

.option-card input:checked + .option-content {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.option-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.option-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Form Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Navigation */
.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
}

.form-nav .btn-next:only-child {
    margin-left: auto;
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result */
.estimate-result {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    text-align: center;
}

.estimate-result.hidden {
    display: none;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.estimate-result h2 {
    font-size: 28px;
    margin-bottom: 32px;
}

.result-summary {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.result-summary > div {
    text-align: center;
}

.result-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.result-value {
    font-weight: 600;
}

.result-price {
    margin-bottom: 40px;
}

.price-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.price-range {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.price-note {
    font-size: 14px;
    color: var(--text-muted);
}

.result-includes {
    text-align: left;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.result-includes h4 {
    margin-bottom: 16px;
}

.result-includes li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.result-next {
    margin-bottom: 32px;
}

.next-step-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    text-align: left;
}

.next-icon {
    font-size: 32px;
}

.next-content h4 {
    margin-bottom: 4px;
}

.next-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.result-disclaimer {
    font-size: 14px;
    color: var(--text-muted);
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

/* ============================================
   Portfolio Page Styles
   ============================================ */

.portfolio-header {
    padding: 140px 0 60px;
    background: var(--bg-light);
    text-align: center;
}

.portfolio-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.portfolio-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.portfolio-section {
    padding: 60px 0 100px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.portfolio-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.placeholder-text {
    font-weight: 600;
    font-size: 18px;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.demo-badge {
    padding: 8px 16px;
    background: white;
    color: var(--text-primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.tag-site {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.tag-database {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.tag-tool {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.tag-year {
    background: var(--bg-light);
    color: var(--text-muted);
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.portfolio-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.meta-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.portfolio-features {
    font-size: 14px;
    color: var(--text-secondary);
}

.portfolio-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.portfolio-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.portfolio-cta {
    text-align: center;
    padding: 60px;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
}

.portfolio-cta h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.portfolio-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   Legal Page Styles
   ============================================ */

.legal-section {
    padding: 120px 0 80px;
}

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

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.legal-update {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-block {
    margin-bottom: 48px;
}

.legal-block h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-block h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-block p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-block ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-block li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    list-style: disc;
}

/* ============================================
   Language Selector (Mobile Menu Only)
   ============================================ */

/* Language buttons inside mobile menu */
.mobile-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-top: 20px;
    margin-top: 16px;
    border-top: 1px solid var(--border-light);
}

.mobile-lang .lang-btn {
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-lang .lang-btn:hover {
    border-color: var(--border);
    color: var(--text-secondary);
}

.mobile-lang .lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Mobile Navigation - Hidden by default */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links li {
    margin-bottom: 8px;
}

.mobile-nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

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

.mobile-nav-links .mobile-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    border-bottom: none;
}

.mobile-nav-links .mobile-cta:hover {
    background: var(--primary-dark);
    color: white;
}

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

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-cta-btn {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-trust {
        flex-wrap: wrap;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .visual-card {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
        gap: 32px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .advantage-cards {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .about-avatar {
        width: 120px;
        height: 120px;
        font-size: 44px;
    }
    
    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    /* Estimate page */
    .estimate-form {
        padding: 32px 24px;
    }
    
    .options-grid,
    .options-grid.options-3 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-summary {
        flex-direction: column;
        gap: 16px;
    }
    
    .price-range {
        font-size: 32px;
    }
    
    /* Portfolio page */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .next-step-card {
        flex-direction: column;
        text-align: center;
    }
}
