/* ============================================================
   Specto Silicon — Main Stylesheet
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    background: #fcfcfc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: #13b7c1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #063d40;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2.125rem; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: #444444;
}

ul, ol {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    gap: 8px;
    line-height: 1.4;
}

.btn-primary {
    background: #13b7c1;
    color: #FFFFFF;
    border-color: #13b7c1;
}

.btn-primary:hover {
    background: #0d7a81;
    border-color: #0d7a81;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 149, 43, 0.35);
}

.btn-outline {
    background: transparent;
    color: #13b7c1;
    border-color: #13b7c1;
}

.btn-outline:hover {
    background: #13b7c1;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: #FFFFFF;
    color: #13b7c1;
    border-color: #FFFFFF;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(252, 252, 252, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-link img {
    max-height: 40px;
    width: auto;
}

.site-title-text {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-electra {
    color: #000000;
}

.logo-logic {
    color: #13b7c1;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333333;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-menu > li > a:hover {
    color: #13b7c1;
    background: rgba(255, 149, 43, 0.06);
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 100;
    list-style: none;
}

.sub-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #444444;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.sub-menu li a:hover {
    color: #13b7c1;
    background: rgba(255, 149, 43, 0.06);
}

.header-cta {
    margin-left: 12px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #000111;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F7 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 149, 43, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(80, 58, 168, 0.06) 0%, transparent 50%);
}

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

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #13b7c1;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.0625rem;
    color: #555555;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 400px;
}

.pcb-illustration {
    width: 100%;
    height: auto;
}

/* Page Hero (inner pages) */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F7 100%);
    text-align: center;
}

.page-hero-sm {
    padding: 120px 0 40px;
}

.page-hero h1 {
    margin-bottom: 12px;
}

.page-hero .hero-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #13b7c1;
}

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

.section-alt {
    background: #F5F5F7;
}

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

.section-header p {
    max-width: 600px;
    margin: 12px auto 0;
    font-size: 1.0625rem;
}

.section-header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #13b7c1;
    margin-bottom: 12px;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* --- Service Cards (Home) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    display: block;
    padding: 32px 28px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: #13b7c1;
    box-shadow: 0 8px 24px rgba(255, 149, 43, 0.12);
    transform: translateY(-4px);
}

.service-card.is-visible:hover {
    transform: translateY(-4px);
}

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

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #000000;
}

.service-card p {
    font-size: 0.9375rem;
    color: #666666;
    margin-bottom: 0;
}

/* Service Detail Cards (Services page) */
.services-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-detail-card {
    display: flex;
    gap: 32px;
    padding: 36px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-detail-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-detail-card:hover {
    border-color: #13b7c1;
    box-shadow: 0 4px 20px rgba(255, 149, 43, 0.1);
}

.service-detail-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.service-detail-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #000000;
}

.service-detail-content p {
    color: #555555;
    margin-bottom: 12px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 12px;
}

.service-features li {
    font-size: 0.875rem;
    color: #666666;
    padding-left: 18px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #13b7c1;
    opacity: 0.6;
}

.link-arrow {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #13b7c1;
    transition: color 0.2s;
}

.link-arrow:hover {
    color: #063d40;
}

