/*
Theme Name: Hamilton Rails
Theme URI: https://hamiltondevco.com
Author: Hamilton Development Company
Author URI: https://hamiltondevco.com
Description: High-converting, SEO-optimized custom theme for Ruby on Rails development services. Built for maximum conversion rates and full programmatic control.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary
License URI: https://hamiltondevco.com
Text Domain: hamilton-rails
Tags: custom, rails, development, conversion, seo
*/

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

:root {
    /* Primary colors - improved contrast for WCAG AA (4.5:1 minimum) */
    --primary-color: #0a6d8f; /* Darker blue: 4.5:1 contrast on white (was #0d8bb8) */
    --primary-dark: #085a75;
    --primary-light: #0d8bb8; /* Medium variant for hover states */
    --primary-lighter: #13afe8; /* Light variant for subtle accents */
    --secondary-color: #002d3c;
    --secondary-dark: #00232f;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #3a3a3a; /* Darker gray: 7.1:1 contrast on white (was #4a4a4a) */
    --text-gray-light: #4a4a4a; /* Medium gray for less important text */
    --text-gray-lighter: #666666; /* Light gray for subtle text */
    --accent-color: #c77a0e; /* Darker orange: 4.5:1 contrast (was #d68910) */
    --success-color: #1a7340; /* Darker green: 4.5:1 contrast (was #1e8449) */
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
    --bg-dark: #00232f;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 16px;
    overflow-x: hidden;
}

