/* ===========================
   Piedmont Systems - Stylesheet
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1642a3;
    --primary-light: #e8effc;
    --accent: #2563eb;
    --dark: #111827;
    --dark-secondary: #1f2937;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --success: #059669;
    --error: #dc2626;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--gray-900);
    line-height: 1.2;
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.025em;
}

.nav-logo:hover {
    color: var(--gray-900);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.nav-link.nav-cta {
    background: var(--primary);
    color: var(--white);
    margin-left: 8px;
}

.nav-link.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(170deg, var(--white) 0%, var(--primary-light) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 86, 219, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.text-accent {
    color: var(--primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Services --- */
.services {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--primary);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
}

.pricing-card-featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-amount {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
}

.price-monthly {
    margin-top: 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.price-monthly span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

/* --- Portfolio --- */
.portfolio {
    background: var(--gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-placeholder svg {
    width: 100%;
    height: 100%;
    max-width: 400px;
    color: rgba(255, 255, 255, 0.4);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.portfolio-cta {
    text-align: center;
    margin-top: 48px;
}

.portfolio-cta p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* --- About --- */
.about-content {
    max-width: 720px;
}

.about-content > p {
    font-size: 1.02rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-tag {
    display: inline-block;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.value {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary);
}

.value-icon svg {
    width: 22px;
    height: 22px;
}

.value h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.value p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Contact --- */
.contact {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.contact-item a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-details-box {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-top: 12px;
}

.contact-details-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-details-box ol {
    padding-left: 20px;
}

.contact-details-box li {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 6px 0;
    line-height: 1.5;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.optional {
    font-weight: 400;
    color: var(--gray-400);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-900);
    transition: all 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(26, 86, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    padding: 64px 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .nav-logo {
    color: var(--white);
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 360px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        gap: 4px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero {
        padding: 120px 0 72px;
    }

    .hero-title {
        font-size: 2.15rem;
    }

    .hero-description {
        font-size: 1.02rem;
    }

    .hero-actions {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    /* Sections */
    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.85rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card {
        padding: 32px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-image {
        height: 180px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .price {
        font-size: 2.25rem;
    }
}