/* --- Industry Cards --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.industry-card {
    display: block;
    text-align: center;
    padding: 32px 24px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.industry-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.industry-card:hover {
    border-color: #13b7c1;
    box-shadow: 0 8px 24px rgba(255, 149, 43, 0.12);
    transform: translateY(-4px);
}

.industry-card.is-visible:hover {
    transform: translateY(-4px);
}

.industry-card-bg {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.industry-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #000000;
}

.industry-card p {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0;
}

/* Industry Detail Cards (Industries page) */
.industries-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.industry-detail-card {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.industry-detail-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.industry-detail-card:hover {
    border-color: #13b7c1;
    box-shadow: 0 4px 20px rgba(255, 149, 43, 0.1);
}

.industry-detail-image {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
}

.industry-detail-content h3 {
    font-size: 1.375rem;
    margin-bottom: 8px;
    color: #000000;
}

.industry-detail-content p {
    color: #555555;
    margin-bottom: 12px;
}

/* --- Why Choose Us --- */
.section-why {
    background: linear-gradient(135deg, #063d40 0%, #042d2f 100%);
    /* brand dark teal */
    color: #FFFFFF;
}

.section-why .section-label {
    color: #13b7c1;
}

.section-why .section-header h2 {
    color: #FFFFFF;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
    opacity: 0;
    transform: translateY(20px);
}

.why-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.why-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #13b7c1;
    margin-bottom: 8px;
}

.why-card h3 {
    font-size: 1.125rem;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
}

/* --- CTA Banner --- */
.section-cta-banner {
    background: linear-gradient(135deg, #063d40 0%, #042d2f 100%);
    padding: 80px 0;
}

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

.cta-banner h2 {
    color: #FFFFFF;
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-banner-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- About Page --- */
.about-founder {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.founder-image {
    position: sticky;
    top: 100px;
}

.founder-bio .section-label {
    display: block;
}

.founder-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #063d40;
    margin-bottom: 20px;
}

.founder-certs {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.cert-badge {
    padding: 16px 20px;
    background: #F5F5F7;
    border-radius: 10px;
    border-left: 3px solid #13b7c1;
}

.cert-badge strong {
    display: block;
    font-size: 1rem;
    color: #000000;
}

.cert-badge span {
    font-size: 0.8125rem;
    color: #666666;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.value-card {
    padding: 32px 28px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #EEEEEE;
    opacity: 0;
    transform: translateY(20px);
}

.value-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.value-icon {
    margin-bottom: 16px;
}

.value-card h3 {
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat {
    padding: 32px;
    opacity: 0;
    transform: translateY(20px);
}

.stat.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #13b7c1;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #666666;
}

/* --- Service Single Page Layout --- */
.service-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.service-page-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.service-page-content h2:first-child {
    margin-top: 0;
}

.service-page-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.service-page-content ul,
.service-page-content ol {
    margin-bottom: 20px;
    padding-left: 0;
}

.service-page-content ul li,
.service-page-content ol li {
    padding: 4px 0 4px 24px;
    position: relative;
    color: #444444;
}

.service-page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #13b7c1;
    opacity: 0.6;
}

.service-page-content ol {
    counter-reset: item;
}

.service-page-content ol li {
    counter-increment: item;
}

.service-page-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #13b7c1;
}

/* Sidebar */
.service-page-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    padding: 28px;
    background: #F5F5F7;
    border-radius: 12px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 16px;
}

.sidebar-cta {
    background: linear-gradient(135deg, #063d40, #042d2f);
    color: #FFFFFF;
}

.sidebar-cta h3 {
    color: #FFFFFF;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.9375rem;
    color: #444444;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #13b7c1;
    font-weight: 700;
}

.sidebar-card ul:not(.check-list) {
    padding: 0;
}

.sidebar-card ul:not(.check-list) li {
    padding: 4px 0;
}

.sidebar-card ul:not(.check-list) li a {
    font-size: 0.9375rem;
    color: #444444;
}

.sidebar-card ul:not(.check-list) li a:hover {
    color: #13b7c1;
}

/* --- Portfolio --- */
.portfolio-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid #DDDDDD;
    border-radius: 100px;
    cursor: pointer;
    color: #666666;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #13b7c1;
    color: #13b7c1;
}

.filter-btn.active {
    background: #13b7c1;
    border-color: #13b7c1;
    color: #FFFFFF;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.portfolio-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.portfolio-card.is-visible:hover {
    transform: translateY(-4px);
}

.portfolio-card-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #F5F5F7;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: 24px;
}

.portfolio-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.portfolio-card-content p {
    font-size: 0.9375rem;
    color: #666666;
    margin-bottom: 8px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 149, 43, 0.1);
    color: #13b7c1;
    border-radius: 100px;
    margin-top: 4px;
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.case-study-card {
    display: block;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.case-study-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.case-study-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.case-study-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #F5F5F7;
}

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

.case-study-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #000000;
}

.case-study-content p {
    font-size: 0.9375rem;
    color: #666666;
}

/* --- Blog / Posts --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.post-card {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8125rem;
    color: #999999;
    margin-bottom: 8px;
}

.post-meta-hero {
    display: flex;
    gap: 16px;
    justify-content: center;
    color: #666666;
    font-size: 0.9375rem;
    margin-top: 8px;
}

.post-card-content h2,
.post-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.post-card-content h2 a,
.post-card-content h3 a {
    color: #000000;
    text-decoration: none;
}

.post-card-content h2 a:hover,
.post-card-content h3 a:hover {
    color: #13b7c1;
}

.post-card-content p {
    font-size: 0.9375rem;
    color: #666666;
    margin-bottom: 12px;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: #13b7c1;
}

.post-type-badge {
    background: rgba(255, 149, 43, 0.1);
    color: #13b7c1;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Single Post */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.single-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2 { margin: 40px 0 16px; }
