/* boxorandyos site enhancements; brand accents & motion */

:root {
    --brand-teal: #0a9e9e;
    --brand-teal-light: #14b8b8;
    --brand-teal-glow: rgba(10, 158, 158, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(160deg, #ececec 0%, #f4f4f4 40%, #e8eded 100%);
    background-attachment: fixed;
}

/* ── Header & logo ─────────────────────────────────────── */

.header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f2f2f 100%);
    padding: 28px 16px 24px;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 100%, var(--brand-teal-glow), transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(10, 158, 158, 0.12), transparent 55%);
    pointer-events: none;
    animation: header-shimmer 8s ease-in-out infinite alternate;
}

@keyframes header-shimmer {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
}

.header-brand {
    display: inline-block;
    position: relative;
    z-index: 1;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.header-brand:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 12px var(--brand-teal-glow));
}

.header-logo {
    display: block;
    max-width: min(320px, 85vw);
    height: auto;
    margin: 0 auto;
}

.header-tagline,
.header p {
    position: relative;
    z-index: 1;
    color: #c8d8d8 !important;
    letter-spacing: 0.04em;
}

/* ── Scroll-reveal animations ──────────────────────────── */

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.animate-in[data-delay="1"] { transition-delay: 0.1s; }
.animate-in[data-delay="2"] { transition-delay: 0.2s; }
.animate-in[data-delay="3"] { transition-delay: 0.3s; }
.animate-in[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .header::before { animation: none; }
    html { scroll-behavior: auto; }
}

/* ── Cards & containers ────────────────────────────────── */

.container {
    transition: box-shadow 0.4s ease;
}

.container:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.service-box {
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-teal-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: rgba(10, 158, 158, 0.2);
}

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

.service-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}

.service-box a {
    transition: color 0.25s, transform 0.25s;
    display: inline-block;
}

.service-box a:hover {
    color: var(--brand-teal) !important;
    transform: translateX(4px);
}

/* ── CTAs & buttons ────────────────────────────────────── */

.cta a,
.submit-button,
.consult-block a,
.services-cta a {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s !important;
}

.cta a:hover,
.submit-button:hover,
.services-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.consult-block {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a3a3a 100%) !important;
}

.consult-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, var(--brand-teal-glow), transparent 50%);
    pointer-events: none;
}

.consult-block a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(10, 158, 158, 0.3);
}

/* ── Testimonials ──────────────────────────────────────── */

.testimonial {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.testimonial {
    border-left-color: var(--brand-teal) !important;
}

/* ── Team / business-card links ──────────────────────── */

.team-section {
    margin: 32px 0;
}

.team-section h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 1.2em;
}

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

.team-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #f8fafa;
    border: 1px solid #e0e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(10, 158, 158, 0.12);
    border-color: var(--brand-teal);
}

.team-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-teal), #067a7a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.team-card-name {
    font-weight: 700;
    font-size: 1.15em;
    color: #222;
    margin: 0;
}

.team-card-role {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.team-card-cta {
    margin-top: auto;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    gap: 4px;
}

.team-card:hover .team-card-cta {
    gap: 8px;
}

.team-card-cta::after {
    content: "→";
    transition: transform 0.25s;
}

.team-card:hover .team-card-cta::after {
    transform: translateX(3px);
}

/* ── Contact page team block ───────────────────────────── */

.contact-team {
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f6f6 0%, #f8fafa 100%);
    border-radius: 10px;
    border: 1px solid #dce8e8;
}

.contact-team > p {
    margin: 0 0 16px;
    color: #555;
}

/* ── Inline text links ─────────────────────────────────── */

a.link {
    color: var(--brand-teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s;
}

a.link:hover {
    border-bottom-color: var(--brand-teal);
}

/* ── Business cards on contact pages ───────────────────── */

.business-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.business-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(10, 158, 158, 0.08);
    border-color: rgba(10, 158, 158, 0.3);
}

.card-header {
    border-bottom-color: var(--brand-teal) !important;
}

/* ── About page person links ───────────────────────────── */

.person-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #aaa;
    transition: color 0.25s, border-color 0.25s;
}

.person-link:hover {
    color: var(--brand-teal);
    border-bottom-color: var(--brand-teal);
}

.person-link-hint {
    font-size: 0.85em;
    color: #888;
    font-weight: normal;
}

/* ── Footer logo accent ────────────────────────────────── */

.footer {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%) !important;
}

.footer-logo {
    display: block;
    max-width: 160px;
    height: auto;
    margin: 0 auto 12px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

/* ── Nav accent on active ──────────────────────────────── */

.nav-bar a.active {
    box-shadow: inset 0 -3px 0 var(--brand-teal);
}

/* ── Service area badge ────────────────────────────────── */

.service-area {
    border-left: 4px solid var(--brand-teal);
}

/* ── Why choose section ────────────────────────────────── */

.why-choose li::marker {
    color: var(--brand-teal);
}

/* ── Homepage: how we work & consulting paths ──────────── */

.how-we-work {
    margin-bottom: 32px;
}

.how-we-work h3,
.consulting-paths h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.process-step {
    padding: 20px;
    background: #f8fafa;
    border-radius: 10px;
    border: 1px solid #e0e8e8;
    text-align: center;
}

.process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-teal);
    color: #fff;
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.process-step h4 {
    margin: 0 0 8px;
    font-size: 1em;
    color: #333;
}

