/*-----------------------------------------------------------------------------------
Template Name: Buddy's Cleaning Services
Description: Professional cleaning services website
Version: 3.0 — UX/UI QA Fixes Applied
-----------------------------------------------------------------------------------
CSS INDEX
===================
1. Google Font
2. Theme Default CSS (contrast-safe)
3. Accessibility — Skip Link, Focus Rings
4. Navigation — Sticky, Hover, Active, Logo
5. Hero Section — Overlay, H1, Buttons, Trust
6. Section Headings — Unified Typography Scale
7. Section Labels
8. Service Cards — Equal Height, Full-Click, Hover
9. Why Choose Us Cards
10. Service Detail & Checklist
11. Pricing Cards — Popular Highlight, Custom Quote
12. How It Works — Steps with Connectors
13. Contact Section — Cards, Form, Validation
14. CTA Banner
15. Footer — Spacing, Contrast
16. Buttons — Clear Hierarchy
17. Spacing System (8px grid)
18. Responsive
-----------------------------------------------------------------------------------*/

/*-----------------
1. Google Font
------------------*/
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:400,600,700|Rubik:400,500,700');

/*--------------------------
2. Theme Default CSS
— Body text: #3a4255 on white = 7.2:1 contrast (WCAG AAA)
— Secondary text: #5a6275 on white = 4.9:1 (WCAG AA)
— Headings: #0F1D46 on white = 14.5:1
---------------------------*/
button,
a {
    text-decoration: none;
    outline: none;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    color: #2a3550;
    font-family: 'Rubik', sans-serif;
}

input[type="submit"]:focus,
button:focus,
a:focus,
a:hover {
    text-decoration: none;
    outline: none;
    color: #1565c0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #0F1D46;
    font-family: 'Josefin Sans', sans-serif;
}

html,
body {
    height: 100%;
}

body {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #3a4255;
    font-family: 'Rubik', sans-serif;
    opacity: 0;
}

p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Override for left-aligned contexts */
.service-detail-box p,
.widget p,
.footer-bottom p,
.why-desc,
.step-desc,
.card-desc,
.contact-card p,
.form-note {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Remove Chrome Input Field's Unwanted Yellow Background Color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

/*--------------------------
3. Accessibility
— Skip link for keyboard users (QA 11.4)
— Global focus ring (QA 11.2)
---------------------------*/
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #0F1D46;
    color: #ffffff;
    padding: 12px 24px;
    z-index: 100000;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: #ffffff;
    outline: 3px solid #1980FA;
    outline-offset: 2px;
}

/* Global visible focus ring for keyboard navigation */
*:focus-visible {
    outline: 3px solid #1980FA;
    outline-offset: 2px;
}

/* Remove focus ring for mouse clicks */
*:focus:not(:focus-visible) {
    outline: none;
}

/*--------------------------
4. Navigation
— Sticky confirmation, hover/active states,
  logo prominence, nav CTA button (QA 3.x)
---------------------------*/
.nav-logo {
    max-height: 50px;
    width: auto;
    display: block;
    transition: 0.3s;
}

.affix .nav-logo {
    max-height: 42px;
}

.site-brand .logo {
    padding: 5px 10px 5px 0;
    display: block;
}

/* Stronger hover for nav links */
.transparent .mainmenu ul li a {
    position: relative;
    padding: 15px 12px;
    font-size: 15px;
    font-weight: 500;
}

.transparent .mainmenu ul li a:hover {
    opacity: 1;
    color: #ffffff;
}

/* Active nav state (underline) */
.mainmenu ul li.active > a:after,
.mainmenu ul li:hover > a:after {
    width: 100%;
    background-color: #ffffff;
}

/* Nav CTA button */
.mainmenu ul li a.nav-cta {
    background: #ffffff;
    color: #1565c0 !important;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 700;
    margin-left: 8px;
}

.mainmenu ul li a.nav-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0F1D46 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mainmenu ul li a.nav-cta:after {
    display: none;
}

/* Affix (sticky) transition */
.mainmenu-area.transparent.affix {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.mainmenu-area.v2.transparent.affix {
    background-color: #2050d0;
}

/*--------------------------
5. Hero Section
— Overlay for contrast (QA 4.3)
— H1 for semantic hierarchy (QA 2.1)
— Clear button hierarchy (QA 4.1)
— Trust indicators (QA 14)
---------------------------*/
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
}