.entry-content h3 { margin: 32px 0 12px; }
.entry-content p { margin-bottom: 20px; }

.entry-content img {
    border-radius: 8px;
    margin: 24px 0;
}

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

.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }

.entry-content li {
    margin-bottom: 8px;
    color: #444444;
}

.post-tags {
    margin-top: 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #F5F5F7;
    border-radius: 100px;
    font-size: 0.8125rem;
    color: #666666;
}

.project-details {
    padding: 0;
}

.project-details li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #EEEEEE;
    font-size: 0.9375rem;
}

.project-details li:last-child {
    border-bottom: none;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #EEEEEE;
}

.post-nav-link {
    padding: 20px;
    border: 1px solid #EEEEEE;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.post-nav-link:hover {
    border-color: #13b7c1;
}

.post-nav-label {
    display: block;
    font-size: 0.8125rem;
    color: #999999;
    margin-bottom: 4px;
}

.post-nav-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
}

.post-nav-next {
    text-align: right;
}

/* Pagination */
.pagination {
    margin-top: 48px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666666;
    border: 1px solid #EEEEEE;
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #13b7c1;
    color: #FFFFFF;
    border-color: #13b7c1;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 16px;
}

/* --- Tools --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.tool-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-icon {
    margin-bottom: 16px;
}

.tool-card h3 {
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.9375rem;
    color: #666666;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

.badge-coming-soon {
    background: rgba(80, 58, 168, 0.1);
    color: #063d40;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.contact-form-wrap h2 {
    margin-bottom: 8px;
}

.contact-form-wrap > p {
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333333;
}

.required {
    color: #13b7c1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #000000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #13b7c1;
    box-shadow: 0 0 0 3px rgba(255, 149, 43, 0.15);
}

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

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

.contact-info-card {
    padding: 28px;
    background: #F5F5F7;
    border-radius: 12px;
}

.contact-info-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 16px;
}

.contact-details {
    padding: 0;
}

.contact-details li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #E8E8E8;
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-details li strong {
    display: block;
    font-size: 0.8125rem;
    color: #999999;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-details li a,
.contact-details li span {
    font-size: 0.9375rem;
    color: #333333;
}

.contact-details li a:hover {
    color: #13b7c1;
}

.process-steps {
    padding: 0;
    counter-reset: step;
}

.process-steps li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 0.9375rem;
    color: #555555;
    counter-increment: step;
}

.process-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #13b7c1;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-steps li strong {
    color: #000000;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
}

/* --- Placeholder Images --- */
.placeholder-image {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, #F5F5F7 0%, #EEEEEE 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999999;
    font-size: 0.8125rem;
}

.placeholder-portrait {
    aspect-ratio: 3/4;
    border-radius: 12px;
}

.placeholder-map {
    min-height: 200px;
    border-radius: 12px;
}

.placeholder-map small {
    font-size: 0.6875rem;
    color: #BBBBBB;
}

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

.error-404-content {
    max-width: 520px;
    margin: 0 auto;
}

.error-graphic {
    margin-bottom: 24px;
}

.section-404 h1 {
    margin-bottom: 12px;
}

.section-404 p {
    font-size: 1.0625rem;
    margin-bottom: 32px;
}

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

.error-links {
    text-align: left;
}

.error-links h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.error-links ul {
    padding: 0;
}

.error-links li {
    padding: 4px 0;
}

.error-links li a {
    color: #13b7c1;
    font-weight: 500;
}

/* --- Search --- */
.search-form {
    max-width: 500px;
}

.search-input-wrap {
    display: flex;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
    border-color: #13b7c1;
    box-shadow: 0 0 0 3px rgba(255, 149, 43, 0.15);
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    outline: none;
    background: transparent;
}

.search-submit {
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666666;
    transition: color 0.2s;
}

.search-submit:hover {
    color: #13b7c1;
}

