/* Philly Proto Lab v2 - Main Stylesheet */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #40c5fe;
    --accent-dark: #00a8cc;
    --text: #333;
    --text-light: #666;
    --text-lighter: #888;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --border: #e9ecef;
    --shadow: rgba(0,0,0,0.08);
    --shadow-strong: rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-sm: 5px;
    --max-width: 1200px;
    --header-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo .logo-text span {
    color: white;
}

.logo-mark {
    height: 44px;
    width: auto;
    display: block;
}

.logo-text {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.footer-logo {
    height: 120px;
    width: auto;
    display: block;
    margin-bottom: 18px;
}

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

.nav-desktop {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-desktop a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--accent);
}

.cta-button {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64,197,254,0.35);
    color: var(--primary);
}

.cta-button.outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.outline:hover {
    background: white;
    color: var(--primary);
}

.cta-button.dark {
    background: var(--primary);
    color: white;
}

.cta-button.dark:hover {
    background: var(--primary-light);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.nav-mobile a {
    display: block;
    color: white;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

.nav-mobile a:last-child {
    border-bottom: none;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0f3460 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(64,197,254,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--accent);
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 12px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .supporting {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 32px;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 130px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

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

/* Sections */
.section {
    padding: 70px 0;
}

.section.alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 700;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 45px;
    font-size: 1.05rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.feature-card {
    background: white;
    padding: 30px 22px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(64,197,254,0.1);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 25px var(--shadow);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: var(--primary);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 18px;
}

.service-card ul {
    list-style: none;
    margin-top: auto;
}

.service-card li {
    padding: 8px 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    padding-left: 22px;
    position: relative;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-weight: 700;
}

.service-card .service-link {
    margin-top: 20px;
    font-weight: 600;
    color: var(--accent-dark);
}

/* Process */
.process-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
}

.process-section .section-title {
    color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
}

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

.step h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Examples / Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-strong);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-item p {
    padding: 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Quote Form */
.quote-form {
    max-width: 750px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 25px var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

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

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

.form-hint {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-top: 6px;
}

/* Content Pages */
.content-page {
    padding: 60px 0 80px;
}

.content-page h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 40px 0 18px;
    font-weight: 700;
}

.content-page h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin: 28px 0 12px;
    font-weight: 600;
}

.content-page h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin: 22px 0 10px;
    font-weight: 600;
}

.content-page p {
    margin-bottom: 16px;
    color: var(--text);
}

.content-page ul,
.content-page ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.content-page li {
    margin-bottom: 8px;
}

.content-page a {
    color: var(--accent-dark);
    font-weight: 500;
}

.content-page img {
    border-radius: var(--radius);
    margin: 24px 0;
}

/* Material Cards */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.material-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.material-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.material-type {
    display: inline-block;
    background: rgba(64,197,254,0.1);
    color: var(--accent-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.material-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.material-specs {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.material-specs li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.material-specs li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-group-header {
    max-width: 850px;
    margin: 40px auto 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    color: var(--primary);
    font-size: 1.4rem;
}

.faq-group-header:first-child {
    margin-top: 0;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: 0 2px 10px var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-dark);
    font-weight: 400;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-light);
}

/* Case Studies */
.case-study-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.case-study-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.case-study-card .content {
    padding: 24px;
}

.case-study-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.case-study-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.case-study-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card .content {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .date {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-bottom: 8px;
}

.blog-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
}

.blog-post-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.blog-post-header h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.blog-post-meta {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 28px;
}

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

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

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

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

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--bg-alt);
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.highlight-box {
    background: rgba(64,197,254,0.08);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

/* 404 */
.error-page {
    text-align: center;
    padding: 140px 0 100px;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--accent);
    font-weight: 800;
}

.error-page h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .two-column { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    
    .nav-desktop { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1.05rem; }
    
    .page-header { padding: 110px 0 50px; }
    .page-header h1 { font-size: 2rem; }
    
    .section { padding: 50px 0; }
    .section-title { font-size: 1.7rem; }
    
    .features-grid,
    .services-grid,
    .process-steps,
    .gallery-grid,
    .materials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row { grid-template-columns: 1fr; }
    .quote-form { padding: 28px 22px; }
    
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    
    .blog-post { padding: 30px 22px; }
    
    .comparison-table { font-size: 0.9rem; }
    .comparison-table th,
    .comparison-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 280px; }
}

/* Focus-area grid (3 columns) */
@media (max-width: 1024px) {
    .features-grid.three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .features-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .logo-mark { height: 38px; }
    .logo-text { font-size: 1rem; }
}
