/**
 * iTSherpa Universal Customizer - Main Styles
 * These styles work with any WordPress theme
 */

/* CSS Variables */
:root {
    --itsherpa-primary: #e57300;
    --itsherpa-primary-dark: #cc6600;
    --itsherpa-primary-light: #ff8c1a;
    --itsherpa-gray: #666666;
    --itsherpa-light-gray: #f5f5f5;
    --itsherpa-dark-gray: #333333;
    --itsherpa-white: #ffffff;
    --itsherpa-border: #dddddd;
    --itsherpa-shadow: rgba(0, 0, 0, 0.1);
}

/* Reset some theme styles for iTSherpa elements */
.itsherpa-universal * {
    box-sizing: border-box;
}

/* Container */
.itsherpa-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Typography */
.itsherpa-universal {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Buttons */
.itsherpa-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    line-height: 1.5;
}

.itsherpa-btn.btn-primary {
    background-color: var(--itsherpa-primary);
    color: var(--itsherpa-white) !important;
}

.itsherpa-btn.btn-primary:hover {
    background-color: var(--itsherpa-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--itsherpa-shadow);
}

.itsherpa-btn.btn-secondary {
    background-color: transparent;
    color: var(--itsherpa-primary) !important;
    border: 2px solid var(--itsherpa-primary);
}

.itsherpa-btn.btn-secondary:hover {
    background-color: var(--itsherpa-primary);
    color: var(--itsherpa-white) !important;
}

/* Hero Section */
.itsherpa-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.itsherpa-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--itsherpa-dark-gray);
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.itsherpa-hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--itsherpa-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Grid */
.itsherpa-services {
    padding: 60px 0;
    background: var(--itsherpa-white);
}

.itsherpa-section-title {
    text-align: center;
    color: var(--itsherpa-dark-gray);
    font-size: 2rem;
    margin: 0 0 40px 0;
    font-weight: 700;
}

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

.itsherpa-service-card {
    background: var(--itsherpa-white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px var(--itsherpa-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.itsherpa-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.itsherpa-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--itsherpa-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.itsherpa-service-card:hover::before {
    transform: scaleX(1);
}

.itsherpa-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--itsherpa-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--itsherpa-white);
    font-size: 36px;
}

.itsherpa-service-title {
    font-size: 1.2rem;
    color: var(--itsherpa-dark-gray);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.itsherpa-service-description {
    color: var(--itsherpa-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Strong Points */
.itsherpa-strong-points {
    background-color: var(--itsherpa-light-gray);
    padding: 60px 0;
}

.itsherpa-strong-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.itsherpa-strong-point-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.itsherpa-strong-point-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--itsherpa-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--itsherpa-white);
    font-size: 24px;
}

.itsherpa-strong-point-content h3 {
    color: var(--itsherpa-dark-gray);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.itsherpa-strong-point-content p {
    color: var(--itsherpa-gray);
    margin: 0;
    line-height: 1.6;
}

/* Company Info Table */
.itsherpa-company-info {
    padding: 60px 0;
    background: var(--itsherpa-white);
}

.itsherpa-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    box-shadow: 0 2px 10px var(--itsherpa-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.itsherpa-info-table th {
    background: var(--itsherpa-light-gray);
    color: var(--itsherpa-dark-gray);
    padding: 15px 20px;
    text-align: left;
    width: 30%;
    font-weight: 600;
    border-bottom: 1px solid var(--itsherpa-border);
}

.itsherpa-info-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--itsherpa-border);
    color: var(--itsherpa-gray);
    line-height: 1.6;
}

.itsherpa-info-table tr:last-child th,
.itsherpa-info-table tr:last-child td {
    border-bottom: none;
}

/* Office Locations */
.itsherpa-offices {
    padding: 60px 0;
    background: var(--itsherpa-light-gray);
}

.itsherpa-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.itsherpa-location-card {
    background: var(--itsherpa-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px var(--itsherpa-shadow);
    transition: transform 0.3s ease;
}

.itsherpa-location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--itsherpa-shadow);
}

.itsherpa-location-card h3 {
    color: var(--itsherpa-primary);
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.itsherpa-location-card p {
    color: var(--itsherpa-gray);
    margin: 0;
    line-height: 1.6;
}

/* Mission Section */
.itsherpa-mission {
    padding: 60px 0;
    background: var(--itsherpa-white);
    text-align: center;
}

.itsherpa-mission-title {
    color: var(--itsherpa-primary);
    font-size: 2rem;
    margin: 0 0 30px 0;
    font-weight: 700;
}

.itsherpa-mission-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.itsherpa-mission-item {
    padding: 25px;
    margin: 20px 0;
    background: var(--itsherpa-light-gray);
    border-left: 4px solid var(--itsherpa-primary);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease;
}

.itsherpa-mission-item:hover {
    transform: translateX(5px);
}

.itsherpa-mission-item h3 {
    color: var(--itsherpa-dark-gray);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.itsherpa-mission-item p {
    color: var(--itsherpa-gray);
    margin: 0;
    line-height: 1.6;
}

/* Language Switcher */
.itsherpa-language-switcher {
    display: inline-flex;
    gap: 10px;
    margin-left: 20px;
}

.itsherpa-language-switcher a {
    padding: 5px 12px;
    border: 1px solid var(--itsherpa-border);
    border-radius: 3px;
    text-decoration: none !important;
    color: var(--itsherpa-gray) !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.itsherpa-language-switcher a:hover,
.itsherpa-language-switcher a.active {
    background-color: var(--itsherpa-primary);
    color: var(--itsherpa-white) !important;
    border-color: var(--itsherpa-primary);
}

/* Footer Enhancement */
.itsherpa-footer {
    background-color: var(--itsherpa-dark-gray);
    color: var(--itsherpa-white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.itsherpa-footer-column h3 {
    color: var(--itsherpa-primary);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.itsherpa-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.itsherpa-footer-column li {
    margin: 8px 0;
}

.itsherpa-footer-column a {
    color: #cccccc !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.itsherpa-footer-column a:hover {
    color: var(--itsherpa-primary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .itsherpa-hero {
        padding: 60px 0;
    }

    .itsherpa-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .itsherpa-strong-points-grid,
    .itsherpa-locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .itsherpa-info-table th,
    .itsherpa-info-table td {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }
    
    .itsherpa-info-table th {
        background: var(--itsherpa-primary);
        color: var(--itsherpa-white);
        border-bottom: none;
    }
    
    .itsherpa-info-table td {
        padding-left: 30px;
    }
    
    .itsherpa-language-switcher {
        display: flex;
        justify-content: center;
        margin: 20px 0 0 0;
    }
}

/* Loading Animation */
.itsherpa-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--itsherpa-light-gray);
    border-top: 4px solid var(--itsherpa-primary);
    border-radius: 50%;
    animation: itsherpa-spin 1s linear infinite;
}

@keyframes itsherpa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Override theme-specific styles when needed */
.itsherpa-override .site-header,
.itsherpa-override .site-footer {
    display: none;
}

.itsherpa-override .site-content {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

/* Accessibility */
.itsherpa-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .itsherpa-hero {
        background: none;
        padding: 20px 0;
    }
    
    .itsherpa-service-card,
    .itsherpa-location-card {
        box-shadow: none;
        border: 1px solid var(--itsherpa-border);
    }
    
    .itsherpa-btn {
        display: none;
    }
}