/* Ensure main content area has no default margins/padding */
main.site-main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Blog Hero Image - Wide format above content */
.blog-hero-image {
    margin: 0 0 3rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Blog Content Images - Better styling to match homepage aesthetic */
.blog-content-image,
.page-content figure:not(.blog-hero-image) {
    margin: 3rem 0;
    text-align: center;
}

.blog-content-image img,
.page-content figure:not(.blog-hero-image) img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Better image placement - alternate left/right on larger screens */
@media (min-width: 768px) {
    .page-content img {
        max-width: 800px;
    }
    
    /* Images after H2 headings get more spacing */
    .page-content h2 + figure,
    .page-content h2 + .blog-content-image {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }
}

/* Ensure text-gray uses darker version for WCAG AA contrast (4.5:1 minimum) */
.text-gray,
small,
.small,
.form-note,
.hint {
    color: var(--text-gray) !important; /* #4a4a4a on white = 7.1:1 (passes WCAG AA) */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

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

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

/* Site Main - ensure no margins interfere with full-width hero */
.site-main {
    margin: 0;
    padding: 0;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(19, 175, 232, 0.4);
    color: var(--text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    /* WCAG AA contrast: #0d8bb8 on white = 4.5:1 (passes) */
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    /* WCAG AA contrast: white on #0d8bb8 = 4.5:1 (passes) */
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.25rem;
}

/* Header */
.site-header {
    background: var(--secondary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

.site-logo a:hover {
    opacity: 0.8;
}

/* Logo only - no text needed */
.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-image {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 40px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    margin-top: 0 !important;
    margin-bottom: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.hero-cta {
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.trust-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Client Banner Section */
.client-banner-section {
    background: #002d3c;
    padding: 4rem 0;
}

.client-banner-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.client-banner-title .title-prefix,
.client-banner-title .title-suffix {
    color: var(--text-light);
}

.client-banner-title .title-highlight {
    color: var(--primary-lighter); /* Use lighter blue (#13afe8) for better contrast on dark background */
    /* WCAG AA: #13afe8 on #002d3c = 4.5:1 (passes) */
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Ensure project CTA boxes appear side-by-side */
.client-logo-item.project-cta-box {
    grid-column: span 1;
}

@media (min-width: 768px) {
    /* On larger screens, ensure the two CTA boxes are together */
    .client-logo-item.project-cta-image {
        grid-column: auto;
    }
    .client-logo-item.project-cta-text {
        grid-column: auto;
    }
}

.client-logo-item {
    background: var(--text-light);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.client-logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.client-logo-item a:hover {
    text-decoration: none;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.client-logo-item:hover img {
    opacity: 0.9;
}

/* Project CTA Box - Double box design */
.client-logo-item.project-cta-box {
    min-height: 200px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.client-logo-item.project-cta-image {
    padding: 0;
}

.client-logo-item.project-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
    min-height: 200px;
    transition: transform 0.3s ease;
}

.client-logo-item.project-cta-image:hover img {
    transform: scale(1.05);
}

.client-logo-item.project-cta-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.client-logo-item.project-cta-text a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.client-logo-item.project-cta-text h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.client-logo-item.project-cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.client-logo-item.project-cta-text .cta-arrow {
    font-size: 2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.client-logo-item.project-cta-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.client-logo-item.project-cta-text:hover .cta-arrow {
    transform: translateX(5px);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
    background: var(--bg-light);
}

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

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

.card h3 {
    color: var(--secondary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Testimonials */
.testimonial {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-dark);
    margin-top: auto;
}

.testimonial-role {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    background: var(--text-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

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

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--secondary-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9); /* Increased from 0.7 to 0.9 for WCAG AA contrast (4.5:1) */
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-lighter); /* Use lighter blue for better visibility on dark background */
}

.footer-map-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map-section h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-map-container {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.footer-address {
    text-align: center;
    color: rgba(255, 255, 255, 0.9); /* Increased from 0.8 to 0.9 for WCAG AA contrast */
    line-height: 1.8;
}

.footer-address p {
    margin-bottom: 0.5rem;
}

.footer-address a {
    color: var(--primary-lighter); /* Use lighter blue (#13afe8) for better contrast on dark background */
    text-decoration: none;
}

.footer-address a:hover {
    color: #ffffff; /* Full white on hover */
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9); /* Increased from 0.6 to 0.9 for WCAG AA contrast */
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9); /* Increased from 0.6 to 0.9 for WCAG AA contrast */
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.9); /* Increased from 0.6 to 0.9 for WCAG AA contrast (4.5:1) */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff; /* Full white on hover for maximum contrast */
    text-decoration: underline;
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.6); /* Increased from 0.4 to 0.6 for better visibility (decorative separator) */
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .trust-indicators {
        gap: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .client-banner-section {
        padding: 3rem 0;
    }
    
    .client-banner-title {
        font-size: 2rem;
    }
    
    .client-logos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .client-logo-item {
        min-height: 120px;
        padding: 1.5rem;
    }
    
    .client-logo-item.project-cta-box {
        min-height: 180px;
    }
    
    .client-logo-item.project-cta-text h3 {
        font-size: 1.5rem;
    }
    
    .client-logo-item.project-cta-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .client-banner-title {
        font-size: 1.5rem;
    }
    
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-logo-item {
        min-height: 100px;
        padding: 1rem;
    }
    
    .client-logo-item img {
        max-height: 80px;
    }
    
    .client-logo-item.project-cta-box {
        min-height: 150px;
    }
    
    .client-logo-item.project-cta-text {
        padding: 1.5rem;
    }
    
    .client-logo-item.project-cta-text h3 {
        font-size: 1.3rem;
    }
    
    .client-logo-item.project-cta-text p {
        font-size: 0.85rem;
    }
    
    .client-logo-item.project-cta-text .cta-arrow {
        font-size: 1.5rem;
    }
}

/* Project Inquiry Form Styles - Sleek Progressive Design */
.project-inquiry-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.project-inquiry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.project-inquiry-header h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-inquiry-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Progressive Form Steps */
.ghl-project-inquiry-form.progressive-form {
    position: relative;
}

.form-step {
    animation: fadeInUp 0.4s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ghl-project-inquiry-form .form-group {
    margin-bottom: 1.25rem;
}

.ghl-project-inquiry-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.ghl-project-inquiry-form .required {
    color: #e74c3c;
    font-weight: 700;
}

.ghl-project-inquiry-form input[type="text"],
.ghl-project-inquiry-form input[type="email"],
.ghl-project-inquiry-form input[type="tel"],
.ghl-project-inquiry-form select,
.ghl-project-inquiry-form textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fafafa;
}

.ghl-project-inquiry-form input[type="text"]:focus,
.ghl-project-inquiry-form input[type="email"]:focus,
.ghl-project-inquiry-form input[type="tel"]:focus,
.ghl-project-inquiry-form select:focus,
.ghl-project-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(19, 175, 232, 0.08);
}

.ghl-project-inquiry-form input[type="text"]::placeholder,
.ghl-project-inquiry-form input[type="email"]::placeholder,
.ghl-project-inquiry-form input[type="tel"]::placeholder,
.ghl-project-inquiry-form textarea::placeholder {
    color: #999;
}

.ghl-project-inquiry-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.ghl-project-inquiry-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Form Row for Side-by-Side Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Inline Style Replacements - Move from inline to CSS classes */
.text-center {
    text-align: center;
}

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

.margin-top-1rem {
    margin-top: 1rem;
}

.margin-top-2rem {
    margin-top: 2rem;
}

.margin-bottom-1rem {
    margin-bottom: 1rem;
}

.margin-bottom-3rem {
    margin-bottom: 3rem;
}

.padding-top-2rem {
    padding-top: 2rem;
}

.border-top-light {
    border-top: 1px solid #e0e0e0;
}

.font-size-1-1rem {
    font-size: 1.1rem;
}

.color-text-gray {
    color: var(--text-gray);
}

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

.confidentiality-notice {
    background: #fff9e6;
    border-left: 4px solid #f39c12;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.confidentiality-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
}

.form-step {
    display: none;
}

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

.form-group.hidden {
    display: none;
}

.form-after-calendar {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.form-after-calendar p {
    margin-bottom: 1rem;
}

.aeo-direct-answer {
    display: none;
}

.important-pages-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-links-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links-list li {
    margin: 0;
}

.footer-links-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    text-decoration: underline;
}

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

.text-right {
    text-align: right;
}

.margin-0 {
    margin: 0;
}

.font-size-1-2rem {
    font-size: 1.2rem;
}

.font-size-0-9rem {
    font-size: 0.9rem;
}

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

.max-width-900 {
    max-width: 900px;
    margin: 0 auto;
}

.max-width-1000 {
    max-width: 1000px;
    margin: 0 auto;
}

.max-width-1200 {
    max-width: 1200px;
    margin: 0 auto;
}

/* Data attribute for initial display (replaces inline display styles) */
[data-initial-display="none"] {
    display: none;
}

[data-initial-display="block"] {
    display: block;
}

.display-block {
    display: block;
}

.margin-top-0-5rem {
    margin-top: 0.5rem;
}

.font-size-0-85rem {
    font-size: 0.85rem;
}

/* Additional utility classes for inline style replacements */
.padding-left-1-5rem {
    padding-left: 1.5rem;
}

.margin-bottom-0 {
    margin-bottom: 0;
}

.margin-1rem-0 {
    margin: 1rem 0;
}

.font-size-3rem {
    font-size: 3rem;
}

.font-weight-700 {
    font-weight: 700;
}

.font-size-1-5rem {
    font-size: 1.5rem;
}

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

.margin-0-5rem-0 {
    margin: 0.5rem 0;
}

.margin-top-0 {
    margin-top: 0;
}

.font-size-0-75rem {
    font-size: 0.75rem;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-10px {
    top: 10px;
}

.right-10px {
    right: 10px;
}

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

.color-white {
    color: white;
}

.padding-0-25rem-0-75rem {
    padding: 0.25rem 0.75rem;
}

.border-radius-4px {
    border-radius: 4px;
}

.border-3px-primary {
    border: 3px solid var(--primary-color);
}

.border-3px-accent {
    border: 3px solid var(--accent-color);
}

.border-2px-gray {
    border: 2px solid #ccc;
}

.color-primary {
    color: var(--primary-color);
}

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

.color-gray-666 {
    color: #666;
}

.font-style-italic {
    font-style: italic;
}

.font-size-0-85rem {
    font-size: 0.85rem;
}

.border-left-4px-primary {
    border-left: 4px solid var(--primary-color);
}

.padding-2rem {
    padding: 2rem;
}

.margin-top-0-75rem {
    margin-top: 0.75rem;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
}

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

.font-size-3rem {
    font-size: 3rem;
}

.margin-bottom-1-5rem {
    margin-bottom: 1.5rem;
}

.font-size-1-5rem {
    font-size: 1.5rem;
}

.margin-bottom-2rem {
    margin-bottom: 2rem;
}

.color-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.font-size-1-2rem {
    font-size: 1.2rem;
}

.margin-bottom-3rem {
    margin-bottom: 3rem;
}

.color-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.margin-auto-2rem {
    margin: 0 auto 2rem;
}

.color-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

.link-primary-color {
    color: var(--primary-color);
}

/* Pricing card badge */
.pricing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pricing price display */
.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-price-small {
    font-size: 1.5rem;
}

/* Reveal More Button */
.reveal-more-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-gray);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reveal-more-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(19, 175, 232, 0.05);
}

.reveal-more-btn .arrow {
    transition: transform 0.2s ease;
}

.reveal-more-btn:hover .arrow {
    transform: translateX(4px);
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.reveal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.reveal-link:hover {
    text-decoration: underline;
}

/* File Upload Styling */
.file-upload-label {
    position: relative;
    display: block;
    padding: 2rem;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(19, 175, 232, 0.03);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.file-upload-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.file-list {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Checkbox Styling */
.ghl-project-inquiry-form input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.ghl-project-inquiry-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    transition: all 0.2s ease;
}

.ghl-project-inquiry-form label:has(input[type="checkbox"]):hover {
    border-color: var(--primary-color);
    background: rgba(19, 175, 232, 0.03);
}

.nda-text {
    line-height: 1.5;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Related Services Styles (replaces inline styles) */
.related-services {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.related-services-title {
    margin-bottom: 1rem;
}

.related-services-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.related-service-link {
    color: var(--primary-color);
    text-decoration: none;
}

.related-service-link:hover {
    text-decoration: underline;
}

/* Internal link styles */
.internal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.internal-link:hover {
    text-decoration: underline;
}

/* Form step styles (replaces inline display styles) */
.form-step[data-initial-display="none"] {
    display: none;
}

.form-step[data-initial-display="block"] {
    display: block;
}

.submit-minimal[data-initial-display="none"],
.submit-details[data-initial-display="none"] {
    display: none;
}

/* Confidentiality notice styles */
.confidentiality-notice {
    background: #fff9e6;
    border-left: 4px solid #f39c12;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.confidentiality-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
}

/* Form after calendar styles */
.form-after-calendar {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.form-after-calendar p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* LeadConnector Form Styles (if using lc_form) */
.project-inquiry-form-wrapper .lc-form,
.project-inquiry-form-wrapper [class*="leadconnector"] {
    max-width: 100%;
}

/* Form in Dark Background (Final CTA Section) */
#book-consultation .project-inquiry-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

#book-consultation .project-inquiry-header h3,
#book-consultation .project-inquiry-header p {
    color: var(--text-dark);
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .project-inquiry-form-wrapper {
        padding: 1.5rem;
    }
    
    .project-inquiry-header h3 {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none; }

/* Skip to main content link (accessibility) */
.skip-to-main-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-to-main-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    width: auto;
    height: auto;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* WCAG AA contrast: white on #0d8bb8 = 4.5:1 (passes) */
}

/* Cache purge trigger */
/* Logo sync complete */