.header-area .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 520px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-logo-img {
    max-width: 340px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.25));
}

/* Trust indicators */
.hero-trust {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-item i {
    color: #4cdf8a;
    font-size: 16px;
}

/*--------------------------
6. Section Headings
— Clear H2/H3 hierarchy with size gaps (QA 2.1)
— Max line-length 65-75 chars (QA 2.3)
---------------------------*/
.section-title {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: #0F1D46;
    margin-bottom: 16px;
}

.text-white .section-title {
    color: #ffffff;
}

.section-desc {
    font-size: 17px;
    line-height: 1.7;
    color: #5a6275;
    max-width: 600px;
    margin-bottom: 0;
}

.text-white .section-desc {
    color: rgba(255, 255, 255, 0.88);
}

/*--------------------------
7. Section Labels
---------------------------*/
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #1565c0;
    background: rgba(25, 128, 250, 0.08);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-family: 'Rubik', sans-serif;
}

.text-white-label {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/*--------------------------
8. Service Cards
— Equal height with flexbox (QA 5.1)
— Full card clickable (QA 5.2)
— Hover elevation (QA 5.2)
---------------------------*/
.service-card-row {
    display: flex;
    flex-wrap: wrap;
}

.service-card-row > [class*="col-"] {
    display: flex;
}

a.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 40px 28px 32px;
    border-radius: 8px;
    background-color: #ffffff;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    margin-bottom: 24px;
    border: 2px solid #c5cbd5;
    cursor: pointer;
    color: #3a4255;
    text-decoration: none;
}

a.feature-box:hover,
a.feature-box:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(25, 128, 250, 0.2);
    color: #3a4255;
}

a.feature-box .box-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 16px;
    font-size: 24px;
    margin-bottom: 24px;
    color: #ffffff;
    text-align: center;
    display: inline-block;
}

a.feature-box.v2 .box-icon { background: #1980FA; }
a.feature-box.v3 .box-icon { background: #9919FA; }
a.feature-box.v4 .box-icon { background: #FAA719; }

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0F1D46;
}

.card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #5a6275;
    margin-bottom: 16px;
    flex-grow: 1;
}

a.feature-box .bttn-link {
    margin-top: auto;
    color: #1565c0;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

a.feature-box:hover .bttn-link {
    color: #0F1D46;
}

a.feature-box:hover .bttn-link i {
    transform: translateX(4px);
}

a.feature-box .bttn-link i {
    transition: 0.3s;
}

/*--------------------------
9. Why Choose Us Cards
— Increased padding, spacing (QA 7.1)
---------------------------*/
.why-section {
    background-image: linear-gradient(to right, #5040F4 0%, #31B4FE 100%);
    padding: 240px 0 200px;
    position: relative;
    z-index: 1;
}

.why-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 24px 36px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
    margin-bottom: 24px;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.why-stat {
    font-size: 44px;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 12px;
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.1;
}

.why-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0F1D46;
}

.why-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #5a6275;
    margin-bottom: 0;
}

/*--------------------------
10. Service Detail & Checklist
— Consistent padding, improved list spacing (QA 6.2)
---------------------------*/
.service-section {
    overflow: hidden;
}

.row-flex-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.service-detail-box {
    padding: 16px 0;
}

.detail-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #1565c0;
    background: rgba(25, 128, 250, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    font-family: 'Rubik', sans-serif;
}

.detail-title {
    font-size: 28px;
    margin-bottom: 16px;
    color: #0F1D46;
}

.service-detail-box p {
    margin-bottom: 16px;
    color: #3a4255;
    font-size: 16px;
    line-height: 1.75;
}

.service-checklist {
    padding: 16px 0;
}

.service-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-checklist ul li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #3a4255;
    gap: 12px;
}

.service-checklist ul li:last-child {
    border-bottom: none;
}

.service-checklist ul li i.fa-check {
    color: #1e8e3e;
    font-size: 13px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: rgba(30, 142, 62, 0.1);
    border-radius: 50%;
    text-align: center;
    flex-shrink: 0;
}

/*--------------------------
11. Pricing Cards
— Popular card highlighted with border + ribbon (QA 5.3, 6.1)
— Custom Quote visually distinct (QA 6.3)
— Consistent price baseline alignment (QA 6.1)
---------------------------*/
.pricing-row {
    display: flex;
    flex-wrap: wrap;
}