.process-step p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.consulting-paths {
    margin-bottom: 32px;
}

.path-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.path-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #e0e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(10, 158, 158, 0.12);
    border-color: var(--brand-teal);
}

.path-card-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.path-card h4 {
    margin: 0;
    color: #222;
    font-size: 1.1em;
}

.path-card p {
    margin: 0;
    color: #666;
    font-size: 0.92em;
    line-height: 1.5;
    flex: 1;
}

.path-card-link {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--brand-teal);
    margin-top: 4px;
}

/* ── Services page ─────────────────────────────────────── */

.services-hero {
    padding: 28px;
    background: linear-gradient(135deg, #f0f6f6 0%, #f8fafa 100%);
    border-radius: 10px;
    border: 1px solid #dce8e8;
    margin-bottom: 32px;
    text-align: center;
}

.services-hero p {
    margin: 0;
    color: #555;
    font-size: 1.05em;
    max-width: 700px;
    margin-inline: auto;
}

.services-hero .contact-line {
    margin-top: 16px;
    font-size: 0.95em;
    color: #666;
}

.services-hero .contact-line a {
    color: var(--brand-teal);
    text-decoration: none;
}

.dept-block {
    margin-bottom: 40px;
}

.dept-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand-teal);
}

.dept-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.dept-header h2 {
    margin: 0 0 6px;
    font-size: clamp(1.2em, 3vw, 1.5em);
    color: #222;
}

.dept-header p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

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

.service-card {
    padding: 24px;
    background: #f8fafa;
    border: 1px solid #e0e8e8;
    border-radius: 10px;
    scroll-margin-top: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 1.05em;
    color: #222;
}

.service-card p {
    margin: 0 0 12px;
    color: #666;
    font-size: 0.92em;
    line-height: 1.55;
}

.service-card ul {
    margin: 0;
    padding-left: 18px;
    color: #555;
    font-size: 0.88em;
    line-height: 1.6;
}

.service-card li {
    margin-bottom: 4px;
}

/* ── About page ────────────────────────────────────────── */

.about-intro {
    font-size: 1.1em;
    color: #444;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-block {
    margin-bottom: 28px;
    padding: 24px;
    background: #f8fafa;
    border-radius: 10px;
    border: 1px solid #e0e8e8;
}

.about-block h2 {
    margin: 0 0 12px;
    font-size: 1.15em;
    color: #222;
    border-bottom: 2px solid var(--brand-teal);
    padding-bottom: 8px;
    display: inline-block;
}

.about-block p {
    margin: 0 0 12px;
    color: #555;
    line-height: 1.65;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.value-item {
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.value-item strong {
    display: block;
    color: var(--brand-teal);
    margin-bottom: 4px;
    font-size: 0.95em;
}

.value-item span {
    font-size: 0.88em;
    color: #666;
    line-height: 1.45;
}

.about-cta {
    text-align: center;
    padding: 24px;
    margin-top: 8px;
}

.about-cta a {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, transform 0.25s;
}

.about-cta a:hover {
    background: #444;
    transform: translateY(-2px);
}

/* ── FAQ page ──────────────────────────────────────────── */

.faq-hero {
    text-align: center;
    margin-bottom: 28px;
}

.faq-hero p {
    color: #666;
    margin: 8px 0 0;
    font-size: 1.05em;
}

.faq-search-wrap {
    margin-bottom: 24px;
}

.faq-search {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    border: 2px solid #e0e8e8;
    border-radius: 10px;
    background: #f8fafa;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-search:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px var(--brand-teal-glow);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.faq-cat-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 0.88em;
    cursor: pointer;
    transition: all 0.25s;
}

.faq-cat-btn:hover,
.faq-cat-btn.active {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e0e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.faq-item.is-open {
    border-color: rgba(10, 158, 158, 0.4);
    box-shadow: 0 4px 20px rgba(10, 158, 158, 0.08);
}

.faq-item.is-hidden {
    display: none;
}

.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: none;
    background: #f8fafa;
    text-align: left;
    font-size: 1em;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: background 0.25s;
}

.faq-item.is-open .faq-question-btn {
    background: linear-gradient(135deg, #f0f6f6, #f8fafa);
    color: var(--brand-teal);
}

.faq-question-btn:hover {
    background: #f0f4f4;
}

.faq-chevron {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    transition: transform 0.3s, background 0.3s;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    background: var(--brand-teal);
    color: #fff;
}

.faq-answer-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-answer-panel {
    max-height: 500px;
}

.faq-answer {
    padding: 0 20px 18px;
    color: #555;
    line-height: 1.65;
    font-size: 0.95em;
}

.faq-answer a {
    color: var(--brand-teal);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-no-results {
    text-align: center;
    padding: 32px;
    color: #888;
    display: none;
}

.faq-no-results.is-visible {
    display: block;
}

.faq-bottom-cta {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(135deg, #1a1a1a, #2a3a3a);
    color: #fff;
    border-radius: 10px;
    text-align: center;
}

.faq-bottom-cta h3 {
    margin: 0 0 8px;
    color: #fff;
}

.faq-bottom-cta p {
    margin: 0 0 16px;
    color: #ccc;
}

.faq-bottom-cta a {
    display: inline-block;
    background: var(--brand-teal);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.25s, transform 0.25s;
}

.faq-bottom-cta a:hover {
    background: var(--brand-teal-light);
    transform: translateY(-2px);
}