.search-again {
    margin-bottom: 40px;
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h2 {
    margin-bottom: 12px;
}

.no-results p {
    margin-bottom: 24px;
}

.no-results .search-form {
    margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
    background: #063d40;
    color: #FFFFFF;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #13b7c1;
    color: #FFFFFF;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col ul {
    padding: 0;
}

.footer-col li {
    padding: 3px 0;
}

.footer-col li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col li a:hover {
    color: #13b7c1;
}

.footer-contact-info li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-contact-info li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #13b7c1;
}

.footer-contact-info li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-info li a:hover {
    color: #13b7c1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: #13b7c1;
}

/* --- Animations --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Stagger animation for grid items */
.services-grid > *:nth-child(1) { transition-delay: 0.0s; }
.services-grid > *:nth-child(2) { transition-delay: 0.05s; }
.services-grid > *:nth-child(3) { transition-delay: 0.1s; }
.services-grid > *:nth-child(4) { transition-delay: 0.15s; }
.services-grid > *:nth-child(5) { transition-delay: 0.2s; }
.services-grid > *:nth-child(6) { transition-delay: 0.25s; }
.services-grid > *:nth-child(7) { transition-delay: 0.3s; }

.industries-grid > *:nth-child(1) { transition-delay: 0.0s; }
.industries-grid > *:nth-child(2) { transition-delay: 0.06s; }
.industries-grid > *:nth-child(3) { transition-delay: 0.12s; }
.industries-grid > *:nth-child(4) { transition-delay: 0.18s; }
.industries-grid > *:nth-child(5) { transition-delay: 0.24s; }

.why-grid > *:nth-child(1) { transition-delay: 0.0s; }
.why-grid > *:nth-child(2) { transition-delay: 0.08s; }
.why-grid > *:nth-child(3) { transition-delay: 0.16s; }
.why-grid > *:nth-child(4) { transition-delay: 0.24s; }

.stats-row > *:nth-child(1) { transition-delay: 0.0s; }
.stats-row > *:nth-child(2) { transition-delay: 0.08s; }
.stats-row > *:nth-child(3) { transition-delay: 0.16s; }
.stats-row > *:nth-child(4) { transition-delay: 0.24s; }

/* Page content styles (for WP editor content) */
.page-content {
    max-width: 800px;
}

.page-content h2 { margin: 32px 0 12px; }
.page-content h3 { margin: 24px 0 8px; }
.page-content p { margin-bottom: 16px; }

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

.page-content ul li { list-style: disc; color: #444; }
.page-content ol li { list-style: decimal; color: #444; }
.page-content li { margin-bottom: 6px; }

.content-area {
    max-width: 800px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Content narrow */
.content-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

/* Process flow (About page) */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    padding: 0 12px;
}

.process-connector {
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.process-icon {
    margin-bottom: 12px;
}

.process-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #13b7c1;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.process-step h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

/* Deliverables list (service pages) */
.deliverables-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.deliverables-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #333;
    padding: 8px 12px;
    background: #f5f5f7;
    border-radius: 6px;
}

.deliverables-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #13b7c1;
    border-radius: 50%;
    flex-shrink: 0;
}

/* WP alignment classes */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }

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

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .main-navigation.is-open {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid #F0F0F0;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 8px 16px;
        display: none;
        background: transparent;
    }

    .sub-menu-open > .sub-menu {
        display: block;
    }

    .sub-menu li a {
        padding: 8px 0;
        border-bottom: 1px solid #F5F5F5;
    }

    .header-cta {
        margin: 24px 0 0;
        width: 100%;
        text-align: center;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-graphic {
        max-width: 280px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

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

    .founder-image {
        position: static;
        max-width: 280px;
    }

    .service-page-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-page-sidebar {
        position: static;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .service-detail-card {
        flex-direction: column;
        gap: 20px;
    }

    .industry-detail-card {
        flex-direction: column;
        gap: 24px;
    }

    .industry-detail-image {
        width: 100%;
        height: 200px;
    }
}

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

    .hero {
        padding: 120px 0 60px;
    }

    .page-hero {
        padding: 110px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }

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

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

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-grid,
    .posts-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
    }

    .founder-certs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    h1 { font-size: 1.625rem; }

    .hero-actions {
        flex-direction: column;
    }

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

    .error-actions {
        flex-direction: column;
    }

    .cta-banner-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-banner-actions .btn {
        width: 100%;
        max-width: 300px;
    }

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

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