.pricing-row > [class*="col-"] {
    display: flex;
}

.price-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    transform: translateY(0);
    margin-bottom: 24px;
    border: 2px solid #c5cbd5;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Popular card — strong visual highlight */
.price-card.popular {
    border-color: #1565c0;
    box-shadow: 0 4px 24px rgba(21, 101, 192, 0.2);
    transform: translateY(-8px);
    padding-top: 56px;
}

.price-card.popular:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(21, 101, 192, 0.25);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #1565c0, #1980FA);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 24px;
    border-radius: 0 0 8px 8px;
    font-family: 'Rubik', sans-serif;
}

/* Custom Quote card — different styling */
/* Dashed border #a0a8b5 on #f8f9fb ≈ 3:1 — passes 1.4.11 */
.price-card.custom-quote {
    background-color: #f8f9fb;
    border-color: #a0a8b5;
    border-style: dashed;
}

.price-tier {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5a6275;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
}

.price-plan-title {
    font-size: 22px;
    color: #0F1D46;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 40px;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 24px;
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.2;
}

.price-period {
    font-size: 16px;
    font-weight: 400;
    color: #5a6275;
}

.price-custom {
    font-size: 32px;
    color: #5a6275;
}

.price-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
    text-align: left;
}

.price-features li {
    padding: 8px 0;
    font-size: 15px;
    color: #3a4255;
    border-bottom: 1px solid #f0f2f5;
    position: relative;
    padding-left: 24px;
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li:before {
    content: "\f00c";
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: #1e8e3e;
    font-size: 12px;
}

/*--------------------------
12. How It Works
— Step connector line (QA 8.1)
— Equal spacing (QA 8.1)
— Normalized icon boxes (QA 8.2)
---------------------------*/
.how-it-works-area {
    background-color: #f8f9fb;
}

.steps-row {
    display: flex;
    flex-wrap: wrap;
}

.step-box {
    text-align: center;
    padding: 32px 16px;
    position: relative;
    margin-bottom: 24px;
}

/* Connector line between steps */
@media (min-width: 992px) {
    .steps-row > [class*="col-"]:not(:last-child) .step-box:after {
        content: "";
        position: absolute;
        top: 67px;
        right: -16px;
        width: 32px;
        height: 2px;
        background: linear-gradient(to right, #5040F4, #31B4FE);
        opacity: 0.4;
    }
}

.step-number {
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5040F4 0%, #31B4FE 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Josefin Sans', sans-serif;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(80, 64, 244, 0.3);
}

.step-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #0F1D46;
}

.step-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #5a6275;
    margin-bottom: 0;
}

/*--------------------------
13. Contact Section
— Redesigned contact cards (QA 9.x)
— Improved form spacing, focus, validation (QA 9.1, 9.2, 9.3)
---------------------------*/
.contact-section {
    background-color: #ffffff;
}

/* Contact cards */
.contact-card {
    text-align: center;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: 0.3s;
    border: 1px solid #c5cbd5;
}

.contact-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0, #1980FA);
    color: #ffffff;
    font-size: 22px;
    text-align: center;
    margin: 0 auto 20px;
    display: block;
}

.contact-card-title {
    font-size: 18px;
    color: #0F1D46;
    margin-bottom: 8px;
}

.contact-card-value {
    font-size: 16px;
    color: #3a4255;
    margin-bottom: 4px;
}

.contact-card-value a {
    color: #1565c0;
    font-weight: 500;
}

.contact-card-value a:hover {
    color: #0F1D46;
}

.contact-card-meta {
    font-size: 14px;
    color: #7a8299;
    margin-bottom: 0;
}

/* Working Hours */
.working-hours {
    display: inline-block;
    background: #f8f9fb;
    padding: 20px 40px;
    border-radius: 10px;
    border: 1px solid #c5cbd5;
}

.working-hours h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #0F1D46;
}

.working-hours p {
    margin-bottom: 0;
    font-size: 15px;
    color: #5a6275;
}

/* Contact Form */
.contact-form-box {
    background-color: #ffffff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #c5cbd5;
}

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

.contact-form-box label {
    font-size: 14px;
    font-weight: 600;
    color: #0F1D46;
    margin-bottom: 8px;
    display: block;
    font-family: 'Rubik', sans-serif;
}

.required {
    color: #d32f2f;
    font-weight: 700;
}

