:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f3f4f6;
    --dark-bg: #111827;
    --primary-text: #111827;
    --secondary-text: #4b5563;
    --accent-color: #f59e0b;
    --accent-text: #ffffff;
    --border-radius: 0.375rem;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color var(--transition-speed), background-color var(--transition-speed);
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-speed) ease-in-out;
}

button:active {
    transform: scale(0.95);
}

ul,
ol {
    list-style: none;
}

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

input,
select,
textarea {
    font-family: inherit;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.875rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    .mobile-break-word {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.9em;
    }
}

/* ===== main_header ===== */
.js-mobile-menu.open {
    max-height: 400px !important;
}

.js-nav-link {
    hyphens: auto;
    line-height: 1.2;
}

/* ===== hero_section ===== */
.bg-dark-bg {
    background-color: var(--dark-bg);
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: var(--accent-text);
}

#hero {
    position: relative;
    overflow: hidden;
}

#hero h1,
#hero p {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hyphens-auto {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* ===== services_grid ===== */
.service-card {
    hyphens: auto;
    overflow-wrap: break-word;
}

.service-card i {
    line-height: 1;
}

/* ===== pricing_table ===== */
#pricing {
    overflow-x: hidden;
}

#pricing table {
    width: 100%;
}

#pricing .container {
    overflow-x: hidden;
}

#pricing tr td,
#pricing tr th {
    hyphens: auto;
    word-break: break-word;
}

/* ===== advantages_timeline ===== */
.js-timeline-wrapper .ph {
    line-height: 1;
}

.hyphens-auto {
    hyphens: auto;
}

/* ===== work_process ===== */
#steps {
    overflow-x: hidden;
}

.ph {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* ===== portfolio_gallery ===== */
.portfolio-gallery-hover-zoom:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* ===== testimonials_grid ===== */
.js-testimonial-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#reviews p,
#reviews h2,
#reviews i {
    hyphens: auto;
}

/* ===== contact_form_section ===== */
.hyphens-auto {
    hyphens: auto;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* ===== floating_bar ===== */
#cta-bar {
    background-color: var(--primary-bg);
    border-color: #e5e7eb;
}

.js-scroll-trigger {
    background-color: var(--accent-color);
    color: var(--accent-text);
    border-radius: var(--border-radius);
}

.js-scroll-trigger:hover {
    background-color: #d97706;
}

#cta-bar p {
    color: var(--primary-text);
}

#cta-bar .text-gray-600 {
    color: var(--secondary-text);
}

@media (max-width: 767px) {
    #cta-bar {
        hyphens: auto;
    }
}

/* ===== main_footer ===== */
.custom-placeholder::placeholder {
    color: #9ca3af;
    font-size: 12px;
}

#footer {
    background-color: var(--dark-bg);
    color: #ffffff;
}

#footer h2,
#footer h3 {
    color: #ffffff;
    line-height: 1.2;
    hyphens: auto;
}

#footer .text-[#f59e0b] {
    color: var(--accent-color);
}

.ph {
    font-size: 20px;
}