/*
Theme Name: Ironworks AI
Theme URI: https://ironworksai.com
Description: Custom theme for Ironworks AI - AI consulting for small and medium-sized businesses.
Version: 1.0.0
Author: Ironworks AI
Author URI: https://ironworksai.com
Text Domain: ironworks-ai
*/

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

:root {
    --navy: #1B2A4A;
    --navy-light: #2A3D66;
    --navy-dark: #111C33;
    --copper: #C17F35;
    --copper-light: #D4963E;
    --copper-dark: #A66B2B;
    --white: #FFFFFF;
    --off-white: #F8F7F4;
    --light-gray: #EDECEA;
    --mid-gray: #9A9A9A;
    --text: #1B2A4A;
    --text-light: #4A5568;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

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

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

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

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

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

p:last-child {
    margin-bottom: 0;
}

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

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

.section--gray {
    background: var(--off-white);
}

.section--navy {
    background: var(--navy);
}

.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy p,
.section--navy li {
    color: var(--white);
}

.section--navy p,
.section--navy li {
    color: rgba(255, 255, 255, 0.85);
}

.section__header {
    margin-bottom: 60px;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 12px;
}

.section__title {
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 680px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 8px;
}

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

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

.btn--secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--secondary:hover {
    background: var(--navy);
    color: var(--white);
}

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

.btn--white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--ghost {
    background: transparent;
    color: var(--copper);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.btn--ghost:hover {
    color: var(--copper-dark);
}

.btn--ghost::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

.btn--ghost:hover::after {
    transform: translateX(4px);
}

/* === Header / Navigation === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27, 42, 74, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--copper);
    background: var(--off-white);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.88rem;
    border-radius: 5px;
}

.nav-dropdown-menu a:hover {
    background: var(--off-white);
}

.nav-cta {
    margin-left: 8px;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 0.88rem;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
    padding: 160px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero--centered {
    text-align: center;
}

.hero--centered .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero__title {
    margin-bottom: 24px;
    max-width: 800px;
}

.hero--centered .hero__title {
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.hero--centered .hero__actions {
    justify-content: center;
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--copper);
    box-shadow: 0 8px 30px rgba(193, 127, 53, 0.1);
    transform: translateY(-4px);
}

.service-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 8px;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.service-card__tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--copper);
    margin-bottom: 16px;
}

.service-card__body {
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.service-card__meta {
    font-size: 0.88rem;
    color: var(--mid-gray);
    margin-bottom: 20px;
    font-weight: 500;
}

/* === Steps / Process === */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step {
    position: relative;
}

.step__number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--copper);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 16px;
}

.step__title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step__body {
    font-size: 0.95rem;
}

/* === Differentiators / Feature Blocks === */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.diff-block {
    padding: 32px;
    border-left: 3px solid var(--copper);
}

.diff-block__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.diff-block__body {
    font-size: 0.98rem;
}

/* === CTA Banner === */
.cta-banner {
    padding: 80px 0;
    background: var(--navy);
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-banner .cta-support {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin-top: 16px;
}

/* === Credibility / Social Proof === */
.credibility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.credibility__content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.credibility__stat {
    text-align: center;
}

.credibility__number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--copper);
    line-height: 1;
}

.credibility__number-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* === Service Detail Pages === */
.deliverables-list {
    list-style: none;
    padding: 0;
}

.deliverables-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.deliverables-list li::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--copper);
    border-radius: 50%;
    margin-top: 8px;
}

.example-box {
    background: var(--off-white);
    border-radius: 12px;
    padding: 40px;
    border-left: 4px solid var(--copper);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
}

/* === FAQ / Objection Handling === */
.faq-list {
    max-width: 800px;
}

.faq-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--light-gray);
}

.faq-item__question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.faq-item__answer {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === Pricing Table === */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.95rem;
}

.pricing-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.pricing-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.pricing-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-light);
}

.pricing-table tbody tr:hover {
    background: var(--off-white);
}

.pricing-table .check {
    color: var(--copper);
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-table .pricing-row td {
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
}

/* === About Page === */
.founder-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.founder-section p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.thesis-section {
    max-width: 800px;
}

.thesis-section p {
    font-size: 1.1rem;
    line-height: 1.9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.team-card {
    padding: 32px;
    background: var(--off-white);
    border-radius: 12px;
}

.team-card__role {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 8px;
}

.team-card__name {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.team-card__bio {
    font-size: 0.95rem;
}

.team-card--hiring {
    border: 2px dashed var(--light-gray);
    background: transparent;
}

/* === Contact Form === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(193, 127, 53, 0.1);
}

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

.contact-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.contact-form .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contact-form .checkbox-label:hover {
    border-color: var(--copper);
}

.contact-form .checkbox-label input {
    width: auto;
}

.contact-form .checkbox-label input:checked + span {
    color: var(--copper);
    font-weight: 600;
}

.contact-info {
    padding-top: 20px;
}

.contact-info h3 {
    margin-bottom: 24px;
}

.contact-info__item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-light);
}

.contact-info__item strong {
    color: var(--navy);
}

/* === Service Detail: Approach Blocks === */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.approach-block {
    padding: 32px;
    background: var(--off-white);
    border-radius: 12px;
}

.approach-block h4 {
    margin-bottom: 10px;
    color: var(--navy);
}

.approach-block p {
    font-size: 0.95rem;
}

/* === Build page: what we build === */
.build-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.build-block {
    padding: 32px;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.build-block:hover {
    border-color: var(--copper);
    box-shadow: 0 4px 20px rgba(193, 127, 53, 0.08);
}

.build-block h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.build-block p {
    font-size: 0.95rem;
}

/* === Process Steps (How It Works detail) === */
.process-steps {
    max-width: 800px;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 40px 0;
    border-bottom: 1px solid var(--light-gray);
}

.process-step:last-child {
    border-bottom: none;
}

.process-step__number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--copper);
    opacity: 0.3;
    line-height: 1;
}

.process-step__title {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.process-step__timeline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--copper);
    margin-bottom: 12px;
}

.process-step__body {
    font-size: 1rem;
    line-height: 1.8;
}

/* === Manage page: Cost Comparison === */
.cost-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cost-box {
    padding: 40px;
    border-radius: 12px;
}

.cost-box--inhouse {
    background: var(--off-white);
}

.cost-box--ironworks {
    background: var(--navy);
}

.cost-box--ironworks h3,
.cost-box--ironworks p {
    color: var(--white);
}

.cost-box--ironworks p {
    color: rgba(255, 255, 255, 0.85);
}

.cost-box h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.cost-box p {
    font-size: 1rem;
    line-height: 1.7;
}

/* === Footer === */
.site-footer {
    background: var(--navy-dark);
    padding: 60px 0 32px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand {
    max-width: 280px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--copper);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .diff-grid,
    .build-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

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

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

    .cost-compare {
        grid-template-columns: 1fr;
    }

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

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

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        gap: 4px;
    }

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

    .main-nav a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 16px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .process-step {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process-step__number {
        font-size: 2rem;
    }

    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table thead th,
    .pricing-table tbody td {
        padding: 10px 12px;
    }
}

/* === WordPress Core Styles === */
.wp-block-image {
    margin: 2rem 0;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.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-width: 0;
}

/* === Service detail page meta === */
.service-meta {
    display: flex;
    gap: 40px;
    padding: 32px 40px;
    background: var(--off-white);
    border-radius: 12px;
    margin-top: 40px;
}

.service-meta__item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--copper);
    margin-bottom: 4px;
}

.service-meta__item span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
}

@media (max-width: 768px) {
    .service-meta {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
}