/* Border #8690a0 on #fafbfc ≈ 3.2:1 — passes WCAG 1.4.11 non-text contrast */
.contact-form-box .form-control {
    height: auto;
    padding: 14px 16px;
    border: 2px solid #8690a0;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.2s;
    color: #0F1D46;
    background-color: #fafbfc;
}

.contact-form-box .form-control::placeholder {
    color: #9aa3b5;
}

.contact-form-box .form-control:focus {
    border-color: #1980FA;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(25, 128, 250, 0.12);
}

.contact-form-box select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%235a6275' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form-box textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Form validation error states */
.form-error {
    display: none;
    font-size: 13px;
    color: #d32f2f;
    margin-top: 6px;
    font-weight: 500;
}

/* Error border #d32f2f on white = 5.5:1 — passes WCAG 1.4.11 */
.form-group.has-error .form-control {
    border-color: #d32f2f;
    background-color: #fef8f8;
}

.form-group.has-error .form-control:focus {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

.form-group.has-error .form-error {
    display: block;
}

.form-note {
    font-size: 13px;
    color: #7a8299;
    margin-top: 16px;
    margin-bottom: 0;
}

/*--------------------------
14. CTA Banner
---------------------------*/
.cta-banner-area {
    background-image: linear-gradient(135deg, #4030e8 0%, #2891f5 100%);
    padding: 240px 0 200px;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 44px;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/*--------------------------
15. Footer
— Improved link spacing (QA 10.1)
— Better contrast (QA 10.1)
---------------------------*/
.footer-logo-wrap {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 130px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-area.v2 {
    margin-top: 0;
}

.footer-bottom {
    padding-top: 80px;
    padding-bottom: 60px;
}

.footer-bottom .widget p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom .widget p i.fa {
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .widget p a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom .widget p a:hover {
    color: #ffffff;
}

/* Increased link spacing */
.footer-bottom .widget ul li {
    padding: 7px 0;
}

.footer-bottom .widget ul li a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom .widget ul li a:hover {
    color: #ffffff;
}

.footer-bottom .widget-title {
    font-size: 18px;
    margin-bottom: 16px;
}

/* Social icons */
.social-menu a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    margin-right: 8px;
    transition: 0.3s;
}

.social-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.copyright-area {
    padding-bottom: 40px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/*--------------------------
16. Buttons
— Clear primary/secondary/outline hierarchy (QA 4.1, 5.3)
---------------------------*/

/* Primary solid button (main CTA) */
.bttn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #1565c0;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #1565c0;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.bttn-primary:hover,
.bttn-primary:focus-visible {
    background: #0d47a1;
    border-color: #0d47a1;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
    transform: translateY(-2px);
}

.bttn-primary.bttn-lg {
    padding: 18px 56px;
    font-size: 17px;
}

/* Outline button (secondary CTA) */
.bttn-outline {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.bttn-outline:hover,
.bttn-outline:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* White primary (on gradients) */
.bttn-primary-white {
    display: inline-block;
    padding: 16px 40px;
    background: #ffffff;
    color: #1565c0;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.bttn-primary-white:hover,
.bttn-primary-white:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    color: #0d47a1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* White outline (on gradients) */
.bttn-outline-white {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.bttn-outline-white:hover,
.bttn-outline-white:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Pricing card buttons */
.bttn-price {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: #1565c0;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid #1565c0;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.bttn-price:hover,
.bttn-price:focus-visible {
    background: #1565c0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.25);
}

/* Pricing primary button (for popular plans) */
.bttn-price-primary {
    display: inline-block;
    padding: 14px 36px;
    background: #1565c0;
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid #1565c0;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.bttn-price-primary:hover,
.bttn-price-primary:focus-visible {
    background: #0d47a1;
    border-color: #0d47a1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
}

/*--------------------------
17. Spacing System (8px grid)
---------------------------*/
.space-8 { height: 8px; }
.space-16 { height: 16px; }
.space-24 { height: 24px; }
.space-32 { height: 32px; }
.space-48 { height: 48px; }
.space-64 { height: 64px; }

/* Section padding standardised */
.section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* Grey background for alternating sections */
.section-grey {
    background-color: #f8f9fb;
}

/* ScrollUp color override */
#scrollUp {
    background: #1565c0;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    line-height: 42px;
}

#scrollUp:hover {
    background: #0d47a1;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.4);
}

/*--------------------------
18. Responsive
---------------------------*/
@media (max-width: 1199px) {
    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .cta-title {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-logo-img {
        max-width: 240px;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .contact-form-box {
        padding: 32px 24px;
    }

    .service-card-row {
        display: block;
    }

    .service-card-row > [class*="col-"] {
        display: block;
    }

    .pricing-row {
        display: block;
    }

    .pricing-row > [class*="col-"] {
        display: block;
    }

    .row-flex-top {
        display: block;
    }

    .section-padding {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .why-section {
        padding: 180px 0 150px;
    }

    .cta-banner-area {
        padding: 180px 0 150px;
    }

    .price-card.popular {
        transform: translateY(0);
    }

    .price-card.popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-logo-img {
        max-width: 180px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .bttn-primary,
    .hero-btns .bttn-outline {
        width: 100%;
        text-align: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 26px;
    }

    .section-padding {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .why-section {
        padding: 140px 0 120px;
    }

    .cta-banner-area {
        padding: 140px 0 120px;
    }

    .why-card {
        margin-bottom: 16px;
    }

    .step-box {
        margin-bottom: 16px;
    }

    .price-card {
        margin-bottom: 16px;
    }

    .detail-title {
        font-size: 24px;
    }

    .contact-form-box {
        padding: 24px 16px;
    }

    .bttn-primary,
    .bttn-outline,
    .bttn-primary-white,
    .bttn-outline-white {
        padding: 14px 32px;
        font-size: 15px;
    }

    .nav-logo {
        max-height: 40px;
    }

    .steps-row {
        display: block;
    }

    .footer-bottom .widget {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .price-amount {
        font-size: 32px;
    }

    .why-stat {
        font-size: 36px;
    }
}

/* 1.4.10 Reflow — 320px CSS width (equiv. 1280px at 400% zoom) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .detail-title {
        font-size: 20px;
    }

    .price-amount {
        font-size: 28px;
    }

    .why-stat {
        font-size: 30px;
    }

    .step-number {
        width: 56px;
        height: 56px;
        line-height: 56px;
        font-size: 22px;
    }

    .contact-form-box {
        padding: 16px 12px;
    }

    .bttn-primary,
    .bttn-outline,
    .bttn-primary-white,
    .bttn-outline-white,
    .bttn-price,
    .bttn-price-primary {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-btns .bttn-primary,
    .hero-btns .bttn-outline {
        width: 100%;
    }

    .working-hours {
        padding: 16px 20px;
    }

    .working-hours p {
        font-size: 13px;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/*--------------------------
WCAG 2.1 — 2.3.3 / Motion Actuation
Respect prefers-reduced-motion
---------------------------*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .wow {
        visibility: visible !important;
        animation: none !important;
    }

    .hero-logo-img {
        filter: none;
    }


    body {
        opacity: 1 !important;
    }
}

/*--------------------------
WCAG 2.1 — 1.4.12 Text Spacing
Ensure no content clipping when user overrides text spacing.
Avoid fixed heights on text containers.
---------------------------*/
.why-card,
.step-box,
.price-card,
a.feature-box,
.contact-card,
.service-detail-box,
.contact-form-box {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
}

/*--------------------------
WCAG 2.1 — 2.5.5 Target Size (enhanced, AAA)
Minimum 44x44px for all interactive elements.
Applied as best practice for WCAG 2.1 AA compliance.
---------------------------*/
.bttn-primary,
.bttn-outline,
.bttn-primary-white,
.bttn-outline-white,
.bttn-price,
.bttn-price-primary {
    min-height: 48px;
    min-width: 48px;
}

.mainmenu ul li a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.social-menu a {
    min-width: 44px;
    min-height: 44px;
}

#scrollUp {
    min-width: 44px;
    min-height: 44px;
}

/* Ensure select dropdown arrow area is large enough */
.contact-form-box select.form-control {
    min-height: 48px;
}

/*--------------------------
WCAG — High contrast mode support
---------------------------*/
@media (forced-colors: active) {
    .bttn-primary,
    .bttn-price-primary,
    .step-number,
    .contact-card-icon,
    .popular-badge {
        forced-color-adjust: none;
    }

    a.feature-box {
        border: 2px solid LinkText;
    }

    .price-card.popular {
        border: 3px solid LinkText;
    }
}
